@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.
- package/config.d.ts +29 -3
- package/config.js +91 -3
- package/dist/system/components/UiTooltip/UiTooltip.vue.d.ts +1 -0
- package/dist/system/components/UiTooltip/types.d.ts +8 -0
- package/dist/system/components/core/tooltip/TooltipContent.vue.d.ts +2 -0
- package/dist/system/lib.js +4266 -4161
- package/dist/system/patterns/UiDataTable/UiDataTableFilterMenu.vue.d.ts +24 -0
- package/dist/system/patterns/UiDataTable/constants.d.ts +10 -0
- package/dist/system/patterns/UiDataTable/index.d.ts +1 -0
- package/dist/system/patterns/UiDataTable/types.d.ts +23 -1
- package/dist/system/patterns/UiFloatActions/UiFloatActions.vue.d.ts +3 -1
- package/docs/public-docs/getting-started-designers.md +3 -1
- package/docs/public-docs/quick-start.md +43 -0
- package/package.json +1 -1
- package/src/components/UiAccordion/UiAccordion.stories.ts +2 -2
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +2 -2
- package/src/components/UiAutocomplete/UiAutocomplete.vue +6 -6
- package/src/components/UiBadge/UiBadge.stories.ts +9 -9
- package/src/components/UiButton/UiButton.stories.ts +5 -5
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +7 -9
- package/src/components/UiChip/UiChip.vue +1 -1
- package/src/components/UiDrawer/UiDrawer.stories.ts +2 -2
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +6 -6
- package/src/components/UiEmpty/UiEmpty.vue +2 -2
- package/src/components/UiField/UiField.stories.ts +6 -6
- package/src/components/UiField/UiFieldLabelInfo.vue +1 -1
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +2 -2
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +2 -2
- package/src/components/UiInput/UiInput.vue +3 -3
- package/src/components/UiKbd/UiKbd.stories.ts +14 -14
- package/src/components/UiKbd/UiKbd.vue +1 -1
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +66 -66
- package/src/components/UiPopover/UiPopover.stories.ts +20 -20
- package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +24 -24
- package/src/components/UiResizable/UiResizable.stories.ts +15 -14
- package/src/components/UiSelect/UiSelect.stories.ts +1 -1
- package/src/components/UiSeparator/UiSeparator.stories.ts +6 -6
- package/src/components/UiSheet/UiSheet.stories.ts +14 -14
- package/src/components/UiSlider/UiSlider.stories.ts +8 -8
- package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
- package/src/components/UiSwitch/UiSwitch.stories.ts +4 -4
- package/src/components/UiTabs/UiTabs.stories.ts +46 -46
- package/src/components/UiToggle/__tests__/UiToggle.test.ts +5 -3
- package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +14 -14
- package/src/components/UiTooltip/UiTooltip.stories.ts +3 -3
- package/src/components/UiTooltip/UiTooltip.vue +2 -0
- package/src/components/UiTooltip/types.ts +9 -0
- package/src/components/core/accordion/AccordionContent.vue +1 -1
- package/src/components/core/accordion/AccordionTrigger.vue +2 -2
- package/src/components/core/alert/AlertDescription.vue +1 -1
- package/src/components/core/alert/index.ts +1 -1
- package/src/components/core/badge/index.ts +1 -1
- package/src/components/core/button/index.ts +2 -2
- package/src/components/core/calendar/Calendar.vue +4 -4
- package/src/components/core/calendar/CalendarCell.vue +1 -1
- package/src/components/core/calendar/CalendarCellTrigger.vue +2 -2
- package/src/components/core/calendar/CalendarHeadCell.vue +1 -1
- package/src/components/core/card/CardDescription.vue +1 -1
- package/src/components/core/checkbox/Checkbox.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/DropdownMenuItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -3
- package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +4 -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/FieldLabel.vue +1 -1
- package/src/components/core/field/FieldLegend.vue +2 -2
- package/src/components/core/field/FieldSeparator.vue +2 -2
- package/src/components/core/input/Input.vue +2 -2
- package/src/components/core/item/index.ts +1 -1
- package/src/components/core/kbd/Kbd.vue +1 -1
- 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 +4 -1
- package/src/components/core/listbox/ListboxItem.vue +1 -1
- package/src/components/core/native-select/NativeSelect.vue +3 -3
- package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/core/navigation-menu/index.ts +1 -1
- package/src/components/core/radio-group/RadioGroupItem.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarCellTrigger.vue +2 -2
- package/src/components/core/range-calendar/RangeCalendarHeadCell.vue +1 -1
- package/src/components/core/select/SelectItem.vue +1 -1
- package/src/components/core/select/SelectLabel.vue +6 -1
- package/src/components/core/select/SelectTrigger.vue +1 -1
- package/src/components/core/sheet/SheetDescription.vue +3 -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/slider/Slider.vue +3 -3
- package/src/components/core/stepper/StepperDescription.vue +1 -1
- package/src/components/core/switch/Switch.vue +1 -1
- package/src/components/core/table/Table.vue +1 -1
- package/src/components/core/table/TableCaption.vue +3 -1
- package/src/components/core/table/TableEmpty.vue +1 -1
- package/src/components/core/tabs/TabsList.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/TagsInputInput.vue +1 -1
- package/src/components/core/tags-input/TagsInputItem.vue +1 -1
- package/src/components/core/tags-input/TagsInputItemDelete.vue +1 -1
- package/src/components/core/textarea/Textarea.vue +1 -1
- package/src/components/core/toggle/index.ts +3 -3
- package/src/components/core/toggle-group/index.ts +2 -2
- package/src/components/core/tooltip/TooltipContent.vue +10 -4
- package/src/lib/useDrag.stories.ts +12 -12
- package/src/patterns/UiDataTable/UiDataTable.stories.ts +420 -10
- package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +1 -1
- package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +91 -0
- package/src/patterns/UiDataTable/UiDataTablePagination.vue +1 -1
- package/src/patterns/UiDataTable/constants.ts +12 -0
- package/src/patterns/UiDataTable/index.ts +1 -0
- package/src/patterns/UiDataTable/types.ts +24 -0
- package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +8 -8
- package/src/patterns/UiDatePicker/UiDatePicker.vue +1 -1
- package/src/patterns/UiFloatActions/UiFloatActionItems.vue +11 -4
- package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +416 -377
- package/src/patterns/UiFloatActions/UiFloatActions.vue +6 -2
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +2 -2
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +5 -5
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
* The anchor element the floating panel is bound to.
|
|
24
24
|
* @slot action
|
|
25
25
|
* Floating content rendered in a teleported panel (typically a {@link UiFloatActionItems} toolbar).
|
|
26
|
+
* Exposes `panelEl` (the panel element) so nested overlays such as a tooltip can
|
|
27
|
+
* teleport into the top-layer panel via `UiTooltip`'s `to` prop.
|
|
26
28
|
* @example Hover toolbar
|
|
27
29
|
* ```vue
|
|
28
30
|
* <UiFloatActions trigger="hover" placement="top" aria-label="Paragraph actions">
|
|
@@ -128,7 +130,7 @@ const hasPopupA11y = computed(() => usesButtonAnchor.value);
|
|
|
128
130
|
const anchorClass = computed(() =>
|
|
129
131
|
cn(
|
|
130
132
|
usesButtonAnchor.value &&
|
|
131
|
-
'inline-flex max-w-full cursor-default rounded-md border border-transparent bg-transparent p-0 text-left font-inherit text-inherit
|
|
133
|
+
'ui-focus-ring inline-flex max-w-full cursor-default rounded-md border border-transparent bg-transparent p-0 text-left font-inherit text-inherit',
|
|
132
134
|
isClickTrigger.value && 'cursor-pointer',
|
|
133
135
|
attrs.class ?? '',
|
|
134
136
|
),
|
|
@@ -213,7 +215,9 @@ const floatingAnimationClass = computed(() =>
|
|
|
213
215
|
@focusin="onFloatingFocusIn"
|
|
214
216
|
@focusout="onFloatingFocusOut"
|
|
215
217
|
>
|
|
216
|
-
|
|
218
|
+
<!-- `panelEl` lets slot content teleport overlays (e.g. a tooltip) into
|
|
219
|
+
this top-layer panel so they are not painted beneath it. -->
|
|
220
|
+
<slot name="action" :panel-el="floatingRef" />
|
|
217
221
|
</div>
|
|
218
222
|
</Teleport>
|
|
219
223
|
</span>
|
|
@@ -112,7 +112,7 @@ const renderStory = (args: Story['args']) => ({
|
|
|
112
112
|
Projects
|
|
113
113
|
</UiSidebarGroupLabel>
|
|
114
114
|
<UiSidebarGroupContent v-if="open">
|
|
115
|
-
<div class="px-2 py-2
|
|
115
|
+
<div class="px-2 py-2 body-14-regular text-content-on-surface-muted">Group content</div>
|
|
116
116
|
</UiSidebarGroupContent>
|
|
117
117
|
</UiSidebarGroup>
|
|
118
118
|
</UiSidebarContent>
|
|
@@ -179,7 +179,7 @@ export const CustomIcons: Story = {
|
|
|
179
179
|
Projects
|
|
180
180
|
</UiSidebarGroupLabel>
|
|
181
181
|
<UiSidebarGroupContent v-if="open">
|
|
182
|
-
<div class="px-2 py-2
|
|
182
|
+
<div class="px-2 py-2 body-14-regular text-content-on-surface-muted">Group content</div>
|
|
183
183
|
</UiSidebarGroupContent>
|
|
184
184
|
</UiSidebarGroup>
|
|
185
185
|
</UiSidebarContent>
|
|
@@ -109,7 +109,7 @@ const renderMode = (mode: MenuButtonStoryConfig) => ({
|
|
|
109
109
|
<template #start-icon>
|
|
110
110
|
<span
|
|
111
111
|
v-if="mode.checkbox"
|
|
112
|
-
class="flex size-4 items-center justify-center rounded-
|
|
112
|
+
class="flex size-4 items-center justify-center rounded-sm bg-background-accent-default text-content-on-accent-default"
|
|
113
113
|
>
|
|
114
114
|
<UiIcon name="check" size="s" />
|
|
115
115
|
</span>
|
|
@@ -128,7 +128,7 @@ const renderMode = (mode: MenuButtonStoryConfig) => ({
|
|
|
128
128
|
<template v-if="mode.endIcon || mode.badge" #end-icon>
|
|
129
129
|
<span
|
|
130
130
|
v-if="mode.badge"
|
|
131
|
-
class="min-w-6 rounded-sm bg-background-surface-muted px-1.5 py-0.5 text-center
|
|
131
|
+
class="min-w-6 rounded-sm bg-background-surface-muted px-1.5 py-0.5 text-center label-12-regular text-content-on-surface-primary"
|
|
132
132
|
>
|
|
133
133
|
{{ mode.badge }}
|
|
134
134
|
</span>
|
|
@@ -147,7 +147,7 @@ const renderMode = (mode: MenuButtonStoryConfig) => ({
|
|
|
147
147
|
<template #start-icon>
|
|
148
148
|
<span
|
|
149
149
|
v-if="mode.checkbox"
|
|
150
|
-
class="flex size-4 items-center justify-center rounded-
|
|
150
|
+
class="flex size-4 items-center justify-center rounded-sm bg-background-accent-default text-content-on-accent-default"
|
|
151
151
|
>
|
|
152
152
|
<UiIcon name="check" size="s" />
|
|
153
153
|
</span>
|
|
@@ -166,7 +166,7 @@ const renderMode = (mode: MenuButtonStoryConfig) => ({
|
|
|
166
166
|
<template v-if="mode.endIcon || mode.badge" #end-icon>
|
|
167
167
|
<span
|
|
168
168
|
v-if="mode.badge"
|
|
169
|
-
class="min-w-6 rounded-sm bg-background-surface-muted px-1.5 py-0.5 text-center
|
|
169
|
+
class="min-w-6 rounded-sm bg-background-surface-muted px-1.5 py-0.5 text-center label-12-regular text-content-on-surface-primary"
|
|
170
170
|
>
|
|
171
171
|
{{ mode.badge }}
|
|
172
172
|
</span>
|
|
@@ -178,7 +178,7 @@ const renderMode = (mode: MenuButtonStoryConfig) => ({
|
|
|
178
178
|
</UiSidebarContent>
|
|
179
179
|
</UiSidebar>
|
|
180
180
|
</UiSidebarProvider>
|
|
181
|
-
<p v-if="mode.endIconClickable" class="mt-3
|
|
181
|
+
<p v-if="mode.endIconClickable" class="mt-3 label-12-regular text-content-on-surface-muted">
|
|
182
182
|
End icon clicks: {{ actionCount }}
|
|
183
183
|
</p>
|
|
184
184
|
</div>
|