@uni-design-system/uni-core 8.1.0 → 8.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.
@@ -1,6 +1,7 @@
1
1
  import { ComponentThemes } from '../../component';
2
2
  import { PaletteConfig } from '../../color';
3
3
  import { GenerateColorsConfig } from '../../generation/palette.factory';
4
+ import { TextRole, TextStyle } from '../../typography';
4
5
  import { Borders, Colors, Icons, Radii, Shadows, Thicknesses, UniTheme } from '../theme.model';
5
6
  export interface ThemeConfig {
6
7
  id: string;
@@ -16,6 +17,13 @@ export interface ThemeConfig {
16
17
  radii?: Radii;
17
18
  /** Override the elevation shadows, e.g. brand-tinted generated stacks. */
18
19
  shadows?: Shadows;
20
+ /**
21
+ * Sparse typography overrides, deep-merged over the base type scale:
22
+ * restate only the roles — or the individual {@link TextStyle} fields
23
+ * within a role — that change, and add product-specific roles under any
24
+ * name. Untouched roles keep tracking the library defaults.
25
+ */
26
+ typography?: Record<TextRole | string, Partial<TextStyle>>;
19
27
  /**
20
28
  * Named border primitives, merged over the derived defaults. New tokens may
21
29
  * use any name — point component options (or `components` overrides) at
@@ -35,7 +43,7 @@ export interface ThemeConfig {
35
43
  */
36
44
  components?: ComponentThemes;
37
45
  }
38
- export declare const createTheme: ({ id, name, colors, icons, radii, shadows, borders, thicknesses, components, }: ThemeConfig) => UniTheme;
46
+ export declare const createTheme: ({ id, name, colors, icons, radii, shadows, typography, borders, thicknesses, components, }: ThemeConfig) => UniTheme;
39
47
  /**
40
48
  * Re-attach the built-in icon set to a theme that traveled without it.
41
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"base.theme.d.ts","sourceRoot":"","sources":["../../../../../src/concepts/theme/themes/base.theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,KAAK,EAAE,oBAA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;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,oBAAoB,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,KAC1F,QAUF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAInF,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAmE,CAAC;AAE9F,eAAO,MAAM,SAAS,EAAE,QAItB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-design-system/uni-core",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,8 @@
25
25
  }
26
26
  },
27
27
  "files": [
28
- "dist"
28
+ "dist",
29
+ "CHANGELOG.md"
29
30
  ],
30
31
  "devDependencies": {
31
32
  "prettier": "^3.8.3",