@aleph-alpha/ui-library 6.4.0 → 6.6.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 (188) hide show
  1. package/dist/system/components/UiFileItem/UiFileItem.vue.d.ts +10 -1
  2. package/dist/system/components/UiFileItem/index.d.ts +1 -1
  3. package/dist/system/components/UiFileItem/types.d.ts +81 -5
  4. package/dist/system/components/UiPopover/UiPopoverContent.vue.d.ts +1 -0
  5. package/dist/system/components/UiPopover/types.d.ts +6 -0
  6. package/dist/system/components/core/popover/PopoverContent.vue.d.ts +1 -0
  7. package/dist/system/components/core/toggle/index.d.ts +1 -1
  8. package/dist/system/lib.js +12336 -12055
  9. package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +21 -174
  10. package/dist/system/patterns/UiFloatActions/core/FloatingButton.vue.d.ts +36 -0
  11. package/dist/system/patterns/UiFloatActions/core/FloatingInput.vue.d.ts +19 -0
  12. package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +3 -1
  13. package/dist/system/patterns/UiFloatActions/types.d.ts +93 -19
  14. package/dist/system/patterns/UiLayout/layout-shell.d.ts +117 -252
  15. package/package.json +2 -2
  16. package/src/components/UiAccordion/UiAccordion.stories.ts +8 -8
  17. package/src/components/UiAlert/UiAlert.stories.ts +13 -13
  18. package/src/components/UiAlertDialog/UiAlertDialog.stories.ts +4 -4
  19. package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +13 -13
  20. package/src/components/UiAutocomplete/UiAutocomplete.vue +3 -3
  21. package/src/components/UiBadge/UiBadge.stories.ts +9 -9
  22. package/src/components/UiBreadcrumb/UiBreadcrumb.stories.ts +14 -14
  23. package/src/components/UiButton/UiButton.stories.ts +35 -35
  24. package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +6 -6
  25. package/src/components/UiCalendar/UiCalendar.stories.ts +6 -6
  26. package/src/components/UiCard/UiCard.stories.ts +6 -6
  27. package/src/components/UiCheckbox/UiCheckbox.stories.ts +30 -30
  28. package/src/components/UiChip/UiChip.stories.ts +14 -14
  29. package/src/components/UiChip/UiChip.vue +1 -1
  30. package/src/components/UiDialog/UiDialog.stories.ts +20 -20
  31. package/src/components/UiDrawer/UiDrawer.stories.ts +29 -29
  32. package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +13 -13
  33. package/src/components/UiEmpty/UiEmpty.vue +1 -1
  34. package/src/components/UiFadeMask/UiFadeMask.stories.ts +13 -13
  35. package/src/components/UiField/UiField.stories.ts +27 -27
  36. package/src/components/UiFileItem/UiFileItem.vue +114 -9
  37. package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +54 -2
  38. package/src/components/UiFileItem/index.ts +1 -0
  39. package/src/components/UiFileItem/types.ts +82 -5
  40. package/src/components/UiFileType/UiFileType.stories.ts +10 -10
  41. package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +10 -10
  42. package/src/components/UiFileUploadBox/UiFileUploadBox.vue +3 -3
  43. package/src/components/UiIcon/UiIcon.stories.ts +9 -9
  44. package/src/components/UiInput/UiInput.stories.ts +13 -13
  45. package/src/components/UiInput/UiInput.vue +1 -1
  46. package/src/components/UiInputGroup/UiInputGroup.stories.ts +10 -10
  47. package/src/components/UiItem/UiItem.stories.ts +12 -12
  48. package/src/components/UiItem/__tests__/UiItem.test.ts +2 -2
  49. package/src/components/UiKbd/UiKbd.stories.ts +18 -18
  50. package/src/components/UiKbd/UiKbd.vue +1 -1
  51. package/src/components/UiLabel/UiLabel.stories.ts +12 -12
  52. package/src/components/UiLabel/__tests__/UiLabel.test.ts +1 -1
  53. package/src/components/UiListbox/UiListbox.stories.ts +20 -20
  54. package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +94 -94
  55. package/src/components/UiPopover/UiPopover.stories.ts +168 -27
  56. package/src/components/UiPopover/UiPopoverContent.vue +2 -0
  57. package/src/components/UiPopover/__tests__/UiPopover.test.ts +48 -0
  58. package/src/components/UiPopover/types.ts +7 -0
  59. package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +53 -53
  60. package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +6 -6
  61. package/src/components/UiResizable/UiResizable.stories.ts +40 -40
  62. package/src/components/UiSelect/UiSelect.stories.ts +14 -14
  63. package/src/components/UiSeparator/UiSeparator.stories.ts +16 -16
  64. package/src/components/UiSheet/UiSheet.stories.ts +29 -29
  65. package/src/components/UiSlider/UiSlider.stories.ts +28 -28
  66. package/src/components/UiSnackbar/UiSnackbar.stories.ts +6 -6
  67. package/src/components/UiSnackbar/UiSnackbar.vue +2 -2
  68. package/src/components/UiSnackbar/UiSnackbarContent.vue +2 -2
  69. package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
  70. package/src/components/UiStepper/UiStepper.stories.ts +6 -6
  71. package/src/components/UiSwitch/UiSwitch.stories.ts +37 -37
  72. package/src/components/UiTable/UiTable.stories.ts +4 -4
  73. package/src/components/UiTabs/UiTabs.stories.ts +64 -64
  74. package/src/components/UiTagsInput/UiTagsInput.stories.ts +16 -16
  75. package/src/components/UiTextarea/UiTextarea.stories.ts +20 -20
  76. package/src/components/UiToggle/UiToggle.stories.ts +26 -26
  77. package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +31 -31
  78. package/src/components/UiTooltip/UiTooltip.stories.ts +7 -7
  79. package/src/components/core/accordion/AccordionContent.vue +1 -1
  80. package/src/components/core/accordion/AccordionTrigger.vue +1 -1
  81. package/src/components/core/alert/AlertDescription.vue +1 -1
  82. package/src/components/core/alert/index.ts +1 -1
  83. package/src/components/core/alert-dialog/AlertDialogDescription.vue +1 -1
  84. package/src/components/core/badge/index.ts +2 -2
  85. package/src/components/core/button/index.ts +3 -3
  86. package/src/components/core/calendar/Calendar.vue +4 -4
  87. package/src/components/core/calendar/CalendarCell.vue +1 -1
  88. package/src/components/core/calendar/CalendarHeading.vue +1 -1
  89. package/src/components/core/card/CardDescription.vue +1 -1
  90. package/src/components/core/dialog/DialogDescription.vue +1 -1
  91. package/src/components/core/drawer/DrawerDescription.vue +1 -1
  92. package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
  93. package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -1
  94. package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
  95. package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +1 -1
  96. package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  97. package/src/components/core/field/FieldDescription.vue +1 -1
  98. package/src/components/core/field/FieldError.vue +1 -1
  99. package/src/components/core/field/FieldLabel.vue +1 -1
  100. package/src/components/core/field/FieldLegend.vue +2 -2
  101. package/src/components/core/field/FieldSeparator.vue +1 -1
  102. package/src/components/core/field/FieldTitle.vue +1 -1
  103. package/src/components/core/input/Input.vue +1 -1
  104. package/src/components/core/input-group/InputGroupText.vue +1 -1
  105. package/src/components/core/input-group/index.ts +1 -1
  106. package/src/components/core/item/ItemDescription.vue +1 -1
  107. package/src/components/core/item/ItemTitle.vue +1 -1
  108. package/src/components/core/item/index.ts +2 -2
  109. package/src/components/core/label/Label.vue +1 -1
  110. package/src/components/core/listbox/ListboxFilter.vue +1 -1
  111. package/src/components/core/listbox/ListboxGroupLabel.vue +1 -1
  112. package/src/components/core/listbox/ListboxItem.vue +1 -1
  113. package/src/components/core/native-select/NativeSelect.vue +1 -1
  114. package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
  115. package/src/components/core/navigation-menu/index.ts +1 -1
  116. package/src/components/core/popover/PopoverContent.vue +9 -3
  117. package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
  118. package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
  119. package/src/components/core/select/SelectItem.vue +1 -1
  120. package/src/components/core/select/SelectLabel.vue +1 -1
  121. package/src/components/core/select/SelectTrigger.vue +1 -1
  122. package/src/components/core/sheet/SheetDescription.vue +1 -1
  123. package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
  124. package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
  125. package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
  126. package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
  127. package/src/components/core/sidebar/index.ts +4 -4
  128. package/src/components/core/stepper/StepperDescription.vue +1 -1
  129. package/src/components/core/stepper/StepperTitle.vue +1 -1
  130. package/src/components/core/table/Table.vue +1 -1
  131. package/src/components/core/table/TableCaption.vue +1 -1
  132. package/src/components/core/table/TableEmpty.vue +1 -1
  133. package/src/components/core/tabs/TabsTrigger.vue +1 -1
  134. package/src/components/core/tags-input/TagsInput.vue +1 -1
  135. package/src/components/core/tags-input/TagsInputItem.vue +1 -1
  136. package/src/components/core/textarea/Textarea.vue +1 -1
  137. package/src/components/core/toggle/index.ts +1 -1
  138. package/src/components/core/tooltip/TooltipContent.vue +1 -1
  139. package/src/directives/vHover.stories.ts +17 -17
  140. package/src/lib/useDevice.stories.ts +29 -29
  141. package/src/lib/useDrag.stories.ts +14 -14
  142. package/src/patterns/UiDataTable/UiDataTable.stories.ts +27 -27
  143. package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +2 -2
  144. package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +2 -2
  145. package/src/patterns/UiDataTable/UiDataTablePagination.vue +3 -3
  146. package/src/patterns/UiDataTable/__tests__/UiDataTableColumnFilter.test.ts +2 -2
  147. package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +14 -14
  148. package/src/patterns/UiFileUpload/UiFileItem.stories.ts +818 -32
  149. package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +194 -12
  150. package/src/patterns/UiFloatActions/UiFloatActionItems.vue +226 -76
  151. package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +1136 -116
  152. package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +187 -1
  153. package/src/patterns/UiFloatActions/core/FloatingButton.vue +83 -0
  154. package/src/patterns/UiFloatActions/core/FloatingInput.vue +53 -0
  155. package/src/patterns/UiFloatActions/floatActionItemContext.ts +3 -1
  156. package/src/patterns/UiFloatActions/types.ts +106 -19
  157. package/src/patterns/UiLayout/UiLayoutContent.stories.ts +17 -17
  158. package/src/patterns/UiLayout/UiLayoutMobile.stories.ts +4 -4
  159. package/src/patterns/UiLayout/layout-shell.ts +6 -6
  160. package/src/patterns/UiProfileCard/UiProfileCard.stories.ts +8 -8
  161. package/src/patterns/UiProfileCard/profile-card.ts +2 -2
  162. package/src/patterns/UiSidebar/UiSidebar.stories.ts +6 -6
  163. package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +1 -1
  164. package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +4 -4
  165. package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +1 -1
  166. package/src/patterns/UiSidebar/UiSidebarHeader.vue +1 -1
  167. package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +7 -7
  168. package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -4
  169. package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +4 -4
  170. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +1 -1
  171. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +1 -1
  172. package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +1 -1
  173. package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +3 -3
  174. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +1 -1
  175. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +1 -1
  176. package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +1 -1
  177. package/src/patterns/UiTopBar/UiTopBar.stories.ts +24 -24
  178. package/src/theme/Background.stories.ts +62 -62
  179. package/src/theme/Border.stories.ts +19 -19
  180. package/src/theme/BorderRadius.stories.ts +14 -14
  181. package/src/theme/Extended.stories.ts +26 -26
  182. package/src/theme/Flex.stories.ts +21 -21
  183. package/src/theme/Grid.stories.ts +19 -19
  184. package/src/theme/HoverLayer.stories.ts +26 -26
  185. package/src/theme/Overlay.stories.ts +14 -14
  186. package/src/theme/Scrollbar.stories.ts +58 -58
  187. package/src/theme/Shadow.stories.ts +5 -5
  188. package/src/theme/Theme.stories.ts +38 -38
