@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.
- package/dist/system/components/core/toggle/index.d.ts +1 -1
- package/dist/system/lib.js +14623 -14438
- package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +21 -174
- package/dist/system/patterns/UiFloatActions/core/FloatingButton.vue.d.ts +36 -0
- package/dist/system/patterns/UiFloatActions/core/FloatingInput.vue.d.ts +19 -0
- package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +3 -1
- package/dist/system/patterns/UiFloatActions/types.d.ts +93 -19
- package/dist/system/patterns/UiLayout/layout-shell.d.ts +117 -252
- package/package.json +2 -2
- package/src/components/UiAccordion/UiAccordion.stories.ts +8 -8
- package/src/components/UiAlert/UiAlert.stories.ts +13 -13
- package/src/components/UiAlertDialog/UiAlertDialog.stories.ts +4 -4
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +13 -13
- package/src/components/UiAutocomplete/UiAutocomplete.vue +3 -3
- package/src/components/UiBadge/UiBadge.stories.ts +9 -9
- package/src/components/UiBreadcrumb/UiBreadcrumb.stories.ts +14 -14
- package/src/components/UiButton/UiButton.stories.ts +35 -35
- package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +6 -6
- package/src/components/UiCalendar/UiCalendar.stories.ts +6 -6
- package/src/components/UiCard/UiCard.stories.ts +6 -6
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +30 -30
- package/src/components/UiChip/UiChip.stories.ts +14 -14
- package/src/components/UiChip/UiChip.vue +1 -1
- package/src/components/UiDialog/UiDialog.stories.ts +20 -20
- package/src/components/UiDrawer/UiDrawer.stories.ts +29 -29
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +13 -13
- package/src/components/UiEmpty/UiEmpty.vue +1 -1
- package/src/components/UiFadeMask/UiFadeMask.stories.ts +13 -13
- package/src/components/UiField/UiField.stories.ts +27 -27
- package/src/components/UiFileItem/UiFileItem.vue +4 -4
- package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +2 -2
- package/src/components/UiFileType/UiFileType.stories.ts +10 -10
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +10 -10
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +3 -3
- package/src/components/UiIcon/UiIcon.stories.ts +9 -9
- package/src/components/UiInput/UiInput.stories.ts +13 -13
- package/src/components/UiInput/UiInput.vue +1 -1
- package/src/components/UiInputGroup/UiInputGroup.stories.ts +10 -10
- package/src/components/UiItem/UiItem.stories.ts +12 -12
- package/src/components/UiItem/__tests__/UiItem.test.ts +2 -2
- package/src/components/UiKbd/UiKbd.stories.ts +18 -18
- package/src/components/UiKbd/UiKbd.vue +1 -1
- package/src/components/UiLabel/UiLabel.stories.ts +12 -12
- package/src/components/UiLabel/__tests__/UiLabel.test.ts +1 -1
- package/src/components/UiListbox/UiListbox.stories.ts +20 -20
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +94 -94
- package/src/components/UiPopover/UiPopover.stories.ts +35 -35
- package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +53 -53
- package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +6 -6
- package/src/components/UiResizable/UiResizable.stories.ts +40 -40
- package/src/components/UiSelect/UiSelect.stories.ts +14 -14
- package/src/components/UiSeparator/UiSeparator.stories.ts +16 -16
- package/src/components/UiSheet/UiSheet.stories.ts +29 -29
- package/src/components/UiSlider/UiSlider.stories.ts +28 -28
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +6 -6
- package/src/components/UiSnackbar/UiSnackbar.vue +2 -2
- package/src/components/UiSnackbar/UiSnackbarContent.vue +2 -2
- package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
- package/src/components/UiStepper/UiStepper.stories.ts +6 -6
- package/src/components/UiSwitch/UiSwitch.stories.ts +37 -37
- package/src/components/UiTable/UiTable.stories.ts +4 -4
- package/src/components/UiTabs/UiTabs.stories.ts +64 -64
- package/src/components/UiTagsInput/UiTagsInput.stories.ts +16 -16
- package/src/components/UiTextarea/UiTextarea.stories.ts +20 -20
- package/src/components/UiToggle/UiToggle.stories.ts +26 -26
- package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +31 -31
- package/src/components/UiTooltip/UiTooltip.stories.ts +7 -7
- package/src/components/core/accordion/AccordionContent.vue +1 -1
- package/src/components/core/accordion/AccordionTrigger.vue +1 -1
- package/src/components/core/alert/AlertDescription.vue +1 -1
- package/src/components/core/alert/index.ts +1 -1
- package/src/components/core/alert-dialog/AlertDialogDescription.vue +1 -1
- package/src/components/core/badge/index.ts +2 -2
- package/src/components/core/button/index.ts +3 -3
- package/src/components/core/calendar/Calendar.vue +4 -4
- package/src/components/core/calendar/CalendarCell.vue +1 -1
- package/src/components/core/calendar/CalendarHeading.vue +1 -1
- package/src/components/core/card/CardDescription.vue +1 -1
- package/src/components/core/dialog/DialogDescription.vue +1 -1
- package/src/components/core/drawer/DrawerDescription.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/src/components/core/field/FieldDescription.vue +1 -1
- package/src/components/core/field/FieldError.vue +1 -1
- package/src/components/core/field/FieldLabel.vue +1 -1
- package/src/components/core/field/FieldLegend.vue +2 -2
- package/src/components/core/field/FieldSeparator.vue +1 -1
- package/src/components/core/field/FieldTitle.vue +1 -1
- package/src/components/core/input/Input.vue +1 -1
- package/src/components/core/input-group/InputGroupText.vue +1 -1
- package/src/components/core/input-group/index.ts +1 -1
- package/src/components/core/item/ItemDescription.vue +1 -1
- package/src/components/core/item/ItemTitle.vue +1 -1
- package/src/components/core/item/index.ts +2 -2
- package/src/components/core/label/Label.vue +1 -1
- package/src/components/core/listbox/ListboxFilter.vue +1 -1
- package/src/components/core/listbox/ListboxGroupLabel.vue +1 -1
- package/src/components/core/listbox/ListboxItem.vue +1 -1
- package/src/components/core/native-select/NativeSelect.vue +1 -1
- package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/core/navigation-menu/index.ts +1 -1
- package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
- package/src/components/core/select/SelectItem.vue +1 -1
- package/src/components/core/select/SelectLabel.vue +1 -1
- package/src/components/core/select/SelectTrigger.vue +1 -1
- package/src/components/core/sheet/SheetDescription.vue +1 -1
- package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
- package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
- package/src/components/core/sidebar/index.ts +4 -4
- package/src/components/core/stepper/StepperDescription.vue +1 -1
- package/src/components/core/stepper/StepperTitle.vue +1 -1
- package/src/components/core/table/Table.vue +1 -1
- package/src/components/core/table/TableCaption.vue +1 -1
- package/src/components/core/table/TableEmpty.vue +1 -1
- package/src/components/core/tabs/TabsTrigger.vue +1 -1
- package/src/components/core/tags-input/TagsInput.vue +1 -1
- package/src/components/core/tags-input/TagsInputItem.vue +1 -1
- package/src/components/core/textarea/Textarea.vue +1 -1
- package/src/components/core/toggle/index.ts +1 -1
- package/src/components/core/tooltip/TooltipContent.vue +1 -1
- package/src/directives/vHover.stories.ts +17 -17
- package/src/lib/useDevice.stories.ts +29 -29
- package/src/lib/useDrag.stories.ts +14 -14
- package/src/patterns/UiDataTable/UiDataTable.stories.ts +27 -27
- package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +2 -2
- package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +2 -2
- package/src/patterns/UiDataTable/UiDataTablePagination.vue +3 -3
- package/src/patterns/UiDataTable/__tests__/UiDataTableColumnFilter.test.ts +2 -2
- package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +14 -14
- package/src/patterns/UiFileUpload/UiFileItem.stories.ts +14 -14
- package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +6 -6
- package/src/patterns/UiFloatActions/UiFloatActionItems.vue +226 -76
- package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +1136 -116
- package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +187 -1
- package/src/patterns/UiFloatActions/core/FloatingButton.vue +83 -0
- package/src/patterns/UiFloatActions/core/FloatingInput.vue +53 -0
- package/src/patterns/UiFloatActions/floatActionItemContext.ts +3 -1
- package/src/patterns/UiFloatActions/types.ts +106 -19
- package/src/patterns/UiLayout/UiLayoutContent.stories.ts +17 -17
- package/src/patterns/UiLayout/UiLayoutMobile.stories.ts +4 -4
- package/src/patterns/UiLayout/layout-shell.ts +6 -6
- package/src/patterns/UiProfileCard/UiProfileCard.stories.ts +8 -8
- package/src/patterns/UiProfileCard/profile-card.ts +2 -2
- package/src/patterns/UiSidebar/UiSidebar.stories.ts +6 -6
- package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +4 -4
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarHeader.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +7 -7
- package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -4
- package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +4 -4
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +3 -3
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +1 -1
- package/src/patterns/UiTopBar/UiTopBar.stories.ts +24 -24
- package/src/theme/Background.stories.ts +62 -62
- package/src/theme/Border.stories.ts +19 -19
- package/src/theme/BorderRadius.stories.ts +14 -14
- package/src/theme/Extended.stories.ts +26 -26
- package/src/theme/Flex.stories.ts +21 -21
- package/src/theme/Grid.stories.ts +19 -19
- package/src/theme/HoverLayer.stories.ts +26 -26
- package/src/theme/Overlay.stories.ts +14 -14
- package/src/theme/Scrollbar.stories.ts +58 -58
- package/src/theme/Shadow.stories.ts +5 -5
- package/src/theme/Theme.stories.ts +38 -38
|
@@ -46,9 +46,9 @@ export default meta;
|
|
|
46
46
|
type Story = StoryObj<typeof UiResizablePanelGroup>;
|
|
47
47
|
|
|
48
48
|
const panelClasses =
|
|
49
|
-
'flex items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
49
|
+
'flex items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular';
|
|
50
50
|
const sizeValueClasses =
|
|
51
|
-
'font-mono label-
|
|
51
|
+
'font-mono label-xs-regular text-content-on-surface-muted';
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Pointer hit area the splitter registers around a handle on coarse pointers,
|
|
@@ -109,10 +109,10 @@ function updateContentWidth(size: number) {
|
|
|
109
109
|
@resize="updateSidebarWidth"
|
|
110
110
|
>
|
|
111
111
|
<div
|
|
112
|
-
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-
|
|
112
|
+
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-s-regular"
|
|
113
113
|
>
|
|
114
114
|
<span>Sidebar</span>
|
|
115
|
-
<span class="font-mono label-
|
|
115
|
+
<span class="font-mono label-xs-regular text-content-on-surface-muted">{{ sidebarWidth }}% wide</span>
|
|
116
116
|
</div>
|
|
117
117
|
</UiResizablePanel>
|
|
118
118
|
<!-- A focusable separator needs its own name; aria-valuenow alone says nothing. -->
|
|
@@ -123,10 +123,10 @@ function updateContentWidth(size: number) {
|
|
|
123
123
|
@resize="updateContentWidth"
|
|
124
124
|
>
|
|
125
125
|
<div
|
|
126
|
-
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-
|
|
126
|
+
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-s-regular"
|
|
127
127
|
>
|
|
128
128
|
<span>Content</span>
|
|
129
|
-
<span class="font-mono label-
|
|
129
|
+
<span class="font-mono label-xs-regular text-content-on-surface-muted">{{ contentWidth }}% wide</span>
|
|
130
130
|
</div>
|
|
131
131
|
</UiResizablePanel>
|
|
132
132
|
</UiResizablePanelGroup>
|
|
@@ -280,10 +280,10 @@ function updateConsoleHeight(size: number) {
|
|
|
280
280
|
@resize="updatePreviewHeight"
|
|
281
281
|
>
|
|
282
282
|
<div
|
|
283
|
-
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-
|
|
283
|
+
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-s-regular"
|
|
284
284
|
>
|
|
285
285
|
<span>Preview</span>
|
|
286
|
-
<span class="font-mono label-
|
|
286
|
+
<span class="font-mono label-xs-regular text-content-on-surface-muted">{{ previewHeight }}% tall</span>
|
|
287
287
|
</div>
|
|
288
288
|
</UiResizablePanel>
|
|
289
289
|
<UiResizableHandle with-handle />
|
|
@@ -293,10 +293,10 @@ function updateConsoleHeight(size: number) {
|
|
|
293
293
|
@resize="updateConsoleHeight"
|
|
294
294
|
>
|
|
295
295
|
<div
|
|
296
|
-
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-
|
|
296
|
+
class="flex h-full flex-col items-center justify-center gap-1 rounded-md bg-background-surface-muted p-6 body-s-regular"
|
|
297
297
|
>
|
|
298
298
|
<span>Console</span>
|
|
299
|
-
<span class="font-mono label-
|
|
299
|
+
<span class="font-mono label-xs-regular text-content-on-surface-muted">{{ consoleHeight }}% tall</span>
|
|
300
300
|
</div>
|
|
301
301
|
</UiResizablePanel>
|
|
302
302
|
</UiResizablePanelGroup>
|
|
@@ -426,13 +426,13 @@ import {
|
|
|
426
426
|
<template>
|
|
427
427
|
<UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
428
428
|
<UiResizablePanel collapsible :collapsed-size="8" :default-size="25" :min-size="20">
|
|
429
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
429
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
430
430
|
Collapsible
|
|
431
431
|
</div>
|
|
432
432
|
</UiResizablePanel>
|
|
433
433
|
<UiResizableHandle with-handle />
|
|
434
434
|
<UiResizablePanel :default-size="75" :min-size="30">
|
|
435
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
435
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
436
436
|
Main panel
|
|
437
437
|
</div>
|
|
438
438
|
</UiResizablePanel>
|
|
@@ -538,13 +538,13 @@ import {
|
|
|
538
538
|
<template>
|
|
539
539
|
<UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
540
540
|
<UiResizablePanel size-unit="px" :default-size="240" :min-size="160" :max-size="320">
|
|
541
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
541
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
542
542
|
Fixed sidebar
|
|
543
543
|
</div>
|
|
544
544
|
</UiResizablePanel>
|
|
545
545
|
<UiResizableHandle with-handle />
|
|
546
546
|
<UiResizablePanel>
|
|
547
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
547
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
548
548
|
Flexible content
|
|
549
549
|
</div>
|
|
550
550
|
</UiResizablePanel>
|
|
@@ -643,13 +643,13 @@ import {
|
|
|
643
643
|
<template>
|
|
644
644
|
<UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
645
645
|
<UiResizablePanel :default-size="50">
|
|
646
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
646
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
647
647
|
Left
|
|
648
648
|
</div>
|
|
649
649
|
</UiResizablePanel>
|
|
650
650
|
<UiResizableHandle aria-label="Resize left panel" />
|
|
651
651
|
<UiResizablePanel :default-size="50">
|
|
652
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
652
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
653
653
|
Right
|
|
654
654
|
</div>
|
|
655
655
|
</UiResizablePanel>
|
|
@@ -731,7 +731,7 @@ import {
|
|
|
731
731
|
<template>
|
|
732
732
|
<UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
733
733
|
<UiResizablePanel :default-size="40">
|
|
734
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
734
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
735
735
|
Locked sidebar
|
|
736
736
|
</div>
|
|
737
737
|
</UiResizablePanel>
|
|
@@ -742,7 +742,7 @@ import {
|
|
|
742
742
|
-->
|
|
743
743
|
<UiResizableHandle disabled :tabindex="-1" aria-label="Resize locked sidebar" />
|
|
744
744
|
<UiResizablePanel :default-size="60">
|
|
745
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
745
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
746
746
|
Content
|
|
747
747
|
</div>
|
|
748
748
|
</UiResizablePanel>
|
|
@@ -843,19 +843,19 @@ import {
|
|
|
843
843
|
<template>
|
|
844
844
|
<UiResizablePanelGroup direction="horizontal" class="min-h-64 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
845
845
|
<UiResizablePanel :default-size="25" :min-size="15">
|
|
846
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
846
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
847
847
|
Navigation
|
|
848
848
|
</div>
|
|
849
849
|
</UiResizablePanel>
|
|
850
850
|
<UiResizableHandle with-handle aria-label="Resize navigation" />
|
|
851
851
|
<UiResizablePanel :default-size="50" :min-size="20">
|
|
852
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
852
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
853
853
|
Editor
|
|
854
854
|
</div>
|
|
855
855
|
</UiResizablePanel>
|
|
856
856
|
<UiResizableHandle with-handle aria-label="Resize editor" />
|
|
857
857
|
<UiResizablePanel :default-size="25" :min-size="15">
|
|
858
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
858
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
859
859
|
Inspector
|
|
860
860
|
</div>
|
|
861
861
|
</UiResizablePanel>
|
|
@@ -974,10 +974,10 @@ export const Accessibility: Story = {
|
|
|
974
974
|
|
|
975
975
|
<div class="flex flex-col gap-6">
|
|
976
976
|
<div class="flex flex-col gap-2">
|
|
977
|
-
<h3 class="body-
|
|
977
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
978
978
|
Name every handle
|
|
979
979
|
</h3>
|
|
980
|
-
<p class="body-
|
|
980
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
981
981
|
A handle renders as a focusable <code>separator</code>. Nothing inside it
|
|
982
982
|
is read out, because a separator makes its children presentational, so
|
|
983
983
|
without an <code>aria-label</code> a screen reader announces a bare
|
|
@@ -998,10 +998,10 @@ export const Accessibility: Story = {
|
|
|
998
998
|
</div>
|
|
999
999
|
|
|
1000
1000
|
<div class="flex flex-col gap-2">
|
|
1001
|
-
<h3 class="body-
|
|
1001
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1002
1002
|
Resizing must never require a pointer
|
|
1003
1003
|
</h3>
|
|
1004
|
-
<p class="body-
|
|
1004
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1005
1005
|
Tab moves focus onto the handle. Arrow keys along the group's axis then
|
|
1006
1006
|
resize by <code>keyboardResizeBy</code> percent per press (hold Shift to
|
|
1007
1007
|
jump the full range), Home and End drive the split to either extreme, and
|
|
@@ -1023,10 +1023,10 @@ export const Accessibility: Story = {
|
|
|
1023
1023
|
</div>
|
|
1024
1024
|
|
|
1025
1025
|
<div class="flex flex-col gap-2">
|
|
1026
|
-
<h3 class="body-
|
|
1026
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1027
1027
|
Let the split announce its own state
|
|
1028
1028
|
</h3>
|
|
1029
|
-
<p class="body-
|
|
1029
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1030
1030
|
The group keeps <code>aria-valuenow</code>, <code>aria-valuemin</code> and
|
|
1031
1031
|
<code>aria-valuemax</code> on each handle in sync with the layout, and points
|
|
1032
1032
|
<code>aria-controls</code> at the panel being sized, so every resize is
|
|
@@ -1039,10 +1039,10 @@ export const Accessibility: Story = {
|
|
|
1039
1039
|
</div>
|
|
1040
1040
|
|
|
1041
1041
|
<div class="flex flex-col gap-2">
|
|
1042
|
-
<h3 class="body-
|
|
1042
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1043
1043
|
Enable accessibility theme
|
|
1044
1044
|
</h3>
|
|
1045
|
-
<p class="body-
|
|
1045
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1046
1046
|
A hairline divider is the thinnest thing in any layout, so it is the first
|
|
1047
1047
|
to disappear against a low-contrast surface and the first place a focus
|
|
1048
1048
|
ring gets lost. When accessibility is required, enable our accessibility
|
|
@@ -1053,7 +1053,7 @@ export const Accessibility: Story = {
|
|
|
1053
1053
|
|
|
1054
1054
|
<div class="grid gap-4 md:grid-cols-2">
|
|
1055
1055
|
<div class="flex flex-col gap-3">
|
|
1056
|
-
<h3 class="label-
|
|
1056
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1057
1057
|
Default
|
|
1058
1058
|
</h3>
|
|
1059
1059
|
<div class="border border-border-surface-default p-4">
|
|
@@ -1070,7 +1070,7 @@ export const Accessibility: Story = {
|
|
|
1070
1070
|
</div>
|
|
1071
1071
|
|
|
1072
1072
|
<div class="accessible-theme flex flex-col gap-3">
|
|
1073
|
-
<h3 class="label-
|
|
1073
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1074
1074
|
Accessible
|
|
1075
1075
|
</h3>
|
|
1076
1076
|
<div class="border border-border-surface-default p-4">
|
|
@@ -1118,19 +1118,19 @@ import {
|
|
|
1118
1118
|
class="min-h-48 rounded-lg bg-background-surface-secondary p-2 shadow-lg"
|
|
1119
1119
|
>
|
|
1120
1120
|
<UiResizablePanel :default-size="30" :min-size="10">
|
|
1121
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1121
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1122
1122
|
Navigation
|
|
1123
1123
|
</div>
|
|
1124
1124
|
</UiResizablePanel>
|
|
1125
1125
|
<UiResizableHandle with-handle aria-label="Resize navigation" />
|
|
1126
1126
|
<UiResizablePanel :default-size="40" :min-size="10">
|
|
1127
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1127
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1128
1128
|
Editor
|
|
1129
1129
|
</div>
|
|
1130
1130
|
</UiResizablePanel>
|
|
1131
1131
|
<UiResizableHandle with-handle aria-label="Resize editor" />
|
|
1132
1132
|
<UiResizablePanel :default-size="30" :min-size="10">
|
|
1133
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1133
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1134
1134
|
Inspector
|
|
1135
1135
|
</div>
|
|
1136
1136
|
</UiResizablePanel>
|
|
@@ -1272,7 +1272,7 @@ import {
|
|
|
1272
1272
|
<template>
|
|
1273
1273
|
<UiResizablePanelGroup direction="horizontal" class="min-h-48 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
1274
1274
|
<UiResizablePanel :default-size="35" :min-size="20" :max-size="60">
|
|
1275
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1275
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1276
1276
|
Filters
|
|
1277
1277
|
</div>
|
|
1278
1278
|
</UiResizablePanel>
|
|
@@ -1286,7 +1286,7 @@ import {
|
|
|
1286
1286
|
aria-orientation="vertical"
|
|
1287
1287
|
/>
|
|
1288
1288
|
<UiResizablePanel :default-size="65" :min-size="40">
|
|
1289
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1289
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1290
1290
|
Results
|
|
1291
1291
|
</div>
|
|
1292
1292
|
</UiResizablePanel>
|
|
@@ -1410,13 +1410,13 @@ import {
|
|
|
1410
1410
|
<template>
|
|
1411
1411
|
<UiResizablePanelGroup direction="horizontal" class="min-h-48 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
1412
1412
|
<UiResizablePanel :default-size="50" :min-size="20">
|
|
1413
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1413
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1414
1414
|
Sidebar
|
|
1415
1415
|
</div>
|
|
1416
1416
|
</UiResizablePanel>
|
|
1417
1417
|
<UiResizableHandle with-handle aria-label="Resize sidebar" />
|
|
1418
1418
|
<UiResizablePanel :default-size="50" :min-size="20">
|
|
1419
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1419
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1420
1420
|
Content
|
|
1421
1421
|
</div>
|
|
1422
1422
|
</UiResizablePanel>
|
|
@@ -1516,13 +1516,13 @@ import {
|
|
|
1516
1516
|
<template>
|
|
1517
1517
|
<UiResizablePanelGroup direction="vertical" class="h-96 rounded-lg bg-background-surface-secondary p-2 shadow-lg">
|
|
1518
1518
|
<UiResizablePanel :default-size="50" :min-size="20">
|
|
1519
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1519
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1520
1520
|
Map
|
|
1521
1521
|
</div>
|
|
1522
1522
|
</UiResizablePanel>
|
|
1523
1523
|
<UiResizableHandle with-handle aria-label="Resize map" />
|
|
1524
1524
|
<UiResizablePanel :default-size="50" :min-size="20">
|
|
1525
|
-
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-
|
|
1525
|
+
<div class="flex h-full items-center justify-center rounded-md bg-background-surface-muted p-6 body-s-regular">
|
|
1526
1526
|
List
|
|
1527
1527
|
</div>
|
|
1528
1528
|
</UiResizablePanel>
|
|
@@ -550,7 +550,7 @@ export const States: Story = {
|
|
|
550
550
|
},
|
|
551
551
|
template: `
|
|
552
552
|
<div class="grid w-fit grid-cols-[auto_220px] items-center gap-x-6 gap-y-4">
|
|
553
|
-
<span class="label-
|
|
553
|
+
<span class="label-s-medium text-content-on-surface-primary text-right">Default</span>
|
|
554
554
|
<UiSelect v-model="emptyValue">
|
|
555
555
|
<UiSelectTrigger ariaLabel="Select option" class="w-full">
|
|
556
556
|
<UiSelectValue placeholder="Placeholder" />
|
|
@@ -560,7 +560,7 @@ export const States: Story = {
|
|
|
560
560
|
</UiSelectContent>
|
|
561
561
|
</UiSelect>
|
|
562
562
|
|
|
563
|
-
<span class="label-
|
|
563
|
+
<span class="label-s-medium text-content-on-surface-primary text-right">Filled</span>
|
|
564
564
|
<UiSelect v-model="filledValue">
|
|
565
565
|
<UiSelectTrigger ariaLabel="Select option" class="w-full">
|
|
566
566
|
<UiSelectValue placeholder="Placeholder" />
|
|
@@ -570,7 +570,7 @@ export const States: Story = {
|
|
|
570
570
|
</UiSelectContent>
|
|
571
571
|
</UiSelect>
|
|
572
572
|
|
|
573
|
-
<span class="label-
|
|
573
|
+
<span class="label-s-medium text-content-on-surface-primary text-right">Disabled</span>
|
|
574
574
|
<UiSelect v-model="disabledValue" :disabled="true">
|
|
575
575
|
<UiSelectTrigger ariaLabel="Select option" class="w-full">
|
|
576
576
|
<UiSelectValue placeholder="Placeholder" />
|
|
@@ -688,7 +688,7 @@ export const Multiple: Story = {
|
|
|
688
688
|
<UiSelectItem value="mango">Mango</UiSelectItem>
|
|
689
689
|
</UiSelectContent>
|
|
690
690
|
</UiSelect>
|
|
691
|
-
<div class="label-
|
|
691
|
+
<div class="label-xs-regular text-content-on-surface-secondary">Selected: {{ value.join(', ') || '—' }}</div>
|
|
692
692
|
</div>
|
|
693
693
|
`,
|
|
694
694
|
}),
|
|
@@ -1027,10 +1027,10 @@ export const Accessibility: Story = {
|
|
|
1027
1027
|
|
|
1028
1028
|
<div class="flex flex-col gap-6">
|
|
1029
1029
|
<div class="flex flex-col gap-2">
|
|
1030
|
-
<h3 class="body-
|
|
1030
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1031
1031
|
Give the trigger an accessible name
|
|
1032
1032
|
</h3>
|
|
1033
|
-
<p class="body-
|
|
1033
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1034
1034
|
The placeholder disappears once a value is chosen, so it is not a
|
|
1035
1035
|
label. Pair the select with a visible label or set
|
|
1036
1036
|
<code>ariaLabel</code> on <code>UiSelectTrigger</code>.
|
|
@@ -1038,10 +1038,10 @@ export const Accessibility: Story = {
|
|
|
1038
1038
|
</div>
|
|
1039
1039
|
|
|
1040
1040
|
<div class="flex flex-col gap-2">
|
|
1041
|
-
<h3 class="body-
|
|
1041
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1042
1042
|
Group related options and label the groups
|
|
1043
1043
|
</h3>
|
|
1044
|
-
<p class="body-
|
|
1044
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1045
1045
|
Long flat lists are hard to scan and listen to. Wrap related
|
|
1046
1046
|
options in <code>UiSelectGroup</code> with a
|
|
1047
1047
|
<code>UiSelectLabel</code> so the group is announced with its
|
|
@@ -1050,10 +1050,10 @@ export const Accessibility: Story = {
|
|
|
1050
1050
|
</div>
|
|
1051
1051
|
|
|
1052
1052
|
<div class="flex flex-col gap-2">
|
|
1053
|
-
<h3 class="body-
|
|
1053
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1054
1054
|
Keep disabled options visible
|
|
1055
1055
|
</h3>
|
|
1056
|
-
<p class="body-
|
|
1056
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1057
1057
|
A disabled option stays in the list so users see the full set of
|
|
1058
1058
|
choices. When possible, explain why it is unavailable in its
|
|
1059
1059
|
label (for example "Enterprise — contact sales").
|
|
@@ -1061,10 +1061,10 @@ export const Accessibility: Story = {
|
|
|
1061
1061
|
</div>
|
|
1062
1062
|
|
|
1063
1063
|
<div class="flex flex-col gap-2">
|
|
1064
|
-
<h3 class="body-
|
|
1064
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1065
1065
|
Enable accessibility theme
|
|
1066
1066
|
</h3>
|
|
1067
|
-
<p class="body-
|
|
1067
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1068
1068
|
When accessibility is required, enable our accessibility theme.
|
|
1069
1069
|
This increases contrast and makes sure there are no color
|
|
1070
1070
|
contrast issues.
|
|
@@ -1074,7 +1074,7 @@ export const Accessibility: Story = {
|
|
|
1074
1074
|
|
|
1075
1075
|
<div class="grid gap-4 md:grid-cols-2">
|
|
1076
1076
|
<div class="flex flex-col gap-3">
|
|
1077
|
-
<h3 class="label-
|
|
1077
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1078
1078
|
Default
|
|
1079
1079
|
</h3>
|
|
1080
1080
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -1092,7 +1092,7 @@ export const Accessibility: Story = {
|
|
|
1092
1092
|
</div>
|
|
1093
1093
|
|
|
1094
1094
|
<div class="accessible-theme flex flex-col gap-3">
|
|
1095
|
-
<h3 class="label-
|
|
1095
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1096
1096
|
Accessible
|
|
1097
1097
|
</h3>
|
|
1098
1098
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -38,13 +38,13 @@ import { UiSeparator } from '@aleph-alpha/ui-library'
|
|
|
38
38
|
<template>
|
|
39
39
|
<div class="gap-y-4">
|
|
40
40
|
<div>
|
|
41
|
-
<h4 class="body-
|
|
42
|
-
<p class="body-
|
|
41
|
+
<h4 class="body-s-medium">Section Title</h4>
|
|
42
|
+
<p class="body-s-regular text-content-on-surface-muted">Description text goes here.</p>
|
|
43
43
|
</div>
|
|
44
44
|
<UiSeparator />
|
|
45
45
|
<div>
|
|
46
|
-
<h4 class="body-
|
|
47
|
-
<p class="body-
|
|
46
|
+
<h4 class="body-s-medium">Another Section</h4>
|
|
47
|
+
<p class="body-s-regular text-content-on-surface-muted">More content below the separator.</p>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
50
50
|
</template>`;
|
|
@@ -60,13 +60,13 @@ export const Default: Story = {
|
|
|
60
60
|
},
|
|
61
61
|
template: `<div class="gap-y-4">
|
|
62
62
|
<div>
|
|
63
|
-
<h4 class="body-
|
|
64
|
-
<p class="body-
|
|
63
|
+
<h4 class="body-s-medium">Section Title</h4>
|
|
64
|
+
<p class="body-s-regular text-content-on-surface-muted">Description text goes here.</p>
|
|
65
65
|
</div>
|
|
66
66
|
<UiSeparator v-bind="args" />
|
|
67
67
|
<div>
|
|
68
|
-
<h4 class="body-
|
|
69
|
-
<p class="body-
|
|
68
|
+
<h4 class="body-s-medium">Another Section</h4>
|
|
69
|
+
<p class="body-s-regular text-content-on-surface-muted">More content below the separator.</p>
|
|
70
70
|
</div>
|
|
71
71
|
</div>`,
|
|
72
72
|
}),
|
|
@@ -84,7 +84,7 @@ import { UiSeparator } from '@aleph-alpha/ui-library'
|
|
|
84
84
|
</script>
|
|
85
85
|
|
|
86
86
|
<template>
|
|
87
|
-
<div class="flex h-5 items-center gap-x-4 body-
|
|
87
|
+
<div class="flex h-5 items-center gap-x-4 body-s-regular">
|
|
88
88
|
<span>Home</span>
|
|
89
89
|
<UiSeparator orientation="vertical" />
|
|
90
90
|
<span>Products</span>
|
|
@@ -104,7 +104,7 @@ export const Vertical: Story = {
|
|
|
104
104
|
setup() {
|
|
105
105
|
return { args };
|
|
106
106
|
},
|
|
107
|
-
template: `<div class="flex h-5 items-center gap-x-4 body-
|
|
107
|
+
template: `<div class="flex h-5 items-center gap-x-4 body-s-regular">
|
|
108
108
|
<span>Home</span>
|
|
109
109
|
<UiSeparator v-bind="args" orientation="vertical" />
|
|
110
110
|
<span>Products</span>
|
|
@@ -130,13 +130,13 @@ import { UiSeparator } from '@aleph-alpha/ui-library'
|
|
|
130
130
|
<template>
|
|
131
131
|
<div class="rounded-lg border p-4">
|
|
132
132
|
<div class="gap-y-1">
|
|
133
|
-
<h4 class="body-
|
|
134
|
-
<p class="body-
|
|
133
|
+
<h4 class="body-s-medium leading-none">Aleph Alpha UI</h4>
|
|
134
|
+
<p class="body-s-regular text-content-on-surface-muted">
|
|
135
135
|
An open-source UI component library.
|
|
136
136
|
</p>
|
|
137
137
|
</div>
|
|
138
138
|
<UiSeparator class="my-4" />
|
|
139
|
-
<div class="flex h-5 items-center gap-x-4 body-
|
|
139
|
+
<div class="flex h-5 items-center gap-x-4 body-s-regular">
|
|
140
140
|
<span>Docs</span>
|
|
141
141
|
<UiSeparator orientation="vertical" />
|
|
142
142
|
<span>Source</span>
|
|
@@ -157,13 +157,13 @@ export const InCard: Story = {
|
|
|
157
157
|
},
|
|
158
158
|
template: `<div class="rounded-lg border p-4">
|
|
159
159
|
<div class="gap-y-1">
|
|
160
|
-
<h4 class="body-
|
|
161
|
-
<p class="body-
|
|
160
|
+
<h4 class="body-s-medium leading-none">Aleph Alpha UI</h4>
|
|
161
|
+
<p class="body-s-regular text-content-on-surface-muted">
|
|
162
162
|
An open-source UI component library.
|
|
163
163
|
</p>
|
|
164
164
|
</div>
|
|
165
165
|
<UiSeparator class="my-4" />
|
|
166
|
-
<div class="flex h-5 items-center gap-x-4 body-
|
|
166
|
+
<div class="flex h-5 items-center gap-x-4 body-s-regular">
|
|
167
167
|
<span>Docs</span>
|
|
168
168
|
<UiSeparator orientation="vertical" />
|
|
169
169
|
<span>Source</span>
|