@uni-design-system/uni-core 6.0.1 → 7.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 (28) hide show
  1. package/dist/cjs/index.cjs +134 -17
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/index.js +134 -18
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/types/concepts/component/component.types.d.ts +1 -1
  6. package/dist/types/concepts/component/component.types.d.ts.map +1 -1
  7. package/dist/types/concepts/generation/theme-file.emitter.d.ts.map +1 -1
  8. package/dist/types/concepts/iconography/icon.helper.d.ts +40 -0
  9. package/dist/types/concepts/iconography/icon.helper.d.ts.map +1 -0
  10. package/dist/types/concepts/iconography/icon.helper.spec.d.ts +2 -0
  11. package/dist/types/concepts/iconography/icon.helper.spec.d.ts.map +1 -0
  12. package/dist/types/concepts/iconography/icon.records.d.ts +49 -2
  13. package/dist/types/concepts/iconography/icon.records.d.ts.map +1 -1
  14. package/dist/types/concepts/iconography/icon.records.spec.d.ts +2 -0
  15. package/dist/types/concepts/iconography/icon.records.spec.d.ts.map +1 -0
  16. package/dist/types/concepts/iconography/index.d.ts +1 -2
  17. package/dist/types/concepts/iconography/index.d.ts.map +1 -1
  18. package/dist/types/concepts/theme/themes/base.theme.d.ts.map +1 -1
  19. package/dist/types/concepts/typography/text.model.d.ts +10 -5
  20. package/dist/types/concepts/typography/text.model.d.ts.map +1 -1
  21. package/dist/types/concepts/typography/typeface.helpers.d.ts.map +1 -1
  22. package/dist/types/concepts/typography/typeface.helpers.spec.d.ts +2 -0
  23. package/dist/types/concepts/typography/typeface.helpers.spec.d.ts.map +1 -0
  24. package/package.json +5 -2
  25. package/dist/types/concepts/iconography/icon.model.d.ts +0 -8
  26. package/dist/types/concepts/iconography/icon.model.d.ts.map +0 -1
  27. package/dist/types/concepts/iconography/icon.types.d.ts +0 -4
  28. package/dist/types/concepts/iconography/icon.types.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { Size } from '../size';
2
2
  import { Variant } from '../theme';
3
3
  import { StyleExpression } from '../style';