@@ -144,23 +144,23 @@ import { UiFileType } from '@aleph-alpha/ui-library'
144
144
  <div class="grid gap-3">
145
145
  <div class="flex items-center gap-3">
146
146
  <UiFileType tone="default" icon="file" />
147
- <span class="body-14-regular text-content-on-surface-secondary">default</span>
147
+ <span class="body-s-regular text-content-on-surface-secondary">default</span>
148
148
  </div>
149
149
  <div class="flex items-center gap-3">
150
150
  <UiFileType tone="accent-pink" icon="file" />
151
- <span class="body-14-regular text-content-on-surface-secondary">accent-pink</span>
151
+ <span class="body-s-regular text-content-on-surface-secondary">accent-pink</span>
152
152
  </div>
153
153
  <div class="flex items-center gap-3">
154
154
  <UiFileType tone="accent-soft" icon="code-xml" />
155
- <span class="body-14-regular text-content-on-surface-secondary">accent-soft</span>
155
+ <span class="body-s-regular text-content-on-surface-secondary">accent-soft</span>
156
156
  </div>
157
157
  <div class="flex items-center gap-3">
158
158
  <UiFileType tone="accent-yellow" icon="table-2" />
159
- <span class="body-14-regular text-content-on-surface-secondary">accent-yellow</span>
159
+ <span class="body-s-regular text-content-on-surface-secondary">accent-yellow</span>
160
160
  </div>
