@aleph-alpha/ui-library 5.3.0 → 5.4.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 (124) hide show
  1. package/config.d.ts +29 -3
  2. package/config.js +91 -3
  3. package/dist/system/components/UiTooltip/UiTooltip.vue.d.ts +1 -0
  4. package/dist/system/components/UiTooltip/types.d.ts +8 -0
  5. package/dist/system/components/core/tooltip/TooltipContent.vue.d.ts +2 -0
  6. package/dist/system/lib.js +4266 -4161
  7. package/dist/system/patterns/UiDataTable/UiDataTableFilterMenu.vue.d.ts +24 -0
  8. package/dist/system/patterns/UiDataTable/constants.d.ts +10 -0
  9. package/dist/system/patterns/UiDataTable/index.d.ts +1 -0
  10. package/dist/system/patterns/UiDataTable/types.d.ts +23 -1
  11. package/dist/system/patterns/UiFloatActions/UiFloatActions.vue.d.ts +3 -1
  12. package/docs/public-docs/getting-started-designers.md +3 -1
  13. package/docs/public-docs/quick-start.md +43 -0
  14. package/package.json +1 -1
  15. package/src/components/UiAccordion/UiAccordion.stories.ts +2 -2
  16. package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +2 -2
  17. package/src/components/UiAutocomplete/UiAutocomplete.vue +6 -6
  18. package/src/components/UiBadge/UiBadge.stories.ts +9 -9
  19. package/src/components/UiButton/UiButton.stories.ts +5 -5
  20. package/src/components/UiCheckbox/UiCheckbox.stories.ts +7 -9
  21. package/src/components/UiChip/UiChip.vue +1 -1
  22. package/src/components/UiDrawer/UiDrawer.stories.ts +2 -2
  23. package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +6 -6
  24. package/src/components/UiEmpty/UiEmpty.vue +2 -2
  25. package/src/components/UiField/UiField.stories.ts +6 -6
  26. package/src/components/UiField/UiFieldLabelInfo.vue +1 -1
  27. package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +2 -2
  28. package/src/components/UiFileUploadBox/UiFileUploadBox.vue +2 -2
  29. package/src/components/UiInput/UiInput.vue +3 -3
  30. package/src/components/UiKbd/UiKbd.stories.ts +14 -14
  31. package/src/components/UiKbd/UiKbd.vue +1 -1
  32. package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +66 -66
  33. package/src/components/UiPopover/UiPopover.stories.ts +20 -20
  34. package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +24 -24
  35. package/src/components/UiResizable/UiResizable.stories.ts +15 -14
  36. package/src/components/UiSelect/UiSelect.stories.ts +1 -1
  37. package/src/components/UiSeparator/UiSeparator.stories.ts +6 -6
  38. package/src/components/UiSheet/UiSheet.stories.ts +14 -14
  39. package/src/components/UiSlider/UiSlider.stories.ts +8 -8
  40. package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
  41. package/src/components/UiSwitch/UiSwitch.stories.ts +4 -4
  42. package/src/components/UiTabs/UiTabs.stories.ts +46 -46
  43. package/src/components/UiToggle/__tests__/UiToggle.test.ts +5 -3
  44. package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +14 -14
  45. package/src/components/UiTooltip/UiTooltip.stories.ts +3 -3
  46. package/src/components/UiTooltip/UiTooltip.vue +2 -0
  47. package/src/components/UiTooltip/types.ts +9 -0
  48. package/src/components/core/accordion/AccordionContent.vue +1 -1
  49. package/src/components/core/accordion/AccordionTrigger.vue +2 -2
  50. package/src/components/core/alert/AlertDescription.vue +1 -1
  51. package/src/components/core/alert/index.ts +1 -1
  52. package/src/components/core/badge/index.ts +1 -1
  53. package/src/components/core/button/index.ts +2 -2
  54. package/src/components/core/calendar/Calendar.vue +4 -4
  55. package/src/components/core/calendar/CalendarCell.vue +1 -1
  56. package/src/components/core/calendar/CalendarCellTrigger.vue +2 -2
  57. package/src/components/core/calendar/CalendarHeadCell.vue +1 -1
  58. package/src/components/core/card/CardDescription.vue +1 -1
  59. package/src/components/core/checkbox/Checkbox.vue +1 -1
  60. package/src/components/core/drawer/DrawerDescription.vue +1 -1
  61. package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
  62. package/src/components/core/dropdown-menu/DropdownMenuItem.vue +1 -1
  63. package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -3
  64. package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
  65. package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +4 -1
  66. package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  67. package/src/components/core/field/FieldDescription.vue +1 -1
  68. package/src/components/core/field/FieldLabel.vue +1 -1
  69. package/src/components/core/field/FieldLegend.vue +2 -2
  70. package/src/components/core/field/FieldSeparator.vue +2 -2
  71. package/src/components/core/input/Input.vue +2 -2
  72. package/src/components/core/item/index.ts +1 -1
  73. package/src/components/core/kbd/Kbd.vue +1 -1
  74. package/src/components/core/label/Label.vue +1 -1
  75. package/src/components/core/listbox/ListboxFilter.vue +1 -1
  76. package/src/components/core/listbox/ListboxGroupLabel.vue +4 -1
  77. package/src/components/core/listbox/ListboxItem.vue +1 -1
  78. package/src/components/core/native-select/NativeSelect.vue +3 -3
  79. package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
  80. package/src/components/core/navigation-menu/index.ts +1 -1
  81. package/src/components/core/radio-group/RadioGroupItem.vue +1 -1
  82. package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
  83. package/src/components/core/range-calendar/RangeCalendarCellTrigger.vue +2 -2
  84. package/src/components/core/range-calendar/RangeCalendarHeadCell.vue +1 -1
  85. package/src/components/core/select/SelectItem.vue +1 -1
  86. package/src/components/core/select/SelectLabel.vue +6 -1
  87. package/src/components/core/select/SelectTrigger.vue +1 -1
  88. package/src/components/core/sheet/SheetDescription.vue +3 -1
  89. package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
  90. package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
  91. package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
  92. package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
  93. package/src/components/core/sidebar/index.ts +4 -4
  94. package/src/components/core/slider/Slider.vue +3 -3
  95. package/src/components/core/stepper/StepperDescription.vue +1 -1
  96. package/src/components/core/switch/Switch.vue +1 -1
  97. package/src/components/core/table/Table.vue +1 -1
  98. package/src/components/core/table/TableCaption.vue +3 -1
  99. package/src/components/core/table/TableEmpty.vue +1 -1
  100. package/src/components/core/tabs/TabsList.vue +1 -1
  101. package/src/components/core/tabs/TabsTrigger.vue +1 -1
  102. package/src/components/core/tags-input/TagsInput.vue +1 -1
  103. package/src/components/core/tags-input/TagsInputInput.vue +1 -1
  104. package/src/components/core/tags-input/TagsInputItem.vue +1 -1
  105. package/src/components/core/tags-input/TagsInputItemDelete.vue +1 -1
  106. package/src/components/core/textarea/Textarea.vue +1 -1
  107. package/src/components/core/toggle/index.ts +3 -3
  108. package/src/components/core/toggle-group/index.ts +2 -2
  109. package/src/components/core/tooltip/TooltipContent.vue +10 -4
  110. package/src/lib/useDrag.stories.ts +12 -12
  111. package/src/patterns/UiDataTable/UiDataTable.stories.ts +420 -10
  112. package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +1 -1
  113. package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +91 -0
  114. package/src/patterns/UiDataTable/UiDataTablePagination.vue +1 -1
  115. package/src/patterns/UiDataTable/constants.ts +12 -0
  116. package/src/patterns/UiDataTable/index.ts +1 -0
  117. package/src/patterns/UiDataTable/types.ts +24 -0
  118. package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +8 -8
  119. package/src/patterns/UiDatePicker/UiDatePicker.vue +1 -1
  120. package/src/patterns/UiFloatActions/UiFloatActionItems.vue +11 -4
  121. package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +416 -377
  122. package/src/patterns/UiFloatActions/UiFloatActions.vue +6 -2
  123. package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +2 -2
  124. package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +5 -5
