@snokam/ui 7.9.0 → 7.10.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,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
+ ## [7.10.1](https://github.com/snokam/components/compare/%40snokam%2Fui%407.10.0...%40snokam%2Fui%407.10.1) (2026-11-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **web:** ownership shares read 22,857 % and the valuation axis shows whole kroner ([#3629](https://github.com/snokam/components/issues/3629)) ([24d5c32](https://github.com/snokam/components/commit/24d5c329031dce0ecd13fc46e3064de4a064aece))
11
+
12
+ # [7.10.0](https://github.com/snokam/components/compare/%40snokam%2Fui%407.9.0...%40snokam%2Fui%407.10.0) (2026-11-12)
13
+
14
+ ### Features
15
+
16
+ - **content:** editor forms generated from the backend records, all-white editor, critic fixes ([#3599](https://github.com/snokam/components/issues/3599)) ([c6d465a](https://github.com/snokam/components/commit/c6d465a9b83cb016fb2a965337a29499e6f38a2a)), closes [#3579](https://github.com/snokam/components/issues/3579)
17
+
6
18
  # [7.9.0](https://github.com/snokam/components/compare/%40snokam%2Fui%407.8.0...%40snokam%2Fui%407.9.0) (2026-11-12)
7
19
 
8
20
  ### Features
@@ -1,3 +1,4 @@
1
1
  export * from "@mui/x-date-pickers";
2
2
  export { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
3
+ export { nbNO } from "@mui/x-date-pickers/locales";
3
4
  //# sourceMappingURL=date-pickers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-pickers.d.ts","sourceRoot":"","sources":["../../../src/components/mui/date-pickers.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"date-pickers.d.ts","sourceRoot":"","sources":["../../../src/components/mui/date-pickers.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from "@mui/x-date-pickers";
2
2
  export { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
3
+ export { nbNO } from "@mui/x-date-pickers/locales";
3
4
  //# sourceMappingURL=date-pickers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-pickers.js","sourceRoot":"","sources":["../../../src/components/mui/date-pickers.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC"}
1
+ {"version":3,"file":"date-pickers.js","sourceRoot":"","sources":["../../../src/components/mui/date-pickers.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export declare const BUSINESS_TIME_ZONE = "Europe/Oslo";
2
2
  export type DateValue = Date | string | number;
3
3
  export declare const formatKroner: (amount?: number | null) => string;
4
+ export declare const formatPercent: (percent: number, fractionDigits?: number) => string;
4
5
  export declare const formatDate: (value: DateValue, pattern: string) => string;
5
6
  export declare const formatDateParts: (value: DateValue, options: Intl.DateTimeFormatOptions) => string;
6
7
  //# sourceMappingURL=format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAIhD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/C,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,GAAG,IAAI,WAM/C,CAAC;AAEL,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,EAAE,SAAS,MAAM,WACA,CAAC;AAE7D,eAAO,MAAM,eAAe,GAC1B,OAAO,SAAS,EAChB,SAAS,IAAI,CAAC,qBAAqB,WAKT,CAAC"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAIhD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/C,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,GAAG,IAAI,WAM/C,CAAC;AAEL,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,EAAE,uBAAkB,WAIzD,CAAC;AAET,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,EAAE,SAAS,MAAM,WACA,CAAC;AAE7D,eAAO,MAAM,eAAe,GAC1B,OAAO,SAAS,EAChB,SAAS,IAAI,CAAC,qBAAqB,WAKT,CAAC"}
@@ -9,6 +9,10 @@ export const formatKroner = (amount) => amount?.toLocaleString("nb-NO", {
9
9
  currencyDisplay: "narrowSymbol",
10
10
  maximumFractionDigits: 0,
11
11
  });
12
+ export const formatPercent = (percent, fractionDigits = 0) => `${percent.toLocaleString("nb-NO", {
13
+ minimumFractionDigits: fractionDigits,
14
+ maximumFractionDigits: fractionDigits,
15
+ })} %`;
12
16
  export const formatDate = (value, pattern) => format(value, pattern, { locale: nb, in: inBusinessTime });
13
17
  export const formatDateParts = (value, options) => new Intl.DateTimeFormat("nb-NO", {
14
18
  ...options,
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,EAAE,EAAE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;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,cAAc;IAC/B,qBAAqB,EAAE,CAAC;CACzB,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,OAAe,EAAE,cAAc,GAAG,CAAC,EAAE,EAAE,CACnE,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE;IACjC,qBAAqB,EAAE,cAAc;IACrC,qBAAqB,EAAE,cAAc;CACtC,CAAC,IAAI,CAAC;AAET,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAgB,EAAE,OAAe,EAAE,EAAE,CAC9D,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC;AAE7D,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAgB,EAChB,OAAmC,EACnC,EAAE,CACF,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;IAC/B,GAAG,OAAO;IACV,QAAQ,EAAE,kBAAkB;CAC7B,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,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": "7.9.0",
4
+ "version": "7.10.1",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
7
7
  "sideEffects": [