161
161
  <div class="flex items-center gap-3">
162
162
  <UiFileType tone="accent-orange" icon="image-play" />
163
- <span class="body-14-regular text-content-on-surface-secondary">accent-orange</span>
163
+ <span class="body-s-regular text-content-on-surface-secondary">accent-orange</span>
164
164
  </div>
165
165
  </div>
166
166
  </template>`;
@@ -180,23 +180,23 @@ export const ToneOverrides: Story = {
180
180
  <div class="grid gap-3">
181
181
  <div class="flex items-center gap-3">
182
182
  <UiFileType tone="default" icon="file" />
183
- <span class="body-14-regular text-content-on-surface-secondary">default</span>
183
+ <span class="body-s-regular text-content-on-surface-secondary">default</span>
184
184
  </div>
185
185
  <div class="flex items-center gap-3">
186
186
  <UiFileType tone="accent-pink" icon="file" />
187
- <span class="body-14-regular text-content-on-surface-secondary">accent-pink</span>
187
+ <span class="body-s-regular text-content-on-surface-secondary">accent-pink</span>
188
188
  </div>
189
189
  <div class="flex items-center gap-3">
190
190
  <UiFileType tone="accent-soft" icon="code-xml" />
191
- <span class="body-14-regular text-content-on-surface-secondary">accent-soft</span>
191
+ <span class="body-s-regular text-content-on-surface-secondary">accent-soft</span>
192
192
  </div>
193
193
  <div class="flex items-center gap-3">
194
194
  <UiFileType tone="accent-yellow" icon="table-2" />
195
- <span class="body-14-regular text-content-on-surface-secondary">accent-yellow</span>
195
+ <span class="body-s-regular text-content-on-surface-secondary">accent-yellow</span>
196
196
  </div>
197
197
  <div class="flex items-center gap-3">
198
198
  <UiFileType tone="accent-orange" icon="image-play" />
199
- <span class="body-14-regular text-content-on-surface-secondary">accent-orange</span>
199
+ <span class="body-s-regular text-content-on-surface-secondary">accent-orange</span>
200
200
  </div>
201
201
  </div>
202
202
  `,
