@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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
## [9.4.3-alpha-chakra.4](https://github.com/bitrise-io/bitkit/compare/v9.4.3-alpha-chakra.3...v9.4.3-alpha-chakra.4) (2022-04-07)
|
|
2
|
+
|
|
1
3
|
## [9.4.3-alpha-chakra.3](https://github.com/bitrise-io/bitkit/compare/v9.4.3-alpha-chakra.2...v9.4.3-alpha-chakra.3) (2022-04-07)
|
|
2
4
|
|
|
3
5
|
## [9.4.3-alpha-chakra.2](https://github.com/bitrise-io/bitkit/compare/v9.4.3-alpha-chakra.1...v9.4.3-alpha-chakra.2) (2022-04-07)
|
|
@@ -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"}
|
|
@@ -17,12 +17,12 @@ var react_1 = require("@chakra-ui/react");
|
|
|
17
17
|
* Basic `Text` component
|
|
18
18
|
*/
|
|
19
19
|
var Text = function (props) {
|
|
20
|
-
var size = props.size, textTransform = props.textTransform;
|
|
20
|
+
var fontWeight = props.fontWeight, size = props.size, textTransform = props.textTransform;
|
|
21
21
|
var properties = __assign({}, props);
|
|
22
22
|
if (size === '1' && (!textTransform || textTransform === 'none')) {
|
|
23
23
|
properties.textTransform = 'uppercase';
|
|
24
24
|
}
|
|
25
|
-
if (size === '5' || size === '6' || size === '7' || size === '8') {
|
|
25
|
+
if (!fontWeight && (size === '5' || size === '6' || size === '7' || size === '8')) {
|
|
26
26
|
properties.fontWeight = 'bold';
|
|
27
27
|
}
|
|
28
28
|
return (0, jsx_runtime_1.jsx)(react_1.Text, __assign({}, properties));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/Components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0CAAiE;AAmDjE;;GAEG;AACH,IAAM,IAAI,GAAG,UAAC,KAAY;IAChB,IAAA,IAAI,GAAoB,KAAK,KAAzB,EAAE,aAAa,GAAK,KAAK,cAAV,CAAW;
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/Components/Text/Text.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0CAAiE;AAmDjE;;GAEG;AACH,IAAM,IAAI,GAAG,UAAC,KAAY;IAChB,IAAA,UAAU,GAA0B,KAAK,WAA/B,EAAE,IAAI,GAAoB,KAAK,KAAzB,EAAE,aAAa,GAAK,KAAK,cAAV,CAAW;IAClD,IAAM,UAAU,gBAAmB,KAAK,CAAE,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,uBAAC,YAAU,eAAK,UAAU,EAAI,CAAC;AACxC,CAAC,CAAC;AAEF,IAAI,CAAC,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,GAAG;CACD,CAAC;AAEX,kBAAe,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"}
|