@aleph-alpha/ui-library 6.5.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 (176) hide show
  1. package/dist/system/components/core/toggle/index.d.ts +1 -1
  2. package/dist/system/lib.js +14623 -14438
  3. package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +21 -174
  4. package/dist/system/patterns/UiFloatActions/core/FloatingButton.vue.d.ts +36 -0
  5. package/dist/system/patterns/UiFloatActions/core/FloatingInput.vue.d.ts +19 -0
  6. package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +3 -1
  7. package/dist/system/patterns/UiFloatActions/types.d.ts +93 -19
  8. package/dist/system/patterns/UiLayout/layout-shell.d.ts +117 -252
  9. package/package.json +2 -2
  10. package/src/components/UiAccordion/UiAccordion.stories.ts +8 -8
  11. package/src/components/UiAlert/UiAlert.stories.ts +13 -13
  12. package/src/components/UiAlertDialog/UiAlertDialog.stories.ts +4 -4
  13. package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +13 -13
  14. package/src/components/UiAutocomplete/UiAutocomplete.vue +3 -3
  15. package/src/components/UiBadge/UiBadge.stories.ts +9 -9
  16. package/src/components/UiBreadcrumb/UiBreadcrumb.stories.ts +14 -14
  17. package/src/components/UiButton/UiButton.stories.ts +35 -35
  18. package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +6 -6
  19. package/src/components/UiCalendar/UiCalendar.stories.ts +6 -6
  20. package/src/components/UiCard/UiCard.stories.ts +6 -6
  21. package/src/components/UiCheckbox/UiCheckbox.stories.ts +30 -30
  22. package/src/components/UiChip/UiChip.stories.ts +14 -14
  23. package/src/components/UiChip/UiChip.vue +1 -1
  24. package/src/components/UiDialog/UiDialog.stories.ts +20 -20
  25. package/src/components/UiDrawer/UiDrawer.stories.ts +29 -29
  26. package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +13 -13
  27. package/src/components/UiEmpty/UiEmpty.vue +1 -1
  28. package/src/components/UiFadeMask/UiFadeMask.stories.ts +13 -13
  29. package/src/components/UiField/UiField.stories.ts +27 -27
  30. package/src/components/UiFileItem/UiFileItem.vue +4 -4
  31. package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +2 -2
  32. package/src/components/UiFileType/UiFileType.stories.ts +10 -10
  33. package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +10 -10
  34. package/src/components/UiFileUploadBox/UiFileUploadBox.vue +3 -3
  35. package/src/components/UiIcon/UiIcon.stories.ts +9 -9
  36. package/src/components/UiInput/UiInput.stories.ts +13 -13
  37. package/src/components/UiInput/UiInput.vue +1 -1
  38. package/src/components/UiInputGroup/UiInputGroup.stories.ts +10 -10
  39. package/src/components/UiItem/UiItem.stories.ts +12 -12
  40. package/src/components/UiItem/__tests__/UiItem.test.ts +2 -2
  41. package/src/components/UiKbd/UiKbd.stories.ts +18 -18
  42. package/src/components/UiKbd/UiKbd.vue +1 -1
  43. package/src/components/UiLabel/UiLabel.stories.ts +12 -12
  44. package/src/components/UiLabel/__tests__/UiLabel.test.ts +1 -1
  45. package/src/components/UiListbox/UiListbox.stories.ts +20 -20
  46. package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +94 -94
  47. package/src/components/UiPopover/UiPopover.stories.ts +35 -35
  48. package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +53 -53
  49. package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +6 -6
  50. package/src/components/UiResizable/UiResizable.stories.ts +40 -40
  51. package/src/components/UiSelect/UiSelect.stories.ts +14 -14
  52. package/src/components/UiSeparator/UiSeparator.stories.ts +16 -16
  53. package/src/components/UiSheet/UiSheet.stories.ts +29 -29
  54. package/src/components/UiSlider/UiSlider.stories.ts +28 -28
  55. package/src/components/UiSnackbar/UiSnackbar.stories.ts +6 -6
  56. package/src/components/UiSnackbar/UiSnackbar.vue +2 -2
  57. package/src/components/UiSnackbar/UiSnackbarContent.vue +2 -2
  58. package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
  59. package/src/components/UiStepper/UiStepper.stories.ts +6 -6
  60. package/src/components/UiSwitch/UiSwitch.stories.ts +37 -37
  61. package/src/components/UiTable/UiTable.stories.ts +4 -4
  62. package/src/components/UiTabs/UiTabs.stories.ts +64 -64
  63. package/src/components/UiTagsInput/UiTagsInput.stories.ts +16 -16
  64. package/src/components/UiTextarea/UiTextarea.stories.ts +20 -20
  65. package/src/components/UiToggle/UiToggle.stories.ts +26 -26
  66. package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +31 -31
  67. package/src/components/UiTooltip/UiTooltip.stories.ts +7 -7
  68. package/src/components/core/accordion/AccordionContent.vue +1 -1
  69. package/src/components/core/accordion/AccordionTrigger.vue +1 -1
  70. package/src/components/core/alert/AlertDescription.vue +1 -1
  71. package/src/components/core/alert/index.ts +1 -1
  72. package/src/components/core/alert-dialog/AlertDialogDescription.vue +1 -1
  73. package/src/components/core/badge/index.ts +2 -2
  74. package/src/components/core/button/index.ts +3 -3
  75. package/src/components/core/calendar/Calendar.vue +4 -4
  76. package/src/components/core/calendar/CalendarCell.vue +1 -1
  77. package/src/components/core/calendar/CalendarHeading.vue +1 -1
  78. package/src/components/core/card/CardDescription.vue +1 -1
  79. package/src/components/core/dialog/DialogDescription.vue +1 -1
  80. package/src/components/core/drawer/DrawerDescription.vue +1 -1
  81. package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
  82. package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -1
  83. package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
  84. package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +1 -1
  85. package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  86. package/src/components/core/field/FieldDescription.vue +1 -1
  87. package/src/components/core/field/FieldError.vue +1 -1
  88. package/src/components/core/field/FieldLabel.vue +1 -1
  89. package/src/components/core/field/FieldLegend.vue +2 -2
  90. package/src/components/core/field/FieldSeparator.vue +1 -1
  91. package/src/components/core/field/FieldTitle.vue +1 -1
  92. package/src/components/core/input/Input.vue +1 -1
  93. package/src/components/core/input-group/InputGroupText.vue +1 -1
  94. package/src/components/core/input-group/index.ts +1 -1
  95. package/src/components/core/item/ItemDescription.vue +1 -1
  96. package/src/components/core/item/ItemTitle.vue +1 -1
  97. package/src/components/core/item/index.ts +2 -2
  98. package/src/components/core/label/Label.vue +1 -1
  99. package/src/components/core/listbox/ListboxFilter.vue +1 -1
  100. package/src/components/core/listbox/ListboxGroupLabel.vue +1 -1
  101. package/src/components/core/listbox/ListboxItem.vue +1 -1
  102. package/src/components/core/native-select/NativeSelect.vue +1 -1
  103. package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
  104. package/src/components/core/navigation-menu/index.ts +1 -1
  105. package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
  106. package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
  107. package/src/components/core/select/SelectItem.vue +1 -1
  108. package/src/components/core/select/SelectLabel.vue +1 -1
  109. package/src/components/core/select/SelectTrigger.vue +1 -1
  110. package/src/components/core/sheet/SheetDescription.vue +1 -1
  111. package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
  112. package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
  113. package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
  114. package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
  115. package/src/components/core/sidebar/index.ts +4 -4
  116. package/src/components/core/stepper/StepperDescription.vue +1 -1
  117. package/src/components/core/stepper/StepperTitle.vue +1 -1
  118. package/src/components/core/table/Table.vue +1 -1
  119. package/src/components/core/table/TableCaption.vue +1 -1
  120. package/src/components/core/table/TableEmpty.vue +1 -1
  121. package/src/components/core/tabs/TabsTrigger.vue +1 -1
  122. package/src/components/core/tags-input/TagsInput.vue +1 -1
  123. package/src/components/core/tags-input/TagsInputItem.vue +1 -1
  124. package/src/components/core/textarea/Textarea.vue +1 -1
  125. package/src/components/core/toggle/index.ts +1 -1
  126. package/src/components/core/tooltip/TooltipContent.vue +1 -1
  127. package/src/directives/vHover.stories.ts +17 -17
  128. package/src/lib/useDevice.stories.ts +29 -29
  129. package/src/lib/useDrag.stories.ts +14 -14
  130. package/src/patterns/UiDataTable/UiDataTable.stories.ts +27 -27
  131. package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +2 -2
  132. package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +2 -2
  133. package/src/patterns/UiDataTable/UiDataTablePagination.vue +3 -3
  134. package/src/patterns/UiDataTable/__tests__/UiDataTableColumnFilter.test.ts +2 -2
  135. package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +14 -14
  136. package/src/patterns/UiFileUpload/UiFileItem.stories.ts +14 -14
  137. package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +6 -6
  138. package/src/patterns/UiFloatActions/UiFloatActionItems.vue +226 -76
  139. package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +1136 -116
  140. package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +187 -1
  141. package/src/patterns/UiFloatActions/core/FloatingButton.vue +83 -0
  142. package/src/patterns/UiFloatActions/core/FloatingInput.vue +53 -0
  143. package/src/patterns/UiFloatActions/floatActionItemContext.ts +3 -1
  144. package/src/patterns/UiFloatActions/types.ts +106 -19
  145. package/src/patterns/UiLayout/UiLayoutContent.stories.ts +17 -17
  146. package/src/patterns/UiLayout/UiLayoutMobile.stories.ts +4 -4
  147. package/src/patterns/UiLayout/layout-shell.ts +6 -6
  148. package/src/patterns/UiProfileCard/UiProfileCard.stories.ts +8 -8
  149. package/src/patterns/UiProfileCard/profile-card.ts +2 -2
  150. package/src/patterns/UiSidebar/UiSidebar.stories.ts +6 -6
  151. package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +1 -1
  152. package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +4 -4
  153. package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +1 -1
  154. package/src/patterns/UiSidebar/UiSidebarHeader.vue +1 -1
  155. package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +7 -7
  156. package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -4
  157. package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +4 -4
  158. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +1 -1
  159. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +1 -1
  160. package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +1 -1
  161. package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +3 -3
  162. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +1 -1
  163. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +1 -1
  164. package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +1 -1
  165. package/src/patterns/UiTopBar/UiTopBar.stories.ts +24 -24
  166. package/src/theme/Background.stories.ts +62 -62
  167. package/src/theme/Border.stories.ts +19 -19
  168. package/src/theme/BorderRadius.stories.ts +14 -14
  169. package/src/theme/Extended.stories.ts +26 -26
  170. package/src/theme/Flex.stories.ts +21 -21
  171. package/src/theme/Grid.stories.ts +19 -19
  172. package/src/theme/HoverLayer.stories.ts +26 -26
  173. package/src/theme/Overlay.stories.ts +14 -14
  174. package/src/theme/Scrollbar.stories.ts +58 -58
  175. package/src/theme/Shadow.stories.ts +5 -5
  176. package/src/theme/Theme.stories.ts +38 -38