@@ -120,8 +120,8 @@ function onError(e: { message: string }) {
120
120
  @update:files="onFiles"
121
121
  @error="onError"
122
122
  />
123
- <p v-if="lastError" class="body-14-regular text-destructive">{{ lastError }}</p>
124
- <p v-if="names.length" class="body-14-regular text-content-on-surface-muted">Selected: {{ names.join(', ') }}</p>
123
+ <p v-if="lastError" class="body-s-regular text-destructive">{{ lastError }}</p>
124
+ <p v-if="names.length" class="body-s-regular text-content-on-surface-muted">Selected: {{ names.join(', ') }}</p>
125
125
  </div>
126
126
  </template>`;
127
127
 
@@ -147,8 +147,8 @@ export const Default: Story = {
147
147
  template: `
148
148
  <div class="max-w-md gap-y-2">
149
149
  <UiFileUploadBox v-bind="args" @update:files="onFiles" @error="onError" @picker-open="onPickerOpen" />
150
- <p v-if="lastError" class="body-14-regular text-destructive">{{ lastError }}</p>
151
- <p v-if="names.length" class="body-14-regular text-content-on-surface-muted">Selected: {{ names.join(', ') }}</p>
150
+ <p v-if="lastError" class="body-s-regular text-destructive">{{ lastError }}</p>
151
+ <p v-if="names.length" class="body-s-regular text-content-on-surface-muted">Selected: {{ names.join(', ') }}</p>
152
152
  </div>
153
153
  `,
154
154
  }),
@@ -271,10 +271,10 @@ export const Accessibility: Story = {
271
271
  </h2>
272
272
 
273
273
  <div class="flex flex-col gap-2">
274
- <h3 class="body-16-medium text-content-on-surface-primary">
274
+ <h3 class="body-m-medium text-content-on-surface-primary">
275
275
  Requirements
276
276
  </h3>
277
- <ul class="body-16-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
277
+ <ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
278
278
  <li>
279
279
  The whole box is one native button: one Tab stop, and Enter or
280
280
  Space opens the file picker
@@ -300,10 +300,10 @@ export const Accessibility: Story = {
300
300
  </div>
301
301
 
302
302
  <div class="flex flex-col gap-2">
303
- <h3 class="body-16-medium text-content-on-surface-primary">
303
+ <h3 class="body-m-medium text-content-on-surface-primary">
304
304
  Enable accessibility theme
305
305
  </h3>
306
- <p class="body-16-regular text-content-on-surface-primary">
306
+ <p class="body-m-regular text-content-on-surface-primary">
307
307
  When accessibility is required, enable our accessibility theme.
308
308
  This increases contrast and ensures there are no color contrast
309
309
  issues.
@@ -312,14 +312,14 @@ export const Accessibility: Story = {
312
312
 
313
313
  <div class="grid gap-4 md:grid-cols-2">
314
314
  <div class="flex flex-col gap-3">
315
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
315
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
316
316
  Default
317
317
  </h3>
318
318
  <UiFileUploadBox supported-types-label="Supported: PDF" />
319
319
  </div>
320
320
 
321
321
  <div class="accessible-theme flex flex-col gap-3">
322
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
322
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
323
323
  Accessible
324
324
  </h3>
325
325
  <UiFileUploadBox supported-types-label="Supported: PDF" />
@@ -148,8 +148,8 @@ function processFileList(fileList: FileList) {
148
148
  cn(
149
149
  'border-border-surface-default bg-background-surface-modal ui-focus-ring text-content-on-surface-primary relative flex cursor-pointer flex-col items-center justify-center gap-4 rounded-lg border border-dashed p-8 text-center transition-colors',
150
150
  isDragging
151
- ? 'border-1 border-border-surface-focus-ring body-16-bold'
152
- : 'body-16-medium',
151
+ ? 'border-1 border-border-surface-focus-ring body-m-bold'
152
+ : 'body-m-medium',
153
153
  disabled && 'cursor-not-allowed opacity-50',
154
154
  )
155
155
  "
@@ -211,7 +211,7 @@ function processFileList(fileList: FileList) {
211
211
  <slot name="footer">
212
212
  <div
213
213
  v-if="showFooter"
214
- class="text-content-on-surface-muted flex flex-wrap items-center justify-between gap-2 label-12-regular"
214
+ class="text-content-on-surface-muted flex flex-wrap items-center justify-between gap-2 label-xs-regular"
215
215
  >
216
216
  <span v-if="supportedTypesLabel?.trim()">{{
217
217
  supportedTypesLabel
@@ -230,14 +230,14 @@ export const IconLibrary: Story = {
230
230
  <div class="flex w-full items-center gap-1.5">
231
231
  <UiInput v-model="searchedIcon" id="search-icon" name="search-icon" placeholder="Search icons..." />
232
232
  </div>
233
- <p class="body-14-regular text-content-on-surface-muted">
233
+ <p class="body-s-regular text-content-on-surface-muted">
234
234
  Showing {{ resultStart }}-{{ pageEnd }} of {{ filteredIcons.length }} icons from lucide-vue-next.
235
235
  </p>
236
236
  <div class="flex items-center gap-2">
237
237
  <UiButton variant="outline" size="sm" :disabled="page === 1" @click="page -= 1">
238
238
  Previous
239
239
  </UiButton>
240
- <span class="label-12-regular text-content-on-surface-muted">Page {{ page }} of {{ pageCount }}</span>
240
+ <span class="label-xs-regular text-content-on-surface-muted">Page {{ page }} of {{ pageCount }}</span>
241
241
  <UiButton variant="outline" size="sm" :disabled="page === pageCount" @click="page += 1">
242
242
  Next
243
243
  </UiButton>
@@ -250,10 +250,10 @@ export const IconLibrary: Story = {
250
250
  class="flex min-w-0 items-center gap-3 rounded-md border border-border-surface-default bg-background-surface-floating p-5 text-content-on-surface-primary shadow-sm"
251
251
  >
252
252
  <UiIcon :name="icon" size="m" class="shrink-0" />
253
- <code class="truncate label-14-regular text-content-on-surface-muted">{{ icon }}</code>
253
+ <code class="truncate label-s-regular text-content-on-surface-muted">{{ icon }}</code>
254
254
  </div>
255
255
  </div>
256
- <p v-if="visibleIcons.length === 0" class="body-14-regular text-content-on-surface-muted">
256
+ <p v-if="visibleIcons.length === 0" class="body-s-regular text-content-on-surface-muted">
257
257
  No icons found.
258
258
  </p>
259
259
  </div>
@@ -376,14 +376,14 @@ function brandIconStory(
376
376
  placeholder="Search by name or code..."
377
377
  />
378
378
  </div>
379
- <p class="body-14-regular text-content-on-surface-muted">
379
+ <p class="body-s-regular text-content-on-surface-muted">
380
380
  Showing {{ resultStart }}-{{ pageEnd }} of {{ filteredIcons.length }} ${category} icons.
381
381
  </p>
382
382
  <div class="flex items-center gap-2">
383
383
  <UiButton variant="outline" size="sm" :disabled="page === 1" @click="page -= 1">
384
384
  Previous
385
385
  </UiButton>
386
- <span class="label-12-regular text-content-on-surface-muted">Page {{ page }} of {{ pageCount }}</span>
386
+ <span class="label-xs-regular text-content-on-surface-muted">Page {{ page }} of {{ pageCount }}</span>
387
387
  <UiButton variant="outline" size="sm" :disabled="page === pageCount" @click="page += 1">
388
388
  Next
389
389
  </UiButton>
@@ -397,12 +397,12 @@ function brandIconStory(
397
397
  >
398
398
  <UiIcon :name="icon.component" size="m" class="shrink-0" />
399
399
  <div class="min-w-0">
400
- <code class="block truncate label-14-regular text-content-on-surface-muted">{{ icon.name }}</code>
401
- <p class="truncate label-12-regular text-content-on-surface-muted">{{ icon.label }}</p>
400
+ <code class="block truncate label-s-regular text-content-on-surface-muted">{{ icon.name }}</code>
401
+ <p class="truncate label-xs-regular text-content-on-surface-muted">{{ icon.label }}</p>
402
402
  </div>
403
403
  </div>
404
404
  </div>
405
- <p v-if="visibleIcons.length === 0" class="body-14-regular text-content-on-surface-muted">
405
+ <p v-if="visibleIcons.length === 0" class="body-s-regular text-content-on-surface-muted">
406
406
  No icons found.
407
407
  </p>
408
408
  </div>
@@ -89,7 +89,7 @@ import { UiInput } from '@aleph-alpha/ui-library'
89
89
 
90
90
  <template>
91
91
  <div class="grid w-full max-w-sm items-center gap-1.5">
92
- <label for="email" class="body-14-medium">Email</label>
92
+ <label for="email" class="body-s-medium">Email</label>
93
93
  <UiInput id="email" name="email" type="email" placeholder="Email" />
94
94
  </div>
95
95
  </template>`;
@@ -104,7 +104,7 @@ export const WithLabel: Story = {
104
104
  return { args };
105
105
  },
106
106
  template: `<div class="grid w-full max-w-sm items-center gap-1.5">
107
- <label for="email" class="body-14-medium">Email</label>
107
+ <label for="email" class="body-s-medium">Email</label>
108
108
  <UiInput id="email" name="email" type="email" placeholder="Email" :disabled="args.disabled" :required="args.required" />
109
109
  </div>`,
110
110
  }),
