@snokam/ui 6.0.3 → 6.1.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.1.0](https://github.com/snokam/components/compare/@snokam/ui@6.0.3...@snokam/ui@6.1.0) (2026-10-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **platform-web:** one Vis som list, centred /manage loaders, banner copy from the App doc ([#2940](https://github.com/snokam/components/issues/2940)) ([a9ff3f1](https://github.com/snokam/components/commit/a9ff3f1d1d9714711d044a3a80602dd82e65e245))
|
|
11
|
+
|
|
6
12
|
## [6.0.3](https://github.com/snokam/components/compare/@snokam/ui@6.0.0...@snokam/ui@6.0.3) (2026-10-14)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -4,8 +4,9 @@ interface Props {
|
|
|
4
4
|
branding?: BusinessBranding | null;
|
|
5
5
|
tone?: LogoTone;
|
|
6
6
|
height?: number;
|
|
7
|
+
wordmarkHeight?: number;
|
|
7
8
|
}
|
|
8
|
-
export declare function BusinessLogo({ name, branding, tone, height }: Props): import("react").JSX.Element;
|
|
9
|
+
export declare function BusinessLogo({ name, branding, tone, height, wordmarkHeight, }: Props): import("react").JSX.Element;
|
|
9
10
|
export { businessLogoSource };
|
|
10
11
|
export type { BusinessBranding, LogoTone };
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/business-logo/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,UAAU,CAAC;AAKlB,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/business-logo/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,UAAU,CAAC;AAKlB,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,MAAW,EACX,cAAuB,GACxB,EAAE,KAAK,+BAoBP;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -5,11 +5,11 @@ import { getSanityImageUrl } from "../media/sanity";
|
|
|
5
5
|
import { businessLogoSource, } from "./source";
|
|
6
6
|
import { LogoImage, Wordmark } from "./styles";
|
|
7
7
|
const MAX_ASPECT_RATIO = 6;
|
|
8
|
-
export function BusinessLogo({ name, branding, tone, height = 28 }) {
|
|
8
|
+
export function BusinessLogo({ name, branding, tone, height = 28, wordmarkHeight = height, }) {
|
|
9
9
|
const colorScheme = useColorScheme();
|
|
10
10
|
const source = businessLogoSource(branding, tone ?? colorScheme);
|
|
11
11
|
if (!source) {
|
|
12
|
-
return _jsx(Wordmark, { "$height":
|
|
12
|
+
return _jsx(Wordmark, { "$height": wordmarkHeight, children: name });
|
|
13
13
|
}
|
|
14
14
|
return (_jsx(LogoImage, { src: getSanityImageUrl(source.url, {
|
|
15
15
|
width: height * MAX_ASPECT_RATIO * 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/business-logo/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,kBAAkB,GAGnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,gBAAgB,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/business-logo/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,kBAAkB,GAGnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAU3B,MAAM,UAAU,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,MAAM,GAAG,EAAE,EACX,cAAc,GAAG,MAAM,GACjB;IACN,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,kBAAkB,CAAC,QAAQ,EAAE,IAAI,IAAI,WAAW,CAAC,CAAC;IAEjE,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAC,QAAQ,eAAU,cAAc,YAAG,IAAI,GAAY,CAAC;IAC9D,CAAC;IAED,OAAO,CACL,KAAC,SAAS,IACR,GAAG,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,EAAE;YACjC,KAAK,EAAE,MAAM,GAAG,gBAAgB,GAAG,CAAC;YACpC,MAAM,EAAE,MAAM,GAAG,CAAC;YAClB,MAAM,EAAE,KAAK;SACd,CAAC,EACF,GAAG,EAAE,IAAI,aACA,MAAM,aACN,MAAM,CAAC,MAAM,GACtB,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
package/package.json
CHANGED