@snokam/ui 4.0.3 → 4.2.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 +12 -0
- package/dist/components/layout/PageHeader.d.ts +14 -0
- package/dist/components/layout/PageHeader.d.ts.map +1 -0
- package/dist/components/layout/PageHeader.js +8 -0
- package/dist/components/layout/PageHeader.js.map +1 -0
- package/dist/components/layout/PageHeader.styled.d.ts +9 -0
- package/dist/components/layout/PageHeader.styled.d.ts.map +1 -0
- package/dist/components/layout/PageHeader.styled.js +17 -0
- package/dist/components/layout/PageHeader.styled.js.map +1 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +1 -0
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/linear-progress/BudgetProgressBar.d.ts +4 -0
- package/dist/components/linear-progress/BudgetProgressBar.d.ts.map +1 -0
- package/dist/components/linear-progress/BudgetProgressBar.js +20 -0
- package/dist/components/linear-progress/BudgetProgressBar.js.map +1 -0
- package/dist/components/linear-progress/index.d.ts +1 -0
- package/dist/components/linear-progress/index.d.ts.map +1 -1
- package/dist/components/linear-progress/index.js +1 -0
- package/dist/components/linear-progress/index.js.map +1 -1
- package/dist/components/portable-text/PortableText.d.ts +1 -1
- package/dist/components/portable-text/PortableText.d.ts.map +1 -1
- package/dist/components/portable-text/PortableText.js +32 -44
- package/dist/components/portable-text/PortableText.js.map +1 -1
- package/dist/theme/Themes/index.d.ts.map +1 -1
- package/dist/theme/Themes/index.js +1 -0
- package/dist/theme/Themes/index.js.map +1 -1
- package/dist/theme/build-theme.d.ts.map +1 -1
- package/dist/theme/build-theme.js +6 -3
- package/dist/theme/build-theme.js.map +1 -1
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +7 -0
- package/dist/utils/format.js.map +1 -0
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
# [4.2.0](https://github.com/snokam/components/compare/@snokam/ui@4.0.3...@snokam/ui@4.2.0) (2026-10-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **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))
|
|
11
|
+
|
|
12
|
+
# [4.1.0](https://github.com/snokam/components/compare/@snokam/ui@4.0.3...@snokam/ui@4.1.0) (2026-10-14)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **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))
|
|
17
|
+
|
|
6
18
|
## [4.0.3](https://github.com/snokam/components/compare/@snokam/ui@4.0.2...@snokam/ui@4.0.3) (2026-10-14)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { LayoutTheme } from "./types";
|
|
3
|
+
interface PageHeaderProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
tone?: LayoutTheme;
|
|
7
|
+
wave?: boolean;
|
|
8
|
+
breadcrumbs?: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const PageHeader: ({ title, subtitle, tone, wave, breadcrumbs, actions, children, }: PageHeaderProps) => import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Container from "./container";
|
|
4
|
+
import Styled from "./styled";
|
|
5
|
+
import { LayoutTheme, Padding, TransitionType } from "./types";
|
|
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] }) }) }));
|
|
8
|
+
//# sourceMappingURL=PageHeader.js.map
|
|
@@ -0,0 +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,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,aAErD,WAAW,EACZ,MAAC,QAAQ,eACP,0BACE,uBAAK,KAAK,GAAM,EACf,QAAQ,IAAI,KAAC,QAAQ,cAAE,QAAQ,GAAY,IACxC,EACL,OAAO,IACC,EACV,QAAQ,IACM,GACF,GACP,CACb,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const TitleRow: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const Subtitle: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
9
|
+
//# sourceMappingURL=PageHeader.styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.styled.d.ts","sourceRoot":"","sources":["../../../src/components/layout/PageHeader.styled.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;yGAMpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;qHAMpB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import styled from "@emotion/styled";
|
|
3
|
+
export const TitleRow = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
gap: 1rem;
|
|
9
|
+
`;
|
|
10
|
+
export const Subtitle = styled.p `
|
|
11
|
+
margin: 8px 0 0;
|
|
12
|
+
max-width: 60ch;
|
|
13
|
+
color: inherit;
|
|
14
|
+
opacity: 0.85;
|
|
15
|
+
font-size: 1rem;
|
|
16
|
+
`;
|
|
17
|
+
//# sourceMappingURL=PageHeader.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.styled.js","sourceRoot":"","sources":["../../../src/components/layout/PageHeader.styled.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMjC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAA;;;;;;CAM/B,CAAC"}
|
|
@@ -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"}
|
|
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 +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"}
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BudgetProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/linear-progress/BudgetProgressBar.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,gCAMnE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled from "@emotion/styled";
|
|
4
|
+
import { LinearProgress, linearProgressClasses } from "@mui/material";
|
|
5
|
+
const Bar = styled(LinearProgress, {
|
|
6
|
+
shouldForwardProp: (prop) => prop !== "$overBudget",
|
|
7
|
+
}) `
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
height: 10px;
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
background-color: var(--o-border);
|
|
12
|
+
|
|
13
|
+
& .${linearProgressClasses.bar} {
|
|
14
|
+
border-radius: 5px;
|
|
15
|
+
background-color: ${({ $overBudget }) => $overBudget ? "var(--o-danger)" : "var(--o-cyan)"};
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
const clampToPercent = (progress) => Math.min(Math.max(progress, 0), 100);
|
|
19
|
+
export const BudgetProgressBar = ({ progress }) => (_jsx(Bar, { variant: "determinate", value: clampToPercent(progress), "$overBudget": progress > 100 }));
|
|
20
|
+
//# sourceMappingURL=BudgetProgressBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BudgetProgressBar.js","sourceRoot":"","sources":["../../../src/components/linear-progress/BudgetProgressBar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtE,MAAM,GAAG,GAAG,MAAM,CAAC,cAAc,EAAE;IACjC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,aAAa;CACpD,CAAC,CAA0B;;;;;;OAMrB,qBAAqB,CAAC,GAAG;;wBAER,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACtC,WAAW,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe;;CAEtD,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,QAAgB,EAAE,EAAE,CAC1C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAAwB,EAAE,EAAE,CAAC,CACvE,KAAC,GAAG,IACF,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,iBAClB,QAAQ,GAAG,GAAG,GAC3B,CACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LinearProgressProps } from "@mui/material";
|
|
2
2
|
export type { LinearProgressProps };
|
|
3
3
|
export declare const LinearProgress: (props: LinearProgressProps) => import("react").JSX.Element;
|
|
4
|
+
export { BudgetProgressBar } from "./BudgetProgressBar";
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/linear-progress/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,gCAExD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/linear-progress/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,gCAExD,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { LinearProgress as MuiLinearProgress, } from "@mui/material";
|
|
4
4
|
export const LinearProgress = (props) => (_jsx(MuiLinearProgress, { ...props }));
|
|
5
|
+
export { BudgetProgressBar } from "./BudgetProgressBar";
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/linear-progress/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,cAAc,IAAI,iBAAiB,GAEpC,MAAM,eAAe,CAAC;AAIvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CAC5D,KAAC,iBAAiB,OAAK,KAAK,GAAI,CACjC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/linear-progress/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,cAAc,IAAI,iBAAiB,GAEpC,MAAM,eAAe,CAAC;AAIvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CAC5D,KAAC,iBAAiB,OAAK,KAAK,GAAI,CACjC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -9,6 +9,6 @@ interface Props extends Omit<PortableTextProps, "value"> {
|
|
|
9
9
|
debug?: boolean;
|
|
10
10
|
prettify?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const PortableText: ({ prettify, value: node, debug, ...restOfProps }: Props) => import("react").JSX.Element;
|
|
12
|
+
export declare const PortableText: ({ prettify, value: node, debug, components, ...restOfProps }: Props) => import("react").JSX.Element;
|
|
13
13
|
export default PortableText;
|
|
14
14
|
//# sourceMappingURL=PortableText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PortableText.d.ts","sourceRoot":"","sources":["../../../src/components/portable-text/PortableText.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"PortableText.d.ts","sourceRoot":"","sources":["../../../src/components/portable-text/PortableText.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,iBAAiB,EAGjB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,GACnD,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE/C,UAAU,KAAM,SAAQ,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACtD,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAmDD,eAAO,MAAM,YAAY,GAAI,8DAM1B,KAAK,gCA2BP,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -16,16 +16,33 @@ const transform = (node) => {
|
|
|
16
16
|
};
|
|
17
17
|
const linkMark = ({ children, value }) => value?.href ? (_jsx("a", { href: value.href, target: "_blank", rel: "noopener noreferrer", children: children })) : (_jsx(_Fragment, { children: children }));
|
|
18
18
|
const marks = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
link: linkMark,
|
|
26
|
-
},
|
|
19
|
+
strong: ({ children }) => _jsx("strong", { children: children }),
|
|
20
|
+
em: ({ children }) => _jsx("em", { children: children }),
|
|
21
|
+
underline: ({ children }) => _jsx("u", { children: children }),
|
|
22
|
+
code: ({ children }) => _jsx("code", { children: children }),
|
|
23
|
+
"strike-through": ({ children }) => _jsx("s", { children: children }),
|
|
24
|
+
link: linkMark,
|
|
27
25
|
};
|
|
28
|
-
|
|
26
|
+
const types = {
|
|
27
|
+
image: Media,
|
|
28
|
+
"component.image": Media,
|
|
29
|
+
video: Media,
|
|
30
|
+
"component.video": Media,
|
|
31
|
+
media: Media,
|
|
32
|
+
"component.media": Media,
|
|
33
|
+
code: Code,
|
|
34
|
+
"component.code": Code,
|
|
35
|
+
iframe: Iframe,
|
|
36
|
+
"component.iframe": Iframe,
|
|
37
|
+
youtube: Youtube,
|
|
38
|
+
"component.youtube": Youtube,
|
|
39
|
+
};
|
|
40
|
+
const prettifiedTypes = {
|
|
41
|
+
...types,
|
|
42
|
+
table: Table,
|
|
43
|
+
"component.table": Table,
|
|
44
|
+
};
|
|
45
|
+
export const PortableText = ({ prettify, value: node, debug, components, ...restOfProps }) => {
|
|
29
46
|
if (!node) {
|
|
30
47
|
return null;
|
|
31
48
|
}
|
|
@@ -33,44 +50,15 @@ export const PortableText = ({ prettify, value: node, debug, ...restOfProps }) =
|
|
|
33
50
|
if (debug) {
|
|
34
51
|
console.log(value);
|
|
35
52
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
types: {
|
|
40
|
-
image: Media,
|
|
41
|
-
"component.image": Media,
|
|
42
|
-
video: Media,
|
|
43
|
-
"component.video": Media,
|
|
44
|
-
media: Media,
|
|
45
|
-
"component.media": Media,
|
|
46
|
-
code: Code,
|
|
47
|
-
"component.code": Code,
|
|
48
|
-
iframe: Iframe,
|
|
49
|
-
"component.iframe": Iframe,
|
|
50
|
-
youtube: Youtube,
|
|
51
|
-
"component.youtube": Youtube,
|
|
52
|
-
table: Table,
|
|
53
|
-
"component.table": Table,
|
|
54
|
-
},
|
|
55
|
-
}, ...restOfProps }) }));
|
|
56
|
-
}
|
|
57
|
-
return (_jsx(PortableTextBase, { value: value, components: {
|
|
58
|
-
marks: marks.marks,
|
|
53
|
+
const content = (_jsx(PortableTextBase, { value: value, components: {
|
|
54
|
+
...components,
|
|
55
|
+
marks: { ...marks, ...components?.marks },
|
|
59
56
|
types: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
video: Media,
|
|
63
|
-
"component.video": Media,
|
|
64
|
-
media: Media,
|
|
65
|
-
"component.media": Media,
|
|
66
|
-
code: Code,
|
|
67
|
-
"component.code": Code,
|
|
68
|
-
iframe: Iframe,
|
|
69
|
-
"component.iframe": Iframe,
|
|
70
|
-
youtube: Youtube,
|
|
71
|
-
"component.youtube": Youtube,
|
|
57
|
+
...(prettify ? prettifiedTypes : types),
|
|
58
|
+
...components?.types,
|
|
72
59
|
},
|
|
73
60
|
}, ...restOfProps }));
|
|
61
|
+
return prettify ? _jsx(Styled.Container, { children: content }) : content;
|
|
74
62
|
};
|
|
75
63
|
export default PortableText;
|
|
76
64
|
//# sourceMappingURL=PortableText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PortableText.js","sourceRoot":"","sources":["../../../src/components/portable-text/PortableText.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EACL,YAAY,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"PortableText.js","sourceRoot":"","sources":["../../../src/components/portable-text/PortableText.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/Themes/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,oBAAY,KAAK;IACf,OAAO,YAAY;IACnB,QAAQ,YAAY;IACpB,IAAI,YAAY;IAChB,SAAS,YAAY;IACrB,UAAU,YAAY;IACtB,SAAS,YAAY;CACtB;AAED,oBAAY,SAAS;IACnB,QAAQ,YAAiB;IACzB,SAAS,YAAkB;CAC5B;AAED,eAAO,MAAM,KAAK,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/Themes/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,oBAAY,KAAK;IACf,OAAO,YAAY;IACnB,QAAQ,YAAY;IACpB,IAAI,YAAY;IAChB,SAAS,YAAY;IACrB,UAAU,YAAY;IACtB,SAAS,YAAY;CACtB;AAED,oBAAY,SAAS;IACnB,QAAQ,YAAiB;IACzB,SAAS,YAAkB;CAC5B;AAED,eAAO,MAAM,KAAK,+BAuBhB,CAAC;AAEH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAEpC,CAAC;;;;;AAEF,wBAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/Themes/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMhF,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAAoB,CAAA;IACpB,yBAAgB,CAAA;IAChB,8BAAqB,CAAA;IACrB,+BAAsB,CAAA;IACtB,8BAAqB,CAAA;AACvB,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,iCAAyB,CAAA;IACzB,kCAA2B,CAAA;AAC7B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,UAAU,EAAE;QACV,UAAU,EAAE,cAAc;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/theme/Themes/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMhF,MAAM,CAAN,IAAY,KAOX;AAPD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAAoB,CAAA;IACpB,yBAAgB,CAAA;IAChB,8BAAqB,CAAA;IACrB,+BAAsB,CAAA;IACtB,8BAAqB,CAAA;AACvB,CAAC,EAPW,KAAK,KAAL,KAAK,QAOhB;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,iCAAyB,CAAA;IACzB,kCAA2B,CAAA;AAC7B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,UAAU,EAAE;QACV,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;KAClC;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,SAAS,CAAC,QAAQ;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,SAAS,CAAC,SAAS;SAC1B;KACF;IACD,UAAU,EAAE;QACV,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,OAAO,EAAE;oBACP,KAAK,EAAE,yBAAyB;oBAChC,eAAe,EAAE,sBAAsB;iBACxC;aACF;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzD,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAqB,CAChE,CAAC;AAEF,eAAe,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-theme.d.ts","sourceRoot":"","sources":["../../src/theme/build-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAWnB,CAAC;
|
|
1
|
+
{"version":3,"file":"build-theme.d.ts","sourceRoot":"","sources":["../../src/theme/build-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAWnB,CAAC;AAOX,wBAAgB,UAAU,CAAC,MAAM,EAAE,KAAK,GAAG,QAAQ,CA+ClD"}
|
|
@@ -11,7 +11,10 @@ export const sharedComponents = {
|
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
|
-
const
|
|
14
|
+
const typography = {
|
|
15
|
+
fontFamily: `"DM Sans", system-ui, sans-serif`,
|
|
16
|
+
button: { textTransform: "none" },
|
|
17
|
+
};
|
|
15
18
|
export function buildTheme(scheme) {
|
|
16
19
|
if (scheme === "light") {
|
|
17
20
|
return createTheme({
|
|
@@ -32,7 +35,7 @@ export function buildTheme(scheme) {
|
|
|
32
35
|
active: "#071d41",
|
|
33
36
|
},
|
|
34
37
|
},
|
|
35
|
-
typography
|
|
38
|
+
typography,
|
|
36
39
|
shape: { borderRadius: 14 },
|
|
37
40
|
components: sharedComponents,
|
|
38
41
|
});
|
|
@@ -55,7 +58,7 @@ export function buildTheme(scheme) {
|
|
|
55
58
|
active: "#67DAFD",
|
|
56
59
|
},
|
|
57
60
|
},
|
|
58
|
-
typography
|
|
61
|
+
typography,
|
|
59
62
|
shape: { borderRadius: 14 },
|
|
60
63
|
components: sharedComponents,
|
|
61
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-theme.js","sourceRoot":"","sources":["../../src/theme/build-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA0B,MAAM,sBAAsB,CAAC;AAG3E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE;QACT,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,eAAe,EAAE,8BAA8B;gBAC/C,KAAK,EAAE,uCAAuC;gBAC9C,eAAe,EAAE,MAAM;gBACvB,SAAS,EAAE,wCAAwC;aACpD;SACF;KACF;CACO,CAAC;AAEX,MAAM,UAAU,GAAG,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"build-theme.js","sourceRoot":"","sources":["../../src/theme/build-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA0B,MAAM,sBAAsB,CAAC;AAG3E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE;QACT,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,eAAe,EAAE,8BAA8B;gBAC/C,KAAK,EAAE,uCAAuC;gBAC9C,eAAe,EAAE,MAAM;gBACvB,SAAS,EAAE,wCAAwC;aACpD;SACF;KACF;CACO,CAAC;AAEX,MAAM,UAAU,GAAG;IACjB,UAAU,EAAE,kCAAkC;IAC9C,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE;CACzB,CAAC;AAEX,MAAM,UAAU,UAAU,CAAC,MAAa;IACtC,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACvB,OAAO,WAAW,CAAC;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;gBACrD,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;gBACvD,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;gBACpD,IAAI,EAAE;oBACJ,OAAO,EAAE,SAAS;oBAClB,SAAS,EAAE,uBAAuB;oBAClC,QAAQ,EAAE,uBAAuB;iBAClC;gBACD,OAAO,EAAE,uBAAuB;gBAChC,MAAM,EAAE;oBACN,KAAK,EAAE,uBAAuB;oBAC9B,QAAQ,EAAE,2BAA2B;oBACrC,MAAM,EAAE,SAAS;iBAClB;aACF;YACD,UAAU;YACV,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;YAC3B,UAAU,EAAE,gBAAgB;SAC7B,CAAC,CAAC;IACL,CAAC;IACD,OAAO,WAAW,CAAC;QACjB,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YACrD,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE;YACvD,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;YACpD,IAAI,EAAE;gBACJ,OAAO,EAAE,SAAS;gBAClB,SAAS,EAAE,2BAA2B;gBACtC,QAAQ,EAAE,2BAA2B;aACtC;YACD,OAAO,EAAE,2BAA2B;YACpC,MAAM,EAAE;gBACN,KAAK,EAAE,2BAA2B;gBAClC,QAAQ,EAAE,2BAA2B;gBACrC,MAAM,EAAE,SAAS;aAClB;SACF;QACD,UAAU;QACV,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;QAC3B,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,GAAG,IAAI,WAM/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAsB,EAAE,EAAE,CACrD,MAAM,EAAE,cAAc,CAAC,OAAO,EAAE;IAC9B,KAAK,EAAE,UAAU;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,cAAc;IAC/B,qBAAqB,EAAE,CAAC;CACzB,CAAC,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": "4.0
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -180,6 +180,10 @@
|
|
|
180
180
|
"types": "./dist/components/form/index.d.ts",
|
|
181
181
|
"default": "./dist/components/form/index.js"
|
|
182
182
|
},
|
|
183
|
+
"./format": {
|
|
184
|
+
"types": "./dist/utils/format.d.ts",
|
|
185
|
+
"default": "./dist/utils/format.js"
|
|
186
|
+
},
|
|
183
187
|
"./icon-button": {
|
|
184
188
|
"types": "./dist/components/icon-button/index.d.ts",
|
|
185
189
|
"default": "./dist/components/icon-button/index.js"
|