@tui/design-system 0.1.1-MR-211.1 → 0.1.1-MR-211.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui/design-system",
3
- "version": "0.1.1-MR-211.1",
3
+ "version": "0.1.1-MR-211.2",
4
4
  "description": "TUI Design System",
5
5
  "author": "TUI Group",
6
6
  "contributors": [
@@ -0,0 +1,58 @@
1
+ // uilib component contract types
2
+ // Source of truth for all consumers: Storybook, @tui/preact-ui, njk mappers
3
+
4
+ export type Theme = 'tui' | 'firstchoice' | 'crystalski';
5
+ export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
6
+ export type IconPosition = 'none' | 'leading' | 'trailing';
7
+ export type ButtonVariantBase = 'primary' | 'secondary' | 'promotion' | 'search';
8
+
9
+ // ─── Icon ────────────────────────────────────────────────
10
+ export interface IconProps {
11
+ type?: 'standard' | 'color' | 'bullet';
12
+ nameStandard?: string;
13
+ nameColor?: string;
14
+ nameBullet?: string;
15
+ size?: IconSize;
16
+ color?: string;
17
+ theme?: Theme;
18
+ }
19
+
20
+ // ─── Icon Button ─────────────────────────────────────────
21
+ export interface IconButtonProps {
22
+ element?: 'a' | 'button';
23
+ variant?: ButtonVariantBase | 'ghost' | 'control' | 'shortlist';
24
+ size?: 'small' | 'medium' | 'large';
25
+ isDisabled?: boolean;
26
+ label?: string;
27
+ iconAsset?: string;
28
+ selected?: boolean;
29
+ theme?: Theme;
30
+ }
31
+
32
+ // ─── Button ──────────────────────────────────────────────
33
+ export interface ButtonProps {
34
+ element?: 'a' | 'button' | 'span';
35
+ variant?: ButtonVariantBase | 'tertiary';
36
+ size?: 'medium' | 'large';
37
+ isDisabled?: boolean;
38
+ label?: string;
39
+ accessibleLabel?: string;
40
+ widthRestrict?: boolean;
41
+ icon?: IconPosition;
42
+ iconAsset?: string;
43
+ theme?: Theme;
44
+ }
45
+
46
+ // ─── Link ────────────────────────────────────────────────
47
+ export interface LinkProps {
48
+ href?: string;
49
+ label?: string;
50
+ accessibleLabel?: string;
51
+ headingLink?: 'none' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
52
+ isButtonLink?: boolean;
53
+ isInverse?: boolean;
54
+ icon?: IconPosition;
55
+ iconAsset?: string;
56
+ isExternal?: boolean;
57
+ theme?: Theme;
58
+ }