@snokam/ui 7.6.0 → 7.6.1

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
+ ## [7.6.1](https://github.com/snokam/components/compare/%40snokam%2Fui%407.6.0...%40snokam%2Fui%407.6.1) (2026-11-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **ui:** bands inherit the theme instead of guessing it in js ([#3459](https://github.com/snokam/components/issues/3459)) ([b9b19cb](https://github.com/snokam/components/commit/b9b19cb7c088ecaa995be38259eb6be57a670d1d))
11
+
6
12
  # [7.6.0](https://github.com/snokam/components/compare/%40snokam%2Fui%407.3.4...%40snokam%2Fui%407.6.0) (2026-11-10)
7
13
 
8
14
  ### Bug Fixes
@@ -0,0 +1,6 @@
1
+ import { LayoutTheme } from "../types";
2
+ export declare function Blobs({ tone, elements, }: {
3
+ tone: LayoutTheme;
4
+ elements?: number;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=blobs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobs.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/container/blobs.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,wBAAgB,KAAK,CAAC,EACpB,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,+BAcA"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Styled from "./styled";
4
+ import { LayoutTheme } from "../types";
5
+ import { AnimatedBlobs, BlobTheme } from "@snokam/ui/animated-blobs";
6
+ export function Blobs({ tone, elements, }) {
7
+ if (tone === LayoutTheme.Dark) {
8
+ return _jsx(AnimatedBlobs, { theme: BlobTheme.Dark, maxElements: elements });
9
+ }
10
+ return (_jsxs(_Fragment, { children: [_jsx(Styled.LightOnly, { children: _jsx(AnimatedBlobs, { theme: BlobTheme.Light, maxElements: elements }) }), _jsx(Styled.DarkOnly, { children: _jsx(AnimatedBlobs, { theme: BlobTheme.Dark, maxElements: elements }) })] }));
11
+ }
12
+ //# sourceMappingURL=blobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobs.js","sourceRoot":"","sources":["../../../../src/components/layout/container/blobs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,UAAU,KAAK,CAAC,EACpB,IAAI,EACJ,QAAQ,GAIT;IACC,IAAI,IAAI,KAAK,WAAW,CAAC,IAAI,EAAE,CAAC;QAC9B,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,GAAI,CAAC;IACzE,CAAC;IACD,OAAO,CACL,8BACE,KAAC,MAAM,CAAC,SAAS,cACf,KAAC,aAAa,IAAC,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,GAAI,GAC/C,EACnB,KAAC,MAAM,CAAC,QAAQ,cACd,KAAC,aAAa,IAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,GAAI,GAC/C,IACjB,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/container/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAwC,MAAM,UAAU,CAAC;AAUhF,QAAA,MAAM,SAAS,GAAI,0EAQhB,cAAc,gCAiChB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/container/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAwC,MAAM,UAAU,CAAC;AAIhF,QAAA,MAAM,SAAS,GAAI,0EAQhB,cAAc,gCA4BhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,15 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import Styled from "./styled";
4
4
  import { Position, LayoutTheme, AnimationType } from "../types";
5
5
  import Transition from "./transitions";
6
- import { AnimatedBlobs, BlobTheme } from "@snokam/ui/animated-blobs";
7
- import { useColorScheme } from "@snokam/ui/theme/admin";
8
- const themeToBlobTheme = {
9
- [LayoutTheme.Dark]: BlobTheme.Dark,
10
- [LayoutTheme.Light]: BlobTheme.Light,
11
- };
6
+ import { Blobs } from "./blobs";
12
7
  const Container = ({ children, as = "div", theme = LayoutTheme.Dark, transitions, animation, popover, ...restOfProps }) => {
13
- const effective = useColorScheme() === "dark" ? LayoutTheme.Dark : theme;
14
- return (_jsxs(Styled.Container, { as: as, "$tone": theme, animation: animation, ...restOfProps, children: [animation?.type === AnimationType.Blobs && (_jsx(AnimatedBlobs, { theme: themeToBlobTheme[effective], maxElements: animation.elements })), children, transitions?.top && (_jsx(Transition, { theme: theme, transition: transitions.top, position: Position.Top })), transitions?.bottom && (_jsx(Transition, { theme: theme, transition: transitions.bottom, position: Position.Bottom }))] }));
8
+ return (_jsxs(Styled.Container, { as: as, "$tone": theme, animation: animation, ...restOfProps, children: [animation?.type === AnimationType.Blobs && (_jsx(Blobs, { tone: theme, elements: animation.elements })), children, transitions?.top && (_jsx(Transition, { theme: theme, transition: transitions.top, position: Position.Top })), transitions?.bottom && (_jsx(Transition, { theme: theme, transition: transitions.bottom, position: Position.Bottom }))] }));
15
9
  };
16
10
  export default Container;
17
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/container/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAkB,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,gBAAgB,GAAG;IACvB,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI;IAClC,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK;CACrC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EACjB,QAAQ,EACR,EAAE,GAAG,KAAK,EACV,KAAK,GAAG,WAAW,CAAC,IAAI,EACxB,WAAW,EACX,SAAS,EACT,OAAO,EACP,GAAG,WAAW,EACC,EAAE,EAAE;IACnB,MAAM,SAAS,GAAG,cAAc,EAAE,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAEzE,OAAO,CACL,MAAC,MAAM,CAAC,SAAS,IACf,EAAE,EAAE,EAAE,WACC,KAAK,EACZ,SAAS,EAAE,SAAS,KAChB,WAAW,aAEd,SAAS,EAAE,IAAI,KAAK,aAAa,CAAC,KAAK,IAAI,CAC1C,KAAC,aAAa,IACZ,KAAK,EAAE,gBAAgB,CAAC,SAAS,CAAC,EAClC,WAAW,EAAE,SAAS,CAAC,QAAQ,GAC/B,CACH,EACA,QAAQ,EACR,WAAW,EAAE,GAAG,IAAI,CACnB,KAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,WAAW,CAAC,GAAG,EAC3B,QAAQ,EAAE,QAAQ,CAAC,GAAG,GACtB,CACH,EACA,WAAW,EAAE,MAAM,IAAI,CACtB,KAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,WAAW,CAAC,MAAM,EAC9B,QAAQ,EAAE,QAAQ,CAAC,MAAM,GACzB,CACH,IACgB,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/container/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAkB,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,SAAS,GAAG,CAAC,EACjB,QAAQ,EACR,EAAE,GAAG,KAAK,EACV,KAAK,GAAG,WAAW,CAAC,IAAI,EACxB,WAAW,EACX,SAAS,EACT,OAAO,EACP,GAAG,WAAW,EACC,EAAE,EAAE;IACnB,OAAO,CACL,MAAC,MAAM,CAAC,SAAS,IACf,EAAE,EAAE,EAAE,WACC,KAAK,EACZ,SAAS,EAAE,SAAS,KAChB,WAAW,aAEd,SAAS,EAAE,IAAI,KAAK,aAAa,CAAC,KAAK,IAAI,CAC1C,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,GAAI,CACrD,EACA,QAAQ,EACR,WAAW,EAAE,GAAG,IAAI,CACnB,KAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,WAAW,CAAC,GAAG,EAC3B,QAAQ,EAAE,QAAQ,CAAC,GAAG,GACtB,CACH,EACA,WAAW,EAAE,MAAM,IAAI,CACtB,KAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,WAAW,CAAC,MAAM,EAC9B,QAAQ,EAAE,QAAQ,CAAC,MAAM,GACzB,CACH,IACgB,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -11,6 +11,14 @@ declare const _default: {
11
11
  theme?: import("@emotion/react").Theme;
12
12
  as?: React.ElementType;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ LightOnly: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: React.ElementType;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ DarkOnly: import("@emotion/styled").StyledComponent<{
19
+ theme?: import("@emotion/react").Theme;
20
+ as?: React.ElementType;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
22
  };
15
23
  export default _default;
16
24
  //# sourceMappingURL=styled.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/container/styled.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;;;;;;eAG/C,WAAW;oBACN,eAAe;;;;;;;AAkC7B,wBAAuC"}
1
+ {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/container/styled.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;;;;;;eAG/C,WAAW;oBACN,eAAe;;;;;;;;;;;;;;;AAkD7B,wBAA4D"}
@@ -32,5 +32,19 @@ const Container = styled.div `
32
32
  `}
33
33
  `;
34
34
  const Children = styled.div ``;
35
- export default { Container, Children };
35
+ const LightOnly = styled.div `
36
+ display: contents;
37
+
38
+ [data-theme="dark"] & {
39
+ display: none;
40
+ }
41
+ `;
42
+ const DarkOnly = styled.div `
43
+ display: none;
44
+
45
+ [data-theme="dark"] & {
46
+ display: contents;
47
+ }
48
+ `;
49
+ export default { Container, Children, LightOnly, DarkOnly };
36
50
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/components/layout/container/styled.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAmB,MAAM,UAAU,CAAC;AAExD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAG1B;;;;;;;;;IASE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACd,KAAK,KAAK,WAAW,CAAC,IAAI;IACxB,CAAC,CAAC,GAAG,CAAA;;;;;;;;SAQF;IACH,CAAC,CAAC,GAAG,CAAA;;;;;;;;SAQF;CACR,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAE9B,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/components/layout/container/styled.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAmB,MAAM,UAAU,CAAC;AAExD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAG1B;;;;;;;;;IASE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACd,KAAK,KAAK,WAAW,CAAC,IAAI;IACxB,CAAC,CAAC,GAAG,CAAA;;;;;;;;SAQF;IACH,CAAC,CAAC,GAAG,CAAA;;;;;;;;SAQF;CACR,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAE9B,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAM3B,CAAC;AAEF,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAM1B,CAAC;AAEF,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC"}
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": "7.6.0",
4
+ "version": "7.6.1",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
7
7
  "sideEffects": [