@uncinq/component-tokens 1.9.1 → 1.9.3

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.
@@ -13,7 +13,7 @@
13
13
  --btn-color-border: var(--color-brand);
14
14
  --btn-color-border-hover: var(--color-brand-hover);
15
15
  --btn-color-text: var(--color-text-on-brand);
16
- --btn-color-text-hover: var(--color-text-on-brand);
16
+ --btn-color-text-hover: var(--btn-color-text);
17
17
  --btn-color-text-decoration: transparent;
18
18
  --btn-color-text-decoration-hover: transparent;
19
19
  --btn-control-color-background: var(--color-background-muted);
@@ -9,10 +9,10 @@
9
9
  --carousel-arrow-border-radius: var(--radius-pill);
10
10
  --carousel-arrow-color: var(--color-link);
11
11
  --carousel-arrow-color-background: transparent;
12
- --carousel-arrow-color-background-hover: transparent;
12
+ --carousel-arrow-color-background-hover: var(--color-link);
13
13
  --carousel-arrow-color-border: var(--color-link);
14
14
  --carousel-arrow-color-border-hover: var(--color-link-hover);
15
- --carousel-arrow-color-hover: var(--color-link-hover);
15
+ --carousel-arrow-color-hover: var(--color-background);
16
16
  --carousel-arrow-gap: var(--spacing-xs);
17
17
  --carousel-arrow-icon: var(--icon-arrow);
18
18
  --carousel-arrow-icon-size: var(--icon-size);
@@ -6,6 +6,8 @@
6
6
  @layer tokens {
7
7
  :root {
8
8
  --details-border-radius: var(--radius-surface);
9
+ --details-border-style: var(--border-style-normal);
10
+ --details-border-width: var(--border-width-sm);
9
11
  --details-box-shadow: var(--shadow-sm);
10
12
  --details-box-shadow-hover: var(--shadow-md);
11
13
  --details-color-background: var(--color-background);
@@ -13,8 +15,13 @@
13
15
  --details-color-border-open: var(--color-border-hover);
14
16
  --details-color-text: var(--color-text);
15
17
  --details-icon: var(--icon-chevron);
18
+ --details-icon-open: var(--details-icon);
19
+ --details-icon-rotate-open: 180deg;
16
20
  --details-icon-size: var(--icon-size);
21
+ --details-icon-transition: rotate var(--duration-normal) var(--easing);
17
22
  --details-margin: var(--spacing-sm);
23
+ --details-content-align: start;
24
+ --details-content-font-size: var(--font-size-text);
18
25
  --details-content-padding-inline: var(--spacing-sm);
19
26
  --details-content-padding-block: var(--spacing-sm);
20
27
  --details-summary-font-family: var(--font-family-heading);
@@ -22,5 +29,6 @@
22
29
  --details-summary-font-weight: var(--font-weight-heading);
23
30
  --details-summary-padding-inline: var(--spacing-sm);
24
31
  --details-summary-padding-block: var(--spacing-sm);
32
+ --details-transition: var(--transition-normal);
25
33
  }
26
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinq/component-tokens",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "Framework-agnostic CSS design tokens — component layers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "$type": "color"
42
42
  },
43
43
  "hover": {
44
- "$value": "{color.text.onBrand}",
44
+ "$value": "{btn.color.text.default}",
45
45
  "$type": "color"
46
46
  }
47
47
  },
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "hover": {
25
25
  "$type": "color",
26
- "$value": "transparent"
26
+ "$value": "{color.link.default}"
27
27
  }
28
28
  },
29
29
  "border": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "hover": {
40
40
  "$type": "color",
41
- "$value": "{color.link.hover}"
41
+ "$value": "{color.background}"
42
42
  }
43
43
  },
44
44
  "gap": {
@@ -2,8 +2,16 @@
2
2
  "details": {
3
3
  "border": {
4
4
  "radius": {
5
- "$value": "{radius.surface}",
6
- "$type": "dimension"
5
+ "$value": "{radius.surface}",
6
+ "$type": "dimension"
7
+ },
8
+ "style": {
9
+ "$value": "{border.style.normal}",
10
+ "$type": "strokeStyle"
11
+ },
12
+ "width": {
13
+ "$value": "{border.width.sm}",
14
+ "$type": "dimension"
7
15
  }
8
16
  },
9
17
  "boxShadow": {
@@ -37,13 +45,27 @@
37
45
  }
38
46
  },
39
47
  "icon": {
40
- "default": {
41
- "$value": "{icon.chevron}",
42
- "$type": "string"
48
+ "default": {
49
+ "$value": "{icon.chevron}",
50
+ "$type": "string"
51
+ },
52
+ "open": {
53
+ "$value": "{details.icon.default}",
54
+ "$type": "string"
55
+ },
56
+ "rotate": {
57
+ "open": {
58
+ "$value": "180deg",
59
+ "$type": "string"
60
+ }
43
61
  },
44
- "size": {
45
- "$value": "{icon.size}",
46
- "$type": "dimension"
62
+ "size": {
63
+ "$value": "{icon.size}",
64
+ "$type": "dimension"
65
+ },
66
+ "transition": {
67
+ "$value": "rotate {duration.normal} {easing.default}",
68
+ "$type": "string"
47
69
  }
48
70
  },
49
71
  "margin": {
@@ -51,6 +73,14 @@
51
73
  "$type": "dimension"
52
74
  },
53
75
  "content": {
76
+ "align": {
77
+ "$value": "start",
78
+ "$type": "string"
79
+ },
80
+ "fontSize": {
81
+ "$value": "{fontSize.text}",
82
+ "$type": "dimension"
83
+ },
54
84
  "padding": {
55
85
  "inline": {
56
86
  "$value": "{spacing.sm}",
@@ -85,6 +115,10 @@
85
115
  "$type": "dimension"
86
116
  }
87
117
  }
118
+ },
119
+ "transition": {
120
+ "$value": "{transition.normal}",
121
+ "$type": "string"
88
122
  }
89
123
  }
90
124
  }