@@ -67,7 +67,7 @@ const value = ref([50])
67
67
  <template>
68
68
  <div class="w-72 gap-y-3">
69
69
  <UiSlider v-model="value" :min="0" :max="100" :step="1" />
70
- <div class="text-sm text-muted-foreground">Value: {{ value[0] }}</div>
70
+ <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
71
71
  </div>
72
72
  </template>`;
73
73
 
@@ -101,7 +101,7 @@ export const Default: Story = {
101
101
  :orientation="args.orientation"
102
102
  :inverted="args.inverted"
103
103
  />
104
- <div class="text-sm text-muted-foreground">Value: {{ value }}</div>
104
+ <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value }}</div>
105
105
  </div>
106
106
  `,
107
107
  }),
@@ -120,7 +120,7 @@ const range = ref([25, 75])
120
120
  <template>
121
121
  <div class="w-72 gap-y-3">
122
122
  <UiSlider v-model="range" :min="0" :max="100" :step="1" :min-steps-between-thumbs="5" />
123
- <div class="text-sm text-muted-foreground">Range: {{ range[0] }} – {{ range[1] }}</div>
123
+ <div class="body-14-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
124
124
  </div>
125
125
  </template>`;
126
126
 
@@ -138,7 +138,7 @@ export const Range: Story = {
138
138
  template: `
139
139
  <div class="w-72 gap-y-3">
140
140
  <UiSlider v-model="range" :min="0" :max="100" :step="1" :min-steps-between-thumbs="5" />
141
- <div class="text-sm text-muted-foreground">Range: {{ range[0] }} – {{ range[1] }}</div>
141
+ <div class="body-14-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
142
142
  </div>
143
143
  `,
144
144
  }),
@@ -160,7 +160,7 @@ const value = ref([50])
160
160
  <div class="h-44">
161
161
  <UiSlider v-model="value" orientation="vertical" />
162
162
  </div>
163
- <div class="text-sm text-muted-foreground">Value: {{ value[0] }}</div>
163
+ <div class="body-14-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
164
164
  </div>
165
165
  </template>`;