@@ -219,7 +219,7 @@ import { UiInput } from '@aleph-alpha/ui-library'
219
219
 
220
220
  <template>
221
221
  <div class="grid w-full max-w-sm items-center gap-1.5">
222
- <label for="picture" class="body-14-medium">Picture</label>
222
+ <label for="picture" class="body-s-medium">Picture</label>
223
223
  <UiInput id="picture" name="picture" type="file" />
224
224
  </div>
225
225
  </template>`;
@@ -234,7 +234,7 @@ export const File: Story = {
234
234
  return { args };
235
235
  },
236
236
  template: `<div class="grid w-full max-w-sm items-center gap-1.5">
237
- <label for="picture" class="body-14-medium">Picture</label>
237
+ <label for="picture" class="body-s-medium">Picture</label>
238
238
  <UiInput id="picture" name="picture" type="file" :disabled="args.disabled" />
239
239
  </div>`,
240
240
  }),
@@ -260,7 +260,7 @@ export const TextEntry: Story = {
260
260
  return { onUpdate };
261
261
  },
262
262
  template: `<div class="grid w-full max-w-sm items-center gap-1.5">
263
- <label for="full-name" class="body-14-medium">Full name</label>
263
+ <label for="full-name" class="body-s-medium">Full name</label>
264
264
  <UiInput id="full-name" name="full-name" placeholder="Ada Lovelace" @update:model-value="onUpdate" />
