@snokam/ui 4.2.0 → 6.0.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +135 -0
  2. package/dist/components/breadcrumbs/index.d.ts.map +1 -1
  3. package/dist/components/breadcrumbs/index.js +2 -1
  4. package/dist/components/breadcrumbs/index.js.map +1 -1
  5. package/dist/components/business-logo/index.d.ts +11 -0
  6. package/dist/components/business-logo/index.d.ts.map +1 -0
  7. package/dist/components/business-logo/index.js +21 -0
  8. package/dist/components/business-logo/index.js.map +1 -0
  9. package/dist/components/business-logo/source.d.ts +12 -0
  10. package/dist/components/business-logo/source.d.ts.map +1 -0
  11. package/dist/components/business-logo/source.js +12 -0
  12. package/dist/components/business-logo/source.js.map +1 -0
  13. package/dist/components/business-logo/styles.d.ts +14 -0
  14. package/dist/components/business-logo/styles.d.ts.map +1 -0
  15. package/dist/components/business-logo/styles.js +17 -0
  16. package/dist/components/business-logo/styles.js.map +1 -0
  17. package/dist/components/layout/PageHeader.d.ts +3 -3
  18. package/dist/components/layout/PageHeader.d.ts.map +1 -1
  19. package/dist/components/layout/PageHeader.js +7 -1
  20. package/dist/components/layout/PageHeader.js.map +1 -1
  21. package/dist/components/layout/VisuallyHiddenTitle.d.ts +5 -0
  22. package/dist/components/layout/VisuallyHiddenTitle.d.ts.map +1 -0
  23. package/dist/components/layout/VisuallyHiddenTitle.js +14 -0
  24. package/dist/components/layout/VisuallyHiddenTitle.js.map +1 -0
  25. package/dist/components/layout/index.d.ts +1 -0
  26. package/dist/components/layout/index.d.ts.map +1 -1
  27. package/dist/components/layout/index.js +1 -0
  28. package/dist/components/layout/index.js.map +1 -1
  29. package/dist/components/media/sanity.d.ts +1 -0
  30. package/dist/components/media/sanity.d.ts.map +1 -1
  31. package/dist/components/media/sanity.js +3 -0
  32. package/dist/components/media/sanity.js.map +1 -1
  33. package/dist/components/sidebar/styled.d.ts +1 -1
  34. package/dist/index.d.ts +2 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +1 -0
  37. package/dist/index.js.map +1 -1
  38. package/dist/styles/global.css +35 -0
  39. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,141 @@
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.0.0](https://github.com/snokam/components/compare/@snokam/ui@4.0.3...@snokam/ui@6.0.0) (2026-10-14)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **ui:** link the root breadcrumb to the app root ([#2914](https://github.com/snokam/components/issues/2914)) ([24eed10](https://github.com/snokam/components/commit/24eed10d3f7a634f6db815dc6264d948b3d0afc1))
11
+
12
+ ### Features
13
+
14
+ - **chatbot:** make the Olaf panel part of Min side, with real DM Sans and CMS-only copy ([#2915](https://github.com/snokam/components/issues/2915)) ([2517c9c](https://github.com/snokam/components/commit/2517c9c4466f9ece49590c35196286e65abbe3f9)), closes [#071d41](https://github.com/snokam/components/issues/071d41)
15
+ - **my-page-web:** Min side improvements from the page review (WIP) ([#2885](https://github.com/snokam/components/issues/2885)) ([d96a1e5](https://github.com/snokam/components/commit/d96a1e537d76f12a8e53d9d6885728e1b7a67586))
16
+ - **my-page-web:** shared page headers, server-side titles and /kontor buttons ([#2912](https://github.com/snokam/components/issues/2912)) ([9689f04](https://github.com/snokam/components/commit/9689f049bfa6e8d05a409c1e1fbc719d0a68ef86))
17
+ - per-company branding (logo, dark logo, icon) ([#2907](https://github.com/snokam/components/issues/2907)) ([dc32583](https://github.com/snokam/components/commit/dc325832803c88158937f45fe5b9e1b64846a52d))
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ - SimpleHeaderBase and FooterBase take `logo` as a ReactNode;
22
+ the HeaderLogo and FooterLogo types are removed.
23
+
24
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
26
+
27
+ - feat(platform-web): company branding in /manage, at login and in the shell
28
+
29
+ /manage/innstillinger gets a Merkevare section: the logo for light
30
+ backgrounds, the logo for dark backgrounds and the square icon, each with a
31
+ preview on its own background, upload (react-hook-form + zod: type and 2 MB
32
+ checked before sending) and remove. Server error codes map to CMS copy.
33
+ The central login shows the company's logo above "Logg inn hos …", from
34
+ login-config. The /manage shell shows the managed business's logo linking to
35
+ its front page; /admin and an operator without a business show the platform
36
+ business. The public snosky.no chrome keeps the Snøsky logo from the platform
37
+ CMS, through the same BusinessLogo.
38
+
39
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
41
+
42
+ - fix(my-page-web): drop leftover Snøkam favicons
43
+
44
+ The unused pages-router meta component and finance-web's public/favicon.ico
45
+ served Snøkam's icon to every company; favicons now come from the
46
+ company's uploaded icon.
47
+
48
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
50
+
51
+ - fix(handbook-web): no Snøkam share image, no raw-URL fallback in branding metadata
52
+
53
+ The handbook's root metadata no longer hardcodes the Snøkam icon as the
54
+ share image, so the company's share image from makeTenantMetadata applies.
55
+ The favicon and share helpers drop their raw-URL fallback: a transform that
56
+ yields nothing yields no image, never an untransformed (possibly SVG) URL.
57
+
58
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
60
+
61
+ - fix(ui): show the light logo inverted on dark when no dark logo is uploaded
62
+
63
+ Without a dark logo, a dark background shows the light logo turned white
64
+ (brightness(0) invert(1)) instead of the wordmark. The Merkevare previews
65
+ use static brand tokens, and upload errors are read by parsing the JSON
66
+ body rather than stripping quotes.
67
+
68
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
69
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
70
+
71
+ - chore(clients): regenerate platform-function clients for branding
72
+
73
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
75
+
76
+ # [5.0.0](https://github.com/snokam/components/compare/@snokam/ui@4.0.3...@snokam/ui@5.0.0) (2026-10-14)
77
+
78
+ ### Features
79
+
80
+ - **my-page-web:** Min side improvements from the page review (WIP) ([#2885](https://github.com/snokam/components/issues/2885)) ([d96a1e5](https://github.com/snokam/components/commit/d96a1e537d76f12a8e53d9d6885728e1b7a67586))
81
+ - **my-page-web:** shared page headers, server-side titles and /kontor buttons ([#2912](https://github.com/snokam/components/issues/2912)) ([9689f04](https://github.com/snokam/components/commit/9689f049bfa6e8d05a409c1e1fbc719d0a68ef86))
82
+ - per-company branding (logo, dark logo, icon) ([#2907](https://github.com/snokam/components/issues/2907)) ([dc32583](https://github.com/snokam/components/commit/dc325832803c88158937f45fe5b9e1b64846a52d))
83
+
84
+ ### BREAKING CHANGES
85
+
86
+ - SimpleHeaderBase and FooterBase take `logo` as a ReactNode;
87
+ the HeaderLogo and FooterLogo types are removed.
88
+
89
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
90
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
91
+
92
+ - feat(platform-web): company branding in /manage, at login and in the shell
93
+
94
+ /manage/innstillinger gets a Merkevare section: the logo for light
95
+ backgrounds, the logo for dark backgrounds and the square icon, each with a
96
+ preview on its own background, upload (react-hook-form + zod: type and 2 MB
97
+ checked before sending) and remove. Server error codes map to CMS copy.
98
+ The central login shows the company's logo above "Logg inn hos …", from
99
+ login-config. The /manage shell shows the managed business's logo linking to
100
+ its front page; /admin and an operator without a business show the platform
101
+ business. The public snosky.no chrome keeps the Snøsky logo from the platform
102
+ CMS, through the same BusinessLogo.
103
+
104
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
105
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
106
+
107
+ - fix(my-page-web): drop leftover Snøkam favicons
108
+
109
+ The unused pages-router meta component and finance-web's public/favicon.ico
110
+ served Snøkam's icon to every company; favicons now come from the
111
+ company's uploaded icon.
112
+
113
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
114
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
115
+
116
+ - fix(handbook-web): no Snøkam share image, no raw-URL fallback in branding metadata
117
+
118
+ The handbook's root metadata no longer hardcodes the Snøkam icon as the
119
+ share image, so the company's share image from makeTenantMetadata applies.
120
+ The favicon and share helpers drop their raw-URL fallback: a transform that
121
+ yields nothing yields no image, never an untransformed (possibly SVG) URL.
122
+
123
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
124
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
125
+
126
+ - fix(ui): show the light logo inverted on dark when no dark logo is uploaded
127
+
128
+ Without a dark logo, a dark background shows the light logo turned white
129
+ (brightness(0) invert(1)) instead of the wordmark. The Merkevare previews
130
+ use static brand tokens, and upload errors are read by parsing the JSON
131
+ body rather than stripping quotes.
132
+
133
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
134
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
135
+
136
+ - chore(clients): regenerate platform-function clients for branding
137
+
138
+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
139
+ Claude-Session: https://claude.ai/code/session_01Nv57F4rwzYRkuUVFdd2wXA
140
+
6
141
  # [4.2.0](https://github.com/snokam/components/compare/@snokam/ui@4.0.3...@snokam/ui@4.2.0) (2026-10-14)
7
142
 
8
143
  ### Features
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.tsx"],"names":[],"mappings":"AAQA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,UAAU,KAAK;IACb,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,EAAE,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,GAAI,8BAIzB,KAAK,gCAwBP,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.tsx"],"names":[],"mappings":"AAQA,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,UAAU,KAAK;IACb,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE,EAAE,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,GAAI,8BAIzB,KAAK,gCA0BP,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -12,7 +12,8 @@ export var BreadcrumbsTheme;
12
12
  })(BreadcrumbsTheme || (BreadcrumbsTheme = {}));
13
13
  export const Breadcrumbs = ({ crumbs = [], basePath = "", theme = BreadcrumbsTheme.Dark, }) => {
14
14
  const themeStyles = theme === BreadcrumbsTheme.Light ? styles.light : styles.dark;
15
- return (_jsxs(MuiBreadcrumbs, { "aria-label": "breadcrumb", separator: _jsx(NavigateNext, { fontSize: "small" }), sx: { ...styles.Breadcrumbs, ...themeStyles.Breadcrumbs }, children: [crumbs.map(({ href, name, icon }) => (_jsxs(MuiLink, { href: `${basePath}${href}`, component: Link, sx: { ...styles.Link, ...themeStyles.Link }, children: [icon && icon, name] }, href))), _jsx(TrailingCrumb, {})] }));
15
+ const resolveHref = (href) => href === "/" ? href : `${basePath}${href}`;
16
+ return (_jsxs(MuiBreadcrumbs, { "aria-label": "breadcrumb", separator: _jsx(NavigateNext, { fontSize: "small" }), sx: { ...styles.Breadcrumbs, ...themeStyles.Breadcrumbs }, children: [crumbs.map(({ href, name, icon }) => (_jsxs(MuiLink, { href: resolveHref(href), component: Link, sx: { ...styles.Link, ...themeStyles.Link }, children: [icon && icon, name] }, href))), _jsx(TrailingCrumb, {})] }));
16
17
  };
17
18
  export default Breadcrumbs;
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,iCAAa,CAAA;AACf,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAQD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,MAAM,GAAG,EAAE,EACX,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,gBAAgB,CAAC,IAAI,GACvB,EAAE,EAAE;IACV,MAAM,WAAW,GACf,KAAK,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAA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,EAAE,EACb,KAAK,GAAG,gBAAgB,CAAC,IAAI,GACvB,EAAE,EAAE;IACV,MAAM,WAAW,GACf,KAAK,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;IAChE,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CACnC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,IAAI,EAAE,CAAC;IAE7C,OAAO,CACL,MAAC,cAAc,kBACF,YAAY,EACvB,SAAS,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAC,OAAO,GAAG,EAC5C,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,WAAW,EAAE,GAAG,WAAW,CAAC,WAAW,EAAE,aAExD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACpC,MAAC,OAAO,IAEN,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EACvB,SAAS,EAAE,IAAI,EACf,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,WAAW,CAAC,IAAI,EAAE,aAE1C,IAAI,IAAI,IAAI,EACZ,IAAI,KANA,IAAI,CAOD,CACX,CAAC,EACF,KAAC,aAAa,KAAG,IACF,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { businessLogoSource, type BusinessBranding, type LogoTone } from "./source";
2
+ interface Props {
3
+ name: string;
4
+ branding?: BusinessBranding | null;
5
+ tone?: LogoTone;
6
+ height?: number;
7
+ }
8
+ export declare function BusinessLogo({ name, branding, tone, height }: Props): import("react").JSX.Element;
9
+ export { businessLogoSource };
10
+ export type { BusinessBranding, LogoTone };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;CACjB;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAW,EAAE,EAAE,KAAK,+BAoBxE;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useColorScheme } from "../../theme/admin";
4
+ import { getSanityImageUrl } from "../media/sanity";
5
+ import { businessLogoSource, } from "./source";
6
+ import { LogoImage, Wordmark } from "./styles";
7
+ const MAX_ASPECT_RATIO = 6;
8
+ export function BusinessLogo({ name, branding, tone, height = 28 }) {
9
+ const colorScheme = useColorScheme();
10
+ const source = businessLogoSource(branding, tone ?? colorScheme);
11
+ if (!source) {
12
+ return _jsx(Wordmark, { "$height": height, children: name });
13
+ }
14
+ return (_jsx(LogoImage, { src: getSanityImageUrl(source.url, {
15
+ width: height * MAX_ASPECT_RATIO * 2,
16
+ height: height * 2,
17
+ format: "png",
18
+ }), alt: name, "$height": height, "$invert": source.invert }));
19
+ }
20
+ export { businessLogoSource };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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;AAS3B,MAAM,UAAU,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,EAAE,EAAS;IACvE,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,MAAM,YAAG,IAAI,GAAY,CAAC;IACtD,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"}
@@ -0,0 +1,12 @@
1
+ export interface BusinessBranding {
2
+ logoLightUrl?: string | null;
3
+ logoDarkUrl?: string | null;
4
+ iconUrl?: string | null;
5
+ }
6
+ export type LogoTone = "light" | "dark";
7
+ export interface LogoSource {
8
+ url: string;
9
+ invert: boolean;
10
+ }
11
+ export declare function businessLogoSource(branding: BusinessBranding | null | undefined, tone: LogoTone): LogoSource | null;
12
+ //# sourceMappingURL=source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/components/business-logo/source.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAC7C,IAAI,EAAE,QAAQ,GACb,UAAU,GAAG,IAAI,CAQnB"}
@@ -0,0 +1,12 @@
1
+ export function businessLogoSource(branding, tone) {
2
+ const light = branding?.logoLightUrl;
3
+ const dark = branding?.logoDarkUrl;
4
+ if (tone === "dark" && dark)
5
+ return { url: dark, invert: false };
6
+ if (tone === "dark" && light)
7
+ return { url: light, invert: true };
8
+ if (light)
9
+ return { url: light, invert: false };
10
+ return null;
11
+ }
12
+ //# sourceMappingURL=source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../src/components/business-logo/source.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,kBAAkB,CAChC,QAA6C,EAC7C,IAAc;IAEd,MAAM,KAAK,GAAG,QAAQ,EAAE,YAAY,CAAC;IACrC,MAAM,IAAI,GAAG,QAAQ,EAAE,WAAW,CAAC;IAEnC,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI;QAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACjE,IAAI,IAAI,KAAK,MAAM,IAAI,KAAK;QAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClE,IAAI,KAAK;QAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAChD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const LogoImage: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ $height: number;
6
+ $invert: boolean;
7
+ }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
8
+ export declare const Wordmark: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: React.ElementType;
11
+ } & {
12
+ $height: number;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
14
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/business-logo/styles.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;aAAyB,MAAM;aAAW,OAAO;gHAMtE,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;aAA0B,MAAM;2GAOpD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import styled from "@emotion/styled";
2
+ export const LogoImage = styled.img `
3
+ display: block;
4
+ height: ${({ $height }) => $height}px;
5
+ width: auto;
6
+ max-width: 100%;
7
+ filter: ${({ $invert }) => ($invert ? "brightness(0) invert(1)" : "none")};
8
+ `;
9
+ export const Wordmark = styled.span `
10
+ display: inline-block;
11
+ font-size: ${({ $height }) => Math.round($height * 0.7)}px;
12
+ font-weight: 700;
13
+ line-height: ${({ $height }) => $height}px;
14
+ color: currentColor;
15
+ white-space: nowrap;
16
+ `;
17
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/business-logo/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAuC;;YAE9D,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO;;;YAGxB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC;CAC1E,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAqB;;eAEzC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;;iBAExC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO;;;CAGxC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { ReactNode } from "react";
2
- import { LayoutTheme } from "./types";
2
+ import { LayoutTheme, Transitions } from "./types";
3
3
  interface PageHeaderProps {
4
4
  title: string;
5
5
  subtitle?: string;
6
6
  tone?: LayoutTheme;
7
- wave?: boolean;
7
+ transitions?: Transitions;
8
8
  breadcrumbs?: ReactNode;
9
9
  actions?: ReactNode;
10
10
  children?: ReactNode;
11
11
  }
12
- export declare const PageHeader: ({ title, subtitle, tone, wave, breadcrumbs, actions, children, }: PageHeaderProps) => import("react").JSX.Element;
12
+ export declare const PageHeader: ({ title, subtitle, tone, transitions, breadcrumbs, actions, children, }: PageHeaderProps) => import("react").JSX.Element;
13
13
  export {};
14
14
  //# sourceMappingURL=PageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/layout/PageHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,WAAW,EAA2B,MAAM,SAAS,CAAC;AAG/D,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,GAAI,kEAQxB,eAAe,gCAwBjB,CAAC"}
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/layout/PageHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAW,WAAW,EAAkB,MAAM,SAAS,CAAC;AAO5E,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,GAAI,yEAQxB,eAAe,gCAsBjB,CAAC"}
@@ -4,5 +4,11 @@ import Container from "./container";
4
4
  import Styled from "./styled";
5
5
  import { LayoutTheme, Padding, TransitionType } from "./types";
6
6
  import { Subtitle, TitleRow } from "./PageHeader.styled";
7
- export const PageHeader = ({ title, subtitle, tone = LayoutTheme.Dark, wave = true, breadcrumbs, actions, children, }) => (_jsx(Container, { theme: tone, transitions: wave ? { bottom: { type: TransitionType.Wave, flipX: true } } : undefined, children: _jsx(Styled.Content, { children: _jsxs(Styled.Section, { stretchItems: true, padding: { top: Padding.Large, bottom: Padding.Large }, children: [breadcrumbs, _jsxs(TitleRow, { children: [_jsxs("div", { children: [_jsx("h1", { children: title }), subtitle && _jsx(Subtitle, { children: subtitle })] }), actions] }), children] }) }) }));
7
+ const defaultTransitions = {
8
+ bottom: { type: TransitionType.Wave, flipX: true },
9
+ };
10
+ export const PageHeader = ({ title, subtitle, tone = LayoutTheme.Dark, transitions = defaultTransitions, breadcrumbs, actions, children, }) => (_jsx(Container, { theme: tone, transitions: transitions, children: _jsx(Styled.Content, { children: _jsxs(Styled.Section, { stretchItems: true, padding: {
11
+ top: Padding.Large,
12
+ bottom: transitions.bottom ? Padding.Large : Padding.Small,
13
+ }, children: [breadcrumbs, _jsxs(TitleRow, { children: [_jsxs("div", { children: [_jsx("h1", { children: title }), subtitle && _jsx(Subtitle, { children: subtitle })] }), actions] }), children] }) }) }));
8
14
  //# sourceMappingURL=PageHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../src/components/layout/PageHeader.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAYzD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,WAAW,CAAC,IAAI,EACvB,IAAI,GAAG,IAAI,EACX,WAAW,EACX,OAAO,EACP,QAAQ,GACQ,EAAE,EAAE,CAAC,CACrB,KAAC,SAAS,IACR,KAAK,EAAE,IAAI,EACX,WAAW,EACT,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,YAG3E,KAAC,MAAM,CAAC,OAAO,cACb,MAAC,MAAM,CAAC,OAAO,IACb,YAAY,QACZ,OAAO,EA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AK,KAAK,GAAM,EACf,QAAQ,IAAI,KAAC,QAAQ,cAAE,QAAQ,GAAY,IACxC,EACL,OAAO,IACC,EACV,QAAQ,IACM,GACF,GACP,CACb,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const VisuallyHiddenTitle: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
5
+ //# sourceMappingURL=VisuallyHiddenTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHiddenTitle.d.ts","sourceRoot":"","sources":["../../../src/components/layout/VisuallyHiddenTitle.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;iHAU/B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import styled from "@emotion/styled";
3
+ export const VisuallyHiddenTitle = styled.h1 `
4
+ position: absolute;
5
+ width: 1px;
6
+ height: 1px;
7
+ margin: -1px;
8
+ padding: 0;
9
+ overflow: hidden;
10
+ clip: rect(0 0 0 0);
11
+ white-space: nowrap;
12
+ border: 0;
13
+ `;
14
+ //# sourceMappingURL=VisuallyHiddenTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHiddenTitle.js","sourceRoot":"","sources":["../../../src/components/layout/VisuallyHiddenTitle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,EAAE,CAAA;;;;;;;;;;CAU3C,CAAC"}
@@ -27,4 +27,5 @@ declare const _default: {
27
27
  export default _default;
28
28
  export * from "./types";
29
29
  export { PageHeader } from "./PageHeader";
30
+ export { VisuallyHiddenTitle } from "./VisuallyHiddenTitle";
30
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;0IAAiB,CAAC;AACtC,eAAO,MAAM,OAAO;;;0IAAiB,CAAC;AAEtC,oBAAY,WAAW;IACrB,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,OAAO;IACT,EAAE,OAAO;CACV;;;;;;;;;;;;AAED,wBAIE;AAEF,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;0IAAiB,CAAC;AACtC,eAAO,MAAM,OAAO;;;0IAAiB,CAAC;AAEtC,oBAAY,WAAW;IACrB,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,OAAO;IACT,EAAE,OAAO;CACV;;;;;;;;;;;;AAED,wBAIE;AAEF,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -18,4 +18,5 @@ export default {
18
18
  };
19
19
  export * from "./types";
20
20
  export { PageHeader } from "./PageHeader";
21
+ export { VisuallyHiddenTitle } from "./VisuallyHiddenTitle";
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACtC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AAEtC,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,2CAAQ,CAAA;IACR,2CAAQ,CAAA;IACR,2CAAQ,CAAA;IACR,4CAAS,CAAA;IACT,4CAAS,CAAA;AACX,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAED,eAAe;IACb,SAAS;IACT,OAAO;IACP,OAAO;CACR,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/layout/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AACtC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;AAEtC,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,2CAAQ,CAAA;IACR,2CAAQ,CAAA;IACR,2CAAQ,CAAA;IACR,4CAAS,CAAA;IACT,4CAAS,CAAA;AACX,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAED,eAAe;IACb,SAAS;IACT,OAAO;IACP,OAAO;CACR,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -4,6 +4,7 @@ export interface SanityImageTransformOptions {
4
4
  quality?: number;
5
5
  fit?: "max" | "crop" | "clip" | "fill" | "fillmax" | "min" | "scale";
6
6
  dpr?: number;
7
+ format?: "png" | "jpg" | "webp";
7
8
  }
8
9
  export declare const isSanityImageUrl: (src: string) => boolean;
9
10
  export declare const getSanityImageUrl: (src: string | undefined | null, options?: SanityImageTransformOptions) => string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"sanity.d.ts","sourceRoot":"","sources":["../../../src/components/media/sanity.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC;IACrE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AASD,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,YAS3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,KAAK,MAAM,GAAG,SAAS,GAAG,IAAI,EAC9B,UAAS,2BAAgC,KACxC,MAAM,GAAG,SAuCX,CAAC"}
1
+ {"version":3,"file":"sanity.d.ts","sourceRoot":"","sources":["../../../src/components/media/sanity.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC;IACrE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;CACjC;AASD,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,YAS3C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,KAAK,MAAM,GAAG,SAAS,GAAG,IAAI,EAC9B,UAAS,2BAAgC,KACxC,MAAM,GAAG,SA2CX,CAAC"}
@@ -23,6 +23,9 @@ export const getSanityImageUrl = (src, options = {}) => {
23
23
  const height = toInteger(options.height);
24
24
  const quality = toInteger(options.quality);
25
25
  const dpr = toInteger(options.dpr);
26
+ if (options.format && !url.searchParams.has("fm")) {
27
+ url.searchParams.set("fm", options.format);
28
+ }
26
29
  if (!url.searchParams.has("auto") && !url.searchParams.has("fm")) {
27
30
  url.searchParams.set("auto", "format");
28
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sanity.js","sourceRoot":"","sources":["../../../src/components/media/sanity.ts"],"names":[],"mappings":"AAQA,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,MAAM,SAAS,GAAG,CAAC,KAAc,EAAE,EAAE,CACnC,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;IACjD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC,SAAS,CAAC;AAEhB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE;IAC9C,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QACzB,OAAO,CACL,GAAG,CAAC,QAAQ,KAAK,eAAe,IAAI,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CACxE,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,GAA8B,EAC9B,UAAuC,EAAE,EACrB,EAAE;IACtB,IAAI,GAAG,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QAC1D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,GAAG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,KAAK,CAAC,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QACzC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1C,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACxC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC,CAAC"}
@@ -33,7 +33,7 @@ export declare const MobileDrawerContent: import("@emotion/styled").StyledCompon
33
33
  export declare const NavList: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & Omit<import("@mui/material").ListOwnProps, keyof import("@mui/material").ListOwnProps> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "className" | "style" | "classes" | "children" | "sx" | "dense" | "disablePadding" | "subheader"> & {
34
34
  theme?: import("@emotion/react").Theme;
35
35
  }, {}, {}>;
36
- export declare const NavItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, keyof import("@mui/material").ListItemButtonOwnProps> & Omit<import("@mui/material").ButtonBaseOwnProps, "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "type" | keyof import("@mui/material").ListItemButtonOwnProps> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "type" | "autoFocus" | "dense" | "disableGutters" | "divider" | "selected" | "alignItems"> & {
36
+ export declare const NavItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, keyof import("@mui/material").ListItemButtonOwnProps> & Omit<import("@mui/material").ButtonBaseOwnProps, "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "type" | keyof import("@mui/material").ListItemButtonOwnProps> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "type" | "autoFocus" | "alignItems" | "dense" | "disableGutters" | "divider" | "selected"> & {
37
37
  theme?: import("@emotion/react").Theme;
38
38
  } & {
39
39
  depth?: number;
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ export type { AlertProps, AlertTitleProps } from "./components/alert";
18
18
  export { Avatar } from "./components/avatar";
19
19
  export type { AvatarProps } from "./components/avatar";
20
20
  export { SystemThemeTag } from "./components/system-theme-tag";
21
+ export { BusinessLogo } from "./components/business-logo";
22
+ export type { BusinessBranding } from "./components/business-logo";
21
23
  export { Select } from "./components/select";
22
24
  export type { SelectProps, SelectChangeEvent } from "./components/select";
23
25
  export { Menu } from "./components/menu";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,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AAE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACX,KAAK,kBAAkB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@ export { Tooltip } from "./components/tooltip";
10
10
  export { Alert, AlertTitle } from "./components/alert";
11
11
  export { Avatar } from "./components/avatar";
12
12
  export { SystemThemeTag } from "./components/system-theme-tag";
13
+ export { BusinessLogo } from "./components/business-logo";
13
14
  export { Select } from "./components/select";
14
15
  export { Menu } from "./components/menu";
15
16
  export { MenuItem } from "./components/menu-item";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAA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AAC;AACxD,OAAO,EAAE,OAAO,EAAmC,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EACL,aAAa,EACb,SAAS,EACT,WAAW,GAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAsB,MAAM,wBAAwB,CAAC;AACtE,OAAO,EACL,aAAa,GAEd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC"}
@@ -106,6 +106,41 @@ main {
106
106
  src: url("https://ressurser.snokam.no/fonts/dm-sans/DMSans-Bold.ttf");
107
107
  }
108
108
 
109
+ @font-face {
110
+ font-family: "DM Sans";
111
+ font-weight: 300;
112
+ font-display: swap;
113
+ src: url("https://ressurser.snokam.no/fonts/dm-sans/DMSans-Light.ttf");
114
+ }
115
+
116
+ @font-face {
117
+ font-family: "DM Sans";
118
+ font-weight: 400;
119
+ font-display: swap;
120
+ src: url("https://ressurser.snokam.no/fonts/dm-sans/DMSans-Regular.ttf");
121
+ }
122
+
123
+ @font-face {
124
+ font-family: "DM Sans";
125
+ font-weight: 500;
126
+ font-display: swap;
127
+ src: url("https://ressurser.snokam.no/fonts/dm-sans/DMSans-Medium.ttf");
128
+ }
129
+
130
+ @font-face {
131
+ font-family: "DM Sans";
132
+ font-weight: 600;
133
+ font-display: swap;
134
+ src: url("https://ressurser.snokam.no/fonts/dm-sans/DMSans-SemiBold.ttf");
135
+ }
136
+
137
+ @font-face {
138
+ font-family: "DM Sans";
139
+ font-weight: 700;
140
+ font-display: swap;
141
+ src: url("https://ressurser.snokam.no/fonts/dm-sans/DMSans-Bold.ttf");
142
+ }
143
+
109
144
  /* Variables */
110
145
 
111
146
  :root {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snokam/ui",
3
3
  "description": "Snøkam UI library — the single MUI seam. Apps import from here, never from @mui directly.",
4
- "version": "4.2.0",
4
+ "version": "6.0.0",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
7
7
  "files": [
@@ -364,6 +364,10 @@
364
364
  "types": "./dist/components/system-theme-tag/index.d.ts",
365
365
  "default": "./dist/components/system-theme-tag/index.js"
366
366
  },
367
+ "./business-logo": {
368
+ "types": "./dist/components/business-logo/index.d.ts",
369
+ "default": "./dist/components/business-logo/index.js"
370
+ },
367
371
  "./system-page": {
368
372
  "types": "./dist/components/system-page/index.d.ts",
369
373
  "default": "./dist/components/system-page/index.js"
@@ -375,6 +379,7 @@
375
379
  },
376
380
  "scripts": {
377
381
  "lint": "eslint .",
382
+ "test": "node --test \"src/**/*.test.ts\"",
378
383
  "build": "tsc -p tsconfig.build.json --noCheck && rsync -a --prune-empty-dirs --include='*/' --include='*.css' --include='*.esm.js' --exclude='*' src/ dist/"
379
384
  }
380
385
  }