166
166
 
@@ -180,7 +180,7 @@ export const Vertical: Story = {
180
180
  <div class="h-44">
181
181
  <UiSlider v-model="value" orientation="vertical" />
182
182
  </div>
183
- <div class="text-sm text-muted-foreground">Value: {{ value[0] }}</div>
183
+ <div class="body-14-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
184
184
  </div>
185
185
  `,
186
186
  }),
@@ -200,7 +200,7 @@ const value = ref([50])
200
200
  <template>
201
201
  <div class="w-72 gap-y-3">
202
202
  <UiSlider v-model="value" disabled />
203
- <div class="text-sm text-muted-foreground">Value: {{ value[0] }}</div>
203
+ <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
204
204
  </div>
205
205
  </template>`;
206
206
 
@@ -218,7 +218,7 @@ export const Disabled: Story = {
218
218
  template: `
219
219
  <div class="w-72 gap-y-3">
220
220
  <UiSlider v-model="value" disabled />
221
- <div class="text-sm text-muted-foreground">Value: {{ value[0] }}</div>
221
+ <div class="body-14-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
222
222
  </div>
223
223
  `,
224
224
  }),
@@ -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-muted-foreground text-xs">default</span>
67
+ <span class="text-content-on-surface-muted label-12-regular">default</span>
68
68
  <UiSpinner />
69
69
  </div>
70
70
  <div class="flex flex-col items-center gap-2">
71
- <span class="text-muted-foreground text-xs">size-6</span>
71
+ <span class="text-content-on-surface-muted label-12-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-muted-foreground text-xs">size-8</span>
75
+ <span class="text-content-on-surface-muted label-12-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-muted-foreground text-xs">size-12</span>
79
+ <span class="text-content-on-surface-muted label-12-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-muted-foreground text-xs">default</span>
93
+ <span class="text-content-on-surface-muted label-12-regular">default</span>
94
94
  <UiSpinner />
95
95
  </div>
96
96
  <div class="flex flex-col items-center gap-2">
97
- <span class="text-muted-foreground text-xs">size-6</span>
97
+ <span class="text-content-on-surface-muted label-12-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-muted-foreground text-xs">size-8</span>
101
+ <span class="text-content-on-surface-muted label-12-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-muted-foreground text-xs">size-12</span>
105
+ <span class="text-content-on-surface-muted label-12-regular">size-12</span>
106
106
  <UiSpinner class="size-12" />
107
107
  </div>
108
108
  </div>`,
@@ -41,7 +41,7 @@ const enabled = ref(false)
41
41
  <template>
42
42
  <div class="flex items-center gap-x-3">
43
43
  <UiSwitch id="airplane-mode" v-model="enabled" name="airplane-mode" />
44
- <label for="airplane-mode" class="text-sm font-medium">Airplane Mode</label>
44
+ <label for="airplane-mode" class="label-14-medium">Airplane Mode</label>
45
45
  </div>
46
46
  </template>`;
47
47
 
@@ -64,7 +64,7 @@ export const Default: Story = {
64
64
  template: `
65
65
  <div class="flex items-center gap-x-3">
66
66
  <UiSwitch id="airplane-mode" v-model="enabled" name="airplane-mode" :disabled="args.disabled" />
67
- <label for="airplane-mode" class="text-sm font-medium">Airplane Mode</label>
67
+ <label for="airplane-mode" class="label-14-medium">Airplane Mode</label>
68
68
  </div>
69
69
  `,
70
70
  }),
@@ -84,7 +84,7 @@ import { UiSwitch } from '@aleph-alpha/ui-library'
84
84
  <template>
85
85
  <div class="flex items-center gap-x-3">
86
86
  <UiSwitch id="airplane-mode" name="airplane-mode" disabled />
87
- <label for="airplane-mode" class="text-sm font-medium text-muted-foreground">Airplane Mode</label>
87
+ <label for="airplane-mode" class="label-14-medium text-content-on-surface-muted">Airplane Mode</label>
88
88
  </div>
89
89
  </template>`;
90
90
 
@@ -110,7 +110,7 @@ export const Disabled: Story = {
110
110
  template: `
111
111
  <div class="flex items-center gap-x-3">
112
112
  <UiSwitch id="airplane-mode" v-model="enabled" name="airplane-mode" :disabled="args.disabled" />
113
- <label for="airplane-mode" class="text-sm font-medium text-muted-foreground">Airplane Mode</label>
113
+ <label for="airplane-mode" class="label-14-medium text-content-on-surface-muted">Airplane Mode</label>
114
114
  </div>
