@aleph-alpha/ui-library 5.2.0 → 5.3.1

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 (98) hide show
  1. package/dist/system/components/UiTooltip/UiTooltip.vue.d.ts +1 -0
  2. package/dist/system/components/UiTooltip/types.d.ts +8 -0
  3. package/dist/system/components/core/tooltip/TooltipContent.vue.d.ts +2 -0
  4. package/dist/system/index.d.ts +1 -0
  5. package/dist/system/lib/useAnchorFloat.d.ts +143 -0
  6. package/dist/system/lib.js +18787 -18280
  7. package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +35 -0
  8. package/dist/system/patterns/UiFloatActions/UiFloatActions.vue.d.ts +45 -0
  9. package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +16 -0
  10. package/dist/system/patterns/UiFloatActions/index.d.ts +3 -0
  11. package/dist/system/patterns/UiFloatActions/types.d.ts +127 -0
  12. package/dist/system/patterns/index.d.ts +1 -0
  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 +3 -3
  18. package/src/components/UiBadge/UiBadge.stories.ts +9 -9
  19. package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +4 -4
  20. package/src/components/UiField/UiField.stories.ts +6 -6
  21. package/src/components/UiInput/UiInput.vue +1 -1
  22. package/src/components/UiKbd/UiKbd.stories.ts +3 -3
  23. package/src/components/UiKbd/UiKbd.vue +1 -1
  24. package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +28 -28
  25. package/src/components/UiPopover/UiPopover.stories.ts +20 -20
  26. package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +24 -24
  27. package/src/components/UiResizable/UiResizable.stories.ts +14 -14
  28. package/src/components/UiSelect/UiSelect.stories.ts +1 -1
  29. package/src/components/UiSheet/UiSheet.stories.ts +14 -14
  30. package/src/components/UiSlider/UiSlider.stories.ts +8 -8
  31. package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
  32. package/src/components/UiSwitch/UiSwitch.stories.ts +4 -4
  33. package/src/components/UiTabs/UiTabs.stories.ts +46 -46
  34. package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +14 -14
  35. package/src/components/UiTooltip/UiTooltip.vue +2 -0
  36. package/src/components/UiTooltip/types.ts +9 -0
  37. package/src/components/core/accordion/AccordionContent.vue +1 -1
  38. package/src/components/core/accordion/AccordionTrigger.vue +1 -1
  39. package/src/components/core/alert/AlertDescription.vue +1 -1
  40. package/src/components/core/alert/index.ts +1 -1
  41. package/src/components/core/calendar/Calendar.vue +4 -4
  42. package/src/components/core/calendar/CalendarCell.vue +1 -1
  43. package/src/components/core/drawer/DrawerDescription.vue +1 -1
  44. package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
  45. package/src/components/core/dropdown-menu/DropdownMenuItem.vue +1 -1
  46. package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -3
  47. package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
  48. package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +4 -1
  49. package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  50. package/src/components/core/field/FieldDescription.vue +1 -1
  51. package/src/components/core/field/FieldLegend.vue +2 -2
  52. package/src/components/core/field/FieldSeparator.vue +1 -1
  53. package/src/components/core/input/Input.vue +1 -1
  54. package/src/components/core/item/index.ts +1 -1
  55. package/src/components/core/label/Label.vue +1 -1
  56. package/src/components/core/listbox/ListboxFilter.vue +1 -1
  57. package/src/components/core/listbox/ListboxGroupLabel.vue +1 -1
  58. package/src/components/core/listbox/ListboxItem.vue +1 -1
  59. package/src/components/core/native-select/NativeSelect.vue +1 -1
  60. package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
  61. package/src/components/core/navigation-menu/index.ts +1 -1
  62. package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
  63. package/src/components/core/select/SelectItem.vue +1 -1
  64. package/src/components/core/select/SelectLabel.vue +3 -1
  65. package/src/components/core/select/SelectTrigger.vue +1 -1
  66. package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
  67. package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
  68. package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
  69. package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
  70. package/src/components/core/sidebar/index.ts +4 -4
  71. package/src/components/core/slider/Slider.vue +3 -3
  72. package/src/components/core/stepper/StepperDescription.vue +1 -1
  73. package/src/components/core/table/Table.vue +1 -1
  74. package/src/components/core/table/TableEmpty.vue +1 -1
  75. package/src/components/core/tabs/TabsTrigger.vue +1 -1
  76. package/src/components/core/tags-input/TagsInput.vue +1 -1
  77. package/src/components/core/tags-input/TagsInputItem.vue +1 -1
  78. package/src/components/core/textarea/Textarea.vue +1 -1
  79. package/src/components/core/toggle/index.ts +1 -1
  80. package/src/components/core/toggle-group/index.ts +1 -1
  81. package/src/components/core/tooltip/TooltipContent.vue +10 -4
  82. package/src/index.ts +1 -0
  83. package/src/lib/useAnchorFloat.test.ts +166 -0
  84. package/src/lib/useAnchorFloat.ts +437 -0
  85. package/src/lib/useDrag.stories.ts +12 -12
  86. package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +8 -8
  87. package/src/patterns/UiFloatActions/UiFloatActionItems.vue +327 -0
  88. package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +900 -0
  89. package/src/patterns/UiFloatActions/UiFloatActions.vue +224 -0
  90. package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +104 -0
  91. package/src/patterns/UiFloatActions/__tests__/UiFloatActions.a11y.test.ts +152 -0
  92. package/src/patterns/UiFloatActions/__tests__/UiFloatActions.test.ts +86 -0
  93. package/src/patterns/UiFloatActions/floatActionItemContext.ts +20 -0
  94. package/src/patterns/UiFloatActions/index.ts +3 -0
  95. package/src/patterns/UiFloatActions/types.ts +155 -0
  96. package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +2 -2
  97. package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +3 -3
  98. package/src/patterns/index.ts +1 -0