265
265
  </div>`,
266
266
  }),
@@ -313,7 +313,7 @@ export const FileUpload: Story = {
313
313
  return { onFiles };
314
314
  },
315
315
  template: `<div class="grid w-full max-w-sm items-center gap-1.5">
316
- <label for="attachment" class="body-14-medium">Attachment</label>
316
+ <label for="attachment" class="body-s-medium">Attachment</label>
317
317
  <UiInput id="attachment" name="attachment" type="file" @update:files="onFiles" />
318
318
  </div>`,
319
319
  }),
@@ -367,7 +367,7 @@ export const DesignNotes: Story = {
367
367
  <section class="flex flex-col gap-8 p-4 bg-surface-secondary">
368
368
  <div>
369
369
  <h2 class="heading-m font-bold text-content-on-surface-primary">Usage</h2>
370
- <p class="body-16-regular mt-2 text-content-on-surface-primary">
370
+ <p class="body-m-regular mt-2 text-content-on-surface-primary">
371
371
  The input field is a base component for form fields. It should not be
372
372
  used on its own unless there is a specific need for text input without
373
373
  labels. Please use the <strong class="font-semibold">field component</strong> and the
@@ -407,10 +407,10 @@ export const Accessibility: Story = {
407
407
 
408
408
  <div class="flex flex-col gap-6">
409
409
  <div class="flex flex-col gap-2">
410
- <h3 class="body-16-medium text-content-on-surface-primary">
410
+ <h3 class="body-m-medium text-content-on-surface-primary">
411
411
  Enable accessibility theme
412
412
  </h3>
413
- <p class="body-16-regular text-content-on-surface-primary">
413
+ <p class="body-m-regular text-content-on-surface-primary">
414
414
  When accessibility is required, enable our accessibility theme. This
415
415
  increases contrast and ensures there are no color contrast issues.
416
416
  </p>
@@ -419,7 +419,7 @@ export const Accessibility: Story = {
419
419
 
420
420
  <div class="grid gap-4 md:grid-cols-2">
421
421
  <div class="flex flex-col gap-3">
422
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
422
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
423
423
  Default
424
424
  </h3>
425
425
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -428,7 +428,7 @@ export const Accessibility: Story = {
428
428
  </div>
429
429
 
430
430
  <div class="accessible-theme flex flex-col gap-3">
431
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
431
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
432
432
  Accessible
433
433
  </h3>
434
434
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -459,7 +459,7 @@ import { UiInput } from '@aleph-alpha/ui-library'
459
459
 
460
460
  <template>
461
461
  <div class="grid w-full max-w-sm items-center gap-1.5">
462
- <label for="mobile-email" class="body-14-medium">Email</label>
462
+ <label for="mobile-email" class="body-s-medium">Email</label>
463
463
  <UiInput id="mobile-email" name="email" type="email" placeholder="Email" />
464
464
  </div>
465
465
  </template>`;
@@ -479,7 +479,7 @@ export const MobileBreakpoint: Story = {
479
479
  return { onUpdate };
480
480
  },
481
481
  template: `<div class="grid w-full max-w-sm items-center gap-1.5">
482
- <label for="mobile-email" class="body-14-medium">Email</label>
482
+ <label for="mobile-email" class="body-s-medium">Email</label>
483
483
  <UiInput id="mobile-email" name="email" type="email" placeholder="Email" @update:model-value="onUpdate" />
484
484
  </div>`,
485
485
  }),