115
115
  `,
116
116
  }),
@@ -58,20 +58,20 @@ import {
58
58
  </UiTabsList>
59
59
  <UiTabsContent value="account">
60
60
  <div class="p-4">
61
- <h3 class="text-lg font-medium">Account</h3>
62
- <p class="text-sm text-muted-foreground">Manage your account settings and preferences.</p>
61
+ <h3 class="heading-s">Account</h3>
62
+ <p class="body-14-regular text-content-on-surface-muted">Manage your account settings and preferences.</p>
63
63
  </div>
64
64
  </UiTabsContent>
65
65
  <UiTabsContent value="password">
66
66
  <div class="p-4">
67
- <h3 class="text-lg font-medium">Password</h3>
68
- <p class="text-sm text-muted-foreground">Change your password and security settings.</p>
67
+ <h3 class="heading-s">Password</h3>
68
+ <p class="body-14-regular text-content-on-surface-muted">Change your password and security settings.</p>
69
69
  </div>
70
70
  </UiTabsContent>
71
71
  <UiTabsContent value="settings">
72
72
  <div class="p-4">
73
- <h3 class="text-lg font-medium">Settings</h3>
74
- <p class="text-sm text-muted-foreground">Configure your application settings.</p>
73
+ <h3 class="heading-s">Settings</h3>
74
+ <p class="body-14-regular text-content-on-surface-muted">Configure your application settings.</p>
75
75
  </div>
76
76
  </UiTabsContent>
77
77
  </UiTabs>
@@ -107,20 +107,20 @@ export const Default: Story = {
107
107
  </UiTabsList>
108
108
  <UiTabsContent value="account">
109
109
  <div class="p-4">
110
- <h3 class="text-lg font-medium">Account</h3>
111
- <p class="text-sm text-muted-foreground">Manage your account settings and preferences.</p>
110
+ <h3 class="heading-s">Account</h3>
111
+ <p class="body-14-regular text-content-on-surface-muted">Manage your account settings and preferences.</p>
112
112
  </div>
113
113
  </UiTabsContent>
114
114
  <UiTabsContent value="password">
115
115
  <div class="p-4">
116
- <h3 class="text-lg font-medium">Password</h3>
117
- <p class="text-sm text-muted-foreground">Change your password and security settings.</p>
116
+ <h3 class="heading-s">Password</h3>
117
+ <p class="body-14-regular text-content-on-surface-muted">Change your password and security settings.</p>
118
118
  </div>
119
119
  </UiTabsContent>
120
120
  <UiTabsContent value="settings">
121
121
  <div class="p-4">
122
- <h3 class="text-lg font-medium">Settings</h3>
123
- <p class="text-sm text-muted-foreground">Configure your application settings.</p>
122
+ <h3 class="heading-s">Settings</h3>
123
+ <p class="body-14-regular text-content-on-surface-muted">Configure your application settings.</p>
124
124
  </div>
125
125
  </UiTabsContent>
126
126
  </UiTabs>
@@ -153,17 +153,17 @@ import {
153
153
  </UiTabsList>
154
154
  <UiTabsContent value="tab1">
155
155
  <div class="p-4">
156
- <p class="text-sm text-muted-foreground">Content for the first tab.</p>
156
+ <p class="body-14-regular text-content-on-surface-muted">Content for the first tab.</p>
157
157
  </div>
158
158
  </UiTabsContent>
159
159
  <UiTabsContent value="tab2">
160
160
  <div class="p-4">
161
- <p class="text-sm text-muted-foreground">This content is for the disabled tab.</p>
161
+ <p class="body-14-regular text-content-on-surface-muted">This content is for the disabled tab.</p>
162
162
  </div>
163
163
  </UiTabsContent>
164
164
  <UiTabsContent value="tab3">
165
165
  <div class="p-4">
166
- <p class="text-sm text-muted-foreground">Content for the third tab.</p>
166
+ <p class="body-14-regular text-content-on-surface-muted">Content for the third tab.</p>
167
167
  </div>
168
168
  </UiTabsContent>
169
169
  </UiTabs>
@@ -184,17 +184,17 @@ export const WithDisabledTab: Story = {
184
184
  </UiTabsList>
185
185
  <UiTabsContent value="tab1">
186
186
  <div class="p-4">
187
- <p class="text-sm text-muted-foreground">Content for the first tab.</p>
187
+ <p class="body-14-regular text-content-on-surface-muted">Content for the first tab.</p>
188
188
  </div>
189
189
  </UiTabsContent>
190
190
  <UiTabsContent value="tab2">
191
191
  <div class="p-4">
192
- <p class="text-sm text-muted-foreground">This content is for the disabled tab.</p>
192
+ <p class="body-14-regular text-content-on-surface-muted">This content is for the disabled tab.</p>
193
193
  </div>
194
194
  </UiTabsContent>
195
195
  <UiTabsContent value="tab3">
196
196
  <div class="p-4">
197
- <p class="text-sm text-muted-foreground">Content for the third tab.</p>
197
+ <p class="body-14-regular text-content-on-surface-muted">Content for the third tab.</p>
198
198
  </div>
199
199
  </UiTabsContent>
200
200
  </UiTabs>
@@ -227,20 +227,20 @@ import {
227
227
  </UiTabsList>
228
228
  <UiTabsContent value="general">
229
229
  <div class="p-4">
230
- <h3 class="text-lg font-medium">General</h3>
231
- <p class="text-sm text-muted-foreground">General settings content.</p>
230
+ <h3 class="heading-s">General</h3>
231
+ <p class="body-14-regular text-content-on-surface-muted">General settings content.</p>
232
232
  </div>
233
233
  </UiTabsContent>
234
234
  <UiTabsContent value="security">
235
235
  <div class="p-4">
236
- <h3 class="text-lg font-medium">Security</h3>
237
- <p class="text-sm text-muted-foreground">Security settings content.</p>
236
+ <h3 class="heading-s">Security</h3>
237
+ <p class="body-14-regular text-content-on-surface-muted">Security settings content.</p>
238
238
  </div>
239
239
  </UiTabsContent>
240
240
  <UiTabsContent value="notifications">
241
241
  <div class="p-4">
242
- <h3 class="text-lg font-medium">Notifications</h3>
243
- <p class="text-sm text-muted-foreground">Notification preferences content.</p>
242
+ <h3 class="heading-s">Notifications</h3>
243
+ <p class="body-14-regular text-content-on-surface-muted">Notification preferences content.</p>
244
244
  </div>
245
245
  </UiTabsContent>
246
246
  </UiTabs>
@@ -262,20 +262,20 @@ export const Vertical: Story = {
262
262
  </UiTabsList>
263
263
  <UiTabsContent value="general">
264
264
  <div class="p-4">
265
- <h3 class="text-lg font-medium">General</h3>
266
- <p class="text-sm text-muted-foreground">General settings content.</p>
265
+ <h3 class="heading-s">General</h3>
266
+ <p class="body-14-regular text-content-on-surface-muted">General settings content.</p>
267
267
  </div>
268
268
  </UiTabsContent>
269
269
  <UiTabsContent value="security">
270
270
  <div class="p-4">
271
- <h3 class="text-lg font-medium">Security</h3>
272
- <p class="text-sm text-muted-foreground">Security settings content.</p>
271
+ <h3 class="heading-s">Security</h3>
272
+ <p class="body-14-regular text-content-on-surface-muted">Security settings content.</p>
273
273
  </div>
274
274
  </UiTabsContent>
275
275
  <UiTabsContent value="notifications">
276
276
  <div class="p-4">
277
- <h3 class="text-lg font-medium">Notifications</h3>
278
- <p class="text-sm text-muted-foreground">Notification preferences content.</p>
277
+ <h3 class="heading-s">Notifications</h3>
278
+ <p class="body-14-regular text-content-on-surface-muted">Notification preferences content.</p>
279
279
  </div>
280
280
  </UiTabsContent>
281
281
  </UiTabs>
@@ -308,17 +308,17 @@ import {
308
308
  </UiTabsList>
309
309
  <UiTabsContent value="tab1">
310
310
  <div class="p-4">
311
- <p class="text-sm text-muted-foreground">Click to activate tabs (keyboard focus won't auto-switch).</p>
311
+ <p class="body-14-regular text-content-on-surface-muted">Click to activate tabs (keyboard focus won't auto-switch).</p>
312
312
  </div>
313
313
  </UiTabsContent>
314
314
  <UiTabsContent value="tab2">
315
315
  <div class="p-4">
316
- <p class="text-sm text-muted-foreground">Second tab content.</p>
316
+ <p class="body-14-regular text-content-on-surface-muted">Second tab content.</p>
317
317
  </div>
318
318
  </UiTabsContent>
319
319
  <UiTabsContent value="tab3">
320
320
  <div class="p-4">
321
- <p class="text-sm text-muted-foreground">Third tab content.</p>
321
+ <p class="body-14-regular text-content-on-surface-muted">Third tab content.</p>
322
322
  </div>
323
323
  </UiTabsContent>
324
324
  </UiTabs>
@@ -340,17 +340,17 @@ export const ManualActivation: Story = {
340
340
  </UiTabsList>
341
341
  <UiTabsContent value="tab1">
342
342
  <div class="p-4">
343
- <p class="text-sm text-muted-foreground">Click to activate tabs (keyboard focus won't auto-switch).</p>
343
+ <p class="body-14-regular text-content-on-surface-muted">Click to activate tabs (keyboard focus won't auto-switch).</p>
344
344
  </div>
345
345
  </UiTabsContent>
346
346
  <UiTabsContent value="tab2">
347
347
  <div class="p-4">
348
- <p class="text-sm text-muted-foreground">Second tab content.</p>
348
+ <p class="body-14-regular text-content-on-surface-muted">Second tab content.</p>
349
349
  </div>
350
350
  </UiTabsContent>
351
351
  <UiTabsContent value="tab3">
352
352
  <div class="p-4">
353
- <p class="text-sm text-muted-foreground">Third tab content.</p>
353
+ <p class="body-14-regular text-content-on-surface-muted">Third tab content.</p>
354
354
  </div>
355
355
  </UiTabsContent>
356
356
  </UiTabs>
@@ -384,9 +384,9 @@ function goToDetails() {
384
384
  <template>
385
385
  <div class="gap-y-4">
386
386
  <div class="flex items-center gap-4">
387
- <p class="text-sm">Current tab: <strong>{{ activeTab }}</strong></p>
387
+ <p class="body-14-regular">Current tab: <strong>{{ activeTab }}</strong></p>
388
388
  <button
389
- class="px-3 py-1 text-sm bg-primary text-primary-foreground rounded-md"
389
+ class="px-3 py-1 body-14-regular bg-primary text-primary-foreground rounded-md"
390
390
  @click="goToDetails"
391
391
  >
392
392
  Go to Details
@@ -401,17 +401,17 @@ function goToDetails() {
401
401
  </UiTabsList>
402
402
  <UiTabsContent value="overview">
403
403
  <div class="p-4">
404
- <p class="text-sm text-muted-foreground">Overview content.</p>
404
+ <p class="body-14-regular text-content-on-surface-muted">Overview content.</p>
405
405
  </div>
406
406
  </UiTabsContent>
407
407
  <UiTabsContent value="details">
408
408
  <div class="p-4">
409
- <p class="text-sm text-muted-foreground">Details content.</p>
409
+ <p class="body-14-regular text-content-on-surface-muted">Details content.</p>
410
410
  </div>
411
411
  </UiTabsContent>
412
412
  <UiTabsContent value="history">
413
413
  <div class="p-4">
414
- <p class="text-sm text-muted-foreground">History content.</p>
414
+ <p class="body-14-regular text-content-on-surface-muted">History content.</p>
415
415
  </div>
416
416
  </UiTabsContent>
417
417
  </UiTabs>
@@ -435,9 +435,9 @@ export const Controlled: Story = {
435
435
  template: `
