@toptal/picasso-logo 2.0.10-alpha-MP-669-first-batch-of-rework-c1fb81067.24 → 2.0.10-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AASvD,oBAAY,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzE,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,kEAAkE;IAClE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAED,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AASvD,oBAAY,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAEzE,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,kEAAkE;IAClE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAED,eAAO,MAAM,IAAI,6EAoBf,CAAA;AAIF,eAAe,IAAI,CAAA"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import React, { forwardRef } from 'react';
|
|
2
13
|
import { Logo as LogoIcon, LogoEmblem as LogoEmblemIcon, } from '@toptal/picasso-icons';
|
|
3
14
|
import { twMerge } from '@toptal/picasso-tailwind-merge';
|
|
4
15
|
import { colorClass } from './styles';
|
|
5
|
-
export const Logo = forwardRef(function Logo(
|
|
6
|
-
|
|
16
|
+
export const Logo = forwardRef(function Logo(_a, ref) {
|
|
17
|
+
var { variant = 'default' } = _a, props = __rest(_a, ["variant"]);
|
|
18
|
+
const { emblem, style, className, 'data-testid': testId } = props;
|
|
7
19
|
const LogoComponent = emblem ? LogoEmblemIcon : LogoIcon;
|
|
8
20
|
return (React.createElement(LogoComponent, { ref: ref, className: twMerge('text-[1.875rem] align-baseline', colorClass[variant], className), style: style, "data-testid": testId }));
|
|
9
21
|
});
|
|
10
|
-
Logo.defaultProps = {
|
|
11
|
-
variant: 'default',
|
|
12
|
-
};
|
|
13
22
|
Logo.displayName = 'Logo';
|
|
14
23
|
export default Logo;
|
|
15
24
|
//# sourceMappingURL=Logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,UAAU,IAAI,cAAc,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAWrC,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAAuB,SAAS,IAAI,
|
|
1
|
+
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/Logo/Logo.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EACL,IAAI,IAAI,QAAQ,EAChB,UAAU,IAAI,cAAc,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAWrC,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAAuB,SAAS,IAAI,CAChE,EAAiC,EACjC,GAAG;QADH,EAAE,OAAO,GAAG,SAAS,OAAY,EAAP,KAAK,cAA/B,WAAiC,CAAF;IAG/B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;IAEjE,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAA;IAExD,OAAO,CACL,oBAAC,aAAa,IACZ,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,CAChB,gCAAgC,EAChC,UAAU,CAAC,OAAO,CAAC,EACnB,SAAS,CACV,EACD,KAAK,EAAE,KAAK,iBACC,MAAM,GACnB,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA;AAEzB,eAAe,IAAI,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-logo",
|
|
3
|
-
"version": "2.0.10-alpha-MP-669-
|
|
3
|
+
"version": "2.0.10-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
4
4
|
"description": "Toptal UI components library - Logo",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toptal/picasso-icons": "1.12.2-alpha-MP-669-
|
|
26
|
-
"@toptal/picasso-utils": "3.1.1-alpha-MP-669-
|
|
25
|
+
"@toptal/picasso-icons": "1.12.2-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500",
|
|
26
|
+
"@toptal/picasso-utils": "3.1.1-alpha-MP-669-remove-default-props-dkjf3234-7db07b500.31+7db07b500"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": [
|
|
29
29
|
"**/styles.ts",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"!dist-package/tsconfig.tsbuildinfo",
|
|
42
42
|
"src"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "7db07b500402a91f0c09da3be294305a194fd1e4"
|
|
45
45
|
}
|
package/src/Logo/Logo.tsx
CHANGED
|
@@ -17,14 +17,11 @@ export interface Props extends BaseProps {
|
|
|
17
17
|
variant?: VariantType
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const Logo = forwardRef<SVGSVGElement, Props>(function Logo(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
className,
|
|
26
|
-
'data-testid': testId,
|
|
27
|
-
} = props
|
|
20
|
+
export const Logo = forwardRef<SVGSVGElement, Props>(function Logo(
|
|
21
|
+
{ variant = 'default', ...props },
|
|
22
|
+
ref
|
|
23
|
+
) {
|
|
24
|
+
const { emblem, style, className, 'data-testid': testId } = props
|
|
28
25
|
|
|
29
26
|
const LogoComponent = emblem ? LogoEmblemIcon : LogoIcon
|
|
30
27
|
|
|
@@ -42,10 +39,6 @@ export const Logo = forwardRef<SVGSVGElement, Props>(function Logo(props, ref) {
|
|
|
42
39
|
)
|
|
43
40
|
})
|
|
44
41
|
|
|
45
|
-
Logo.defaultProps = {
|
|
46
|
-
variant: 'default',
|
|
47
|
-
}
|
|
48
|
-
|
|
49
42
|
Logo.displayName = 'Logo'
|
|
50
43
|
|
|
51
44
|
export default Logo
|