@@ -77,7 +77,7 @@ import {
77
77
  A slide-out panel for supplementary content.
78
78
  </UiSheetDescription>
79
79
  </UiSheetHeader>
80
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
80
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
81
81
  Put any content here.
82
82
  </div>
83
83
  <UiSheetFooter>
@@ -137,7 +137,7 @@ export const Default: Story = {
137
137
  A slide-out panel for supplementary content.
138
138
  </UiSheetDescription>
139
139
  </UiSheetHeader>
140
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
140
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
141
141
  Put any content here.
142
142
  </div>
143
143
  <UiSheetFooter>
@@ -211,7 +211,7 @@ const open = ref(false)
211
211
  This sheet is controlled via v-model:open.
212
212
  </UiSheetDescription>
213
213
  </UiSheetHeader>
214
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular gap-y-3">
214
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular gap-y-3">
215
215
  <p>Click the buttons below to close programmatically.</p>
216
216
  <div class="flex gap-2 flex-wrap">
217
217
  <UiButton size="sm" @click="open = false">Close via model</UiButton>
@@ -259,7 +259,7 @@ export const Controlled: Story = {
259
259
  This sheet is controlled via v-model:open.
260
260
  </UiSheetDescription>
261
261
  </UiSheetHeader>
262
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular gap-y-3">
262
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular gap-y-3">
263
263
  <p>Click the buttons below to close programmatically.</p>
264
264
  <div class="flex gap-2 flex-wrap">
265
265
  <UiButton size="sm" @click="open = false">Close via model</UiButton>
@@ -304,7 +304,7 @@ import {
304
304
  This sheet slides in from the {{ side }}.
305
305
  </UiSheetDescription>
306
306
  </UiSheetHeader>
307
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
307
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
308
308
  Content for the {{ side }} sheet.
309
309
  </div>
310
310
  <UiSheetClose as-child>
@@ -344,7 +344,7 @@ export const SideVariants: Story = {
344
344
  This sheet slides in from the {{ side }}.
345
345
  </UiSheetDescription>
346
346
  </UiSheetHeader>
347
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
347
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
348
348
  Content for the {{ side }} sheet.
349
349
  </div>
350
350
  <UiSheetClose as-child>
@@ -377,7 +377,7 @@ import {
377
377
 
378
378
  <template>
379
379
  <div class="gap-y-4">
380
- <p class="body-14-regular text-content-on-surface-muted">
380
+ <p class="body-s-regular text-content-on-surface-muted">
381
381
  Non-modal sheet: you can still interact with the page while it is open.
382
382
  </p>
383
383
  <UiSheet :modal="false">
@@ -391,7 +391,7 @@ import {
391
391
  Outside interaction is allowed.
392
392
  </UiSheetDescription>
393
393
  </UiSheetHeader>
394
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
394
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
395
395
  Try selecting text outside the sheet.
396
396
  </div>
397
397
  <UiSheetFooter>
@@ -423,7 +423,7 @@ export const NonModal: Story = {
423
423
  },
424
424
  template: `
425
425
  <div class="gap-y-4">
426
- <p class="body-14-regular text-content-on-surface-muted">
426
+ <p class="body-s-regular text-content-on-surface-muted">
427
427
  Non-modal sheet: you can still interact with the page while it is open.
428
428
  </p>
429
429
  <UiSheet :modal="false">
@@ -437,7 +437,7 @@ export const NonModal: Story = {
437
437
  Outside interaction is allowed.
438
438
  </UiSheetDescription>
439
439
  </UiSheetHeader>
440
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
440
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
441
441
  Try selecting text outside the sheet.
442
442
  </div>
443
443
  <UiSheetFooter>
@@ -595,7 +595,7 @@ import {
595
595
  </UiSheetDescription>
596
596
  </UiSheetHeader>
597
597
  <div class="flex-1 overflow-auto px-4 py-4">
598
- <div class="gap-y-2 body-14-regular">
598
+ <div class="gap-y-2 body-s-regular">
599
599
  <p v-for="i in 30" :key="i">Item {{ i }} — Lorem ipsum dolor sit amet.</p>
600
600
  </div>
601
601
  </div>
@@ -638,7 +638,7 @@ export const LongContent: Story = {
638
638
  </UiSheetDescription>
639
639
  </UiSheetHeader>
640
640
  <div class="flex-1 overflow-auto px-4 py-4">
641
- <div class="gap-y-2 body-14-regular">
641
+ <div class="gap-y-2 body-s-regular">
642
642
  <p v-for="i in 30" :key="i">Item {{ i }} — Lorem ipsum dolor sit amet.</p>
643
643
  </div>
644
644
  </div>
@@ -686,7 +686,7 @@ const open = ref(true)
686
686
  Useful for visual regression testing.
687
687
  </UiSheetDescription>
688
688
  </UiSheetHeader>
689
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
689
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
690
690
  This sheet starts open.
691
691
  </div>
692
692
  <UiSheetFooter>
@@ -731,7 +731,7 @@ export const OpenByDefault: Story = {
731
731
  Useful for visual regression testing.
732
732
  </UiSheetDescription>
733
733
  </UiSheetHeader>
734
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
734
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
735
735
  This sheet starts open.
736
736
  </div>
737
737
  <UiSheetFooter>
@@ -822,10 +822,10 @@ export const Accessibility: Story = {
822
822
 
823
823
  <div class="flex flex-col gap-6">
824
824
  <div class="flex flex-col gap-2">
825
- <h3 class="body-16-medium text-content-on-surface-primary">
825
+ <h3 class="body-m-medium text-content-on-surface-primary">
826
826
  Always include a title
827
827
  </h3>
828
- <p class="body-16-regular text-content-on-surface-primary">
828
+ <p class="body-m-regular text-content-on-surface-primary">
829
829
  <code>UiSheetTitle</code> becomes the sheet's accessible name via
830
830
  <code>aria-labelledby</code>. Without it the panel is announced as
831
831
  an unnamed dialog, and a screen-reader user has no idea what just
@@ -834,10 +834,10 @@ export const Accessibility: Story = {
834
834
  </div>
835
835
 
836
836
  <div class="flex flex-col gap-2">
837
- <h3 class="body-16-medium text-content-on-surface-primary">
837
+ <h3 class="body-m-medium text-content-on-surface-primary">
838
838
  Describe what the sheet is for
839
839
  </h3>
840
- <p class="body-16-regular text-content-on-surface-primary">
840
+ <p class="body-m-regular text-content-on-surface-primary">
841
841
  <code>UiSheetDescription</code> is wired up as
842
842
  <code>aria-describedby</code>, so it is read straight after the
843
843
  title. Keep it to one sentence that explains the purpose rather
@@ -846,10 +846,10 @@ export const Accessibility: Story = {
846
846
  </div>
847
847
 
848
848
  <div class="flex flex-col gap-2">
849
- <h3 class="body-16-medium text-content-on-surface-primary">
849
+ <h3 class="body-m-medium text-content-on-surface-primary">
850
850
  Don't duplicate the built-in close
851
851
  </h3>
852
- <p class="body-16-regular text-content-on-surface-primary">
852
+ <p class="body-m-regular text-content-on-surface-primary">
853
853
  <code>UiSheetContent</code> already renders an X close control
854
854
  labelled <code>Close</code>. If you also add a footer
855
855
  <code>UiSheetClose</code>, give it a distinct label such as
@@ -861,10 +861,10 @@ export const Accessibility: Story = {
861
861
  </div>
862
862
 
863
863
  <div class="flex flex-col gap-2">
864
- <h3 class="body-16-medium text-content-on-surface-primary">
864
+ <h3 class="body-m-medium text-content-on-surface-primary">
865
865
  Keep every exit available
866
866
  </h3>
867
- <p class="body-16-regular text-content-on-surface-primary">
867
+ <p class="body-m-regular text-content-on-surface-primary">
868
868
  A modal sheet traps focus, so it must always offer a way out. It
869
869
  can be dismissed with <code>Escape</code>, by clicking the
870
870
  overlay, or with either close control — and focus returns to the
@@ -873,10 +873,10 @@ export const Accessibility: Story = {
873
873
  </div>
874
874
 
875
875
  <div class="flex flex-col gap-2">
876
- <h3 class="body-16-medium text-content-on-surface-primary">
876
+ <h3 class="body-m-medium text-content-on-surface-primary">
877
877
  Enable accessibility theme
878
878
  </h3>
879
- <p class="body-16-regular text-content-on-surface-primary">
879
+ <p class="body-m-regular text-content-on-surface-primary">
880
880
  When accessibility is required, enable our accessibility theme.
881
881
  This increases contrast and makes sure there are no color
882
882
  contrast issues.
@@ -886,7 +886,7 @@ export const Accessibility: Story = {
886
886
 
887
887
  <div class="grid gap-4 md:grid-cols-2">
888
888
  <div class="flex flex-col gap-3">
889
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
889
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
890
890
  Default
891
891
  </h3>
892
892
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -901,7 +901,7 @@ export const Accessibility: Story = {
901
901
  A slide-out panel for supplementary content.
902
902
  </UiSheetDescription>
903
903
  </UiSheetHeader>
904
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
904
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
905
905
  Put any content here.
906
906
  </div>
907
907
  <UiSheetFooter>
@@ -915,7 +915,7 @@ export const Accessibility: Story = {
915
915
  </div>
916
916
 
917
917
  <div class="accessible-theme flex flex-col gap-3">
918
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
918
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
919
919
  Accessible
920
920
  </h3>
921
921
  <div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
@@ -930,7 +930,7 @@ export const Accessibility: Story = {
930
930
  A slide-out panel for supplementary content.
931
931
  </UiSheetDescription>
932
932
  </UiSheetHeader>
933
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
933
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
934
934
  Put any content here.
935
935
  </div>
936
936
  <UiSheetFooter>
@@ -1075,7 +1075,7 @@ function renderTestSheet() {
1075
1075
  A slide-out panel for supplementary content.
1076
1076
  </UiSheetDescription>
1077
1077
  </UiSheetHeader>
1078
- <div class="flex-1 overflow-auto px-4 py-4 body-14-regular">
1078
+ <div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
1079
1079
  Put any content here.
1080
1080
  </div>
1081
1081
  <UiSheetFooter>
@@ -81,7 +81,7 @@ const value = ref([50])
81
81
  <template>
82
82
  <div class="w-72 gap-y-3">
83
83
  <UiSlider v-model="value" :min="0" :max="100" :step="1" />
84
- <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
84
+ <div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
85
85
  </div>
86
86
  </template>`;
87
87
 
@@ -115,7 +115,7 @@ export const Default: Story = {
115
115
  :orientation="args.orientation"
116
116
  :inverted="args.inverted"
117
117
  />
118
- <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value }}</div>
118
+ <div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value }}</div>
119
119
  </div>
120
120
  `,
121
121
  }),
@@ -165,7 +165,7 @@ const range = ref([25, 75])
165
165
  <template>
166
166
  <div class="w-72 gap-y-3">
167
167
  <UiSlider v-model="range" :min="0" :max="100" :step="1" :min-steps-between-thumbs="5" />
168
- <div class="body-14-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
168
+ <div class="body-s-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
169
169
  </div>
170
170
  </template>`;
171
171
 
@@ -183,7 +183,7 @@ export const Range: Story = {
183
183
  template: `
184
184
  <div class="w-72 gap-y-3">
185
185
  <UiSlider v-model="range" :min="0" :max="100" :step="1" :min-steps-between-thumbs="5" />
186
- <div class="body-14-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
186
+ <div class="body-s-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
187
187
  </div>
188
188
  `,
189
189
  }),
@@ -233,7 +233,7 @@ const value = ref([50])
233
233
  <div class="h-44">
234
234
  <UiSlider v-model="value" orientation="vertical" />
235
235
  </div>
236
- <div class="body-14-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
236
+ <div class="body-s-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
237
237
  </div>
238
238
  </template>`;
239
239
 
@@ -253,7 +253,7 @@ export const Vertical: Story = {
253
253
  <div class="h-44">
254
254
  <UiSlider v-model="value" orientation="vertical" />
255
255
  </div>
256
- <div class="body-14-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
256
+ <div class="body-s-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
257
257
  </div>
258
258
  `,
259
259
  }),
@@ -287,7 +287,7 @@ const value = ref([50])
287
287
  <template>
288
288
  <div class="w-72 gap-y-3">
289
289
  <UiSlider v-model="value" disabled />
290
- <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
290
+ <div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
291
291
  </div>
292
292
  </template>`;
293
293
 
@@ -305,7 +305,7 @@ export const Disabled: Story = {
305
305
  template: `
306
306
  <div class="w-72 gap-y-3">
307
307
  <UiSlider v-model="value" disabled />
308
- <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
308
+ <div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
309
309
  </div>
310
310
  `,
311
311
  }),
@@ -369,10 +369,10 @@ export const Accessibility: Story = {
369
369
 
370
370
  <div class="flex flex-col gap-6">
371
371
  <div class="flex flex-col gap-2">
372
- <h3 class="body-16-medium text-content-on-surface-primary">
372
+ <h3 class="body-m-medium text-content-on-surface-primary">
373
373
  Label what the slider controls
374
374
  </h3>
375
- <p class="body-16-regular text-content-on-surface-primary">
375
+ <p class="body-m-regular text-content-on-surface-primary">
376
376
  Each handle is announced as a slider named <code>Value</code>
377
377
  (<code>Value 1</code> / <code>Value 2</code> for a range), which
378
378
  says nothing about what is being adjusted. Put a visible heading
@@ -382,10 +382,10 @@ export const Accessibility: Story = {
382
382
  </div>
383
383
 
384
384
  <div class="flex flex-col gap-2">
385
- <h3 class="body-16-medium text-content-on-surface-primary">
385
+ <h3 class="body-m-medium text-content-on-surface-primary">
386
386
  Show the current value as text
387
387
  </h3>
388
- <p class="body-16-regular text-content-on-surface-primary">
388
+ <p class="body-m-regular text-content-on-surface-primary">
389
389
  Handle position alone is not perceivable for everyone. Render the
390
390
  value next to the slider so it can be read, magnified, and
391
391
  translated — the same number assistive technology gets from
@@ -394,10 +394,10 @@ export const Accessibility: Story = {
394
394
  </div>
395
395
 
396
396
  <div class="flex flex-col gap-2">
397
- <h3 class="body-16-medium text-content-on-surface-primary">
397
+ <h3 class="body-m-medium text-content-on-surface-primary">
398
398
  Keep it keyboard operable
399
399
  </h3>
400
- <p class="body-16-regular text-content-on-surface-primary">
400
+ <p class="body-m-regular text-content-on-surface-primary">
401
401
  Every handle is a Tab stop and moves with the arrow keys.
402
402
  <code>Home</code> and <code>End</code> jump to the minimum and
403
403
  maximum, and <code>Page Up</code> / <code>Page Down</code> (or
@@ -407,10 +407,10 @@ export const Accessibility: Story = {
407
407
  </div>
408
408
 
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
  Give small handles room
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
  The handle is smaller than the 24px minimum target size, so it
415
415
  relies on the WCAG 2.5.8 spacing exception: keep other controls
416
416
  at least 24px away, and don't crowd several sliders together.
@@ -418,10 +418,10 @@ export const Accessibility: Story = {
418
418
  </div>
419
419
 
420
420
  <div class="flex flex-col gap-2">
421
- <h3 class="body-16-medium text-content-on-surface-primary">
421
+ <h3 class="body-m-medium text-content-on-surface-primary">
422
422
  Enable accessibility theme
423
423
  </h3>
424
- <p class="body-16-regular text-content-on-surface-primary">
424
+ <p class="body-m-regular text-content-on-surface-primary">
425
425
  When accessibility is required, enable our accessibility theme.
426
426
  This increases contrast and makes sure there are no color
427
427
  contrast issues.
@@ -431,28 +431,28 @@ export const Accessibility: Story = {
431
431
 
432
432
  <div class="grid gap-4 md:grid-cols-2">
433
433
  <div class="flex flex-col gap-3">
434
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
434
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
435
435
  Default
436
436
  </h3>
437
437
  <div class="flex min-h-20 flex-col justify-center border border-border-surface-default p-6">
438
- <p class="label-14-medium text-content-on-surface-primary">Volume</p>
438
+ <p class="label-s-medium text-content-on-surface-primary">Volume</p>
439
439
  <div class="my-3">
440
440
  <UiSlider v-model="defaultValue" />
441
441
  </div>
442
- <p class="body-14-regular text-content-on-surface-muted">Value: {{ defaultValue[0] }}</p>
442
+ <p class="body-s-regular text-content-on-surface-muted">Value: {{ defaultValue[0] }}</p>
443
443
  </div>
444
444
  </div>
445
445
 
446
446
  <div class="accessible-theme flex flex-col gap-3">
447
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
447
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
448
448
  Accessible
449
449
  </h3>
450
450
  <div class="flex min-h-20 flex-col justify-center border border-border-surface-default p-6">
451
- <p class="label-14-medium text-content-on-surface-primary">Volume</p>
451
+ <p class="label-s-medium text-content-on-surface-primary">Volume</p>
452
452
  <div class="my-3">
453
453
  <UiSlider v-model="accessibleValue" />
454
454
  </div>
455
- <p class="body-14-regular text-content-on-surface-muted">Value: {{ accessibleValue[0] }}</p>
455
+ <p class="body-s-regular text-content-on-surface-muted">Value: {{ accessibleValue[0] }}</p>
456
456
  </div>
457
457
  </div>
458
458
  </div>
@@ -517,7 +517,7 @@ function renderControlledSlider(step = 5) {
517
517
  },
518
518
  template: `
519
519
  <div class="w-full max-w-72">
520
- <p class="label-14-medium text-content-on-surface-primary">Volume</p>
520
+ <p class="label-s-medium text-content-on-surface-primary">Volume</p>
521
521
  <div class="my-3">
522
522
  <UiSlider
523
523
  :model-value="value"
@@ -528,7 +528,7 @@ function renderControlledSlider(step = 5) {
528
528
  @value-commit="onValueCommit"
529
529
  />
530
530
  </div>
531
- <p class="body-14-regular text-content-on-surface-muted">Value: {{ value[0] }}</p>
531
+ <p class="body-s-regular text-content-on-surface-muted">Value: {{ value[0] }}</p>
532
532
  </div>
533
533
  `,
534
534
  };
@@ -661,7 +661,7 @@ export const KeyboardRangeNavigation: Story = {
661
661
  },
662
662
  template: `
663
663
  <div class="w-full max-w-72">
664
- <p class="label-14-medium text-content-on-surface-primary">Price range</p>
664
+ <p class="label-s-medium text-content-on-surface-primary">Price range</p>
665
665
  <div class="my-3">
666
666
  <UiSlider
667
667
  :model-value="range"
@@ -672,7 +672,7 @@ export const KeyboardRangeNavigation: Story = {
672
672
  @update:model-value="update"
673
673
  />
674
674
  </div>
675
- <p class="body-14-regular text-content-on-surface-muted">Range: {{ range[0] }} – {{ range[1] }}</p>
675
+ <p class="body-s-regular text-content-on-surface-muted">Range: {{ range[0] }} – {{ range[1] }}</p>
676
676
  </div>
677
677
  `,
678
678
  }),
@@ -1053,10 +1053,10 @@ export const Accessibility: Story = {
1053
1053
  </h2>
1054
1054
 
1055
1055
  <div class="flex flex-col gap-2">
1056
- <h3 class="body-16-medium text-content-on-surface-primary">
1056
+ <h3 class="body-m-medium text-content-on-surface-primary">
1057
1057
  Requirements
1058
1058
  </h3>
1059
- <ul class="body-16-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
1059
+ <ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
1060
1060
  <li>The outcome is carried by the icon and the words, so colour is never the only signal</li>
1061
1061
  <li>Success, error and warning are distinguishable by icon shape, not only by hue</li>
1062
1062
  <li>Text holds contrast against the snackbar's own surface, which sits over arbitrary content</li>
@@ -1067,10 +1067,10 @@ export const Accessibility: Story = {
1067
1067
  </div>
1068
1068
 
1069
1069
  <div class="flex flex-col gap-2">
1070
- <h3 class="body-16-medium text-content-on-surface-primary">
1070
+ <h3 class="body-m-medium text-content-on-surface-primary">
1071
1071
  Enable accessibility theme
1072
1072
  </h3>
1073
- <p class="body-16-regular text-content-on-surface-primary">
1073
+ <p class="body-m-regular text-content-on-surface-primary">
1074
1074
  When accessibility is required, enable our accessibility theme.
1075
1075
  This increases contrast and ensures there are no color contrast
1076
1076
  issues.
@@ -1079,7 +1079,7 @@ export const Accessibility: Story = {
1079
1079
 
1080
1080
  <div class="grid gap-4 md:grid-cols-2">
1081
1081
  <div class="flex flex-col gap-3">
1082
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
1082
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
1083
1083
  Default
1084
1084
  </h3>
1085
1085
  <div class="flex justify-center border border-border-surface-default p-6">
@@ -1097,7 +1097,7 @@ export const Accessibility: Story = {
1097
1097
  </div>
1098
1098
 
1099
1099
  <div class="accessible-theme flex flex-col gap-3">
1100
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
1100
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
1101
1101
  Accessible
1102
1102
  </h3>
1103
1103
  <div class="flex justify-center border border-border-surface-default p-6">
@@ -19,8 +19,8 @@ const toasterProps = computed(() => ({
19
19
  toastOptions: {
20
20
  ...props.toastOptions,
21
21
  classes: {
22
- title: 'body-14-medium text-content-on-surface-primary',
23
- description: 'body-14-regular text-content-on-surface-muted',
22
+ title: 'body-s-medium text-content-on-surface-primary',
23
+ description: 'body-s-regular text-content-on-surface-muted',
24
24
  ...props.toastOptions?.classes,
25
25
  },
26
26
  },
@@ -66,14 +66,14 @@ const showCloseButton = computed(
66
66
 
67
67
  <div class="flex min-w-0 flex-1 flex-col gap-1">
68
68
  <p
69
- class="body-14-medium text-content-on-surface-primary"
69
+ class="body-s-medium text-content-on-surface-primary"
70
70
  data-slot="snackbar-title"
71
71
  >
72
72
  {{ props.title }}
73
73
  </p>
74
74
  <p
75
75
  v-if="props.description || $slots.description"
76
- class="body-14-regular text-content-on-surface-muted"
76
+ class="body-s-regular text-content-on-surface-muted"
77
77
  data-slot="snackbar-description"
78
78
  >
79
79
  <slot name="description">{{ props.description }}</slot>
@@ -64,19 +64,19 @@ import { UiSpinner } from '@aleph-alpha/ui-library'
64
64
  <template>
65
65
  <div class="flex items-end gap-6">
66
66
  <div class="flex flex-col items-center gap-2">
67
- <span class="text-content-on-surface-muted label-12-regular">default</span>
67
+ <span class="text-content-on-surface-muted label-xs-regular">default</span>
68
68
  <UiSpinner />
69
69
  </div>
70
70
  <div class="flex flex-col items-center gap-2">
71
- <span class="text-content-on-surface-muted label-12-regular">size-6</span>
71
+ <span class="text-content-on-surface-muted label-xs-regular">size-6</span>
72
72
  <UiSpinner class="size-6" />
73
73
  </div>
74
74
  <div class="flex flex-col items-center gap-2">
75
- <span class="text-content-on-surface-muted label-12-regular">size-8</span>
75
+ <span class="text-content-on-surface-muted label-xs-regular">size-8</span>
76
76
  <UiSpinner class="size-8" />
77
77
  </div>
78
78
  <div class="flex flex-col items-center gap-2">
79
- <span class="text-content-on-surface-muted label-12-regular">size-12</span>
79
+ <span class="text-content-on-surface-muted label-xs-regular">size-12</span>
80
80
  <UiSpinner class="size-12" />
81
81
  </div>
82
82
  </div>
@@ -90,19 +90,19 @@ export const Sizes: Story = {
90
90
  components: { UiSpinner },
91
91
  template: `<div class="flex items-end gap-6">
92
92
  <div class="flex flex-col items-center gap-2">
93
- <span class="text-content-on-surface-muted label-12-regular">default</span>
93
+ <span class="text-content-on-surface-muted label-xs-regular">default</span>
94
94
  <UiSpinner />
95
95
  </div>
96
96
  <div class="flex flex-col items-center gap-2">
97
- <span class="text-content-on-surface-muted label-12-regular">size-6</span>
97
+ <span class="text-content-on-surface-muted label-xs-regular">size-6</span>
98
98
  <UiSpinner class="size-6" />
99
99
  </div>
100
100
  <div class="flex flex-col items-center gap-2">
101
- <span class="text-content-on-surface-muted label-12-regular">size-8</span>
101
+ <span class="text-content-on-surface-muted label-xs-regular">size-8</span>
102
102
  <UiSpinner class="size-8" />
103
103
  </div>
104
104
  <div class="flex flex-col items-center gap-2">
105
- <span class="text-content-on-surface-muted label-12-regular">size-12</span>
105
+ <span class="text-content-on-surface-muted label-xs-regular">size-12</span>
106
106
  <UiSpinner class="size-12" />
107
107
  </div>
108
108
  </div>`,
@@ -501,10 +501,10 @@ export const Accessibility: Story = {
501
501
  </h2>
502
502
 
503
503
  <div class="flex flex-col gap-2">
504
- <h3 class="body-16-medium text-content-on-surface-primary">
504
+ <h3 class="body-m-medium text-content-on-surface-primary">
505
505
  Requirements
506
506
  </h3>
507
- <ul class="body-16-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
507
+ <ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
508
508
  <li>Complete, active and pending differ in shape and weight, not colour alone</li>
509
509
  <li>The complete state carries a mark, such as a tick, rather than only a fill change</li>
510
510
  <li>Labels stay legible at the sm size and when they wrap</li>
@@ -517,10 +517,10 @@ export const Accessibility: Story = {
517
517
  </div>
518
518
 
519
519
  <div class="flex flex-col gap-2">
520
- <h3 class="body-16-medium text-content-on-surface-primary">
520
+ <h3 class="body-m-medium text-content-on-surface-primary">
521
521
  Enable accessibility theme
522
522
  </h3>
523
- <p class="body-16-regular text-content-on-surface-primary">
523
+ <p class="body-m-regular text-content-on-surface-primary">
524
524
  When accessibility is required, enable our accessibility theme.
525
525
  This increases contrast and ensures there are no color contrast
526
526
  issues.
@@ -529,7 +529,7 @@ export const Accessibility: Story = {
529
529
 
530
530
  <div class="grid gap-4 md:grid-cols-2">
531
531
  <div class="flex flex-col gap-3">
532
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
532
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
533
533
  Default
534
534
  </h3>
535
535
  <div class="flex justify-center border border-border-surface-default p-6">
@@ -556,7 +556,7 @@ export const Accessibility: Story = {
556
556
  </div>
557
557
 
558
558
  <div class="accessible-theme flex flex-col gap-3">
559
- <h3 class="label-16-medium text-center text-content-on-surface-primary">
559
+ <h3 class="label-m-medium text-center text-content-on-surface-primary">
560
560
  Accessible
561
561
  </h3>
562
562
  <div class="flex justify-center border border-border-surface-default p-6">