436
436
  <div class="gap-y-4">
437
437
  <div class="flex items-center gap-4">
438
- <p class="text-sm">Current tab: <strong>{{ activeTab }}</strong></p>
438
+ <p class="body-14-regular">Current tab: <strong>{{ activeTab }}</strong></p>
439
439
  <button
440
- class="px-3 py-1 text-sm bg-primary text-primary-foreground rounded-md"
440
+ class="px-3 py-1 body-14-regular bg-primary text-primary-foreground rounded-md"
441
441
  @click="goToDetails"
442
442
  >
443
443
  Go to Details
@@ -452,17 +452,17 @@ export const Controlled: Story = {
452
452
  </UiTabsList>
453
453
  <UiTabsContent value="overview">
454
454
  <div class="p-4">
455
- <p class="text-sm text-muted-foreground">Overview content.</p>
455
+ <p class="body-14-regular text-content-on-surface-muted">Overview content.</p>
456
456
  </div>
457
457
  </UiTabsContent>
458
458
  <UiTabsContent value="details">
459
459
  <div class="p-4">
460
- <p class="text-sm text-muted-foreground">Details content.</p>
460
+ <p class="body-14-regular text-content-on-surface-muted">Details content.</p>
461
461
  </div>
462
462
  </UiTabsContent>
463
463
  <UiTabsContent value="history">
464
464
  <div class="p-4">
465
- <p class="text-sm text-muted-foreground">History content.</p>
465
+ <p class="body-14-regular text-content-on-surface-muted">History content.</p>
466
466
  </div>
467
467
  </UiTabsContent>
468
468
  </UiTabs>
@@ -79,13 +79,15 @@ describe('UiToggle', () => {
79
79
  expect(toggle).toHaveClass('border-border-button-outlined');
80
80
  expect(toggle).toHaveClass('data-[state=on]:bg-background-accent-soft');
81
81
  expect(toggle).toHaveClass('data-[state=on]:text-content-on-accent-soft');
82
- expect(toggle).toHaveClass('data-[state=on]:border-accent-default');
82
+ expect(toggle).toHaveClass('data-[state=on]:border-background-accent-soft');
83
83
  expect(toggle).toHaveClass('data-[state=open]:bg-background-accent-soft');
84
84
  expect(toggle).toHaveClass('data-[state=open]:text-content-on-accent-soft');
85
- expect(toggle).toHaveClass('data-[state=open]:border-accent-default');
85
+ expect(toggle).toHaveClass(
86
+ 'data-[state=open]:border-background-accent-soft',
87
+ );
86
88
  expect(toggle).toHaveClass('aria-pressed:bg-background-accent-soft');
87
89
  expect(toggle).toHaveClass('aria-pressed:text-content-on-accent-soft');
88
- expect(toggle).toHaveClass('aria-pressed:border-accent-default');
90
+ expect(toggle).toHaveClass('aria-pressed:border-background-accent-soft');
89
91
  });
90
92
 
91
93
  test('applies sm size classes', () => {
@@ -338,10 +338,10 @@ export const AllStates: Story = {
338
338
  template: `
339
339
  <div class="flex flex-col gap-8 w-full max-w-2xl">
340
340
  <section>
341
- <h3 class="text-lg font-semibold mb-4">Variants</h3>
341
+ <h3 class="heading-s mb-4">Variants</h3>
342
342
  <div class="flex flex-col gap-4">
343
343
  <div class="flex items-center gap-4">
344
- <span class="text-sm text-muted-foreground w-24">Default:</span>
344
+ <span class="body-14-regular text-content-on-surface-muted w-24">Default:</span>
345
345
  <UiToggleGroup v-model="multipleDefault" type="multiple">
346
346
  <UiToggleGroupItem v-for="item in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label">
347
347
  <UiIcon :name="item.icon" :size="16" />
@@ -349,7 +349,7 @@ export const AllStates: Story = {
349
349
  </UiToggleGroup>
350
350
  </div>
351
351
  <div class="flex items-center gap-4">
352
- <span class="text-sm text-muted-foreground w-24">Outline:</span>
352
+ <span class="body-14-regular text-content-on-surface-muted w-24">Outline:</span>
353
353
  <UiToggleGroup v-model="multipleOutline" type="multiple" variant="outline">
354
354
  <UiToggleGroupItem v-for="item in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label">
355
355
  <UiIcon :name="item.icon" :size="16" />
@@ -360,10 +360,10 @@ export const AllStates: Story = {
360
360
  </section>
361
361
 
362
362
  <section>
363
- <h3 class="text-lg font-semibold mb-4">Selection Types</h3>
363
+ <h3 class="heading-s mb-4">Selection Types</h3>
364
364
  <div class="flex flex-col gap-4">
365
365
  <div class="flex items-center gap-4">
366
- <span class="text-sm text-muted-foreground w-24">Single:</span>
366
+ <span class="body-14-regular text-content-on-surface-muted w-24">Single:</span>
367
367
  <UiToggleGroup v-model="singleValue" type="single" variant="outline">
368
368
  <UiToggleGroupItem v-for="item in alignmentItems" :key="item.value" :value="item.value" :aria-label="item.label">
369
369
  <UiIcon :name="item.icon" :size="16" />
@@ -371,7 +371,7 @@ export const AllStates: Story = {
371
371
  </UiToggleGroup>
372
372
  </div>
373
373
  <div class="flex items-center gap-4">
374
- <span class="text-sm text-muted-foreground w-24">Multiple:</span>
374
+ <span class="body-14-regular text-content-on-surface-muted w-24">Multiple:</span>
375
375
  <UiToggleGroup v-model="defaultSizeValue" type="multiple" variant="outline">
376
376
  <UiToggleGroupItem v-for="item in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label">
377
377
  <UiIcon :name="item.icon" :size="16" />
@@ -382,10 +382,10 @@ export const AllStates: Story = {
382
382
  </section>
383
383
 
384
384
  <section>
385
- <h3 class="text-lg font-semibold mb-4">Sizes</h3>
385
+ <h3 class="heading-s mb-4">Sizes</h3>
386
386
  <div class="flex flex-col gap-4">
387
387
  <div class="flex items-center gap-4">
388
- <span class="text-sm text-muted-foreground w-24">Small:</span>
388
+ <span class="body-14-regular text-content-on-surface-muted w-24">Small:</span>
389
389
  <UiToggleGroup v-model="smallValue" type="single" variant="outline" size="sm">
390
390
  <UiToggleGroupItem v-for="item in alignmentItems" :key="item.value" :value="item.value" :aria-label="item.label">
391
391
  <UiIcon :name="item.icon" :size="16" />
@@ -393,7 +393,7 @@ export const AllStates: Story = {
393
393
  </UiToggleGroup>
394
394
  </div>
395
395
  <div class="flex items-center gap-4">
396
- <span class="text-sm text-muted-foreground w-24">Default:</span>
396
+ <span class="body-14-regular text-content-on-surface-muted w-24">Default:</span>
397
397
  <UiToggleGroup v-model="defaultSizeValue" type="multiple" variant="outline">
398
398
  <UiToggleGroupItem v-for="item in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label">
399
399
  <UiIcon :name="item.icon" :size="16" />
@@ -401,7 +401,7 @@ export const AllStates: Story = {
401
401
  </UiToggleGroup>
402
402
  </div>
403
403
  <div class="flex items-center gap-4">
404
- <span class="text-sm text-muted-foreground w-24">Large:</span>
404
+ <span class="body-14-regular text-content-on-surface-muted w-24">Large:</span>
405
405
  <UiToggleGroup v-model="largeValue" type="multiple" variant="outline" size="lg">
406
406
  <UiToggleGroupItem v-for="item in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label">
407
407
  <UiIcon :name="item.icon" :size="16" />
@@ -412,10 +412,10 @@ export const AllStates: Story = {
412
412
  </section>
413
413
 
414
414
  <section>
415
- <h3 class="text-lg font-semibold mb-4">Disabled States</h3>
415
+ <h3 class="heading-s mb-4">Disabled States</h3>
416
416
  <div class="flex flex-col gap-4">
417
417
  <div class="flex items-center gap-4">
418
- <span class="text-sm text-muted-foreground w-24">All disabled:</span>
418
+ <span class="body-14-regular text-content-on-surface-muted w-24">All disabled:</span>
419
419
  <UiToggleGroup v-model="disabledValue" type="multiple" variant="outline" disabled>
420
420
  <UiToggleGroupItem v-for="item in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label">
421
421
  <UiIcon :name="item.icon" :size="16" />
@@ -423,7 +423,7 @@ export const AllStates: Story = {
423
423
  </UiToggleGroup>
424
424
  </div>
425
425
  <div class="flex items-center gap-4">
426
- <span class="text-sm text-muted-foreground w-24">Partial:</span>
426
+ <span class="body-14-regular text-content-on-surface-muted w-24">Partial:</span>
427
427
  <UiToggleGroup v-model="partialDisabled" type="multiple" variant="outline">
428
428
  <UiToggleGroupItem v-for="(item, index) in formattingItems" :key="item.value" :value="item.value" :aria-label="item.label" :disabled="index === 1">
429
429
  <UiIcon :name="item.icon" :size="16" />
@@ -434,7 +434,7 @@ export const AllStates: Story = {
434
434
  </section>
435
435
 
436
436
  <section>
437
- <h3 class="text-lg font-semibold mb-4">With Text Labels</h3>
437
+ <h3 class="heading-s mb-4">With Text Labels</h3>
438
438
  <UiToggleGroup v-model="singleValue" type="single" variant="outline">
439
439
  <UiToggleGroupItem v-for="item in alignmentItems" :key="item.value" :value="item.value" :aria-label="item.label">
440
440
  <UiIcon :name="item.icon" :size="16" />
@@ -282,21 +282,21 @@ import { UiButton } from '@aleph-alpha/ui-library'
282
282
  const alignmentOptionsTemplate = `
283
283
  <div class="flex flex-col gap-8 items-center p-8">
284
284
  <div class="flex flex-col items-center gap-2">
285
- <span class="label-12-regular text-muted-foreground">Align Start</span>
285
+ <span class="label-12-regular text-content-on-surface-muted">Align Start</span>
286
286
  <UiTooltip content="Aligned to the start" side="bottom" align="start">
287
287
  <UiButton>Hover me</UiButton>
288
288
  </UiTooltip>
289
289
  </div>
290
290
 
291
291
  <div class="flex flex-col items-center gap-2">
292
- <span class="label-12-regular text-muted-foreground">Align Center</span>
292
+ <span class="label-12-regular text-content-on-surface-muted">Align Center</span>
293
293
  <UiTooltip content="Aligned to the center" side="bottom" align="center">
294
294
  <UiButton>Hover me</UiButton>
295
295
  </UiTooltip>
296
296
  </div>
297
297
 
298
298
  <div class="flex flex-col items-center gap-2">
299
- <span class="label-12-regular text-muted-foreground">Align End</span>
299
+ <span class="label-12-regular text-content-on-surface-muted">Align End</span>
300
300
  <UiTooltip content="Aligned to the end" side="bottom" align="end">
301
301
  <UiButton>Hover me</UiButton>
302
302
  </UiTooltip>
@@ -20,6 +20,7 @@ const props = withDefaults(defineProps<UiTooltipProps>(), {
20
20
  class: '',
21
21
  delayDuration: 500,
22
22
  disabled: false,
23
+ to: undefined,
23
24
  });
24
25
  </script>
25
26
 
@@ -33,6 +34,7 @@ const props = withDefaults(defineProps<UiTooltipProps>(), {
33
34
  :side="props.side"
34
35
  :side-offset="props.sideOffset"
35
36
  :align="props.align"
37
+ :to="props.to"
36
38
  :class="props.class"
37
39
  >
38
40
  {{ props.content }}
@@ -49,4 +49,13 @@ export interface UiTooltipProps {
49
49
  * @default false
50
50
  */
51
51
  disabled?: boolean;
52
+
53
+ /**
54
+ * Teleport target for the tooltip content. Defaults to `<body>`.
55
+ * Pass an element when the trigger lives inside a browser top-layer element
56
+ * (e.g. a `popover`, dialog, or `UiFloatActions` panel) and set this to that
57
+ * container so the tooltip shares its top layer instead of being painted
58
+ * underneath it.
59
+ */
60
+ to?: string | HTMLElement | null;
52
61
  }
@@ -16,7 +16,7 @@ const delegatedProps = reactiveOmit(props, 'class');
16
16
  <AccordionContent
17
17
  data-slot="accordion-content"
18
18
  v-bind="delegatedProps"
19
- class="ui-accordion-content overflow-hidden text-sm"
19
+ class="ui-accordion-content overflow-hidden body-14-regular"
20
20
  >
21
21
  <div :class="cn('pt-0 pb-4', props.class)">
22
22
  <slot />
@@ -20,7 +20,7 @@ const delegatedProps = reactiveOmit(props, 'class');
20
20
  v-bind="delegatedProps"
21
21
  :class="
22
22
  cn(
23
- 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
23
+ 'ui-focus-ring flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left label-14-medium transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
24
24
  props.class,
25
25
  )
26
26
  "
@@ -30,7 +30,7 @@ const delegatedProps = reactiveOmit(props, 'class');
30
30
  <UiIcon
31
31
  name="chevron-down"
32
32
  :size="16"
33
- class="text-muted-foreground pointer-events-none shrink-0 translate-y-0.5 transition-transform duration-200"
33
+ class="text-content-on-surface-muted pointer-events-none shrink-0 translate-y-0.5 transition-transform duration-200"
34
34
  />
35
35
  </slot>
36
36
  </AccordionTrigger>