@mrpelz/uikit-ish 7.9.0 → 7.10.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 (235) hide show
  1. package/dist/components/action-sheet/main.d.ts +1 -2
  2. package/dist/components/action-sheet/main.d.ts.map +1 -1
  3. package/dist/components/action-sheet/main.js +12 -12
  4. package/dist/components/action-sheet/main.js.map +1 -1
  5. package/dist/components/action-sheet/props.d.ts +2 -2
  6. package/dist/components/action-sheet/props.d.ts.map +1 -1
  7. package/dist/components/action-sheet/style.css +10 -1
  8. package/dist/components/activity-view/main.d.ts +1 -1
  9. package/dist/components/activity-view/main.d.ts.map +1 -1
  10. package/dist/components/activity-view/main.js +9 -11
  11. package/dist/components/activity-view/main.js.map +1 -1
  12. package/dist/components/activity-view/style.css +21 -21
  13. package/dist/components/alert/main.d.ts +2 -3
  14. package/dist/components/alert/main.d.ts.map +1 -1
  15. package/dist/components/alert/main.js +12 -15
  16. package/dist/components/alert/main.js.map +1 -1
  17. package/dist/components/alert/props.d.ts +3 -3
  18. package/dist/components/alert/style.css +23 -23
  19. package/dist/components/avatar/main.d.ts.map +1 -1
  20. package/dist/components/avatar/main.js +7 -8
  21. package/dist/components/avatar/main.js.map +1 -1
  22. package/dist/components/avatar/style.css +1 -1
  23. package/dist/components/badge/main.d.ts +1 -1
  24. package/dist/components/badge/main.js +4 -4
  25. package/dist/components/badge/main.js.map +1 -1
  26. package/dist/components/badge/style.css +7 -2
  27. package/dist/components/button/main.d.ts.map +1 -1
  28. package/dist/components/button/main.js +9 -9
  29. package/dist/components/button/main.js.map +1 -1
  30. package/dist/components/button/props.d.ts +8 -8
  31. package/dist/components/button/props.d.ts.map +1 -1
  32. package/dist/components/button/style.css +27 -29
  33. package/dist/components/checkbox/main.d.ts.map +1 -1
  34. package/dist/components/checkbox/main.js +5 -7
  35. package/dist/components/checkbox/main.js.map +1 -1
  36. package/dist/components/checkbox/style.css +3 -3
  37. package/dist/components/color-picker/main.d.ts +27 -4
  38. package/dist/components/color-picker/main.d.ts.map +1 -1
  39. package/dist/components/color-picker/main.js +265 -90
  40. package/dist/components/color-picker/main.js.map +1 -1
  41. package/dist/components/color-picker/props.d.ts +45 -10
  42. package/dist/components/color-picker/props.d.ts.map +1 -1
  43. package/dist/components/color-picker/style.css +124 -38
  44. package/dist/components/contextual-menu/main.d.ts.map +1 -1
  45. package/dist/components/contextual-menu/main.js +189 -236
  46. package/dist/components/contextual-menu/main.js.map +1 -1
  47. package/dist/components/contextual-menu/props.d.ts +10 -33
  48. package/dist/components/contextual-menu/props.d.ts.map +1 -1
  49. package/dist/components/contextual-menu/style.css +60 -34
  50. package/dist/components/date-picker/main.d.ts.map +1 -1
  51. package/dist/components/date-picker/main.js +100 -66
  52. package/dist/components/date-picker/main.js.map +1 -1
  53. package/dist/components/date-picker/props.d.ts +10 -10
  54. package/dist/components/date-picker/props.d.ts.map +1 -1
  55. package/dist/components/date-picker/style.css +51 -47
  56. package/dist/components/drawer/main.d.ts.map +1 -1
  57. package/dist/components/drawer/main.js +52 -7
  58. package/dist/components/drawer/main.js.map +1 -1
  59. package/dist/components/drawer/style.css +1 -1
  60. package/dist/components/edit-menu/main.d.ts.map +1 -1
  61. package/dist/components/edit-menu/main.js +31 -22
  62. package/dist/components/edit-menu/main.js.map +1 -1
  63. package/dist/components/edit-menu/props.d.ts +4 -4
  64. package/dist/components/edit-menu/props.d.ts.map +1 -1
  65. package/dist/components/edit-menu/style.css +10 -1
  66. package/dist/components/form/main.js +3 -3
  67. package/dist/components/form/main.js.map +1 -1
  68. package/dist/components/glass/main.d.ts +1 -1
  69. package/dist/components/glass/main.js +4 -4
  70. package/dist/components/glass/main.js.map +1 -1
  71. package/dist/components/glass/props.d.ts +5 -5
  72. package/dist/components/glass/props.d.ts.map +1 -1
  73. package/dist/components/glass/style.css +157 -157
  74. package/dist/components/header/main.d.ts.map +1 -1
  75. package/dist/components/header/main.js +27 -26
  76. package/dist/components/header/main.js.map +1 -1
  77. package/dist/components/header/style.css +13 -52
  78. package/dist/components/index.d.ts +5 -5
  79. package/dist/components/index.d.ts.map +1 -1
  80. package/dist/components/index.js +2 -2
  81. package/dist/components/index.js.map +1 -1
  82. package/dist/components/layout/main.js +5 -5
  83. package/dist/components/layout/main.js.map +1 -1
  84. package/dist/components/layout/style.css +2 -2
  85. package/dist/components/list/main.d.ts +11 -3
  86. package/dist/components/list/main.d.ts.map +1 -1
  87. package/dist/components/list/main.js +296 -300
  88. package/dist/components/list/main.js.map +1 -1
  89. package/dist/components/list/props.d.ts +49 -16
  90. package/dist/components/list/props.d.ts.map +1 -1
  91. package/dist/components/list/reorder.d.ts +146 -0
  92. package/dist/components/list/reorder.d.ts.map +1 -0
  93. package/dist/components/list/reorder.js +819 -0
  94. package/dist/components/list/reorder.js.map +1 -0
  95. package/dist/components/list/select.d.ts +6 -0
  96. package/dist/components/list/select.d.ts.map +1 -0
  97. package/dist/components/list/select.js +141 -0
  98. package/dist/components/list/select.js.map +1 -0
  99. package/dist/components/list/style.css +206 -158
  100. package/dist/components/menu/main.d.ts +77 -30
  101. package/dist/components/menu/main.d.ts.map +1 -1
  102. package/dist/components/menu/main.js +364 -89
  103. package/dist/components/menu/main.js.map +1 -1
  104. package/dist/components/menu/props.d.ts +3 -4
  105. package/dist/components/menu/props.d.ts.map +1 -1
  106. package/dist/components/menu/style.css +25 -11
  107. package/dist/components/navigation/main.d.ts +5 -2
  108. package/dist/components/navigation/main.d.ts.map +1 -1
  109. package/dist/components/navigation/main.js +287 -57
  110. package/dist/components/navigation/main.js.map +1 -1
  111. package/dist/components/navigation/props.d.ts +37 -4
  112. package/dist/components/navigation/props.d.ts.map +1 -1
  113. package/dist/components/navigation/style.css +32 -2
  114. package/dist/components/page/main.d.ts.map +1 -1
  115. package/dist/components/page/main.js +12 -7
  116. package/dist/components/page/main.js.map +1 -1
  117. package/dist/components/page/props.d.ts +1 -1
  118. package/dist/components/page/style.css +3 -6
  119. package/dist/components/page-control/main.d.ts +1 -1
  120. package/dist/components/page-control/main.js +9 -9
  121. package/dist/components/page-control/main.js.map +1 -1
  122. package/dist/components/page-control/style.css +2 -2
  123. package/dist/components/popover/main.d.ts.map +1 -1
  124. package/dist/components/popover/main.js +17 -14
  125. package/dist/components/popover/main.js.map +1 -1
  126. package/dist/components/popover/props.d.ts +2 -2
  127. package/dist/components/popover/style.css +10 -1
  128. package/dist/components/progress/main.d.ts +1 -2
  129. package/dist/components/progress/main.d.ts.map +1 -1
  130. package/dist/components/progress/main.js +45 -19
  131. package/dist/components/progress/main.js.map +1 -1
  132. package/dist/components/progress/props.d.ts +22 -8
  133. package/dist/components/progress/props.d.ts.map +1 -1
  134. package/dist/components/progress/style.css +15 -15
  135. package/dist/components/roll/main.js +10 -10
  136. package/dist/components/roll/main.js.map +1 -1
  137. package/dist/components/roll/props.d.ts +1 -1
  138. package/dist/components/roll/style.css +11 -11
  139. package/dist/components/segmented/main.d.ts.map +1 -1
  140. package/dist/components/segmented/main.js +44 -27
  141. package/dist/components/segmented/main.js.map +1 -1
  142. package/dist/components/segmented/style.css +14 -9
  143. package/dist/components/sheet/main.d.ts +1 -1
  144. package/dist/components/sheet/main.d.ts.map +1 -1
  145. package/dist/components/sheet/main.js +22 -18
  146. package/dist/components/sheet/main.js.map +1 -1
  147. package/dist/components/sheet/props.d.ts +1 -1
  148. package/dist/components/sheet/style.css +22 -16
  149. package/dist/components/sidebar/main.d.ts.map +1 -1
  150. package/dist/components/sidebar/main.js +9 -13
  151. package/dist/components/sidebar/main.js.map +1 -1
  152. package/dist/components/sidebar/style.css +8 -8
  153. package/dist/components/slider/main.d.ts.map +1 -1
  154. package/dist/components/slider/main.js +19 -19
  155. package/dist/components/slider/main.js.map +1 -1
  156. package/dist/components/slider/props.d.ts +1 -2
  157. package/dist/components/slider/props.d.ts.map +1 -1
  158. package/dist/components/slider/style.css +25 -25
  159. package/dist/components/stepper/main.d.ts.map +1 -1
  160. package/dist/components/stepper/main.js +13 -15
  161. package/dist/components/stepper/main.js.map +1 -1
  162. package/dist/components/stepper/style.css +8 -8
  163. package/dist/components/switch/main.d.ts.map +1 -1
  164. package/dist/components/switch/main.js +25 -18
  165. package/dist/components/switch/main.js.map +1 -1
  166. package/dist/components/switch/props.d.ts +5 -3
  167. package/dist/components/switch/props.d.ts.map +1 -1
  168. package/dist/components/switch/style.css +13 -17
  169. package/dist/components/symbol/main.d.ts +1 -1
  170. package/dist/components/symbol/main.d.ts.map +1 -1
  171. package/dist/components/symbol/main.js +6 -5
  172. package/dist/components/symbol/main.js.map +1 -1
  173. package/dist/components/symbol/props.d.ts +3 -3
  174. package/dist/components/symbol/style.css +1 -1
  175. package/dist/components/tab-bar/main.d.ts +2 -2
  176. package/dist/components/tab-bar/main.d.ts.map +1 -1
  177. package/dist/components/tab-bar/main.js +78 -59
  178. package/dist/components/tab-bar/main.js.map +1 -1
  179. package/dist/components/tab-bar/props.d.ts +3 -3
  180. package/dist/components/tab-bar/style.css +92 -56
  181. package/dist/components/text-field/main.d.ts +3 -2
  182. package/dist/components/text-field/main.d.ts.map +1 -1
  183. package/dist/components/text-field/main.js +26 -28
  184. package/dist/components/text-field/main.js.map +1 -1
  185. package/dist/components/text-field/props.d.ts +16 -1
  186. package/dist/components/text-field/props.d.ts.map +1 -1
  187. package/dist/components/text-field/style.css +105 -31
  188. package/dist/components/toolbar/main.d.ts.map +1 -1
  189. package/dist/components/toolbar/main.js +18 -20
  190. package/dist/components/toolbar/main.js.map +1 -1
  191. package/dist/components/toolbar/props.d.ts +10 -4
  192. package/dist/components/toolbar/props.d.ts.map +1 -1
  193. package/dist/components/toolbar/style.css +13 -13
  194. package/dist/components/tooltip/main.js +4 -4
  195. package/dist/components/tooltip/main.js.map +1 -1
  196. package/dist/components/tooltip/style.css +5 -5
  197. package/dist/components/typography/main.d.ts +2 -2
  198. package/dist/components/typography/main.d.ts.map +1 -1
  199. package/dist/components/typography/main.js +10 -12
  200. package/dist/components/typography/main.js.map +1 -1
  201. package/dist/components/typography/props.d.ts +9 -9
  202. package/dist/components/typography/props.d.ts.map +1 -1
  203. package/dist/components/typography/style.css +503 -503
  204. package/dist/components/utils/main.d.ts +47 -6
  205. package/dist/components/utils/main.d.ts.map +1 -1
  206. package/dist/components/utils/main.js +155 -5
  207. package/dist/components/utils/main.js.map +1 -1
  208. package/dist/components/utils/props.d.ts +24 -3
  209. package/dist/components/utils/props.d.ts.map +1 -1
  210. package/dist/components/utils/style.css +4 -4
  211. package/dist/components/viewport/edge-effect.d.ts +10 -0
  212. package/dist/components/viewport/edge-effect.d.ts.map +1 -0
  213. package/dist/components/viewport/edge-effect.js +100 -0
  214. package/dist/components/viewport/edge-effect.js.map +1 -0
  215. package/dist/components/viewport/edge.d.ts +39 -0
  216. package/dist/components/viewport/edge.d.ts.map +1 -0
  217. package/dist/components/viewport/edge.js +151 -0
  218. package/dist/components/viewport/edge.js.map +1 -0
  219. package/dist/components/viewport/input.d.ts +19 -3
  220. package/dist/components/viewport/input.d.ts.map +1 -1
  221. package/dist/components/viewport/input.js +197 -12
  222. package/dist/components/viewport/input.js.map +1 -1
  223. package/dist/components/viewport/main.d.ts +9 -4
  224. package/dist/components/viewport/main.d.ts.map +1 -1
  225. package/dist/components/viewport/main.js +326 -89
  226. package/dist/components/viewport/main.js.map +1 -1
  227. package/dist/components/viewport/padding.d.ts +31 -3
  228. package/dist/components/viewport/padding.d.ts.map +1 -1
  229. package/dist/components/viewport/padding.js +111 -16
  230. package/dist/components/viewport/padding.js.map +1 -1
  231. package/dist/components/viewport/props.d.ts +69 -8
  232. package/dist/components/viewport/props.d.ts.map +1 -1
  233. package/dist/components/viewport/style.css +211 -6
  234. package/dist/styles.css +285 -302
  235. package/package.json +3 -4