@@ -101,7 +101,7 @@ function handleFilesChange(e: Event) {
101
101
  </label>
102
102
  </UiButton>
103
103
  <span
104
- class="placeholder:text-content-on-surface-muted flex-1 truncate pr-2 label-16-regular md:label-14-regular"
104
+ class="placeholder:text-content-on-surface-muted flex-1 truncate pr-2 label-m-regular md:label-s-regular"
105
105
  :class="{
106
106
  'text-content-on-surface-muted group-data-[invalid=true]/field:text-border-input-error':
107
107
  fileDisplayValue === '' && !isInvalid,
@@ -882,7 +882,7 @@ import {
882
882
  <template>
883
883
  <div class="grid w-full max-w-md gap-8">
884
884
  <div class="flex flex-col gap-3">
885
- <h3 class="body-14-medium">type="input"</h3>
885
+ <h3 class="body-s-medium">type="input"</h3>
886
886
  <UiInputGroup>
887
887
  <UiInputGroupInput placeholder="Search..." aria-label="Search" />
888
888
  <UiInputGroupAddon>
@@ -895,7 +895,7 @@ import {
895
895
  </div>
896
896
 
897
897
  <div class="flex flex-col gap-3">
898
- <h3 class="body-14-medium">type="textarea"</h3>
898
+ <h3 class="body-s-medium">type="textarea"</h3>
899
899
  <UiInputGroup type="textarea">
900
900
  <UiInputGroupTextarea placeholder="console.log('Hello, world!');" aria-label="Code" class="min-h-[200px] font-mono" />
901
901
  <UiInputGroupAddon align="block-start" class="border-b border-border-surface-default">
@@ -942,7 +942,7 @@ export const AllTypes: Story = {
942
942
  template: `
943
943
  <div class="grid w-full max-w-md gap-8">
944
944
  <div class="flex flex-col gap-3">
945
- <h3 class="body-14-medium text-content-on-surface-primary">type="input"</h3>
945
+ <h3 class="body-s-medium text-content-on-surface-primary">type="input"</h3>
946
946
  <UiInputGroup>
947
947
  <UiInputGroupInput placeholder="Search..." aria-label="Search" />
948
948
  <UiInputGroupAddon>
@@ -955,7 +955,7 @@ export const AllTypes: Story = {
955
955
  </div>
956
956
 
957
957
  <div class="flex flex-col gap-3">
958
- <h3 class="body-14-medium text-content-on-surface-primary">type="textarea"</h3>
958
+ <h3 class="body-s-medium text-content-on-surface-primary">type="textarea"</h3>
959
959
  <UiInputGroup type="textarea">
960
960
  <UiInputGroupTextarea placeholder="console.log('Hello, world!');" aria-label="Code" class="min-h-[200px] font-mono" />
961
961
  <UiInputGroupAddon align="block-start" class="border-b border-border-surface-default">
@@ -1632,10 +1632,10 @@ export const Accessibility: Story = {
1632
1632
 
1633
1633
  <div class="flex flex-col gap-6">
1634
1634
  <div class="flex flex-col gap-2">
1635
- <h3 class="body-16-medium text-content-on-surface-primary">
1635
+ <h3 class="body-m-medium text-content-on-surface-primary">
1636
1636
  Requirements
1637
1637
  </h3>
1638
- <ul class="body-16-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
1638
+ <ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
1639
1639
  <li>The whole group shows focus as one boundary, so it is clear the field is active.</li>
1640
1640
  <li>Every control needs an accessible name — an associated <code>UiLabel</code> or an <code>aria-label</code>.</li>
1641
1641
  <li>Icon-only addon buttons must set <code>ariaLabel</code>; a tooltip alone is not an accessible name.</li>
@@ -1646,10 +1646,10 @@ export const Accessibility: Story = {
1646
1646
  </div>
1647
1647
 
1648
1648
  <div class="flex flex-col gap-2">
1649
- <h3 class="body-16-medium text-content-on-surface-primary">
1649
+ <h3 class="body-m-medium text-content-on-surface-primary">
1650
1650
  Enable accessibility theme
1651
1651
  </h3>
1652
- <p class="body-16-regular text-content-on-surface-primary">
1652
+ <p class="body-m-regular text-content-on-surface-primary">
1653
1653
  When accessibility is required, enable our accessibility theme.
1654
1654
  This increases contrast and ensures there are no color contrast
1655
1655
  issues.
@@ -1659,7 +1659,7 @@ export const Accessibility: Story = {
1659
1659
 
1660
1660
  <div class="grid gap-4 md:grid-cols-2">
1661
1661
  <div class="flex flex-col gap-3">
1662
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
1662
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
1663
1663
  Default
1664
1664
  </h3>
1665
1665
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -1678,7 +1678,7 @@ export const Accessibility: Story = {
1678
1678
  </div>
1679
1679
 
1680
1680
  <div class="accessible-theme flex flex-col gap-3">
1681
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
1681
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
1682
1682
  Accessible
1683
1683
  </h3>
1684
1684
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -175,9 +175,9 @@ const customSlotsTemplate = `
175
175
 
176
176
  <template #content>
177
177
  <div class="flex items-center gap-2">
178
- <span class="body-14-medium">Custom Content</span>
178
+ <span class="body-s-medium">Custom Content</span>
179
179
  </div>
180
- <p class="body-14-regular text-content-on-surface-secondary">
180
+ <p class="body-s-regular text-content-on-surface-secondary">
181
181
  Content, media, and action slots can be fully composed.
182
182
  </p>
183
183
  </template>
@@ -376,7 +376,7 @@ const asLinkTemplate = `
376
376
  const allVariantsTemplate = `
377
377
  <div class="flex w-full flex-row justify-between gap-6">
378
378
  <UiItemGroup class="flex flex-col gap-2">
379
- <div class="label-12-medium text-content-on-surface-secondary">Default Variant</div>
379
+ <div class="label-xs-medium text-content-on-surface-secondary">Default Variant</div>
380
380
  <UiItem title="Default size" description="Standard spacing without row hover." />
381
381
  <UiItemSeparator />
382
382
  <UiItem size="sm" title="Small size" description="Compact spacing without row hover." />
@@ -385,7 +385,7 @@ const allVariantsTemplate = `
385
385
  </UiItemGroup>
386
386
 
387
387
  <UiItemGroup class="flex flex-col gap-2">
388
- <div class="label-12-medium text-content-on-surface-secondary">Active Variant</div>
388
+ <div class="label-xs-medium text-content-on-surface-secondary">Active Variant</div>
389
389
  <UiItem variant="active" title="Default size" description="Active indicator and background." />
390
390
  <UiItemSeparator />
391
391
  <UiItem variant="active" size="sm" title="Small size" description="Compact active row." />
@@ -394,7 +394,7 @@ const allVariantsTemplate = `
394
394
  </UiItemGroup>
395
395
 
396
396
  <UiItemGroup class="flex flex-col gap-2">
397
- <div class="label-12-medium text-content-on-surface-secondary">Outline Variant</div>
397
+ <div class="label-xs-medium text-content-on-surface-secondary">Outline Variant</div>
398
398
  <UiItem variant="outline" title="Default size" description="Inset outline keeps height stable." />
399
399
  <UiItemSeparator />
400
400
  <UiItem variant="outline" size="sm" title="Small size" description="Compact outlined row." />
@@ -403,7 +403,7 @@ const allVariantsTemplate = `
403
403
  </UiItemGroup>
404
404
 
405
405
  <UiItemGroup class="flex flex-col gap-2">
406
- <div class="label-12-medium text-content-on-surface-secondary">Hover Variant</div>
406
+ <div class="label-xs-medium text-content-on-surface-secondary">Hover Variant</div>
407
407
  <UiItem variant="hover" title="Default size" description="Only row hover feedback." />
408
408
  <UiItemSeparator />
409
409
  <UiItem variant="hover" size="sm" title="Small size" description="Compact row hover feedback." />
@@ -412,7 +412,7 @@ const allVariantsTemplate = `
412
412
  </UiItemGroup>
413
413
 
414
414
  <UiItemGroup class="flex flex-col gap-2">
415
- <div class="label-12-medium text-content-on-surface-secondary">Hover Action Variant</div>
415
+ <div class="label-xs-medium text-content-on-surface-secondary">Hover Action Variant</div>
416
416
  <UiItem variant="hover-action" title="Default size" description="Row hover plus action hover." />
417
417
  <UiItemSeparator />
418
418
  <UiItem variant="hover-action" size="sm" title="Small size" description="Compact row and action hover." />
@@ -470,7 +470,7 @@ export const DesignNotes: Story = {
470
470
  <section class="flex flex-col gap-8 p-4 bg-surface-secondary">
471
471
  <div>
472
472
  <h2 class="heading-m font-bold text-content-on-surface-primary">Usage</h2>
473
- <p class="body-16-regular mt-2 text-content-on-surface-primary">
473
+ <p class="body-m-regular mt-2 text-content-on-surface-primary">
474
474
  The Item component can house nearly any type of content. Use it to display a title,
475
475
  description, and actions. Group it with the ItemGroup component to create a list of items.
476
476
  Please refer to the stories for examples of different configurations.
@@ -509,10 +509,10 @@ export const Accessibility: Story = {
509
509
 
510
510
  <div class="flex flex-col gap-6">
511
511
  <div class="flex flex-col gap-2">
512
- <h3 class="body-16-medium text-content-on-surface-primary">
512
+ <h3 class="body-m-medium text-content-on-surface-primary">
513
513
  Enable accessibility theme
514
514
  </h3>
515
- <p class="body-16-regular text-content-on-surface-primary">
515
+ <p class="body-m-regular text-content-on-surface-primary">
516
516
  When accessibility is required, enable our accessibility theme. This increases contrast and makes sure there are no color contrast issues.
517
517
  </p>
518
518
  </div>
@@ -520,7 +520,7 @@ export const Accessibility: Story = {
520
520
 
521
521
  <div class="grid gap-4 md:grid-cols-2">
522
522
  <div class="flex flex-col gap-3">
523
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
523
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
524
524
  Default
525
525
  </h3>
526
526
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -533,7 +533,7 @@ export const Accessibility: Story = {
533
533
  </div>
534
534
 
535
535
  <div class="accessible-theme flex flex-col gap-3">
536
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
536
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
537
537
  Accessible
538
538
  </h3>
539
539
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -557,7 +557,7 @@ describe('UiItemTitle', () => {
557
557
  });
558
558
 
559
559
  const element = container.querySelector('[data-slot="item-title"]');
560
- expect(element).toHaveClass('body-14-medium');
560
+ expect(element).toHaveClass('body-s-medium');
561
561
  });
562
562
  });
563
563
 
@@ -645,7 +645,7 @@ describe('UiItemAction', () => {
645
645
  });
646
646
 
647
647
  const element = container.querySelector('[data-slot="item-action"]');
648
- expect(element).toHaveClass('label-12-regular');
648
+ expect(element).toHaveClass('label-xs-regular');
649
649
  expect(element).toHaveClass('text-content-on-surface-muted');
650
650
  expect(element).toHaveClass('gap-2');
651
651
  });