@@ -595,30 +595,30 @@ const value = ref('')
595
595
  <UiNavigationMenuContent>
596
596
  <div class="grid gap-3 p-6 w-[600px] grid-cols-[.75fr_1fr]">
597
597
  <div class="row-span-3 rounded-md bg-gradient-to-b from-muted/50 to-muted p-6">
598
- <div class="mb-2 text-lg font-medium">Featured</div>
599
- <p class="text-sm text-muted-foreground mb-4">
598
+ <div class="mb-2 heading-s">Featured</div>
599
+ <p class="body-14-regular text-muted-foreground mb-4">
600
600
  Our most popular product with advanced features and integrations.
601
601
  </p>
602
- <UiNavigationMenuLink href="#" class="text-sm font-medium text-primary hover:underline">
602
+ <UiNavigationMenuLink href="#" class="label-14-medium text-primary hover:underline">
603
603
  Learn more
604
604
  </UiNavigationMenuLink>
605
605
  </div>
606
606
  <ul class="grid gap-3">
607
607
  <li>
608
608
  <UiNavigationMenuLink href="#">
609
- <div class="text-sm font-medium">Analytics Platform</div>
609
+ <div class="label-14-medium">Analytics Platform</div>
610
610
  <p class="body-14-regular text-muted-foreground">Real-time insights and reporting</p>
611
611
  </UiNavigationMenuLink>
612
612
  </li>
613
613
  <li>
614
614
  <UiNavigationMenuLink href="#">
615
- <div class="text-sm font-medium">Automation Suite</div>
615
+ <div class="label-14-medium">Automation Suite</div>
616
616
  <p class="body-14-regular text-muted-foreground">Workflow automation tools</p>
617
617
  </UiNavigationMenuLink>
618
618
  </li>
619
619
  <li>
620
620
  <UiNavigationMenuLink href="#">
621
- <div class="text-sm font-medium">Developer API</div>
621
+ <div class="label-14-medium">Developer API</div>
622
622
  <p class="body-14-regular text-muted-foreground">Build custom integrations</p>
623
623
  </UiNavigationMenuLink>
624
624
  </li>
@@ -633,25 +633,25 @@ const value = ref('')
633
633
  <ul class="grid w-[500px] gap-3 p-4 grid-cols-2">
634
634
  <li>
635
635
  <UiNavigationMenuLink href="#">
636
- <div class="text-sm font-medium">Documentation</div>
636
+ <div class="label-14-medium">Documentation</div>
637
637
  <p class="body-14-regular text-muted-foreground">Guides and API reference</p>
638
638
  </UiNavigationMenuLink>
639
639
  </li>
640
640
  <li>
641
641
  <UiNavigationMenuLink href="#">
642
- <div class="text-sm font-medium">Blog</div>
642
+ <div class="label-14-medium">Blog</div>
643
643
  <p class="body-14-regular text-muted-foreground">Latest news and updates</p>
644
644
  </UiNavigationMenuLink>
645
645
  </li>
646
646
  <li>
647
647
  <UiNavigationMenuLink href="#">
648
- <div class="text-sm font-medium">Community</div>
648
+ <div class="label-14-medium">Community</div>
649
649
  <p class="body-14-regular text-muted-foreground">Join the discussion</p>
650
650
  </UiNavigationMenuLink>
651
651
  </li>
652
652
  <li>
653
653
  <UiNavigationMenuLink href="#">
654
- <div class="text-sm font-medium">Support</div>
654
+ <div class="label-14-medium">Support</div>
655
655
  <p class="body-14-regular text-muted-foreground">Get help from our team</p>
656
656
  </UiNavigationMenuLink>
657
657
  </li>
