@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
|
@@ -132,7 +132,7 @@ export const DesignNotes: Story = {
|
|
|
132
132
|
<section class="flex flex-col gap-8 p-4 bg-surface-secondary">
|
|
133
133
|
<div>
|
|
134
134
|
<h2 class="heading-m font-bold text-content-on-surface-primary">Usage</h2>
|
|
135
|
-
<p class="body-
|
|
135
|
+
<p class="body-m-regular mt-2 text-content-on-surface-primary">
|
|
136
136
|
To help users clearly understand primary, secondary, and other types of
|
|
137
137
|
buttons, make sure to consider the action. Use the guidelines below to
|
|
138
138
|
determine the correct button to use.
|
|
@@ -143,7 +143,7 @@ export const DesignNotes: Story = {
|
|
|
143
143
|
<div>
|
|
144
144
|
<UiButton>Primary</UiButton>
|
|
145
145
|
</div>
|
|
146
|
-
<p class="label-
|
|
146
|
+
<p class="label-m-regular text-content-on-surface-primary">
|
|
147
147
|
Reserved for the main call to action on a page. Only one primary button
|
|
148
148
|
should be used per screen (excluding application headers, modal dialogs,
|
|
149
149
|
or side panels).
|
|
@@ -152,14 +152,14 @@ export const DesignNotes: Story = {
|
|
|
152
152
|
<div>
|
|
153
153
|
<UiButton variant="secondary">Secondary</UiButton>
|
|
154
154
|
</div>
|
|
155
|
-
<p class="label-
|
|
155
|
+
<p class="label-m-regular text-content-on-surface-primary">
|
|
156
156
|
Use for less prominent but still important actions.
|
|
157
157
|
</p>
|
|
158
158
|
|
|
159
159
|
<div>
|
|
160
160
|
<UiButton variant="outline">Outlined</UiButton>
|
|
161
161
|
</div>
|
|
162
|
-
<p class="label-
|
|
162
|
+
<p class="label-m-regular text-content-on-surface-primary">
|
|
163
163
|
For less prominent or independent actions. These buttons can be used
|
|
164
164
|
alone or paired with a primary button when multiple actions are present.
|
|
165
165
|
They are also suitable for subtasks where the primary button performs
|
|
@@ -169,7 +169,7 @@ export const DesignNotes: Story = {
|
|
|
169
169
|
<div>
|
|
170
170
|
<UiButton variant="ghost">Ghost</UiButton>
|
|
171
171
|
</div>
|
|
172
|
-
<p class="label-
|
|
172
|
+
<p class="label-m-regular text-content-on-surface-primary">
|
|
173
173
|
For subtle actions with little emphasis, or for use with a primary
|
|
174
174
|
button in a button row (for example, dialogs: "Cancel" next to a primary
|
|
175
175
|
"Submit").
|
|
@@ -178,14 +178,14 @@ export const DesignNotes: Story = {
|
|
|
178
178
|
<div>
|
|
179
179
|
<UiButton variant="destructive">Destructive</UiButton>
|
|
180
180
|
</div>
|
|
181
|
-
<p class="label-
|
|
181
|
+
<p class="label-m-regular text-content-on-surface-primary">
|
|
182
182
|
For critical actions, like deleting or removing.
|
|
183
183
|
</p>
|
|
184
184
|
|
|
185
185
|
<div>
|
|
186
186
|
<UiButton variant="link">Link</UiButton>
|
|
187
187
|
</div>
|
|
188
|
-
<p class="label-
|
|
188
|
+
<p class="label-m-regular text-content-on-surface-primary">
|
|
189
189
|
For when a link is required.
|
|
190
190
|
</p>
|
|
191
191
|
</div>
|
|
@@ -222,10 +222,10 @@ export const Accessibility: Story = {
|
|
|
222
222
|
|
|
223
223
|
<div class="flex flex-col gap-6">
|
|
224
224
|
<div class="flex flex-col gap-2">
|
|
225
|
-
<h3 class="body-
|
|
225
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
226
226
|
Make sure button labels are unique and descriptive
|
|
227
227
|
</h3>
|
|
228
|
-
<p class="body-
|
|
228
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
229
229
|
Labels like "Click Here" and "Read More" don't provide context. In
|
|
230
230
|
addition, some screen reader users also navigate through a list of all
|
|
231
231
|
the buttons on a page or screen. Therefore, all button labels should
|
|
@@ -234,10 +234,10 @@ export const Accessibility: Story = {
|
|
|
234
234
|
</div>
|
|
235
235
|
|
|
236
236
|
<div class="flex flex-col gap-2">
|
|
237
|
-
<h3 class="body-
|
|
237
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
238
238
|
Icon-only buttons should be used carefully and only after checking for accessibility
|
|
239
239
|
</h3>
|
|
240
|
-
<p class="body-
|
|
240
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
241
241
|
The meaning of the icon must be visually self-evident (easily and
|
|
242
242
|
universally understood). In addition, a programmatically associated
|
|
243
243
|
semantic label (such as an aria-label attribute) should be added so it
|
|
@@ -258,10 +258,10 @@ export const Accessibility: Story = {
|
|
|
258
258
|
</div>
|
|
259
259
|
|
|
260
260
|
<div class="flex flex-col gap-2">
|
|
261
|
-
<h3 class="body-
|
|
261
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
262
262
|
Enable accessibility theme
|
|
263
263
|
</h3>
|
|
264
|
-
<p class="body-
|
|
264
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
265
265
|
When accessibility is required, enable our accessibility theme. This
|
|
266
266
|
increases contrast and makes sure there are no color contrast issues.
|
|
267
267
|
</p>
|
|
@@ -270,7 +270,7 @@ export const Accessibility: Story = {
|
|
|
270
270
|
|
|
271
271
|
<div class="grid gap-4 md:grid-cols-2">
|
|
272
272
|
<div class="flex flex-col gap-3">
|
|
273
|
-
<h3 class="label-
|
|
273
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
274
274
|
Default
|
|
275
275
|
</h3>
|
|
276
276
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -279,7 +279,7 @@ export const Accessibility: Story = {
|
|
|
279
279
|
</div>
|
|
280
280
|
|
|
281
281
|
<div class="accessible-theme flex flex-col gap-3">
|
|
282
|
-
<h3 class="label-
|
|
282
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
283
283
|
Accessible
|
|
284
284
|
</h3>
|
|
285
285
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -831,28 +831,28 @@ export const Sizes: Story = {
|
|
|
831
831
|
<section class="flex flex-col gap-6 rounded-lg bg-background-surface-primary p-4">
|
|
832
832
|
<div>
|
|
833
833
|
<h2 class="heading-s text-content-on-surface-primary">Sizes</h2>
|
|
834
|
-
<p class="body-
|
|
834
|
+
<p class="body-s-regular mt-2 text-content-on-surface-primary">
|
|
835
835
|
Buttons come in three sizes: small, default and large. Buttons should match in size.
|
|
836
836
|
</p>
|
|
837
837
|
</div>
|
|
838
838
|
|
|
839
839
|
<div class="grid gap-4 md:grid-cols-3">
|
|
840
840
|
<div class="flex flex-col gap-3">
|
|
841
|
-
<h3 class="label-
|
|
841
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Small</h3>
|
|
842
842
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
843
843
|
<UiButton size="sm">Primary</UiButton>
|
|
844
844
|
</div>
|
|
845
845
|
</div>
|
|
846
846
|
|
|
847
847
|
<div class="flex flex-col gap-3">
|
|
848
|
-
<h3 class="label-
|
|
848
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Default</h3>
|
|
849
849
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
850
850
|
<UiButton>Primary</UiButton>
|
|
851
851
|
</div>
|
|
852
852
|
</div>
|
|
853
853
|
|
|
854
854
|
<div class="flex flex-col gap-3">
|
|
855
|
-
<h3 class="label-
|
|
855
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Large</h3>
|
|
856
856
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
857
857
|
<UiButton size="lg">Primary</UiButton>
|
|
858
858
|
</div>
|
|
@@ -905,14 +905,14 @@ export const IconSizes: Story = {
|
|
|
905
905
|
<section class="flex flex-col gap-6 rounded-lg bg-background-surface-primary p-4">
|
|
906
906
|
<div>
|
|
907
907
|
<h2 class="heading-s text-content-on-surface-primary">Sizes</h2>
|
|
908
|
-
<p class="body-
|
|
908
|
+
<p class="body-s-regular mt-2 text-content-on-surface-primary">
|
|
909
909
|
Buttons come in three sizes: small, default and large. Buttons should match in size.
|
|
910
910
|
</p>
|
|
911
911
|
</div>
|
|
912
912
|
|
|
913
913
|
<div class="grid gap-3 md:grid-cols-4">
|
|
914
914
|
<div v-if="args.variant === 'ghost'" class="flex flex-col gap-3">
|
|
915
|
-
<h3 class="label-
|
|
915
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Extra Small Icon</h3>
|
|
916
916
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
917
917
|
<UiButton :variant="args.variant" size="icon-xs" aria-label="Close">
|
|
918
918
|
<UiIcon name="Image" />
|
|
@@ -920,7 +920,7 @@ export const IconSizes: Story = {
|
|
|
920
920
|
</div>
|
|
921
921
|
</div>
|
|
922
922
|
<div class="flex flex-col gap-3">
|
|
923
|
-
<h3 class="label-
|
|
923
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Small Icon</h3>
|
|
924
924
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
925
925
|
<UiButton :variant="args.variant" size="icon-sm" aria-label="Close">
|
|
926
926
|
<UiIcon name="Image" />
|
|
@@ -929,7 +929,7 @@ export const IconSizes: Story = {
|
|
|
929
929
|
</div>
|
|
930
930
|
|
|
931
931
|
<div class="flex flex-col gap-3">
|
|
932
|
-
<h3 class="label-
|
|
932
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Default Icon</h3>
|
|
933
933
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
934
934
|
<UiButton :variant="args.variant" size="icon" aria-label="Close">
|
|
935
935
|
<UiIcon name="Image" />
|
|
@@ -938,7 +938,7 @@ export const IconSizes: Story = {
|
|
|
938
938
|
</div>
|
|
939
939
|
|
|
940
940
|
<div class="flex flex-col gap-3">
|
|
941
|
-
<h3 class="label-
|
|
941
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Large Icon</h3>
|
|
942
942
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
943
943
|
<UiButton :variant="args.variant" size="icon-lg" aria-label="Close">
|
|
944
944
|
<UiIcon name="Image" />
|
|
@@ -995,10 +995,10 @@ export const IconUsage: Story = {
|
|
|
995
995
|
<section class="flex flex-col gap-6 rounded-lg bg-background-surface-primary p-4">
|
|
996
996
|
<div>
|
|
997
997
|
<h2 class="heading-s text-content-on-surface-primary">Icon usage</h2>
|
|
998
|
-
<p class="body-
|
|
998
|
+
<p class="body-s-regular mt-2 text-content-on-surface-primary">
|
|
999
999
|
There are three options for placing icons within buttons. Use only one icon per button.
|
|
1000
1000
|
</p>
|
|
1001
|
-
<p class="body-
|
|
1001
|
+
<p class="body-s-regular mt-6 text-content-on-surface-primary">
|
|
1002
1002
|
Icon-only buttons can only be used when the user's action is very clear and doesn't need
|
|
1003
1003
|
explanatory text. Examples include down and next arrows.
|
|
1004
1004
|
</p>
|
|
@@ -1006,21 +1006,21 @@ export const IconUsage: Story = {
|
|
|
1006
1006
|
|
|
1007
1007
|
<div class="grid gap-4 md:grid-cols-3">
|
|
1008
1008
|
<div class="flex flex-col gap-3">
|
|
1009
|
-
<h3 class="label-
|
|
1009
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Icon right</h3>
|
|
1010
1010
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
1011
1011
|
<UiButton :end-icon="ChevronRightIcon">Primary</UiButton>
|
|
1012
1012
|
</div>
|
|
1013
1013
|
</div>
|
|
1014
1014
|
|
|
1015
1015
|
<div class="flex flex-col gap-3">
|
|
1016
|
-
<h3 class="label-
|
|
1016
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Icon left</h3>
|
|
1017
1017
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
1018
1018
|
<UiButton :start-icon="ChevronLeftIcon">Primary</UiButton>
|
|
1019
1019
|
</div>
|
|
1020
1020
|
</div>
|
|
1021
1021
|
|
|
1022
1022
|
<div class="flex flex-col gap-3">
|
|
1023
|
-
<h3 class="label-
|
|
1023
|
+
<h3 class="label-s-medium text-center text-content-on-surface-primary">Icon only</h3>
|
|
1024
1024
|
<div class="flex min-h-20 items-center justify-center rounded-sm bg-background-surface-muted-subtle p-6">
|
|
1025
1025
|
<UiButton size="icon-sm" aria-label="Go back" @click="onClick">
|
|
1026
1026
|
<UiIcon name="chevron-left" :size="16" />
|
|
@@ -1401,7 +1401,7 @@ export const AllVariantsAndSizes: Story = {
|
|
|
1401
1401
|
template: `
|
|
1402
1402
|
<div class="mx-auto flex w-fit flex-col items-center gap-10">
|
|
1403
1403
|
<section v-for="variant in variants" :key="variant" class="flex w-full flex-col items-center gap-3">
|
|
1404
|
-
<h3 class="body-
|
|
1404
|
+
<h3 class="body-s-medium capitalize">{{ variant }}</h3>
|
|
1405
1405
|
<table class="w-full table-fixed border-collapse border border-border-surface-default">
|
|
1406
1406
|
<colgroup>
|
|
1407
1407
|
<col class="w-48" />
|
|
@@ -1411,15 +1411,15 @@ export const AllVariantsAndSizes: Story = {
|
|
|
1411
1411
|
</colgroup>
|
|
1412
1412
|
<thead>
|
|
1413
1413
|
<tr>
|
|
1414
|
-
<th class="label-
|
|
1415
|
-
<th class="label-
|
|
1416
|
-
<th class="label-
|
|
1417
|
-
<th class="label-
|
|
1414
|
+
<th class="label-xs-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Size</th>
|
|
1415
|
+
<th class="label-xs-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Default</th>
|
|
1416
|
+
<th class="label-xs-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Loading</th>
|
|
1417
|
+
<th class="label-xs-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center">Disabled</th>
|
|
1418
1418
|
</tr>
|
|
1419
1419
|
</thead>
|
|
1420
1420
|
<tbody>
|
|
1421
1421
|
<tr v-for="row in rowsFor(variant)" :key="row.size" class="align-middle">
|
|
1422
|
-
<td class="label-
|
|
1422
|
+
<td class="label-xs-medium text-content-on-surface-muted border border-border-surface-default px-3 py-2 text-center whitespace-nowrap">{{ row.size }}</td>
|
|
1423
1423
|
<td class="border border-border-surface-default px-3 py-2 text-center">
|
|
1424
1424
|
<UiButton :variant="variant" :size="row.size" aria-label="Close">
|
|
1425
1425
|
<template v-if="row.isIcon"><UiIcon name="x" /></template>
|
|
@@ -182,7 +182,7 @@ const ImageIcon = {
|
|
|
182
182
|
<template>
|
|
183
183
|
<div class="flex flex-col gap-10">
|
|
184
184
|
<div v-for="orientation in ['horizontal', 'vertical']" :key="orientation" class="flex flex-col gap-4">
|
|
185
|
-
<h3 class="body-
|
|
185
|
+
<h3 class="body-s-medium capitalize">{{ orientation }}</h3>
|
|
186
186
|
<div class="flex flex-wrap items-start gap-6">
|
|
187
187
|
<UiButtonGroup v-for="variant in variants" :key="variant" :orientation="orientation">
|
|
188
188
|
<UiButton
|
|
@@ -235,7 +235,7 @@ export const Variants: Story = {
|
|
|
235
235
|
:key="orientation"
|
|
236
236
|
class="flex flex-col gap-4"
|
|
237
237
|
>
|
|
238
|
-
<h3 class="body-
|
|
238
|
+
<h3 class="body-s-medium capitalize text-content-on-surface-primary">
|
|
239
239
|
{{ orientation }}
|
|
240
240
|
</h3>
|
|
241
241
|
<div class="flex flex-wrap items-start gap-6">
|
|
@@ -335,10 +335,10 @@ export const Accessibility: Story = {
|
|
|
335
335
|
|
|
336
336
|
<div class="flex flex-col gap-6">
|
|
337
337
|
<div class="flex flex-col gap-2">
|
|
338
|
-
<h3 class="body-
|
|
338
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
339
339
|
Give the group an accessible name
|
|
340
340
|
</h3>
|
|
341
|
-
<p class="body-
|
|
341
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
342
342
|
<code>UiButtonGroup</code> renders a <code>role="group"</code>.
|
|
343
343
|
For toolbars or segmented controls, add an <code>aria-label</code>
|
|
344
344
|
so screen-reader users know what the buttons share. Icon-only
|
|
@@ -347,10 +347,10 @@ export const Accessibility: Story = {
|
|
|
347
347
|
</div>
|
|
348
348
|
|
|
349
349
|
<div class="flex flex-col gap-2">
|
|
350
|
-
<h3 class="body-
|
|
350
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
351
351
|
Keyboard operability
|
|
352
352
|
</h3>
|
|
353
|
-
<p class="body-
|
|
353
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
354
354
|
Each button is a normal tab stop: <code>Tab</code> moves between
|
|
355
355
|
them in DOM order and <code>Enter</code>/<code>Space</code>
|
|
356
356
|
activates the focused one.
|
|
@@ -945,10 +945,10 @@ export const Accessibility: Story = {
|
|
|
945
945
|
|
|
946
946
|
<div class="flex flex-col gap-6">
|
|
947
947
|
<div class="flex flex-col gap-2">
|
|
948
|
-
<h3 class="body-
|
|
948
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
949
949
|
Requirements
|
|
950
950
|
</h3>
|
|
951
|
-
<ul class="body-
|
|
951
|
+
<ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
|
|
952
952
|
<li>
|
|
953
953
|
Today and the selected day differ in shape as well as fill, so
|
|
954
954
|
both survive without colour
|
|
@@ -976,10 +976,10 @@ export const Accessibility: Story = {
|
|
|
976
976
|
</div>
|
|
977
977
|
|
|
978
978
|
<div class="flex flex-col gap-2">
|
|
979
|
-
<h3 class="body-
|
|
979
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
980
980
|
Enable accessibility theme
|
|
981
981
|
</h3>
|
|
982
|
-
<p class="body-
|
|
982
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
983
983
|
When accessibility is required, enable our accessibility theme.
|
|
984
984
|
This increases contrast and ensures there are no color contrast
|
|
985
985
|
issues.
|
|
@@ -989,7 +989,7 @@ export const Accessibility: Story = {
|
|
|
989
989
|
|
|
990
990
|
<div class="grid gap-4 md:grid-cols-2">
|
|
991
991
|
<div class="flex flex-col gap-3">
|
|
992
|
-
<h3 class="label-
|
|
992
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
993
993
|
Default
|
|
994
994
|
</h3>
|
|
995
995
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -1002,7 +1002,7 @@ export const Accessibility: Story = {
|
|
|
1002
1002
|
</div>
|
|
1003
1003
|
|
|
1004
1004
|
<div class="accessible-theme flex flex-col gap-3">
|
|
1005
|
-
<h3 class="label-
|
|
1005
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1006
1006
|
Accessible
|
|
1007
1007
|
</h3>
|
|
1008
1008
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -56,13 +56,13 @@ import {
|
|
|
56
56
|
<form>
|
|
57
57
|
<div class="grid w-full items-center gap-4">
|
|
58
58
|
<div class="flex flex-col gap-y-1.5">
|
|
59
|
-
<label for="email" class="body-
|
|
59
|
+
<label for="email" class="body-s-medium">Email</label>
|
|
60
60
|
<UiInput id="email" type="email" placeholder="m@example.com" />
|
|
61
61
|
</div>
|
|
62
62
|
<div class="flex flex-col gap-y-1.5">
|
|
63
63
|
<div class="flex items-center">
|
|
64
|
-
<label for="password" class="body-
|
|
65
|
-
<a href="#" class="body-
|
|
64
|
+
<label for="password" class="body-s-medium">Password</label>
|
|
65
|
+
<a href="#" class="body-s-regular ml-auto inline-block underline">
|
|
66
66
|
Forgot your password?
|
|
67
67
|
</a>
|
|
68
68
|
</div>
|
|
@@ -109,13 +109,13 @@ export const Default: Story = {
|
|
|
109
109
|
<form>
|
|
110
110
|
<div class="grid w-full items-center gap-4">
|
|
111
111
|
<div class="flex flex-col gap-y-1.5">
|
|
112
|
-
<label for="email" class="body-
|
|
112
|
+
<label for="email" class="body-s-medium">Email</label>
|
|
113
113
|
<UiInput id="email" type="email" placeholder="m@example.com" />
|
|
114
114
|
</div>
|
|
115
115
|
<div class="flex flex-col gap-y-1.5">
|
|
116
116
|
<div class="flex items-center">
|
|
117
|
-
<label for="password" class="body-
|
|
118
|
-
<a href="#" class="body-
|
|
117
|
+
<label for="password" class="body-s-medium">Password</label>
|
|
118
|
+
<a href="#" class="body-s-regular ml-auto inline-block underline">
|
|
119
119
|
Forgot your password?
|
|
120
120
|
</a>
|
|
121
121
|
</div>
|
|
@@ -56,7 +56,7 @@ const checked = ref(false)
|
|
|
56
56
|
<template>
|
|
57
57
|
<div class="flex items-center gap-3">
|
|
58
58
|
<UiCheckbox id="terms" name="terms" v-model="checked" />
|
|
59
|
-
<label for="terms" class="body-
|
|
59
|
+
<label for="terms" class="body-s-medium">
|
|
60
60
|
Accept terms and conditions
|
|
61
61
|
</label>
|
|
62
62
|
</div>
|
|
@@ -74,7 +74,7 @@ export const Default: Story = {
|
|
|
74
74
|
},
|
|
75
75
|
template: `<div class="flex items-center gap-3">
|
|
76
76
|
<UiCheckbox id="terms" name="terms" v-model="checked" :disabled="args.disabled" :required="args.required" />
|
|
77
|
-
<label for="terms" class="body-
|
|
77
|
+
<label for="terms" class="body-s-medium">
|
|
78
78
|
Accept terms and conditions
|
|
79
79
|
</label>
|
|
80
80
|
</div>`,
|
|
@@ -126,8 +126,8 @@ export const DesignNotes: Story = {
|
|
|
126
126
|
|
|
127
127
|
<div class="grid gap-8 md:grid-cols-2">
|
|
128
128
|
<div class="flex flex-col gap-3">
|
|
129
|
-
<h3 class="body-
|
|
130
|
-
<ul class="body-
|
|
129
|
+
<h3 class="body-m-medium text-content-on-surface-primary">Do</h3>
|
|
130
|
+
<ul class="body-m-regular list-disc space-y-2 pl-5 text-content-on-surface-primary">
|
|
131
131
|
<li>Use checkboxes for independent choices</li>
|
|
132
132
|
<li>Allow multiple selections when appropriate</li>
|
|
133
133
|
<li>Write descriptive labels</li>
|
|
@@ -138,8 +138,8 @@ export const DesignNotes: Story = {
|
|
|
138
138
|
</div>
|
|
139
139
|
|
|
140
140
|
<div class="flex flex-col gap-3">
|
|
141
|
-
<h3 class="body-
|
|
142
|
-
<ul class="body-
|
|
141
|
+
<h3 class="body-m-medium text-content-on-surface-primary">Don't</h3>
|
|
142
|
+
<ul class="body-m-regular list-disc space-y-2 pl-5 text-content-on-surface-primary">
|
|
143
143
|
<li>Use checkboxes when only one choice is allowed (use radio instead)</li>
|
|
144
144
|
<li>Present unrelated options in the same group</li>
|
|
145
145
|
<li>Use vague labels like "Enable" or "Yes"</li>
|
|
@@ -185,10 +185,10 @@ export const Accessibility: Story = {
|
|
|
185
185
|
|
|
186
186
|
<div class="flex flex-col gap-6">
|
|
187
187
|
<div class="flex flex-col gap-2">
|
|
188
|
-
<h3 class="body-
|
|
188
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
189
189
|
Requirements
|
|
190
190
|
</h3>
|
|
191
|
-
<ul class="body-
|
|
191
|
+
<ul class="body-m-regular list-disc pl-5 text-content-on-surface-primary">
|
|
192
192
|
<li>Every checkbox has a visible label</li>
|
|
193
193
|
<li>Descriptions remain readable and associated with the field</li>
|
|
194
194
|
<li>Keyboard focus is correct in a checkbox group</li>
|
|
@@ -196,10 +196,10 @@ export const Accessibility: Story = {
|
|
|
196
196
|
</div>
|
|
197
197
|
|
|
198
198
|
<div class="flex flex-col gap-2">
|
|
199
|
-
<h3 class="body-
|
|
199
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
200
200
|
Enable accessibility theme
|
|
201
201
|
</h3>
|
|
202
|
-
<p class="body-
|
|
202
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
203
203
|
When accessibility is required, enable our accessibility theme. This
|
|
204
204
|
increases contrast and ensures there are no color contrast issues.
|
|
205
205
|
</p>
|
|
@@ -208,7 +208,7 @@ export const Accessibility: Story = {
|
|
|
208
208
|
|
|
209
209
|
<div class="grid gap-4 md:grid-cols-2">
|
|
210
210
|
<div class="flex flex-col gap-3">
|
|
211
|
-
<h3 class="label-
|
|
211
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
212
212
|
Default
|
|
213
213
|
</h3>
|
|
214
214
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -220,10 +220,10 @@ export const Accessibility: Story = {
|
|
|
220
220
|
aria-describedby="checkbox-accessibility-default-description"
|
|
221
221
|
/>
|
|
222
222
|
<div class="grid gap-1">
|
|
223
|
-
<label for="checkbox-accessibility-default" class="body-
|
|
223
|
+
<label for="checkbox-accessibility-default" class="body-s-medium text-content-on-surface-primary">
|
|
224
224
|
Checkbox Text
|
|
225
225
|
</label>
|
|
226
|
-
<p id="checkbox-accessibility-default-description" class="body-
|
|
226
|
+
<p id="checkbox-accessibility-default-description" class="body-s-regular text-content-on-surface-secondary">
|
|
227
227
|
This is a checkbox description.
|
|
228
228
|
</p>
|
|
229
229
|
</div>
|
|
@@ -232,7 +232,7 @@ export const Accessibility: Story = {
|
|
|
232
232
|
</div>
|
|
233
233
|
|
|
234
234
|
<div class="accessible-theme flex flex-col gap-3">
|
|
235
|
-
<h3 class="label-
|
|
235
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
236
236
|
Accessible
|
|
237
237
|
</h3>
|
|
238
238
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -244,10 +244,10 @@ export const Accessibility: Story = {
|
|
|
244
244
|
aria-describedby="checkbox-accessibility-accessible-description"
|
|
245
245
|
/>
|
|
246
246
|
<div class="grid gap-1">
|
|
247
|
-
<label for="checkbox-accessibility-accessible" class="body-
|
|
247
|
+
<label for="checkbox-accessibility-accessible" class="body-s-medium text-content-on-surface-primary">
|
|
248
248
|
Checkbox Text
|
|
249
249
|
</label>
|
|
250
|
-
<p id="checkbox-accessibility-accessible-description" class="body-
|
|
250
|
+
<p id="checkbox-accessibility-accessible-description" class="body-s-regular text-content-on-surface-secondary">
|
|
251
251
|
This is a checkbox description.
|
|
252
252
|
</p>
|
|
253
253
|
</div>
|
|
@@ -288,10 +288,10 @@ const checked = ref(true)
|
|
|
288
288
|
aria-describedby="terms-2-description"
|
|
289
289
|
/>
|
|
290
290
|
<div class="grid gap-2">
|
|
291
|
-
<label for="terms-2" class="body-
|
|
291
|
+
<label for="terms-2" class="body-s-medium">
|
|
292
292
|
Accept terms and conditions
|
|
293
293
|
</label>
|
|
294
|
-
<p id="terms-2-description" class="body-
|
|
294
|
+
<p id="terms-2-description" class="body-s-regular text-content-on-surface-muted">
|
|
295
295
|
By clicking this checkbox, you agree to the terms and conditions.
|
|
296
296
|
</p>
|
|
297
297
|
</div>
|
|
@@ -313,10 +313,10 @@ export const WithDescription: Story = {
|
|
|
313
313
|
template: `<div class="flex items-start gap-3">
|
|
314
314
|
<UiCheckbox id="terms-2" name="terms-2" v-model="checked" :disabled="args.disabled" :required="args.required" aria-describedby="terms-2-description" />
|
|
315
315
|
<div class="grid gap-2">
|
|
316
|
-
<label for="terms-2" class="body-
|
|
316
|
+
<label for="terms-2" class="body-s-medium">
|
|
317
317
|
Accept terms and conditions
|
|
318
318
|
</label>
|
|
319
|
-
<p id="terms-2-description" class="body-
|
|
319
|
+
<p id="terms-2-description" class="body-s-regular text-content-on-surface-muted">
|
|
320
320
|
By clicking this checkbox, you agree to the terms and conditions.
|
|
321
321
|
</p>
|
|
322
322
|
</div>
|
|
@@ -362,7 +362,7 @@ import { UiCheckbox } from '@aleph-alpha/ui-library'
|
|
|
362
362
|
<template>
|
|
363
363
|
<div class="flex items-start gap-3">
|
|
364
364
|
<UiCheckbox id="toggle" name="toggle" disabled />
|
|
365
|
-
<label for="toggle" class="body-
|
|
365
|
+
<label for="toggle" class="body-s-medium">
|
|
366
366
|
Enable notifications
|
|
367
367
|
</label>
|
|
368
368
|
</div>
|
|
@@ -382,7 +382,7 @@ export const Disabled: Story = {
|
|
|
382
382
|
},
|
|
383
383
|
template: `<div class="flex items-start gap-3">
|
|
384
384
|
<UiCheckbox id="toggle" name="toggle" :disabled="args.disabled" />
|
|
385
|
-
<label for="toggle" class="body-
|
|
385
|
+
<label for="toggle" class="body-s-medium">
|
|
386
386
|
Enable notifications
|
|
387
387
|
</label>
|
|
388
388
|
</div>`,
|
|
@@ -715,7 +715,7 @@ const checked = ref<'indeterminate' | boolean>('indeterminate')
|
|
|
715
715
|
<template>
|
|
716
716
|
<div class="flex items-center gap-3">
|
|
717
717
|
<UiCheckbox id="select-all" name="select-all" v-model="checked" />
|
|
718
|
-
<label for="select-all" class="body-
|
|
718
|
+
<label for="select-all" class="body-s-medium">
|
|
719
719
|
Select all
|
|
720
720
|
</label>
|
|
721
721
|
</div>
|
|
@@ -734,7 +734,7 @@ export const Indeterminate: Story = {
|
|
|
734
734
|
},
|
|
735
735
|
template: `<div class="flex items-center gap-3">
|
|
736
736
|
<UiCheckbox id="select-all" name="select-all" v-model="checked" />
|
|
737
|
-
<label for="select-all" class="body-
|
|
737
|
+
<label for="select-all" class="body-s-medium">
|
|
738
738
|
Select all
|
|
739
739
|
</label>
|
|
740
740
|
</div>`,
|
|
@@ -791,8 +791,8 @@ function renderTestCheckboxes() {
|
|
|
791
791
|
@update:model-value="onUpdate"
|
|
792
792
|
/>
|
|
793
793
|
<div class="grid gap-1">
|
|
794
|
-
<label for="t-terms" class="body-
|
|
795
|
-
<p id="t-terms-description" class="body-
|
|
794
|
+
<label for="t-terms" class="body-s-medium">Accept terms and conditions</label>
|
|
795
|
+
<p id="t-terms-description" class="body-s-regular text-content-on-surface-muted">
|
|
796
796
|
You can withdraw your consent at any time.
|
|
797
797
|
</p>
|
|
798
798
|
</div>
|
|
@@ -800,14 +800,14 @@ function renderTestCheckboxes() {
|
|
|
800
800
|
|
|
801
801
|
<div class="flex items-center gap-3">
|
|
802
802
|
<UiCheckbox id="t-newsletter" name="newsletter" v-model="newsletter" disabled />
|
|
803
|
-
<label for="t-newsletter" class="body-
|
|
803
|
+
<label for="t-newsletter" class="body-s-medium text-content-on-surface-muted">
|
|
804
804
|
Subscribe to the newsletter
|
|
805
805
|
</label>
|
|
806
806
|
</div>
|
|
807
807
|
|
|
808
808
|
<div class="flex items-center gap-3">
|
|
809
809
|
<UiCheckbox id="t-select-all" name="select-all" v-model="selectAll" />
|
|
810
|
-
<label for="t-select-all" class="body-
|
|
810
|
+
<label for="t-select-all" class="body-s-medium">Select all</label>
|
|
811
811
|
</div>
|
|
812
812
|
</div>
|
|
813
813
|
`,
|
|
@@ -1107,7 +1107,7 @@ const checked = ref(false)
|
|
|
1107
1107
|
<template>
|
|
1108
1108
|
<div class="flex items-center gap-3">
|
|
1109
1109
|
<UiCheckbox id="mobile-terms" name="terms" v-model="checked" />
|
|
1110
|
-
<label for="mobile-terms" class="body-
|
|
1110
|
+
<label for="mobile-terms" class="body-s-medium">
|
|
1111
1111
|
Accept terms and conditions
|
|
1112
1112
|
</label>
|
|
1113
1113
|
</div>
|
|
@@ -1130,7 +1130,7 @@ export const MobileBreakpoint: Story = {
|
|
|
1130
1130
|
},
|
|
1131
1131
|
template: `<div class="flex items-center gap-3">
|
|
1132
1132
|
<UiCheckbox id="mobile-terms" name="terms" v-model="checked" @update:model-value="onUpdate" />
|
|
1133
|
-
<label for="mobile-terms" class="body-
|
|
1133
|
+
<label for="mobile-terms" class="body-s-medium">
|
|
1134
1134
|
Accept terms and conditions
|
|
1135
1135
|
</label>
|
|
1136
1136
|
</div>`,
|