4
- export type ComponentName = 'undefined' | 'alert' | 'appBar' | 'avatar' | 'avatarGroup' | 'badge' | 'breadcrumb' | 'button' | 'buttonGroup' | 'card' | 'cardContent' | 'cardHeader' | 'checkbox' | 'dataSearch' | 'dataTable' | 'dialog' | 'dialogHeader' | 'drawer' | 'dropdown' | 'footer' | 'iconButton' | 'input' | 'multiSelectDropdown' | 'notificationBadge' | 'paginator' | 'radio' | 'searchInput' | 'select' | 'skeleton' | 'slider' | 'snackbar' | 'stat' | 'symbol' | 'progressBar' | 'progressGauge' | 'tabs' | 'textarea' | 'textButton' | 'toggle' | 'tooltip';
4
+ export type ComponentName = 'undefined' | 'alert' | 'appBar' | 'avatar' | 'avatarGroup' | 'badge' | 'breadcrumb' | 'button' | 'buttonGroup' | 'card' | 'cardContent' | 'cardHeader' | 'checkbox' | 'dataSearch' | 'dataTable' | 'dialog' | 'dialogButtons' | 'dialogHeader' | 'drawer' | 'dropdown' | 'footer' | 'iconButton' | 'input' | 'multiSelectDropdown' | 'notificationBadge' | 'paginator' | 'radio' | 'searchInput' | 'select' | 'skeleton' | 'slider' | 'snackbar' | 'stat' | 'symbol' | 'progressBar' | 'progressGauge' | 'tabs' | 'textarea' | 'textButton' | 'toggle' | 'tooltip';
5
5
  export interface ComponentTheme<T = object> {
6
6
  /** Style applied to every instance regardless of variant/size. */
7
7
  fixed?: StyleExpression;
@@ -1 +1 @@
1
- {"version":3,"file":"component.types.d.ts","sourceRoot":"","sources":["../../../../src/concepts/component/component.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,aAAa,GACb,MAAM,GACN,aAAa,GACb,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,cAAc,GACd,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,OAAO,GACP,qBAAqB,GACrB,mBAAmB,GACnB,WAAW,GACX,OAAO,GACP,aAAa,GACb,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,GACV,MAAM,GACN,QAAQ,GACR,aAAa,GACb,eAAe,GACf,MAAM,GACN,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM;IACxC,kEAAkE;IAClE,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,CAAC;CACb;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"component.types.d.ts","sourceRoot":"","sources":["../../../../src/concepts/component/component.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,aAAa,GACb,MAAM,GACN,aAAa,GACb,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,OAAO,GACP,qBAAqB,GACrB,mBAAmB,GACnB,WAAW,GACX,OAAO,GACP,aAAa,GACb,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,UAAU,GACV,MAAM,GACN,QAAQ,GACR,aAAa,GACb,eAAe,GACf,MAAM,GACN,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM;IACxC,kEAAkE;IAClE,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,CAAC;CACb;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"theme-file.emitter.d.ts","sourceRoot":"","sources":["../../../../src/concepts/generation/theme-file.emitter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1E,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAC/B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;CACvB;AAwDD;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc,KAAG,gBAgHrD,CAAC"}
1
+ {"version":3,"file":"theme-file.emitter.d.ts","sourceRoot":"","sources":["../../../../src/concepts/generation/theme-file.emitter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1E,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAC/B,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;CACvB;AAwDD;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc,KAAG,gBAsIrD,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Turns a raw SVG source string into an icon primitive — the inline data URI
3
+ * form `uni-icon` renders as a CSS mask over `currentColor`.
4
+ *
5
+ * This is the path for bringing your own icons (a brand set, a designer
6
+ * handoff) into a theme. The built-in `BaseIcons` are generated separately
7
+ * from Material Symbols; everything you add goes through here:
8
+ *
9
+ * ```ts
10
+ * const icons: Icons = {
11
+ * acmeLogo: svgToIconUri(readFileSync('brand/logo.svg', 'utf8')),
12
+ * search: svgToIconUri(readFileSync('brand/search.svg', 'utf8')),
13
+ * };
14
+ * createTheme({ id: 'Acme', name: 'Acme', colors, icons });
15
+ * ```
16
+ *
17
+ * `createTheme` merges these over `BaseIcons` per name, so reusing a built-in
18
+ * name reskins it and any new name is simply added.
19
+ */
20
+ export interface SvgToIconUriOptions {
21
+ /**
22
+ * Accept an SVG that paints in more than one color. Masks are monochrome —
23
+ * the artwork is flattened to its silhouette and takes `currentColor` — so
24
+ * this is rejected by default to catch logos that were never going to
25
+ * survive the pipeline. Set this when a silhouette is what you want.
26
+ */
27
+ allowMultiColor?: boolean;
28
+ /** Name used in error messages, so a failing icon in a set is identifiable. */
29
+ name?: string;
30
+ }
31
+ /**
32
+ * Encode an SVG string as a mask-ready icon data URI, validating that it will
33
+ * actually survive the mask pipeline.
34
+ *
35
+ * Throws when the source is not a complete `<svg>` document, has no `viewBox`
36
+ * (it could not scale), references an external or raster image, or paints in
37
+ * more than one color (see {@link SvgToIconUriOptions.allowMultiColor}).
38
+ */
39
+ export declare function svgToIconUri(svg: string, options?: SvgToIconUriOptions): string;
40
+ //# sourceMappingURL=icon.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.helper.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAwDD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,CA+CnF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=icon.helper.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.helper.spec.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.helper.spec.ts"],"names":[],"mappings":""}
@@ -1,10 +1,57 @@
1
- import { Icons } from '../theme/theme.model';
2
1
  /**
3
2
  * Default icon primitives shipped with every theme. Each icon is an inline
4
3
  * SVG data URI rendered as a CSS mask over `currentColor`, so icons recolor
5
4
  * with the theme automatically. `createTheme` merges a theme's own `icons`
6
5
  * over this set — add or override under any name; components render them by
7
6
  * token via `uni-icon`, never by inlining SVG.
7
+ *
8
+ * The set is Material Symbols Outlined at weight 300, normalized to a
9
+ * single `0 -960 960 960` grid so every glyph shares one optical weight.
10
+ *
11
+ * Generated by scripts/generate-icons.mjs (pnpm icons:generate). Do not edit
12
+ * by hand — add or change icons in that script's manifest and regenerate.
8
13
  */
9
- export declare const BaseIcons: Icons;
14
+ export declare const BaseIcons: {
15
+ menu: string;
16
+ chevronUp: string;
17
+ chevronDown: string;
18
+ chevronLeft: string;
19
+ chevronRight: string;
20
+ arrowLeft: string;
21
+ arrowRight: string;
22
+ home: string;
23
+ externalLink: string;
24
+ search: string;
25
+ close: string;
26
+ plus: string;
27
+ minus: string;
28
+ more: string;
29
+ delete: string;
30
+ edit: string;
31
+ download: string;
32
+ upload: string;
33
+ share: string;
34
+ filter: string;
35
+ check: string;
36
+ checkCircle: string;
37
+ xCircle: string;
38
+ alertCircle: string;
39
+ info: string;
40
+ warning: string;
41
+ lock: string;
42
+ profile: string;
43
+ settings: string;
44
+ notification: string;
45
+ favorite: string;
46
+ help: string;
47
+ calendar: string;
48
+ spinner: string;
49
+ };
50
+ /** Names guaranteed present on every theme. */
51
+ export type BaseIconName = keyof typeof BaseIcons;
52
+ /**
53
+ * An icon name. Autocompletes the built-in set while still allowing any name a
54
+ * theme registers through `createTheme({ icons })`.
55
+ */
56
+ export type IconName = BaseIconName | (string & {});
10
57
  //# sourceMappingURL=icon.records.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.records.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.records.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,KAuBvB,CAAC"}
1
+ {"version":3,"file":"icon.records.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.records.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEL,CAAC;AAElB,+CAA+C;AAC/C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=icon.records.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.records.spec.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.records.spec.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
- export * from './icon.model';
1
+ export * from './icon.helper';
2
2
  export * from './icon.records';
3
- export * from './icon.types';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -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,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAI7E,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EAIP,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAwgBxB,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAcD,eAAO,MAAM,WAAW,GAAI,mEASzB,WAAW,KAAG,QAYf,CAAC;AAEH;;;;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"}
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,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAI7E,OAAO,KAAK,EACV,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EAIP,QAAQ,EACT,MAAM,gBAAgB,CAAC;AA0hBxB,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAcD,eAAO,MAAM,WAAW,GAAI,mEASzB,WAAW,KAAG,QAYf,CAAC;AAEH;;;;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"}
@@ -1,17 +1,22 @@
1
1
  import { FontWeight, TextDecoration, TextTransform } from './typography.types';
2
2
  import { SizeMap } from '../core.types';
3
+ /**
4
+ * A CSS length value: bare numbers are treated as px; strings pass through
5
+ * verbatim, so any unit Emotion accepts ('1.2rem', '2em', 'clamp(...)') works.
6
+ */
7
+ export type CssLength = number | string;
3
8
  export interface TextStyle {
4
9
  fontFamily: string;
5
- fontSize: number;
6
- lineHeight: number;
10
+ fontSize: CssLength;
11
+ lineHeight: CssLength;
7
12
  fontScale?: SizeMap;
8
13
  fontWeight?: FontWeight;
9
14
  fontStyle?: 'italic';
10
15
  textTransform?: TextTransform;
11
16
  textDecoration?: TextDecoration;
12
- letterSpacing?: number;
13
- textIndent?: number;
14
- wordSpacing?: number;
17
+ letterSpacing?: CssLength;
18
+ textIndent?: CssLength;
19
+ wordSpacing?: CssLength;
15
20
  whiteSpace?: 'nowrap';
16
21
  }
17
22
  export interface TypeFaceDefinition {
@@ -1 +1 @@
1
- {"version":3,"file":"text.model.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/text.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B"}
1
+ {"version":3,"file":"text.model.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/text.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"typeface.helpers.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/typeface.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlE;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,kBAQ5C,CAAC;AAEH,eAAO,MAAM,WAAW,GACtB,YAAY,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,KACpC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAC8D,CAAC"}
1
+ {"version":3,"file":"typeface.helpers.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/typeface.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAI7E;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,kBAQ5C,CAAC;AAEH,eAAO,MAAM,WAAW,GACtB,YAAY,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,KACpC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAC8D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typeface.helpers.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeface.helpers.spec.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/typeface.helpers.spec.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-design-system/uni-core",
3
- "version": "6.0.1",
3
+ "version": "7.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,6 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "devDependencies": {
31
+ "prettier": "^3.8.3",
31
32
  "typescript": "^5.0.0",
32
33
  "vite": "^8.0.13",
33
34
  "vite-plugin-dts": "^5.0.0",
@@ -39,6 +40,8 @@
39
40
  "dev": "vite build --watch",
40
41
  "test": "vitest run",
41
42
  "test:watch": "vitest",
42
- "type-check": "tsc --noEmit"
43
+ "type-check": "tsc --noEmit",
44
+ "icons:generate": "node scripts/generate-icons.mjs",
45
+ "icons:check": "node scripts/generate-icons.mjs --check"
43
46
  }
44
47
  }
@@ -1,8 +0,0 @@
1
- import { Color } from '../color';
2
- import { Masking } from '../masking';
3
- export interface IconConfig {
4
- background: Color;
5
- foreground: Color;
6
- mask: Masking;
7
- }
8
- //# sourceMappingURL=icon.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.model.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,KAAK,CAAC;IAClB,UAAU,EAAE,KAAK,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf"}
@@ -1,4 +0,0 @@
1
- export type IconStyle = 'solid' | 'outline';
2
- export type ToggleableIcon = 'radio' | 'check' | 'like' | 'favorite' | 'lock' | 'view';
3
- export type IconToken = 'alert' | 'warn' | 'disabled' | 'trash' | 'user' | 'back' | 'next' | 'add' | 'create' | 'copy' | 'edit' | 'disable' | 'save' | 'pin' | 'tag' | 'update' | 'archive' | 'delete' | 'lock' | 'unlock' | 'view' | 'hide' | 'open' | 'expand' | 'collapse' | 'info' | 'success' | 'warning' | 'logo' | 'chat' | 'down' | 'favorite' | 'location' | 'message' | 'profile' | 'question' | 'remove' | 'schedule' | 'search' | 'send' | 'settings' | 'share' | 'up' | 'play' | 'stop' | 'forward' | 'beginning' | 'plus' | 'minus' | 'more' | 'details' | 'call' | 'video' | 'inbox' | 'mail' | 'comment' | 'home';
4
- //# sourceMappingURL=icon.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.types.d.ts","sourceRoot":"","sources":["../../../../src/concepts/iconography/icon.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvF,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,KAAK,GACL,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,MAAM,GACN,KAAK,GACL,KAAK,GACL,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,GACR,UAAU,GACV,MAAM,GACN,SAAS,GACT,SAAS,GACT,MAAM,GACN,MAAM,GACN,MAAM,GACN,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,UAAU,GACV,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,MAAM,GACN,UAAU,GACV,OAAO,GACP,IAAI,GACJ,MAAM,GACN,MAAM,GACN,SAAS,GACT,WAAW,GACX,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,CAAC"}