@@ -696,30 +696,30 @@ export const WithCustomContent: Story = {
696
696
  <UiNavigationMenuContent>
697
697
  <div class="grid gap-3 p-6 w-[600px] grid-cols-[.75fr_1fr]">
698
698
  <div class="row-span-3 rounded-md bg-gradient-to-b from-muted/50 to-muted p-6">
699
- <div class="mb-2 text-lg font-medium">Featured</div>
700
- <p class="text-sm text-muted-foreground mb-4">
699
+ <div class="mb-2 heading-s">Featured</div>
700
+ <p class="body-14-regular text-muted-foreground mb-4">
701
701
  Our most popular product with advanced features and integrations.
702
702
  </p>
703
- <UiNavigationMenuLink href="#" class="text-sm font-medium text-primary hover:underline">
703
+ <UiNavigationMenuLink href="#" class="label-14-medium text-primary hover:underline">
704
704
  Learn more
705
705
  </UiNavigationMenuLink>
706
706
  </div>
707
707
  <ul class="grid gap-3">
708
708
  <li>
709
709
  <UiNavigationMenuLink href="#">
710
- <div class="text-sm font-medium">Analytics Platform</div>
710
+ <div class="label-14-medium">Analytics Platform</div>
711
711
  <p class="body-14-regular text-muted-foreground">Real-time insights and reporting</p>
712
712
  </UiNavigationMenuLink>
713
713
  </li>
714
714
  <li>
715
715
  <UiNavigationMenuLink href="#">
716
- <div class="text-sm font-medium">Automation Suite</div>
716
+ <div class="label-14-medium">Automation Suite</div>
717
717
  <p class="body-14-regular text-muted-foreground">Workflow automation tools</p>
718
718
  </UiNavigationMenuLink>
719
719
  </li>
720
720
  <li>
721
721
  <UiNavigationMenuLink href="#">
722
- <div class="text-sm font-medium">Developer API</div>
722
+ <div class="label-14-medium">Developer API</div>
723
723
  <p class="body-14-regular text-muted-foreground">Build custom integrations</p>
724
724
  </UiNavigationMenuLink>
725
725
  </li>
@@ -734,25 +734,25 @@ export const WithCustomContent: Story = {
734
734
  <ul class="grid w-[500px] gap-3 p-4 grid-cols-2">
735
735
  <li>
736
736
  <UiNavigationMenuLink href="#">
737
- <div class="text-sm font-medium">Documentation</div>
737
+ <div class="label-14-medium">Documentation</div>
738
738
  <p class="body-14-regular text-muted-foreground">Guides and API reference</p>
739
739
  </UiNavigationMenuLink>
740
740
  </li>
741
741
  <li>
742
742
  <UiNavigationMenuLink href="#">
743
- <div class="text-sm font-medium">Blog</div>
743
+ <div class="label-14-medium">Blog</div>
744
744
  <p class="body-14-regular text-muted-foreground">Latest news and updates</p>
745
745
  </UiNavigationMenuLink>
746
746
  </li>
747
747
  <li>
748
748
  <UiNavigationMenuLink href="#">
749
- <div class="text-sm font-medium">Community</div>
749
+ <div class="label-14-medium">Community</div>
750
750
  <p class="body-14-regular text-muted-foreground">Join the discussion</p>
751
751
  </UiNavigationMenuLink>
752
752
  </li>
753
753
  <li>
754
754
  <UiNavigationMenuLink href="#">
755
- <div class="text-sm font-medium">Support</div>
755
+ <div class="label-14-medium">Support</div>
756
756
  <p class="body-14-regular text-muted-foreground">Get help from our team</p>
757
757
  </UiNavigationMenuLink>
758
758
  </li>
@@ -802,13 +802,13 @@ function closeAll() {
802
802
  <template>
803
803
  <div class="gap-y-4">
804
804
  <div class="flex gap-2">
805
- <button type="button" @click="openProducts" class="px-3 py-1 text-sm border rounded">
805
+ <button type="button" @click="openProducts" class="px-3 py-1 body-14-regular border rounded">
806
806
  Open Products
807
807
  </button>
808
- <button type="button" @click="closeAll" class="px-3 py-1 text-sm border rounded">
808
+ <button type="button" @click="closeAll" class="px-3 py-1 body-14-regular border rounded">
809
809
  Close All
810
810
  </button>
811
- <span class="text-sm text-muted-foreground">
811
+ <span class="body-14-regular text-muted-foreground">
812
812
  Current value: "{{ activeItem }}"
813
813
  </span>
814
814
  </div>
@@ -872,7 +872,7 @@ const value = ref('')
872
872
 
873
873
  <template>
874
874
  <div class="gap-y-4">
875
- <div class="p-4 bg-background-surface-muted rounded-md text-sm">
875
+ <div class="p-4 bg-background-surface-muted rounded-md body-14-regular">
876
876
  <p class="font-medium mb-2">Keyboard Navigation:</p>
877
877
  <ul class="gap-y-1 text-muted-foreground">
878
878
  <li><kbd class="px-1 bg-background rounded">Tab</kbd> - Move focus to/from navigation</li>
@@ -1004,13 +1004,13 @@ export const ControlledState: Story = {
1004
1004
  },
1005
1005
  template: `<div class="gap-y-4">
1006
1006
  <div class="flex gap-2 items-center">
1007
- <button type="button" @click="openProducts" class="px-3 py-1 text-sm border rounded hover:bg-background-surface-muted">
1007
+ <button type="button" @click="openProducts" class="px-3 py-1 body-14-regular border rounded hover:bg-background-surface-muted">
1008
1008
  Open Products
1009
1009
  </button>
1010
- <button type="button" @click="closeAll" class="px-3 py-1 text-sm border rounded hover:bg-background-surface-muted">
1010
+ <button type="button" @click="closeAll" class="px-3 py-1 body-14-regular border rounded hover:bg-background-surface-muted">
1011
1011
  Close All
1012
1012
  </button>
1013
- <span class="text-sm text-muted-foreground">
1013
+ <span class="body-14-regular text-muted-foreground">
1014
1014
  Current value: "{{ activeItem }}"
1015
1015
  </span>
1016
1016
  </div>
@@ -1091,7 +1091,7 @@ export const KeyboardNavigation: Story = {
1091
1091
  return { args, value, navigationMenuTriggerStyle };
1092
1092
  },
1093
1093
  template: `<div class="gap-y-4">
1094
- <div class="p-4 bg-background-surface-muted rounded-md text-sm">
1094
+ <div class="p-4 bg-background-surface-muted rounded-md body-14-regular">
1095
1095
  <p class="font-medium mb-2">Keyboard Navigation:</p>
1096
1096
  <ul class="gap-y-1 text-muted-foreground">
1097
1097
  <li><kbd class="px-1 bg-background rounded">Tab</kbd> - Move focus to/from navigation</li>
@@ -42,7 +42,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
42
42
  <UiPopoverContent>
43
43
  <div class="gap-y-2">
44
44
  <h4 class="font-medium leading-none">Dimensions</h4>
45
- <p class="text-sm text-muted-foreground">
45
+ <p class="body-14-regular text-muted-foreground">
46
46
  Set the dimensions for the layer.
47
47
  </p>
48
48
  </div>
@@ -82,7 +82,7 @@ export const Default: Story = {
82
82
  <UiPopoverContent>
83
83
  <div class="gap-y-2">
84
84
  <h4 class="font-medium leading-none">Dimensions</h4>
85
- <p class="text-sm text-muted-foreground">
85
+ <p class="body-14-regular text-muted-foreground">
86
86
  Set the dimensions for the layer.
87
87
  </p>
88
88
  </div>
@@ -116,7 +116,7 @@ const open = ref(false)
116
116
  <UiPopoverContent>
117
117
  <div class="gap-y-2">
118
118
  <h4 class="font-medium leading-none">Controlled Popover</h4>
119
- <p class="text-sm text-muted-foreground">
119
+ <p class="body-14-regular text-muted-foreground">
120
120
  This popover is controlled via v-model:open.
121
121
  </p>
122
122
  <UiButton size="sm" @click="open = false">Close</UiButton>
@@ -146,7 +146,7 @@ export const Controlled: Story = {
146
146
  <UiPopoverContent>
147
147
  <div class="gap-y-2">
148
148
  <h4 class="font-medium leading-none">Controlled Popover</h4>
149
- <p class="text-sm text-muted-foreground">
149
+ <p class="body-14-regular text-muted-foreground">
150
150
  This popover is controlled via v-model:open.
151
151
  </p>
152
152
  <UiButton size="sm" @click="open = false">Close</UiButton>
@@ -176,7 +176,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
176
176
  <UiButton variant="outline">Top</UiButton>
177
177
  </UiPopoverTrigger>
178
178
  <UiPopoverContent side="top">
179
- <p class="text-sm">Popover on top</p>
179
+ <p class="body-14-regular">Popover on top</p>
180
180
  </UiPopoverContent>
181
181
  </UiPopover>
182
182
 
@@ -185,7 +185,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
185
185
  <UiButton variant="outline">Right</UiButton>
186
186
  </UiPopoverTrigger>
187
187
  <UiPopoverContent side="right">
188
- <p class="text-sm">Popover on right</p>
188
+ <p class="body-14-regular">Popover on right</p>
189
189
  </UiPopoverContent>
190
190
  </UiPopover>
191
191
 
@@ -194,7 +194,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
194
194
  <UiButton variant="outline">Bottom</UiButton>
195
195
  </UiPopoverTrigger>
196
196
  <UiPopoverContent side="bottom">
197
- <p class="text-sm">Popover on bottom</p>
197
+ <p class="body-14-regular">Popover on bottom</p>
198
198
  </UiPopoverContent>
199
199
  </UiPopover>
200
200
 
@@ -203,7 +203,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
203
203
  <UiButton variant="outline">Left</UiButton>
204
204
  </UiPopoverTrigger>
205
205
  <UiPopoverContent side="left">
206
- <p class="text-sm">Popover on left</p>
206
+ <p class="body-14-regular">Popover on left</p>
207
207
  </UiPopoverContent>
208
208
  </UiPopover>
209
209
  </div>
@@ -223,7 +223,7 @@ export const Positions: Story = {
223
223
  <UiButton variant="outline">Top</UiButton>
224
224
  </UiPopoverTrigger>
225
225
  <UiPopoverContent side="top">
226
- <p class="text-sm">Popover on top</p>
226
+ <p class="body-14-regular">Popover on top</p>
227
227
  </UiPopoverContent>
228
228
  </UiPopover>
229
229
 
@@ -232,7 +232,7 @@ export const Positions: Story = {
232
232
  <UiButton variant="outline">Right</UiButton>
233
233
  </UiPopoverTrigger>
234
234
  <UiPopoverContent side="right">
235
- <p class="text-sm">Popover on right</p>
235
+ <p class="body-14-regular">Popover on right</p>
236
236
  </UiPopoverContent>
237
237
  </UiPopover>
238
238
 
@@ -241,7 +241,7 @@ export const Positions: Story = {
241
241
  <UiButton variant="outline">Bottom</UiButton>
242
242
  </UiPopoverTrigger>
243
243
  <UiPopoverContent side="bottom">
244
- <p class="text-sm">Popover on bottom</p>
244
+ <p class="body-14-regular">Popover on bottom</p>
245
245
  </UiPopoverContent>
246
246
  </UiPopover>
247
247
 
@@ -250,7 +250,7 @@ export const Positions: Story = {
250
250
  <UiButton variant="outline">Left</UiButton>
251
251
  </UiPopoverTrigger>
252
252
  <UiPopoverContent side="left">
253
- <p class="text-sm">Popover on left</p>
253
+ <p class="body-14-regular">Popover on left</p>
254
254
  </UiPopoverContent>
255
255
  </UiPopover>
256
256
  </div>
@@ -277,7 +277,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
277
277
  <UiButton variant="outline">Align Start</UiButton>
278
278
  </UiPopoverTrigger>
279
279
  <UiPopoverContent align="start">
280
- <p class="text-sm">Aligned to start</p>
280
+ <p class="body-14-regular">Aligned to start</p>
281
281
  </UiPopoverContent>
282
282
  </UiPopover>
283
283
 
@@ -286,7 +286,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
286
286
  <UiButton variant="outline">Align Center</UiButton>
287
287
  </UiPopoverTrigger>
288
288
  <UiPopoverContent align="center">
289
- <p class="text-sm">Aligned to center</p>
289
+ <p class="body-14-regular">Aligned to center</p>
290
290
  </UiPopoverContent>
291
291
  </UiPopover>
292
292
 
@@ -295,7 +295,7 @@ import { UiPopover, UiPopoverTrigger, UiPopoverContent, UiButton } from '@aleph-
295
295
  <UiButton variant="outline">Align End</UiButton>
296
296
  </UiPopoverTrigger>
297
297
  <UiPopoverContent align="end">
298
- <p class="text-sm">Aligned to end</p>
298
+ <p class="body-14-regular">Aligned to end</p>
299
299
  </UiPopoverContent>
300
300
  </UiPopover>
301
301
  </div>
@@ -315,7 +315,7 @@ export const Alignments: Story = {
315
315
  <UiButton variant="outline">Align Start</UiButton>
316
316
  </UiPopoverTrigger>
317
317
  <UiPopoverContent align="start">
318
- <p class="text-sm">Aligned to start</p>
318
+ <p class="body-14-regular">Aligned to start</p>
319
319
  </UiPopoverContent>
320
320
  </UiPopover>
321
321
 
@@ -324,7 +324,7 @@ export const Alignments: Story = {
324
324
  <UiButton variant="outline">Align Center</UiButton>
325
325
  </UiPopoverTrigger>
326
326
  <UiPopoverContent align="center">
327
- <p class="text-sm">Aligned to center</p>
327
+ <p class="body-14-regular">Aligned to center</p>
328
328
  </UiPopoverContent>
329
329
  </UiPopover>
330
330
 
@@ -333,7 +333,7 @@ export const Alignments: Story = {
333
333
  <UiButton variant="outline">Align End</UiButton>
334
334
  </UiPopoverTrigger>
335
335
  <UiPopoverContent align="end">
336
- <p class="text-sm">Aligned to end</p>
336
+ <p class="body-14-regular">Aligned to end</p>
337
337
  </UiPopoverContent>
338
338
  </UiPopover>
339
339
  </div>
@@ -365,7 +365,7 @@ const open = ref(true)
365
365
  <UiPopoverContent>
366
366
  <div class="gap-y-2">
367
367
  <h4 class="font-medium leading-none">Popover Content</h4>
368
- <p class="text-sm text-muted-foreground">
368
+ <p class="body-14-regular text-muted-foreground">
369
369
  This popover is open by default for visual testing.
370
370
  </p>
371
371
  </div>
@@ -394,7 +394,7 @@ export const OpenByDefault: Story = {
394
394
  <UiPopoverContent>
395
395
  <div class="gap-y-2">
396
396
  <h4 class="font-medium leading-none">Popover Content</h4>
397
- <p class="text-sm text-muted-foreground">
397
+ <p class="body-14-regular text-muted-foreground">
398
398
  This popover is open by default for visual testing.
399
399
  </p>
400
400
  </div>
@@ -49,15 +49,15 @@ const selected = ref('comfortable')
49
49
  <UiRadioGroup v-model="selected" name="spacing">
50
50
  <div class="flex items-center gap-x-2">
51
51
  <UiRadioGroupItem id="r1" value="default" />
52
- <label for="r1" class="text-sm font-medium">Default</label>
52
+ <label for="r1" class="label-14-medium">Default</label>
53
53
  </div>
54
54
  <div class="flex items-center gap-x-2">
55
55
  <UiRadioGroupItem id="r2" value="comfortable" />
56
- <label for="r2" class="text-sm font-medium">Comfortable</label>
56
+ <label for="r2" class="label-14-medium">Comfortable</label>
57
57
  </div>
58
58
  <div class="flex items-center gap-x-2">
59
59
  <UiRadioGroupItem id="r3" value="compact" />
60
- <label for="r3" class="text-sm font-medium">Compact</label>
60
+ <label for="r3" class="label-14-medium">Compact</label>
61
61
  </div>
62
62
  </UiRadioGroup>
63
63
  </template>`;
@@ -82,15 +82,15 @@ export const Default: Story = {
82
82
  <UiRadioGroup v-model="selected" name="spacing" :disabled="args.disabled" :orientation="args.orientation">
83
83
  <div class="flex items-center gap-x-2">
84
84
  <UiRadioGroupItem id="r1" value="default" />
85
- <label for="r1" class="text-sm font-medium">Default</label>
85
+ <label for="r1" class="label-14-medium">Default</label>
86
86
  </div>
87
87
  <div class="flex items-center gap-x-2">
88
88
  <UiRadioGroupItem id="r2" value="comfortable" />
89
- <label for="r2" class="text-sm font-medium">Comfortable</label>
89
+ <label for="r2" class="label-14-medium">Comfortable</label>
90
90
  </div>
91
91
  <div class="flex items-center gap-x-2">
92
92
  <UiRadioGroupItem id="r3" value="compact" />
93
- <label for="r3" class="text-sm font-medium">Compact</label>
93
+ <label for="r3" class="label-14-medium">Compact</label>
94
94
  </div>
95
95
  </UiRadioGroup>
96
96
  `,
@@ -115,15 +115,15 @@ const selected = ref('default')
115
115
  <UiRadioGroup v-model="selected" name="spacing">
116
116
  <div class="flex items-center gap-x-2">
117
117
  <UiRadioGroupItem id="r1" value="default" />
118
- <label for="r1" class="text-sm font-medium">Default</label>
118
+ <label for="r1" class="label-14-medium">Default</label>
119
119
  </div>
120
120
  <div class="flex items-center gap-x-2">
121
121
  <UiRadioGroupItem id="r2" value="comfortable" disabled />
122
- <label for="r2" class="text-sm font-medium text-muted-foreground">Comfortable</label>
122
+ <label for="r2" class="label-14-medium text-muted-foreground">Comfortable</label>
123
123
  </div>
124
124
  <div class="flex items-center gap-x-2">
125
125
  <UiRadioGroupItem id="r3" value="compact" />
126
- <label for="r3" class="text-sm font-medium">Compact</label>
126
+ <label for="r3" class="label-14-medium">Compact</label>
127
127
  </div>
128
128
  </UiRadioGroup>
129
129
  </template>`;
@@ -142,15 +142,15 @@ export const Disabled: Story = {
142
142
  <UiRadioGroup v-model="selected" name="spacing" :orientation="args.orientation">
143
143
  <div class="flex items-center gap-x-2">
144
144
  <UiRadioGroupItem id="r1" value="default" />
145
- <label for="r1" class="text-sm font-medium">Default</label>
145
+ <label for="r1" class="label-14-medium">Default</label>
146
146
  </div>
147
147
  <div class="flex items-center gap-x-2">
148
148
  <UiRadioGroupItem id="r2" value="comfortable" disabled />
149
- <label for="r2" class="text-sm font-medium text-muted-foreground">Comfortable</label>
149
+ <label for="r2" class="label-14-medium text-muted-foreground">Comfortable</label>
150
150
  </div>
151
151
  <div class="flex items-center gap-x-2">
152
152
  <UiRadioGroupItem id="r3" value="compact" />
153
- <label for="r3" class="text-sm font-medium">Compact</label>
153
+ <label for="r3" class="label-14-medium">Compact</label>
154
154
  </div>
155
155
  </UiRadioGroup>
156
156
  `,
@@ -175,15 +175,15 @@ const selected = ref('small')
175
175
  <UiRadioGroup v-model="selected" name="size" orientation="horizontal">
176
176
  <div class="flex items-center gap-x-2">
177
177
  <UiRadioGroupItem id="r1" value="small" />
178
- <label for="r1" class="text-sm font-medium">Small</label>
178
+ <label for="r1" class="label-14-medium">Small</label>
179
179
  </div>
180
180
  <div class="flex items-center gap-x-2">
181
181
  <UiRadioGroupItem id="r2" value="medium" />
182
- <label for="r2" class="text-sm font-medium">Medium</label>
182
+ <label for="r2" class="label-14-medium">Medium</label>
183
183
  </div>
184
184
  <div class="flex items-center gap-x-2">
185
185
  <UiRadioGroupItem id="r3" value="large" />
186
- <label for="r3" class="text-sm font-medium">Large</label>
186
+ <label for="r3" class="label-14-medium">Large</label>
187
187
  </div>
188
188
  </UiRadioGroup>
189
189
  </template>`;
@@ -213,15 +213,15 @@ export const HorizontalOrientation: Story = {
213
213
  <UiRadioGroup v-model="selected" name="size" :orientation="args.orientation">
214
214
  <div class="flex items-center gap-x-2">
215
215
  <UiRadioGroupItem id="r1" value="small" />
216
- <label for="r1" class="text-sm font-medium">Small</label>
216
+ <label for="r1" class="label-14-medium">Small</label>
217
217
  </div>
218
218
  <div class="flex items-center gap-x-2">
219
219
  <UiRadioGroupItem id="r2" value="medium" />
220
- <label for="r2" class="text-sm font-medium">Medium</label>
220
+ <label for="r2" class="label-14-medium">Medium</label>
221
221
  </div>
222
222
  <div class="flex items-center gap-x-2">
223
223
  <UiRadioGroupItem id="r3" value="large" />
224
- <label for="r3" class="text-sm font-medium">Large</label>
224
+ <label for="r3" class="label-14-medium">Large</label>
225
225
  </div>
226
226
  </UiRadioGroup>
227
227
  `,
@@ -245,14 +245,14 @@ const selected = ref('default')
245
245
  <template>
246
246
  <UiRadioGroup v-model="selected" name="options" as-child>
247
247
  <fieldset class="rounded-lg border p-4">
248
- <legend class="px-2 text-sm font-medium">Select an option</legend>
248
+ <legend class="px-2 label-14-medium">Select an option</legend>
249
249
  <div class="flex items-center gap-x-2">
250
250
  <UiRadioGroupItem id="r1" value="default" />
251
- <label for="r1" class="text-sm font-medium">Default</label>
251
+ <label for="r1" class="label-14-medium">Default</label>
252
252
  </div>
253
253
  <div class="flex items-center gap-x-2">
254
254
  <UiRadioGroupItem id="r2" value="second" />
255
- <label for="r2" class="text-sm font-medium">Second</label>
255
+ <label for="r2" class="label-14-medium">Second</label>
256
256
  </div>
257
257
  </fieldset>
258
258
  </UiRadioGroup>
@@ -272,14 +272,14 @@ export const AsChild: Story = {
272
272
  template: `
273
273
  <UiRadioGroup v-model="selected" name="options" as-child>
274
274
  <fieldset class="rounded-lg border p-4">
275
- <legend class="px-2 text-sm font-medium">Select an option</legend>
275
+ <legend class="px-2 label-14-medium">Select an option</legend>
276
276
  <div class="flex items-center gap-x-2">
277
277
  <UiRadioGroupItem id="r1" value="default" />
278
- <label for="r1" class="text-sm font-medium">Default</label>
278
+ <label for="r1" class="label-14-medium">Default</label>
279
279
  </div>
280
280
  <div class="flex items-center gap-x-2">
281
281
  <UiRadioGroupItem id="r2" value="second" />
282
- <label for="r2" class="text-sm font-medium">Second</label>
282
+ <label for="r2" class="label-14-medium">Second</label>
283
283
  </div>
284
284
  </fieldset>
285
285
  </UiRadioGroup>
@@ -41,8 +41,8 @@ export default meta;
41
41
  type Story = StoryObj<typeof UiResizablePanelGroup>;
42
42
 
43
43
  const panelClasses =
44
- 'flex items-center justify-center rounded-md bg-background-surface-muted p-6 text-sm';
45
- const sizeValueClasses = 'font-mono text-xs text-muted-foreground';
44
+ 'flex items-center justify-center rounded-md bg-background-surface-muted p-6 body-14-regular';
45
+ const sizeValueClasses = 'font-mono label-12-regular text-muted-foreground';
46
46
 
47
47
  const defaultTemplateSource = `<script setup lang="ts">
48
48
  import { ref } from 'vue'
@@ -72,10 +72,10 @@ function updateContentWidth(size: number) {
72
72
  @resize="updateSidebarWidth"
73
73
  >
74
74
  <div
75
- class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 text-sm"
75
+ class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-14-regular"
76
76
  >
77
77
  <span>Sidebar</span>
78
- <span class="font-mono text-xs text-muted-foreground">{{ sidebarWidth }}% wide</span>
78
+ <span class="font-mono label-12-regular text-muted-foreground">{{ sidebarWidth }}% wide</span>
79
79
  </div>
80
80
  </UiResizablePanel>
81
81
  <UiResizableHandle with-handle />
@@ -85,10 +85,10 @@ function updateContentWidth(size: number) {
85
85
  @resize="updateContentWidth"
86
86
  >
87
87
  <div
88
- class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 text-sm"
88
+ class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-14-regular"
89
89
  >
90
90
  <span>Content</span>
91
- <span class="font-mono text-xs text-muted-foreground">{{ contentWidth }}% wide</span>
91
+ <span class="font-mono label-12-regular text-muted-foreground">{{ contentWidth }}% wide</span>
92
92
  </div>
93
93
  </UiResizablePanel>
94
94
  </UiResizablePanelGroup>
@@ -196,10 +196,10 @@ function updateConsoleHeight(size: number) {
196
196
  @resize="updatePreviewHeight"
197
197
  >
198
198
  <div
199
- class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 text-sm"
199
+ class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-14-regular"
200
200
  >
201
201
  <span>Preview</span>
202
- <span class="font-mono text-xs text-muted-foreground">{{ previewHeight }}% tall</span>
202
+ <span class="font-mono label-12-regular text-muted-foreground">{{ previewHeight }}% tall</span>
203
203
  </div>
204
204
  </UiResizablePanel>
205
205
  <UiResizableHandle with-handle />
@@ -209,10 +209,10 @@ function updateConsoleHeight(size: number) {
209
209
  @resize="updateConsoleHeight"
210
210
  >
211
211
  <div
212
- class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 text-sm"
212
+ class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-14-regular"
213
213
  >
214
214
  <span>Console</span>
215
- <span class="font-mono text-xs text-muted-foreground">{{ consoleHeight }}% tall</span>
215
+ <span class="font-mono label-12-regular text-muted-foreground">{{ consoleHeight }}% tall</span>
216
216
  </div>
217
217
  </UiResizablePanel>
218
218
  </UiResizablePanelGroup>
@@ -302,13 +302,13 @@ import {
302
302
  <template>
303
303
  <UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
304
304
  <UiResizablePanel collapsible :collapsed-size="8" :default-size="25" :min-size="20">
305
- <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 text-sm">
305
+ <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-14-regular">
306
306
  Collapsible
307
307
  </div>
308
308
  </UiResizablePanel>
309
309
  <UiResizableHandle with-handle />
310
310
  <UiResizablePanel :default-size="75" :min-size="30">
311
- <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 text-sm">
311
+ <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-14-regular">
312
312
  Main panel
313
313
  </div>
314
314
  </UiResizablePanel>
@@ -368,13 +368,13 @@ import {
368
368
  <template>
369
369
  <UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
370
370
  <UiResizablePanel size-unit="px" :default-size="240" :min-size="160" :max-size="320">
371
- <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 text-sm">
371
+ <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-14-regular">
372
372
  Fixed sidebar
373
373
  </div>
374
374
  </UiResizablePanel>
375
375
  <UiResizableHandle with-handle />
376
376
  <UiResizablePanel>
377
- <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 text-sm">
377
+ <div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-14-regular">
378
378
  Flexible content
379
379
  </div>
380
380
  </UiResizablePanel>
@@ -518,7 +518,7 @@ export const Multiple: Story = {
518
518
  <UiSelectItem value="mango">Mango</UiSelectItem>
519
519
  </UiSelectContent>
520
520
  </UiSelect>
521
- <div class="text-xs text-content-on-surface-secondary">Selected: {{ value.join(', ') || '—' }}</div>
521
+ <div class="label-12-regular text-content-on-surface-secondary">Selected: {{ value.join(', ') || '—' }}</div>
522
522
  </div>
523
523
  `,
524
524
  }),