@@ -7,10 +7,21 @@
7
7
  gap: 4px;
8
8
  }
9
9
 
10
+ /* Its search field beside tabs, or filling the glass it's in (see
11
+ Search's `variant`): taking the free space, as high as its container. */
12
+ &:has(> [data-variant='tab-bar']),
13
+ &:has(> [data-variant='tab-bar-collapsed']),
14
+ &:has(> [data-variant='toolbar']) {
15
+ min-width: 0;
16
+ flex: 1 1 0;
17
+ align-self: stretch;
18
+ justify-content: center;
19
+ }
20
+
10
21
  /* The clear button, only while filled, and by its mode (`data-mode`):
11
22
  while focused, while not, or either way; in a list row (in its
12
23
  content), taking no room until then, so a value aligned to the end
13
- reaches it (UIKit: the value moves over for the button). Its own
24
+ reaches it (the value moves over for the button). Its own
14
25
  field's state, also in a search field's capsule (see Search). */
15
26
  &:not([data-filled]),
16
27
  &:not([data-focused]):has(> * [data-mode='whileEditing']),
@@ -33,13 +44,13 @@
33
44
  }
34
45
 
35
46
  .uikit-text-field-label {
36
- color: var(--color-ios-secondary-label);
37
- font-size: var(--font-ios-subheadline-size);
47
+ color: var(--color-ui-secondary-label);
48
+ font-size: var(--font-ui-subheadline-size);
38
49
  font-style: normal;
39
- font-variation-settings: 'wght' var(--font-ios-subheadline-weight);
40
- font-weight: round(down, var(--font-ios-subheadline-weight), 100);
41
- letter-spacing: var(--font-ios-subheadline-tracking);
42
- line-height: var(--font-ios-subheadline-line-height);
50
+ font-variation-settings: 'wght' var(--font-ui-subheadline-weight);
51
+ font-weight: round(down, var(--font-ui-subheadline-weight), 100);
52
+ letter-spacing: var(--font-ui-subheadline-tracking);
53
+ line-height: var(--font-ui-subheadline-line-height);
43
54
 
44
55
  &[data-disabled] {
45
56
  opacity: 0.55;
@@ -55,18 +66,18 @@
55
66
  margin: 0;
56
67
  appearance: none;
57
68
  background: none;
58
- caret-color: var(--color-ios-primary);
59
- color: var(--color-ios-label);
69
+ caret-color: var(--color-ui-primary);
70
+ color: var(--color-ui-label);
60
71
  font-family: inherit;
61
- font-size: var(--font-ios-body-size);
72
+ font-size: var(--font-ui-body-size);
62
73
  font-variation-settings: 'wght' 510;
63
74
  font-weight: round(down, 510, 100);
64
- letter-spacing: var(--font-ios-body-tracking);
75
+ letter-spacing: var(--font-ui-body-tracking);
65
76
  line-height: 20px;
66
77
  outline: none;
67
78
 
68
79
  &::placeholder {
69
- color: var(--color-ios-placeholder-text);
80
+ color: var(--color-ui-placeholder-text);
70
81
  opacity: 1;
71
82
  }
72
83
 
@@ -98,7 +109,7 @@
98
109
  /* Autofilled: as typed, on the row (no browser fill, which is
99
110
  `!important`: its color never transitions in). */
100
111
  &:autofill {
101
- -webkit-text-fill-color: var(--color-ios-label);
112
+ -webkit-text-fill-color: var(--color-ui-label);
102
113
  transition: background-color 0s 86400s;
103
114
  }
104
115
 
@@ -110,7 +121,7 @@
110
121
  }
111
122
 
112
123
  &[data-invalid] {
113
- color: var(--color-ios-system-red);
124
+ color: var(--color-ui-system-red);
114
125
  }
115
126
 
116
127
  &[data-disabled] {
@@ -120,24 +131,24 @@
120
131
 
121
132
  .uikit-text-field-description {
122
133
  margin: 0;
123
- color: var(--color-ios-secondary-label);
124
- font-size: var(--font-ios-caption1-size);
134
+ color: var(--color-ui-secondary-label);
135
+ font-size: var(--font-ui-caption1-size);
125
136
  font-style: normal;
126
- font-variation-settings: 'wght' var(--font-ios-caption1-weight);
127
- font-weight: round(down, var(--font-ios-caption1-weight), 100);
128
- letter-spacing: var(--font-ios-caption1-tracking);
129
- line-height: var(--font-ios-caption1-line-height);
137
+ font-variation-settings: 'wght' var(--font-ui-caption1-weight);
138
+ font-weight: round(down, var(--font-ui-caption1-weight), 100);
139
+ letter-spacing: var(--font-ui-caption1-tracking);
140
+ line-height: var(--font-ui-caption1-line-height);
130
141
  }
131
142
 
132
143
  .uikit-text-field-error {
133
144
  margin: 0;
134
- color: var(--color-ios-system-red);
135
- font-size: var(--font-ios-caption1-size);
145
+ color: var(--color-ui-system-red);
146
+ font-size: var(--font-ui-caption1-size);
136
147
  font-style: normal;
137
- font-variation-settings: 'wght' var(--font-ios-caption1-weight);
138
- font-weight: round(down, var(--font-ios-caption1-weight), 100);
139
- letter-spacing: var(--font-ios-caption1-tracking);
140
- line-height: var(--font-ios-caption1-line-height);
148
+ font-variation-settings: 'wght' var(--font-ui-caption1-weight);
149
+ font-weight: round(down, var(--font-ui-caption1-weight), 100);
150
+ letter-spacing: var(--font-ui-caption1-tracking);
151
+ line-height: var(--font-ui-caption1-line-height);
141
152
  }
142
153
 
143
154
  .uikit-text-field-clear {
@@ -148,7 +159,7 @@
148
159
  margin: 0;
149
160
  appearance: none;
150
161
  background: none;
151
- color: var(--color-ios-tertiary-label);
162
+ color: var(--color-ui-tertiary-label);
152
163
  cursor: pointer;
153
164
  place-items: center;
154
165
  -webkit-tap-highlight-color: transparent;
@@ -173,11 +184,11 @@
173
184
  border-radius: 100px;
174
185
  background-color: var(
175
186
  --uikit-text-field-search-fill,
176
- var(--color-ios-tertiary-system-fill)
187
+ var(--color-ui-tertiary-system-fill)
177
188
  );
178
- color: var(--color-ios-secondary-label);
189
+ color: var(--color-ui-secondary-label);
179
190
  cursor: text;
180
- font-size: var(--font-ios-body-size);
191
+ font-size: var(--font-ui-body-size);
181
192
  gap: var(--uikit-text-field-search-gap, 6px);
182
193
 
183
194
  & > input {
@@ -186,10 +197,73 @@
186
197
  font-weight: round(down, 400, 100);
187
198
  }
188
199
 
200
+ /* As a list row (inset grouped, see List): its background, height,
201
+ insets and corners. */
202
+ &[data-variant='row'] {
203
+ --uikit-text-field-search-height: 52px;
204
+ --uikit-text-field-search-padding: 16px;
205
+ --uikit-text-field-search-fill: var(
206
+ --color-ui-secondary-system-grouped-background
207
+ );
208
+
209
+ border-radius: var(--uikit-list-radius, 24px);
210
+ }
211
+
212
+ /* As a tab bar's (see TabBar) or a toolbar's (see Toolbar): on its
213
+ glass, in its content color. */
214
+ &[data-variant='tab-bar'],
215
+ &[data-variant='tab-bar-collapsed'],
216
+ &[data-variant='toolbar'] {
217
+ --uikit-text-field-search-fill: transparent;
218
+
219
+ color: var(--uikit-glass-content);
220
+
221
+ & > input::placeholder {
222
+ color: var(--uikit-glass-content);
223
+ }
224
+ }
225
+
226
+ /* A group's glass capsule (see GlassBackground), as high as its tabs
227
+ (collapsed too), or a toolbar group's, as its buttons; its content
228
+ above the glass. */
229
+ &[data-variant='tab-bar'],
230
+ &[data-variant='toolbar'] {
231
+ --uikit-text-field-search-padding: 16px;
232
+
233
+ position: relative;
234
+ flex: 1 1 0;
235
+
236
+ & > :not([data-glass-part]) {
237
+ position: relative;
238
+ }
239
+ }
240
+
241
+ &[data-variant='tab-bar'] {
242
+ --uikit-text-field-search-height: var(--uikit-tab-bar-tab-height, 54px);
243
+ }
244
+
245
+ /* (Its glass flush with its box, as the buttons'; a tab bar group's
246
+ extends beyond, as the groups'.) */
247
+ &[data-variant='toolbar'] {
248
+ --uikit-glass-outset: 0px;
249
+ --uikit-text-field-search-height: var(
250
+ --uikit-toolbar-group-height,
251
+ 48px
252
+ );
253
+ }
254
+
255
+ /* Collapsed: on the glass it's in (e.g. an accessory's), filling it, no
256
+ insets of its own (the accessory's). */
257
+ &[data-variant='tab-bar-collapsed'] {
258
+ --uikit-text-field-search-padding: 0px;
259
+
260
+ flex: 1 1 auto;
261
+ }
262
+
189
263
  /* Focused by keyboard only (a text field matches :focus-visible however
190
264
  it's focused; see Search). */
191
265
  &[data-keyboard-focus] {
192
- outline: 2px solid var(--color-ios-primary);
266
+ outline: 2px solid var(--color-ui-primary);
193
267
  outline-offset: 2px;
194
268
  }
195
269
  }
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/main.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAUtD,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAuQpB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUnB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/main.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAUtD,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAqQpB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUnB,CAAC"}
@@ -9,41 +9,38 @@ import { createContext, forwardRef, useContext } from 'react';
9
9
  import { Button } from '../button/main.js';
10
10
  import { GlassBackground, InheritedGlassContext, useGlassContext, } from '../glass/main.js';
11
11
  import { cn, useForwardedRef, withStyle } from '../utils/main.js';
12
- // Source: Apple iOS 26 Figma (“Toolbars”: “Toolbar - Bottom”, “Toobar - Top -
13
- // iPhone”, “_Buttons - Top”, “_Button - Bottom”, BG Context Dim/Bright), with
12
+ // Toolbars (bottom and top, their buttons) in dim and bright contexts, with
14
13
  // the glass materials and vibrant content colors as tokens in `styles.css`,
15
- // used via `glass/main.tsx`, and the titles' colors mapped to UIKit's label
16
- // colors (`label`, `secondaryLabel`).
14
+ // used via `glass/main.tsx`, and the titles in the label colors (`label`,
15
+ // `secondaryLabel`).
17
16
  //
18
17
  // A toolbar holds glass capsules (`Group`) of buttons (`Button`): at the
19
18
  // bottom (default) 48px high, their buttons 36px, 6px from the capsule's
20
- // ends and 12px apart; at the top (`placement`, a navigation bar) 44px high,
19
+ // ends and 12px apart (`gap`); at the top (`placement`, a navigation bar) 44px high,
21
20
  // 4px from the ends. Capsules sit at the bar's start (`Leading`) and end
22
21
  // (`Trailing`), 12px (top: 10px) apart, anything else (a `Title`, a page
23
22
  // control, a field) between them. A button of its own is a glass `Button`
24
23
  // (a circle for a symbol); several share a capsule (`Group`). Symbols and
25
24
  // labels are 17px (510, SF Pro's `ss16` alternates), in the glass' vibrant
26
- // content color; glass can be tinted (`prominent`, Figma “Text - Primary”,
27
- // “Symbol Primary”), its content white.
25
+ // content color; glass can be tinted (`prominent`), its content white.
28
26
  //
29
- // Titles (Figma “Title”, “Title and Subtitle”): Body Emphasized, centered
27
+ // Titles (with or without a subtitle): Body Emphasized, centered
30
28
  // in the bar; with a subtitle, over 12px (510) in the secondary label
31
29
  // color. Large titles sit below a top bar (see `Header`).
32
30
  //
33
- // Deviations:
34
- // - The bar's middle is centered in it while the sides fit (as iOS's
35
- // titles; Figma: the title absolutely centered): the sides share the free
31
+ // Also:
32
+ // - The bar's middle is centered in it while the sides fit: the sides share the free
36
33
  // space equally (a missing side is held by an empty one, so a title
37
34
  // without `Leading` stays centered); a title aligned to the start (or
38
35
  // anything taking the free space) takes all of it instead.
39
36
  // - Pressed, a capsule of several buttons turns into a glass lens as the tab
40
- // bar's groups do (scaled up by 1.05, measured on iOS 26), the pressed
41
- // button showing the selection (Figma: no pressed state).
42
- // - The bottom bar's padding is Figma's (4px 16px 36px) without the home
43
- // indicator's 34px in it (2px below): the safe area is its anchor's (a
37
+ // bar's groups do (scaled up by 1.05), the pressed button showing the
38
+ // selection.
39
+ // - The bottom bar's padding is 4px 16px 2px, without the home indicator's
40
+ // 34px in it: the safe area is its anchor's (a
44
41
  // `Viewport.BlockEnd`, a sheet's), so it sits right above it.
45
- // - With a subtitle, the title stays in 17px (Figma: 15px), as iOS 26's
46
- // (user: not smaller than the rows' text).
42
+ // - With a subtitle, the title stays in 17px (not smaller than the rows'
43
+ // text).
47
44
  /** The bar (its glass context also for glass inside it). */
48
45
  const Root = forwardRef(({ className, context: contextProp, placement = 'block-end', ...props }, forwardedRef) => {
49
46
  const ref = useForwardedRef(forwardedRef);
@@ -77,16 +74,17 @@ const Spacer = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref:
77
74
  // Whether a button is in a capsule of several (see `ToolbarButton`).
78
75
  const GroupContext = createContext(false);
79
76
  /**
80
- * A glass capsule of several buttons (Figma “Button Group”); a single
77
+ * A glass capsule of several buttons; a single
81
78
  * button is a glass `Button` of its own (see `ToolbarButton`).
82
79
  */
83
- const Group = forwardRef(({ className, children, prominent, style, textColor, tint, ...props }, ref) => {
80
+ const Group = forwardRef(({ className, children, gap, prominent, style, textColor, tint, ...props }, ref) => {
84
81
  const isTinted = prominent ?? tint !== undefined;
85
82
  // With its own tint: the glass context's variables made of it (their
86
83
  // tint resolved here, not at the toolbar's).
87
84
  const context = useContext(InheritedGlassContext);
88
85
  return (_jsxs(BaseToolbar.Group, { ref: ref, "data-prominent": isTinted ? '' : undefined, "data-glass-context": tint === undefined ? undefined : (context ?? 'auto'), style: withStyle({
89
86
  '--uikit-glass-tint': tint,
87
+ '--uikit-toolbar-group-gap': typeof gap === 'number' ? `${String(gap)}px` : gap,
90
88
  '--uikit-toolbar-content': textColor,
91
89
  '--uikit-toolbar-content-blend': textColor === undefined ? undefined : 'normal',
92
90
  }, style), ...props, className: cn('uikit-toolbar-group', className), "data-toolbar-part": "group", children: [_jsx(GlassBackground, { kind: "button", tinted: isTinted }), _jsx(GroupContext.Provider, { value: true, children: children })] }));
@@ -119,7 +117,7 @@ const Title = forwardRef(({ alignStart, className, render, ...props }, ref) => u
119
117
  ref,
120
118
  render,
121
119
  }));
122
- /** A title's subtitle (Figma “Subtitle”), inside `Title`. */
120
+ /** A title's subtitle, inside `Title`. */
123
121
  const Subtitle = forwardRef(({ className, render, ...props }, ref) => useRender({
124
122
  defaultTagName: 'span',
125
123
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["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,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,GAC7D,CACH,CAAC,GAEJ,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,uEAAuE;AACvE,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CACnD,SAAS,CAAC;IACR,cAAc,EAAE,KAAK;IACrB,KAAK,EAAE;QACL,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QAC/C,mBAAmB,EAAE,OAAO;QAC5B,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC;QAC/C,GAAG,KAAK;KACT;IACD,GAAG;IACH,MAAM;CACP,CAAC,CACL,CAAC;AAEF,0CAA0C;AAC1C,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CACvC,SAAS,CAAC;IACR,cAAc,EAAE,MAAM;IACtB,KAAK,EAAE;QACL,mBAAmB,EAAE,UAAU;QAC/B,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,SAAS,CAAC;QAClD,GAAG,KAAK;KACT;IACD,GAAG;IACH,MAAM;CACP,CAAC,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,WAAW;IACd,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM,EAAE,aAAa;IACrB,KAAK;IACL,QAAQ;CACT,CAAC"}
@@ -18,7 +18,13 @@ export type ToolbarRootProps = Omit<BaseToolbar.Root.Props, 'ref'> & {
18
18
  };
19
19
  export type ToolbarSideProps = useRender.ComponentProps<'div'>;
20
20
  export type ToolbarGroupProps = Omit<BaseToolbar.Group.Props, 'ref'> & {
21
- /** A tinted capsule (Figma “Text - Primary”, “Symbol Primary”). */
21
+ /**
22
+ * The space between its buttons (a length; a number: px), not at its
23
+ * ends (`--uikit-toolbar-group-gap`).
24
+ * @default 12
25
+ */
26
+ gap?: number | string;
27
+ /** A tinted capsule. */
22
28
  prominent?: boolean;
23
29
  /**
24
30
  * Its content's color (e.g. for a light `tint`; unblended).
@@ -34,13 +40,13 @@ export type ToolbarGroupProps = Omit<BaseToolbar.Group.Props, 'ref'> & {
34
40
  };
35
41
  export type ToolbarButtonProps = Omit<BaseToolbar.Button.Props, 'ref'> & Pick<ButtonRootProps, 'context' | 'cursor' | 'destructive' | 'fill' | 'onSecondaryClick' | 'shape' | 'size' | 'tint' | 'variant'> & {
36
42
  /**
37
- * Of its own (not in a `Group`): tinted glass (Figma “Text - Primary”,
38
- * “Symbol Primary”; `variant="glass-prominent"`).
43
+ * Of its own (not in a `Group`): tinted glass
44
+ * (`variant="glass-prominent"`).
39
45
  */
40
46
  prominent?: boolean;
41
47
  };
42
48
  export type ToolbarTitleProps = useRender.ComponentProps<'div'> & {
43
- /** Aligned to the bar's start (Figma Style=Title 2 Line Left). */
49
+ /** Aligned to the bar's start. */
44
50
  alignStart?: boolean;
45
51
  };
46
52
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,aAAa,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{
26
- color: var(--color-ios-secondary-label);
26
+ color: var(--color-ui-secondary-label);
27
27
  font-size: 12px;
28
28
  font-variation-settings: 'wght' 510;
29
29
  font-weight: round(down, 510, 100);
@@ -50,8 +50,8 @@
50
50
  --uikit-toolbar-gap: 12px;
51
51
  --uikit-toolbar-text-padding: 6px;
52
52
 
53
- /* (Figma: 36px below, the home indicator's 34px in it: the safe area,
54
- kept clear by its anchor, see Viewport; 2px of its own.) */
53
+ /* (The safe area kept clear by its anchor, see Viewport; 2px of its
54
+ own.) */
55
55
  padding: 4px 16px 2px;
56
56
  }
57
57
 
@@ -100,7 +100,7 @@
100
100
  justify-content: center;
101
101
  padding: 0 var(--uikit-toolbar-group-padding);
102
102
  border-radius: 100px;
103
- gap: 12px;
103
+ gap: var(--uikit-toolbar-group-gap, 12px);
104
104
 
105
105
  &[data-prominent] {
106
106
  --uikit-toolbar-content: var(--uikit-glass-content-prominent);
@@ -133,7 +133,7 @@
133
133
  letter-spacing: 0;
134
134
  line-height: 20px;
135
135
  scale: var(--uikit-toolbar-content-scale, none);
136
- transition-duration: var(--glass-ios-lens-duration);
136
+ transition-duration: var(--glass-ui-lens-duration);
137
137
  transition-property: background-color, scale;
138
138
  }
139
139
 
@@ -181,13 +181,13 @@
181
181
  flex: 0 1 auto;
182
182
  flex-direction: column;
183
183
  align-items: center;
184
- color: var(--color-ios-label);
185
- font-size: var(--font-ios-body-size);
184
+ color: var(--color-ui-label);
185
+ font-size: var(--font-ui-body-size);
186
186
  font-style: normal;
187
- font-variation-settings: 'wght' var(--font-ios-body-weight-emphasized);
188
- font-weight: round(down, var(--font-ios-body-weight-emphasized), 100);
189
- letter-spacing: var(--font-ios-body-tracking);
190
- line-height: var(--font-ios-body-line-height);
187
+ font-variation-settings: 'wght' var(--font-ui-body-weight-emphasized);
188
+ font-weight: round(down, var(--font-ui-body-weight-emphasized), 100);
189
+ letter-spacing: var(--font-ui-body-tracking);
190
+ line-height: var(--font-ui-body-line-height);
191
191
 
192
192
  /* Centered without sides, too (they take the free space otherwise). */
193
193
  margin-inline: auto;
@@ -200,8 +200,8 @@
200
200
  text-overflow: ellipsis;
201
201
  }
202
202
 
203
- /* Title and Subtitle (Figma Style=Title 2 Line; its title in 17px, as
204
- iOS 26's, never smaller than the rows' text). */
203
+ /* Title and subtitle (its title in 17px, never smaller than the rows'
204
+ text). */
205
205
  &:has(> [data-toolbar-part='subtitle']) {
206
206
  padding-top: 4px;
207
207
  line-height: 20px;
@@ -5,15 +5,15 @@ import './style.css';
5
5
  import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';
6
6
  import { createContext, forwardRef, useContext, useState, } from 'react';
7
7
  import { cn, positionerSide, useCollision, useForwardedRef, usePortalContainer, } from '../utils/main.js';
8
- // No Figma (iOS has no tooltips; Framework7's: a dark panel, white text,
9
- // 4px corners): in iOS 26's language, a capsule of the menus' glass (see
8
+ // A capsule of the menus' glass (Framework7's: a dark panel, white text,
9
+ // 4px corners) (see
10
10
  // `Menu`), its text Subheadline in the glass' content color, 6px by 12px
11
11
  // in (one line: 32px high, its ends round; more: 16px corners); 8px from
12
12
  // its trigger, above it (by default), scaling in from it (as menus).
13
13
  //
14
14
  // Base UI's `Tooltip`: shown on hover (after 300ms, at once between
15
15
  // tooltips in a `Tooltip.Provider`) and keyboard focus, not on touch (no
16
- // hover there: as on iOS, what it says should also be found otherwise, e.g.
16
+ // hover there: what it says should also be found otherwise, e.g.
17
17
  // in a popover). Held open (`open`), anchored to any element (`anchor`), it
18
18
  // labels something for good, on touch too (e.g. a slider's thumb, a
19
19
  // progress bar's fill).
@@ -45,7 +45,7 @@ export const useCreateTooltipHandle = () => {
45
45
  return handle;
46
46
  };
47
47
  /**
48
- * A tooltip (Base UI's `Tooltip`; no UIKit equivalent): a short label in a
48
+ * A tooltip (Base UI's `Tooltip`): a short label in a
49
49
  * glass capsule at its trigger, on hover and focus, or held open.
50
50
  */
51
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":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AEF;;;GAGG;AACH;;;;GAIG;AACH,MAAM,MAAM,GAAG,UAAU,CAGvB,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC7C,KAAC,WAAW,CAAC,MAAM,IACjB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,kBAAkB,CAAC,SAAS,CAAC,KACpC,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,GAChD,CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,WAAW;IACd,QAAQ;IACR,MAAM;IACN,OAAO;IACP,UAAU;IACV,KAAK;IACL,YAAY;CACb,CAAC"}
@@ -18,12 +18,12 @@
18
18
  padding: 6px 12px;
19
19
  border-radius: 16px;
20
20
  color: var(--uikit-glass-content);
21
- font-size: var(--font-ios-subheadline-size);
21
+ font-size: var(--font-ui-subheadline-size);
22
22
  font-style: normal;
23
- font-variation-settings: 'wght' var(--font-ios-subheadline-weight);
24
- font-weight: round(down, var(--font-ios-subheadline-weight), 100);
25
- letter-spacing: var(--font-ios-subheadline-tracking);
26
- line-height: var(--font-ios-subheadline-line-height);
23
+ font-variation-settings: 'wght' var(--font-ui-subheadline-weight);
24
+ font-weight: round(down, var(--font-ui-subheadline-weight), 100);
25
+ letter-spacing: var(--font-ui-subheadline-tracking);
26
+ line-height: var(--font-ui-subheadline-line-height);
27
27
  pointer-events: none;
28
28
  }
29
29
  }
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
2
  import type { TypographyProps } from './props.js';
3
- export type { DynamicTypeSize, TextColor, TextStyle, TypographyProps, } from './props.js';
4
- /** Text in one of the text styles (UIKit `UIFont.TextStyle`). */
3
+ export type { TextSize, TextColor, TextStyle, TypographyProps, } from './props.js';
4
+ /** Text in one of the text styles. */
5
5
  export declare const Typography: import("preact").FunctionalComponent<import("react").PropsWithoutRef<TypographyProps> & {
6
6
  ref?: import("preact").Ref<HTMLElement> | undefined;
7
7
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/typography/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAMrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EACV,eAAe,EACf,SAAS,EACT,SAAS,EACT,eAAe,GAChB,MAAM,YAAY,CAAC;AAcpB,iEAAiE;AACjE,eAAO,MAAM,UAAU;;EA4BtB,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/typography/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAMrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,YAAY,EACV,QAAQ,EACR,SAAS,EACT,SAAS,EACT,eAAe,GAChB,MAAM,YAAY,CAAC;AAYpB,sCAAsC;AACtC,eAAO,MAAM,UAAU;;EA4BtB,CAAC"}
@@ -2,25 +2,23 @@ import './style.css';
2
2
  import { useRender } from '@base-ui/react/use-render';
3
3
  import { forwardRef } from 'react';
4
4
  import { cn } from '../utils/main.js';
5
- // Source: Apple iOS 26 Figma (“Typography”: “Text styles” in the label
6
- // colors, “Dynamic Type”, “Dynamic Type – Accessibility Sizes”); HIG
7
- // (Typography). The text styles' tokens (`--font-ios-*`) are declared in
5
+ // Text styles in the label colors, at each text size (the accessibility
6
+ // sizes too). The text styles' tokens (`--font-ui-*`) are declared in
8
7
  // `styles.css` for the default size (Large), and per size in style.css.
9
8
  //
10
- // Deviations:
11
- // - Caption 1's emphasized italic is 510 (Figma: 508), as its emphasized.
12
- // - Accessibility sizes have no tracking (Figma: none given).
13
- // - Figma's values are kept where they look off: Title 2 at AX2 (43/51, as
14
- // Title 1) and Title 3 at AX4 (43/51, as at AX3), Title 2 at Medium
15
- // (21/28).
16
- /** Text in one of the text styles (UIKit `UIFont.TextStyle`). */
17
- export const Typography = forwardRef(({ className, color, dynamicTypeSize: size, emphasized, italic, render, textStyle, ...props }, ref) => useRender({
9
+ // Also:
10
+ // - Caption 1's emphasized italic is 510, as its emphasized.
11
+ // - Accessibility sizes have no tracking.
12
+ // - Title 2 at AX2 is 43/51 (as Title 1), Title 3 at AX4 43/51 (as at AX3),
13
+ // Title 2 at Medium 21/28.
14
+ /** Text in one of the text styles. */
15
+ export const Typography = forwardRef(({ className, color, textSize: size, emphasized, italic, render, textStyle, ...props }, ref) => useRender({
18
16
  defaultTagName: 'span',
19
17
  props: {
20
18
  ...props,
21
19
  className: cn('uikit-typography', className),
22
20
  'data-color': color,
23
- 'data-dynamic-type-size': size,
21
+ 'data-text-size': size,
24
22
  'data-emphasized': emphasized ? '' : undefined,
25
23
  'data-italic': italic ? '' : undefined,
26
24
  'data-text-style': textStyle,
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/typography/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAUtC,uEAAuE;AACvE,qEAAqE;AACrE,yEAAyE;AACzE,wEAAwE;AACxE,EAAE;AACF,cAAc;AACd,0EAA0E;AAC1E,8DAA8D;AAC9D,2EAA2E;AAC3E,sEAAsE;AACtE,aAAa;AAEb,iEAAiE;AACjE,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,SAAS,EACT,KAAK,EACL,eAAe,EAAE,IAAI,EACrB,UAAU,EACV,MAAM,EACN,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE,CACF,SAAS,CAAC;IACR,cAAc,EAAE,MAAM;IACtB,KAAK,EAAE;QACL,GAAG,KAAK;QACR,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC;QAC5C,YAAY,EAAE,KAAK;QACnB,wBAAwB,EAAE,IAAI;QAC9B,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QAC9C,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACtC,iBAAiB,EAAE,SAAS;KAC7B;IACD,GAAG;IACH,MAAM;CACP,CAAC,CACL,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/typography/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAUtC,wEAAwE;AACxE,sEAAsE;AACtE,wEAAwE;AACxE,EAAE;AACF,QAAQ;AACR,6DAA6D;AAC7D,0CAA0C;AAC1C,4EAA4E;AAC5E,6BAA6B;AAE7B,sCAAsC;AACtC,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,SAAS,EACT,KAAK,EACL,QAAQ,EAAE,IAAI,EACd,UAAU,EACV,MAAM,EACN,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE,CACF,SAAS,CAAC;IACR,cAAc,EAAE,MAAM;IACtB,KAAK,EAAE;QACL,GAAG,KAAK;QACR,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC;QAC5C,YAAY,EAAE,KAAK;QACnB,gBAAgB,EAAE,IAAI;QACtB,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QAC9C,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACtC,iBAAiB,EAAE,SAAS;KAC7B;IACD,GAAG;IACH,MAAM;CACP,CAAC,CACL,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import type { useRender } from '@base-ui/react/use-render';
2
- /** UIKit `UIFont.TextStyle`. */
2
+ /** A text style. */
3
3
  export type TextStyle = 'body' | 'callout' | 'caption1' | 'caption2' | 'footnote' | 'headline' | 'largeTitle' | 'subheadline' | 'title1' | 'title2' | 'title3';
4
- /** UIKit `UIContentSizeCategory` (Dynamic Type), `large` by default. */
5
- export type DynamicTypeSize = 'ax1' | 'ax2' | 'ax3' | 'ax4' | 'ax5' | 'large' | 'medium' | 'small' | 'xLarge' | 'xSmall' | 'xxLarge' | 'xxxLarge';
6
- /** Label colors of the text styles (Figma: the four label colors). */
4
+ /** A text size (the accessibility sizes too), `large` by default. */
5
+ export type TextSize = 'ax1' | 'ax2' | 'ax3' | 'ax4' | 'ax5' | 'large' | 'medium' | 'small' | 'xLarge' | 'xSmall' | 'xxLarge' | 'xxxLarge';
6
+ /** Label colors of the text styles (the four label colors). */
7
7
  export type TextColor = 'primary' | 'quaternary' | 'secondary' | 'tertiary';
8
8
  export type TypographyProps = useRender.ComponentProps<'span'> & {
9
9
  /**
@@ -11,14 +11,14 @@ export type TypographyProps = useRender.ComponentProps<'span'> & {
11
11
  * @default inherited
12
12
  */
13
13
  color?: TextColor;
14
+ /** The style's bold weight (emphasized). */
15
+ emphasized?: boolean;
16
+ italic?: boolean;
14
17
  /**
15
- * Dynamic Type size of the text and its content.
18
+ * Text size of the text and its content.
16
19
  * @default inherited
17
20
  */
18
- dynamicTypeSize?: DynamicTypeSize;
19
- /** The style's bold weight (Figma “Emphasized”). */
20
- emphasized?: boolean;
21
- italic?: boolean;
21
+ textSize?: TextSize;
22
22
  /**
23
23
  * The text style.
24
24
  * @default 'body'
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/typography/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,gCAAgC;AAChC,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;AAEb,wEAAwE;AACxE,MAAM,MAAM,eAAe,GACvB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;AAEf,sEAAsE;AACtE,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,CAAC;AAE5E,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG;IAC/D;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,oDAAoD;IACpD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/typography/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,oBAAoB;AACpB,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;AAEb,qEAAqE;AACrE,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;AAEf,+DAA+D;AAC/D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,UAAU,CAAC;AAE5E,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG;IAC/D;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}