@bitrise/bitkit 9.4.3-alpha-chakra.3 → 9.4.3-alpha-chakra.4
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/CHANGELOG.md +2 -0
- package/lib/cjs/Components/Provider/Provider.d.ts +0 -1
- package/lib/cjs/Components/Provider/Provider.d.ts.map +1 -1
- package/lib/cjs/Components/Text/Text.d.ts +1 -2
- package/lib/cjs/Components/Text/Text.d.ts.map +1 -1
- package/lib/cjs/Components/Text/Text.js +2 -2
- package/lib/cjs/Components/Text/Text.js.map +1 -1
- package/lib/cjs/Components/Text/Text.stories.d.ts +0 -1
- package/lib/cjs/Components/Text/Text.stories.d.ts.map +1 -1
- package/lib/cjs/Foundations/Colors/Colors.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Colors/Colors.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Radii/Radii.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Radii/Radii.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Shadows/Shadows.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Shadows/Shadows.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Sizes/Sizes.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Sizes/Sizes.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Typography/Typography.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Typography/Typography.examples.d.ts.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esn/Components/Provider/Provider.d.ts +0 -1
- package/lib/esn/Components/Provider/Provider.d.ts.map +1 -1
- package/lib/esn/Components/Text/Text.d.ts +1 -2
- package/lib/esn/Components/Text/Text.d.ts.map +1 -1
- package/lib/esn/Components/Text/Text.js +2 -2
- package/lib/esn/Components/Text/Text.js.map +1 -1
- package/lib/esn/Components/Text/Text.stories.d.ts +0 -1
- package/lib/esn/Components/Text/Text.stories.d.ts.map +1 -1
- package/lib/esn/Foundations/Colors/Colors.examples.d.ts +0 -1
- package/lib/esn/Foundations/Colors/Colors.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Radii/Radii.examples.d.ts +0 -1
- package/lib/esn/Foundations/Radii/Radii.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Shadows/Shadows.examples.d.ts +0 -1
- package/lib/esn/Foundations/Shadows/Shadows.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Sizes/Sizes.examples.d.ts +0 -1
- package/lib/esn/Foundations/Sizes/Sizes.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Typography/Typography.examples.d.ts +0 -1
- package/lib/esn/Foundations/Typography/Typography.examples.d.ts.map +1 -1
- package/lib/esn/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -9
- package/src/Components/Text/Text.tsx +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/Components/Provider/Provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/Components/Provider/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvE,QAAA,MAAM,QAAQ,iBAAkB,mBAAmB,gBAElD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TextProps } from '@chakra-ui/react';
|
|
3
2
|
declare type TextTags = 'a' | 'abbr' | 'bdi' | 'bdo' | 'blockquote' | 'cite' | 'data' | 'dd' | 'dfn' | 'dt' | 'em' | 'figcaption' | 'kbd' | 'li' | 'mark' | 'p' | 'pre' | 'q' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'var';
|
|
4
3
|
export interface Props {
|
|
@@ -13,7 +12,7 @@ export interface Props {
|
|
|
13
12
|
* Font weight
|
|
14
13
|
*/
|
|
15
14
|
fontWeight?: 'bold' | 'normal';
|
|
16
|
-
letterSpacing?:
|
|
15
|
+
letterSpacing?: TextProps['letterSpacing'];
|
|
17
16
|
/**
|
|
18
17
|
* Size config (https://www.figma.com/file/grik9mTaJ5DfhydhWhXdP5/Bitkit-Foundations?node-id=211%3A12)
|
|
19
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/Components/Text/Text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/Components/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEjE,aAAK,QAAQ,GACT,GAAG,GACH,MAAM,GACN,KAAK,GACL,KAAK,GACL,YAAY,GACZ,MAAM,GACN,MAAM,GACN,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,YAAY,GACZ,KAAK,GACL,IAAI,GACJ,MAAM,GACN,GAAG,GACH,KAAK,GACL,GAAG,GACH,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,KAAK,GACL,KAAK,GACL,MAAM,GACN,KAAK,CAAC;AAEV,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAChD;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC/B,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACrD,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IACrB,aAAa,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;CACnE;AAED;;GAEG;AACH,QAAA,MAAM,IAAI;YAAW,KAAK;;CAUzB,CAAC;AAOF,eAAe,IAAI,CAAC"}
|
|
@@ -4,12 +4,12 @@ import { Text as ChakraText } from '@chakra-ui/react';
|
|
|
4
4
|
* Basic `Text` component
|
|
5
5
|
*/
|
|
6
6
|
const Text = (props) => {
|
|
7
|
-
const { size, textTransform } = props;
|
|
7
|
+
const { fontWeight, size, textTransform } = props;
|
|
8
8
|
const properties = { ...props };
|
|
9
9
|
if (size === '1' && (!textTransform || textTransform === 'none')) {
|
|
10
10
|
properties.textTransform = 'uppercase';
|
|
11
11
|
}
|
|
12
|
-
if (size === '5' || size === '6' || size === '7' || size === '8') {
|
|
12
|
+
if (!fontWeight && (size === '5' || size === '6' || size === '7' || size === '8')) {
|
|
13
13
|
properties.fontWeight = 'bold';
|
|
14
14
|
}
|
|
15
15
|
return _jsx(ChakraText, { ...properties });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/Components/Text/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAa,MAAM,kBAAkB,CAAC;AAmDjE;;GAEG;AACH,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,EAAE;IAC5B,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/Components/Text/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAa,MAAM,kBAAkB,CAAC;AAmDjE;;GAEG;AACH,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,EAAE;IAC5B,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAClD,MAAM,UAAU,GAAc,EAAE,GAAG,KAAK,EAAE,CAAC;IAC3C,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,aAAa,IAAI,aAAa,KAAK,MAAM,CAAC,EAAE;QAChE,UAAU,CAAC,aAAa,GAAG,WAAW,CAAC;KACxC;IACD,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;QACjF,UAAU,CAAC,UAAU,GAAG,MAAM,CAAC;KAChC;IACD,OAAO,KAAC,UAAU,OAAK,UAAU,GAAI,CAAC;AACxC,CAAC,CAAC;AAEF,IAAI,CAAC,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,GAAG;CACD,CAAC;AAEX,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/Components/Text/Text.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.stories.d.ts","sourceRoot":"","sources":["../../../../src/Components/Text/Text.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;;;;AAGjE,wBAGgC;AAIhC,eAAO,MAAM,SAAS;;;EAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Colors.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Colors/Colors.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Colors.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Colors/Colors.examples.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,mBAQnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radii.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Radii/Radii.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radii.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Radii/Radii.examples.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mBAWjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shadows.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Shadows/Shadows.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shadows.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Shadows/Shadows.examples.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,mBAWnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sizes.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Sizes/Sizes.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sizes.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Sizes/Sizes.examples.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,mBAWjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Typography/Typography.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Typography.examples.d.ts","sourceRoot":"","sources":["../../../../src/Foundations/Typography/Typography.examples.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,SAAS,mBA6BrB,CAAC"}
|