@aleph-alpha/ui-library 6.4.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/UiFileItem/UiFileItem.vue.d.ts +10 -1
- package/dist/system/components/UiFileItem/index.d.ts +1 -1
- package/dist/system/components/UiFileItem/types.d.ts +81 -5
- package/dist/system/components/UiPopover/UiPopoverContent.vue.d.ts +1 -0
- package/dist/system/components/UiPopover/types.d.ts +6 -0
- package/dist/system/components/core/popover/PopoverContent.vue.d.ts +1 -0
- package/dist/system/components/core/toggle/index.d.ts +1 -1
- package/dist/system/lib.js +12336 -12055
- 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 +114 -9
- package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +54 -2
- package/src/components/UiFileItem/index.ts +1 -0
- package/src/components/UiFileItem/types.ts +82 -5
- 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 +168 -27
- package/src/components/UiPopover/UiPopoverContent.vue +2 -0
- package/src/components/UiPopover/__tests__/UiPopover.test.ts +48 -0
- package/src/components/UiPopover/types.ts +7 -0
- 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/popover/PopoverContent.vue +9 -3
- 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 +818 -32
- package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +194 -12
- 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
|
@@ -50,15 +50,15 @@ export const Surface: Story = {
|
|
|
50
50
|
|
|
51
51
|
<div class="mb-6">
|
|
52
52
|
<h2 class="heading-s text-content-on-surface-primary mb-1">surface</h2>
|
|
53
|
-
<p class="body-
|
|
53
|
+
<p class="body-s-regular text-content-on-surface-muted">Overlay colors for modals and backdrops. Click class name to copy.</p>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
56
56
|
<div class="flex flex-wrap gap-6">
|
|
57
57
|
<div class="flex flex-col items-center gap-1.5">
|
|
58
58
|
<div class="w-16 h-16 rounded-md bg-overlay-surface-modal-overlay border border-border-surface-default"></div>
|
|
59
59
|
<div class="text-center">
|
|
60
|
-
<span class="label-
|
|
61
|
-
<code class="copy-btn label-
|
|
60
|
+
<span class="label-xs-medium text-content-on-surface-primary block">modal-overlay</span>
|
|
61
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-overlay-surface-modal-overlay', this)">bg-overlay-surface-modal-overlay</code>
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
64
|
|
|
@@ -67,16 +67,16 @@ export const Surface: Story = {
|
|
|
67
67
|
<div class="w-full h-full rounded-md bg-overlay-surface-modal-overlay-inverse"></div>
|
|
68
68
|
</div>
|
|
69
69
|
<div class="text-center">
|
|
70
|
-
<span class="label-
|
|
71
|
-
<code class="copy-btn label-
|
|
70
|
+
<span class="label-xs-medium text-content-on-surface-primary block">modal-overlay-inverse</span>
|
|
71
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-overlay-surface-modal-overlay-inverse', this)">bg-overlay-surface-modal-overlay-inverse</code>
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
74
|
|
|
75
75
|
<div class="flex flex-col items-center gap-1.5">
|
|
76
76
|
<div class="w-16 h-16 rounded-md bg-overlay-surface-transparent border border-border-surface-default"></div>
|
|
77
77
|
<div class="text-center">
|
|
78
|
-
<span class="label-
|
|
79
|
-
<code class="copy-btn label-
|
|
78
|
+
<span class="label-xs-medium text-content-on-surface-primary block">transparent</span>
|
|
79
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-overlay-surface-transparent', this)">bg-overlay-surface-transparent</code>
|
|
80
80
|
</div>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
@@ -103,31 +103,31 @@ export const Hover: Story = {
|
|
|
103
103
|
|
|
104
104
|
<div class="mb-6">
|
|
105
105
|
<h2 class="heading-s text-content-on-surface-primary mb-1">hover</h2>
|
|
106
|
-
<p class="body-
|
|
106
|
+
<p class="body-s-regular text-content-on-surface-muted">Overlay hover tiers (<code class="label-xs-medium">subtle</code>, <code class="label-xs-medium">default</code>, <code class="label-xs-medium">strong</code>). Matches <code class="label-xs-medium">v-hover</code>. Click class name to copy.</p>
|
|
107
107
|
</div>
|
|
108
108
|
|
|
109
109
|
<div class="flex flex-wrap gap-6">
|
|
110
110
|
<div class="flex flex-col items-center gap-1.5">
|
|
111
111
|
<div class="w-16 h-16 rounded-md bg-overlay-hover-subtle border border-border-surface-default"></div>
|
|
112
112
|
<div class="text-center">
|
|
113
|
-
<span class="label-
|
|
114
|
-
<code class="copy-btn label-
|
|
113
|
+
<span class="label-xs-medium text-content-on-surface-primary block">subtle</span>
|
|
114
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-overlay-hover-subtle', this)">bg-overlay-hover-subtle</code>
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<div class="flex flex-col items-center gap-1.5">
|
|
119
119
|
<div class="w-16 h-16 rounded-md bg-overlay-hover-default border border-border-surface-default"></div>
|
|
120
120
|
<div class="text-center">
|
|
121
|
-
<span class="label-
|
|
122
|
-
<code class="copy-btn label-
|
|
121
|
+
<span class="label-xs-medium text-content-on-surface-primary block">default</span>
|
|
122
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-overlay-hover-default', this)">bg-overlay-hover-default</code>
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
<div class="flex flex-col items-center gap-1.5">
|
|
127
127
|
<div class="w-16 h-16 rounded-md bg-overlay-hover-strong border border-border-surface-default"></div>
|
|
128
128
|
<div class="text-center">
|
|
129
|
-
<span class="label-
|
|
130
|
-
<code class="copy-btn label-
|
|
129
|
+
<span class="label-xs-medium text-content-on-surface-primary block">strong</span>
|
|
130
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('bg-overlay-hover-strong', this)">bg-overlay-hover-strong</code>
|
|
131
131
|
</div>
|
|
132
132
|
</div>
|
|
133
133
|
</div>
|
|
@@ -41,12 +41,12 @@ const copyStyles = `
|
|
|
41
41
|
const filler = Array.from(
|
|
42
42
|
{ length: 14 },
|
|
43
43
|
(_, index) =>
|
|
44
|
-
`<p class="body-
|
|
44
|
+
`<p class="body-s-regular text-content-on-surface-secondary">Line ${index + 1} — scroll this box to see the thumb fade in, then stop and watch it fade back out after a second.</p>`,
|
|
45
45
|
).join('');
|
|
46
46
|
|
|
47
47
|
const shortFiller = `
|
|
48
|
-
<p class="body-
|
|
49
|
-
<p class="body-
|
|
48
|
+
<p class="body-s-regular text-content-on-surface-secondary">This box has room to spare.</p>
|
|
49
|
+
<p class="body-s-regular text-content-on-surface-secondary">No thumb is drawn, but the lane stays reserved so text never reflows when content grows past the bottom edge.</p>
|
|
50
50
|
`;
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -63,7 +63,7 @@ export const DesignNotes: Story = {
|
|
|
63
63
|
|
|
64
64
|
<div class="mb-6">
|
|
65
65
|
<h2 class="heading-s text-content-on-surface-primary mb-1">Anatomy of the scrollbar</h2>
|
|
66
|
-
<p class="body-
|
|
66
|
+
<p class="body-s-regular text-content-on-surface-muted">Three parts, only one of which anyone ever sees.</p>
|
|
67
67
|
</div>
|
|
68
68
|
|
|
69
69
|
<div class="flex flex-wrap items-start gap-8 mb-10">
|
|
@@ -73,39 +73,39 @@ export const DesignNotes: Story = {
|
|
|
73
73
|
</div>
|
|
74
74
|
<!-- Marks the lane without hiding the thumb underneath it. -->
|
|
75
75
|
<div class="absolute top-px bottom-px right-px w-1 pointer-events-none border-l border-dashed border-border-surface-default"></div>
|
|
76
|
-
<span class="absolute -bottom-6 right-0 label-
|
|
76
|
+
<span class="absolute -bottom-6 right-0 label-xs-regular text-content-on-surface-muted whitespace-nowrap pointer-events-none">4px lane</span>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
<ul class="flex flex-col gap-3 max-w-lg list-disc pl-5">
|
|
80
|
-
<li class="body-
|
|
81
|
-
<span class="body-
|
|
80
|
+
<li class="body-s-regular text-content-on-surface-secondary">
|
|
81
|
+
<span class="body-s-bold text-content-on-surface-primary">Thumb</span> — the small bar that moves as you scroll, and that you can drag. This is the only part anyone ever sees.
|
|
82
82
|
</li>
|
|
83
|
-
<li class="body-
|
|
84
|
-
<span class="body-
|
|
83
|
+
<li class="body-s-regular text-content-on-surface-secondary">
|
|
84
|
+
<span class="body-s-bold text-content-on-surface-primary">Track</span> — the channel the thumb runs in, top to bottom. <span class="body-s-bold text-content-on-surface-primary">Our track is invisible.</span>
|
|
85
85
|
</li>
|
|
86
|
-
<li class="body-
|
|
87
|
-
<span class="body-
|
|
86
|
+
<li class="body-s-regular text-content-on-surface-secondary">
|
|
87
|
+
<span class="body-s-bold text-content-on-surface-primary">Lane</span> — the vertical strip of layout the scrollbar occupies, marked by the dashed line in the example. <span class="body-s-bold text-content-on-surface-primary">Exactly as wide as the thumb</span>, so it sits inside the container's padding instead of adding space beside it.
|
|
88
88
|
</li>
|
|
89
89
|
</ul>
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
<div>
|
|
93
|
-
<h3 class="body-
|
|
93
|
+
<h3 class="body-s-bold text-content-on-surface-primary mb-3">Thumb</h3>
|
|
94
94
|
<dl class="grid grid-cols-[auto_1fr] gap-x-6 gap-y-1.5 max-w-xl">
|
|
95
|
-
<dt class="body-
|
|
96
|
-
<dd class="body-
|
|
95
|
+
<dt class="body-s-regular text-content-on-surface-muted">width</dt>
|
|
96
|
+
<dd class="body-s-regular text-content-on-surface-primary">4px</dd>
|
|
97
97
|
|
|
98
|
-
<dt class="body-
|
|
99
|
-
<dd class="body-
|
|
98
|
+
<dt class="body-s-regular text-content-on-surface-muted">corner radius</dt>
|
|
99
|
+
<dd class="body-s-regular text-content-on-surface-primary">12px, capped at 2px by the 4px width — the thumb reads as a pill</dd>
|
|
100
100
|
|
|
101
|
-
<dt class="body-
|
|
102
|
-
<dd><code class="copy-btn label-
|
|
101
|
+
<dt class="body-s-regular text-content-on-surface-muted">color</dt>
|
|
102
|
+
<dd><code class="copy-btn label-xs-medium text-content-on-surface-primary px-1 py-0.5 rounded" onclick="copyToClipboard('background/surface/muted-default', this)">background/surface/muted-default</code></dd>
|
|
103
103
|
|
|
104
|
-
<dt class="body-
|
|
105
|
-
<dd class="body-
|
|
104
|
+
<dt class="body-s-regular text-content-on-surface-muted">space between content & thumb</dt>
|
|
105
|
+
<dd class="body-s-regular text-content-on-surface-primary">the scroll container's own padding — the lane adds none of its own</dd>
|
|
106
106
|
|
|
107
|
-
<dt class="body-
|
|
108
|
-
<dd class="body-
|
|
107
|
+
<dt class="body-s-regular text-content-on-surface-muted">lane</dt>
|
|
108
|
+
<dd class="body-s-regular text-content-on-surface-primary">4px, not reserved by default (add <code class="label-xs-medium">ui-scrollbar-stable</code> to reserve it)</dd>
|
|
109
109
|
</dl>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
@@ -123,73 +123,73 @@ export const Behavior: Story = {
|
|
|
123
123
|
<div class="p-8 bg-white dark:bg-background">
|
|
124
124
|
<div class="mb-6">
|
|
125
125
|
<h2 class="heading-s text-content-on-surface-primary mb-1">Behavior</h2>
|
|
126
|
-
<p class="body-
|
|
126
|
+
<p class="body-s-regular text-content-on-surface-muted">Timing is driven by <code class="label-xs-medium">installScrollbarBehavior()</code>; the fades themselves are CSS.</p>
|
|
127
127
|
</div>
|
|
128
128
|
|
|
129
129
|
<table class="w-full max-w-3xl text-left border-collapse mb-10">
|
|
130
130
|
<thead>
|
|
131
131
|
<tr class="border-b border-border-surface-default">
|
|
132
|
-
<th class="label-
|
|
133
|
-
<th class="label-
|
|
132
|
+
<th class="label-xs-medium text-content-on-surface-muted font-normal py-2 pr-6">Situation</th>
|
|
133
|
+
<th class="label-xs-medium text-content-on-surface-muted font-normal py-2">Thumb</th>
|
|
134
134
|
</tr>
|
|
135
135
|
</thead>
|
|
136
136
|
<tbody>
|
|
137
137
|
<tr class="border-b border-border-surface-default">
|
|
138
|
-
<td class="body-
|
|
139
|
-
<td class="body-
|
|
138
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">At rest (no scrolling for ~1s)</td>
|
|
139
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">Hidden</td>
|
|
140
140
|
</tr>
|
|
141
141
|
<tr class="border-b border-border-surface-default">
|
|
142
|
-
<td class="body-
|
|
143
|
-
<td class="body-
|
|
142
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">Scrolling, including keyboard</td>
|
|
143
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">Visible, fades in quickly (~100ms)</td>
|
|
144
144
|
</tr>
|
|
145
145
|
<tr class="border-b border-border-surface-default">
|
|
146
|
-
<td class="body-
|
|
147
|
-
<td class="body-
|
|
146
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">Scrolling stops</td>
|
|
147
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">Stays ~1s, then fades out (~200ms)</td>
|
|
148
148
|
</tr>
|
|
149
149
|
<tr class="border-b border-border-surface-default">
|
|
150
|
-
<td class="body-
|
|
151
|
-
<td class="body-
|
|
150
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">Pointer hovering the lane</td>
|
|
151
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">Visible, stays visible</td>
|
|
152
152
|
</tr>
|
|
153
153
|
<tr class="border-b border-border-surface-default">
|
|
154
|
-
<td class="body-
|
|
155
|
-
<td class="body-
|
|
154
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">Being dragged</td>
|
|
155
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">Visible until released, even if the pointer wanders off</td>
|
|
156
156
|
</tr>
|
|
157
157
|
<tr class="border-b border-border-surface-default">
|
|
158
|
-
<td class="body-
|
|
159
|
-
<td class="body-
|
|
158
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">Content too short to scroll</td>
|
|
159
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">No thumb, and no lane unless the container opts into <code class="label-xs-medium">ui-scrollbar-stable</code></td>
|
|
160
160
|
</tr>
|
|
161
161
|
<tr>
|
|
162
|
-
<td class="body-
|
|
163
|
-
<td class="body-
|
|
162
|
+
<td class="body-s-bold text-content-on-surface-primary py-3 pr-6">Reduced motion preference</td>
|
|
163
|
+
<td class="body-s-regular text-content-on-surface-secondary py-3">Appears and disappears instantly, no fade</td>
|
|
164
164
|
</tr>
|
|
165
165
|
</tbody>
|
|
166
166
|
</table>
|
|
167
167
|
|
|
168
168
|
<div class="flex flex-wrap gap-6">
|
|
169
169
|
<div class="flex flex-col gap-2">
|
|
170
|
-
<span class="label-
|
|
170
|
+
<span class="label-xs-medium text-content-on-surface-primary">Scrollable</span>
|
|
171
171
|
<div class="h-56 w-72 overflow-y-auto rounded-md border border-border-surface-default bg-background-surface-secondary p-4 flex flex-col gap-2">
|
|
172
172
|
${filler}
|
|
173
173
|
</div>
|
|
174
|
-
<span class="label-
|
|
174
|
+
<span class="label-xs-regular text-content-on-surface-muted">Scroll, then wait. Tab into it and use the arrow keys too.</span>
|
|
175
175
|
</div>
|
|
176
176
|
|
|
177
177
|
<div class="flex flex-col gap-2">
|
|
178
|
-
<span class="label-
|
|
178
|
+
<span class="label-xs-medium text-content-on-surface-primary">Too short to scroll</span>
|
|
179
179
|
<div class="h-56 w-72 overflow-y-auto rounded-md border border-border-surface-default bg-background-surface-secondary p-4 flex flex-col gap-2">
|
|
180
180
|
${shortFiller}
|
|
181
181
|
</div>
|
|
182
|
-
<span class="label-
|
|
182
|
+
<span class="label-xs-regular text-content-on-surface-muted">No thumb, and the text keeps the container's full padding.</span>
|
|
183
183
|
</div>
|
|
184
184
|
|
|
185
185
|
<div class="flex flex-col gap-2">
|
|
186
|
-
<span class="label-
|
|
186
|
+
<span class="label-xs-medium text-content-on-surface-primary">Horizontal</span>
|
|
187
187
|
<div class="h-56 w-72 overflow-x-auto rounded-md border border-border-surface-default bg-background-surface-secondary p-4">
|
|
188
|
-
<div class="w-[900px] body-
|
|
188
|
+
<div class="w-[900px] body-s-regular text-content-on-surface-secondary">
|
|
189
189
|
The same rules apply on the horizontal axis: a 4px thumb in a 4px lane along the bottom edge, separated from the content by the container's own padding.
|
|
190
190
|
</div>
|
|
191
191
|
</div>
|
|
192
|
-
<span class="label-
|
|
192
|
+
<span class="label-xs-regular text-content-on-surface-muted">Same thumb, same timings, bottom edge.</span>
|
|
193
193
|
</div>
|
|
194
194
|
</div>
|
|
195
195
|
</div>
|
|
@@ -211,46 +211,46 @@ export const Usage: Story = {
|
|
|
211
211
|
|
|
212
212
|
<div class="mb-6">
|
|
213
213
|
<h2 class="heading-s text-content-on-surface-primary mb-1">Usage</h2>
|
|
214
|
-
<p class="body-
|
|
214
|
+
<p class="body-s-regular text-content-on-surface-muted">Nothing to opt into. These are the ways to opt out.</p>
|
|
215
215
|
</div>
|
|
216
216
|
|
|
217
217
|
<div class="mb-8 max-w-3xl">
|
|
218
|
-
<h3 class="body-
|
|
219
|
-
<p class="body-
|
|
218
|
+
<h3 class="body-s-bold text-content-on-surface-primary mb-1">Auto-hide runtime</h3>
|
|
219
|
+
<p class="body-s-regular text-content-on-surface-secondary mb-3">
|
|
220
220
|
Installing the library plugin turns on auto-hide. Without the runtime the thumb simply stays visible, which keeps the scrollbar usable when JavaScript has not run.
|
|
221
221
|
</p>
|
|
222
|
-
<pre class="label-
|
|
222
|
+
<pre class="label-xs-regular text-content-on-surface-primary bg-background-surface-muted rounded-md p-4 overflow-x-auto"><code>import { installScrollbarBehavior } from '@aleph-alpha/ui-library'
|
|
223
223
|
|
|
224
224
|
installScrollbarBehavior()</code></pre>
|
|
225
225
|
</div>
|
|
226
226
|
|
|
227
227
|
<div class="max-w-3xl">
|
|
228
|
-
<h3 class="body-
|
|
229
|
-
<p class="label-
|
|
228
|
+
<h3 class="body-s-bold text-content-on-surface-primary mb-1">Modifier classes</h3>
|
|
229
|
+
<p class="label-xs-regular text-content-on-surface-muted mb-3">Apply to the scroll container itself.</p>
|
|
230
230
|
|
|
231
231
|
<div class="flex flex-wrap gap-6">
|
|
232
232
|
<div class="flex flex-col gap-2">
|
|
233
|
-
<code class="copy-btn label-
|
|
233
|
+
<code class="copy-btn label-xs-medium text-content-on-surface-primary px-1 py-0.5 rounded self-start" onclick="copyToClipboard('ui-scrollbar-always', this)">ui-scrollbar-always</code>
|
|
234
234
|
<div class="ui-scrollbar-always h-48 w-72 overflow-y-auto rounded-md border border-border-surface-default bg-background-surface-secondary p-4 flex flex-col gap-2">
|
|
235
235
|
${filler}
|
|
236
236
|
</div>
|
|
237
|
-
<span class="label-
|
|
237
|
+
<span class="label-xs-regular text-content-on-surface-muted">Thumb never hides.</span>
|
|
238
238
|
</div>
|
|
239
239
|
|
|
240
240
|
<div class="flex flex-col gap-2">
|
|
241
|
-
<code class="copy-btn label-
|
|
241
|
+
<code class="copy-btn label-xs-medium text-content-on-surface-primary px-1 py-0.5 rounded self-start" onclick="copyToClipboard('ui-scrollbar-none', this)">ui-scrollbar-none</code>
|
|
242
242
|
<div class="ui-scrollbar-none h-48 w-72 overflow-y-auto rounded-md border border-border-surface-default bg-background-surface-secondary p-4 flex flex-col gap-2">
|
|
243
243
|
${filler}
|
|
244
244
|
</div>
|
|
245
|
-
<span class="label-
|
|
245
|
+
<span class="label-xs-regular text-content-on-surface-muted">No thumb at all. For carousels and other custom scroll UI.</span>
|
|
246
246
|
</div>
|
|
247
247
|
|
|
248
248
|
<div class="flex flex-col gap-2">
|
|
249
|
-
<code class="copy-btn label-
|
|
249
|
+
<code class="copy-btn label-xs-medium text-content-on-surface-primary px-1 py-0.5 rounded self-start" onclick="copyToClipboard('ui-scrollbar-stable', this)">ui-scrollbar-stable</code>
|
|
250
250
|
<div class="ui-scrollbar-stable h-48 w-72 overflow-y-auto rounded-md border border-border-surface-default bg-background-surface-secondary p-4 flex flex-col gap-2">
|
|
251
251
|
${shortFiller}
|
|
252
252
|
</div>
|
|
253
|
-
<span class="label-
|
|
253
|
+
<span class="label-xs-regular text-content-on-surface-muted">Reserves the 4px lane even with nothing to scroll, so content never shifts.</span>
|
|
254
254
|
</div>
|
|
255
255
|
</div>
|
|
256
256
|
</div>
|
|
@@ -37,8 +37,8 @@ const shadowSwatch = (level: string) => `
|
|
|
37
37
|
<div class="flex flex-col items-center gap-2">
|
|
38
38
|
<div class="w-28 h-28 rounded-lg bg-background-surface-secondary border border-border-surface-default shadow-${level}"></div>
|
|
39
39
|
<div class="text-center max-w-[8rem]">
|
|
40
|
-
<span class="label-
|
|
41
|
-
<code class="copy-btn label-
|
|
40
|
+
<span class="label-xs-medium text-content-on-surface-primary block">${level}</span>
|
|
41
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded break-all" onclick="copyToClipboard('shadow-${level}', this)">shadow-${level}</code>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
`;
|
|
@@ -61,9 +61,9 @@ export const BoxShadow: Story = {
|
|
|
61
61
|
|
|
62
62
|
<div class="mb-6">
|
|
63
63
|
<h2 class="heading-s text-content-on-surface-primary mb-1">Box shadow</h2>
|
|
64
|
-
<p class="body-
|
|
65
|
-
Shadow variants <code class="label-
|
|
66
|
-
<code class="label-
|
|
64
|
+
<p class="body-s-regular text-content-on-surface-muted">
|
|
65
|
+
Shadow variants <code class="label-xs-medium">sm</code>–<code class="label-xs-medium">xl</code>, emitted as
|
|
66
|
+
<code class="label-xs-medium">--shadow-*</code> CSS variables. Click a utility class to copy.
|
|
67
67
|
</p>
|
|
68
68
|
</div>
|
|
69
69
|
|
|
@@ -50,7 +50,7 @@ export const OnSurface: Story = {
|
|
|
50
50
|
|
|
51
51
|
<div class="mb-6">
|
|
52
52
|
<h2 class="heading-s text-content-on-surface-primary mb-1">on-surface</h2>
|
|
53
|
-
<p class="body-
|
|
53
|
+
<p class="body-s-regular text-content-on-surface-muted">Text colors for content on surface backgrounds. Click class name to copy.</p>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
56
56
|
<div class="flex flex-wrap gap-6">
|
|
@@ -59,8 +59,8 @@ export const OnSurface: Story = {
|
|
|
59
59
|
<span class="text-content-on-surface-primary heading-m">Aa</span>
|
|
60
60
|
</div>
|
|
61
61
|
<div class="text-center">
|
|
62
|
-
<span class="label-
|
|
63
|
-
<code class="copy-btn label-
|
|
62
|
+
<span class="label-xs-medium text-content-on-surface-primary block">primary</span>
|
|
63
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-surface-primary', this)">text-content-on-surface-primary</code>
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
|
66
66
|
|
|
@@ -69,8 +69,8 @@ export const OnSurface: Story = {
|
|
|
69
69
|
<span class="text-content-on-surface-secondary heading-m">Aa</span>
|
|
70
70
|
</div>
|
|
71
71
|
<div class="text-center">
|
|
72
|
-
<span class="label-
|
|
73
|
-
<code class="copy-btn label-
|
|
72
|
+
<span class="label-xs-medium text-content-on-surface-primary block">secondary</span>
|
|
73
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-surface-secondary', this)">text-content-on-surface-secondary</code>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
76
76
|
|
|
@@ -79,8 +79,8 @@ export const OnSurface: Story = {
|
|
|
79
79
|
<span class="text-content-on-surface-tertiary heading-m">Aa</span>
|
|
80
80
|
</div>
|
|
81
81
|
<div class="text-center">
|
|
82
|
-
<span class="label-
|
|
83
|
-
<code class="copy-btn label-
|
|
82
|
+
<span class="label-xs-medium text-content-on-surface-primary block">tertiary</span>
|
|
83
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-surface-tertiary', this)">text-content-on-surface-tertiary</code>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
@@ -89,8 +89,8 @@ export const OnSurface: Story = {
|
|
|
89
89
|
<span class="text-content-on-surface-muted heading-m">Aa</span>
|
|
90
90
|
</div>
|
|
91
91
|
<div class="text-center">
|
|
92
|
-
<span class="label-
|
|
93
|
-
<code class="copy-btn label-
|
|
92
|
+
<span class="label-xs-medium text-content-on-surface-primary block">muted</span>
|
|
93
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-surface-muted', this)">text-content-on-surface-muted</code>
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
96
96
|
|
|
@@ -99,8 +99,8 @@ export const OnSurface: Story = {
|
|
|
99
99
|
<span class="text-content-on-surface-link heading-m">Aa</span>
|
|
100
100
|
</div>
|
|
101
101
|
<div class="text-center">
|
|
102
|
-
<span class="label-
|
|
103
|
-
<code class="copy-btn label-
|
|
102
|
+
<span class="label-xs-medium text-content-on-surface-primary block">link</span>
|
|
103
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-surface-link', this)">text-content-on-surface-link</code>
|
|
104
104
|
</div>
|
|
105
105
|
</div>
|
|
106
106
|
|
|
@@ -109,8 +109,8 @@ export const OnSurface: Story = {
|
|
|
109
109
|
<span class="text-content-on-surface-inverse heading-m">Aa</span>
|
|
110
110
|
</div>
|
|
111
111
|
<div class="text-center">
|
|
112
|
-
<span class="label-
|
|
113
|
-
<code class="copy-btn label-
|
|
112
|
+
<span class="label-xs-medium text-content-on-surface-primary block">inverse</span>
|
|
113
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-surface-inverse', this)">text-content-on-surface-inverse</code>
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
@@ -137,7 +137,7 @@ export const OnButton: Story = {
|
|
|
137
137
|
|
|
138
138
|
<div class="mb-6">
|
|
139
139
|
<h2 class="heading-s text-content-on-surface-primary mb-1">on-button</h2>
|
|
140
|
-
<p class="body-
|
|
140
|
+
<p class="body-s-regular text-content-on-surface-muted">Text colors for content on button backgrounds. Click class name to copy.</p>
|
|
141
141
|
</div>
|
|
142
142
|
|
|
143
143
|
<div class="flex flex-wrap gap-6">
|
|
@@ -146,8 +146,8 @@ export const OnButton: Story = {
|
|
|
146
146
|
<span class="text-content-on-button-primary-button heading-m">Aa</span>
|
|
147
147
|
</div>
|
|
148
148
|
<div class="text-center">
|
|
149
|
-
<span class="label-
|
|
150
|
-
<code class="copy-btn label-
|
|
149
|
+
<span class="label-xs-medium text-content-on-surface-primary block">primary-button</span>
|
|
150
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-button-primary-button', this)">text-content-on-button-primary-button</code>
|
|
151
151
|
</div>
|
|
152
152
|
</div>
|
|
153
153
|
|
|
@@ -156,8 +156,8 @@ export const OnButton: Story = {
|
|
|
156
156
|
<span class="text-content-on-button-secondary-button heading-m">Aa</span>
|
|
157
157
|
</div>
|
|
158
158
|
<div class="text-center">
|
|
159
|
-
<span class="label-
|
|
160
|
-
<code class="copy-btn label-
|
|
159
|
+
<span class="label-xs-medium text-content-on-surface-primary block">secondary-button</span>
|
|
160
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-button-secondary-button', this)">text-content-on-button-secondary-button</code>
|
|
161
161
|
</div>
|
|
162
162
|
</div>
|
|
163
163
|
|
|
@@ -166,8 +166,8 @@ export const OnButton: Story = {
|
|
|
166
166
|
<span class="text-content-on-button-no-fill-button heading-m">Aa</span>
|
|
167
167
|
</div>
|
|
168
168
|
<div class="text-center">
|
|
169
|
-
<span class="label-
|
|
170
|
-
<code class="copy-btn label-
|
|
169
|
+
<span class="label-xs-medium text-content-on-surface-primary block">no-fill-button</span>
|
|
170
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-button-no-fill-button', this)">text-content-on-button-no-fill-button</code>
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
173
173
|
|
|
@@ -176,8 +176,8 @@ export const OnButton: Story = {
|
|
|
176
176
|
<span class="text-content-on-button-danger-button heading-m">Aa</span>
|
|
177
177
|
</div>
|
|
178
178
|
<div class="text-center">
|
|
179
|
-
<span class="label-
|
|
180
|
-
<code class="copy-btn label-
|
|
179
|
+
<span class="label-xs-medium text-content-on-surface-primary block">danger-button</span>
|
|
180
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-button-danger-button', this)">text-content-on-button-danger-button</code>
|
|
181
181
|
</div>
|
|
182
182
|
</div>
|
|
183
183
|
</div>
|
|
@@ -204,7 +204,7 @@ export const OnAccent: Story = {
|
|
|
204
204
|
|
|
205
205
|
<div class="mb-6">
|
|
206
206
|
<h2 class="heading-s text-content-on-surface-primary mb-1">on-accent</h2>
|
|
207
|
-
<p class="body-
|
|
207
|
+
<p class="body-s-regular text-content-on-surface-muted">Text colors for content on accent backgrounds. Click class name to copy.</p>
|
|
208
208
|
</div>
|
|
209
209
|
|
|
210
210
|
<div class="flex flex-wrap gap-6">
|
|
@@ -213,8 +213,8 @@ export const OnAccent: Story = {
|
|
|
213
213
|
<span class="text-content-on-accent-default heading-m">Aa</span>
|
|
214
214
|
</div>
|
|
215
215
|
<div class="text-center">
|
|
216
|
-
<span class="label-
|
|
217
|
-
<code class="copy-btn label-
|
|
216
|
+
<span class="label-xs-medium text-content-on-surface-primary block">default</span>
|
|
217
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-accent-default', this)">text-content-on-accent-default</code>
|
|
218
218
|
</div>
|
|
219
219
|
</div>
|
|
220
220
|
|
|
@@ -223,8 +223,8 @@ export const OnAccent: Story = {
|
|
|
223
223
|
<span class="text-content-on-accent-soft heading-m">Aa</span>
|
|
224
224
|
</div>
|
|
225
225
|
<div class="text-center">
|
|
226
|
-
<span class="label-
|
|
227
|
-
<code class="copy-btn label-
|
|
226
|
+
<span class="label-xs-medium text-content-on-surface-primary block">soft</span>
|
|
227
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-accent-soft', this)">text-content-on-accent-soft</code>
|
|
228
228
|
</div>
|
|
229
229
|
</div>
|
|
230
230
|
</div>
|
|
@@ -251,7 +251,7 @@ export const OnStatus: Story = {
|
|
|
251
251
|
|
|
252
252
|
<div class="mb-6">
|
|
253
253
|
<h2 class="heading-s text-content-on-surface-primary mb-1">on-status</h2>
|
|
254
|
-
<p class="body-
|
|
254
|
+
<p class="body-s-regular text-content-on-surface-muted">Text colors for status indicators. Click class name to copy.</p>
|
|
255
255
|
</div>
|
|
256
256
|
|
|
257
257
|
<div class="flex flex-wrap gap-6">
|
|
@@ -260,8 +260,8 @@ export const OnStatus: Story = {
|
|
|
260
260
|
<span class="text-content-on-status-success heading-m">Aa</span>
|
|
261
261
|
</div>
|
|
262
262
|
<div class="text-center">
|
|
263
|
-
<span class="label-
|
|
264
|
-
<code class="copy-btn label-
|
|
263
|
+
<span class="label-xs-medium text-content-on-surface-primary block">success</span>
|
|
264
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-status-success', this)">text-content-on-status-success</code>
|
|
265
265
|
</div>
|
|
266
266
|
</div>
|
|
267
267
|
|
|
@@ -270,8 +270,8 @@ export const OnStatus: Story = {
|
|
|
270
270
|
<span class="text-content-on-status-warning heading-m">Aa</span>
|
|
271
271
|
</div>
|
|
272
272
|
<div class="text-center">
|
|
273
|
-
<span class="label-
|
|
274
|
-
<code class="copy-btn label-
|
|
273
|
+
<span class="label-xs-medium text-content-on-surface-primary block">warning</span>
|
|
274
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-status-warning', this)">text-content-on-status-warning</code>
|
|
275
275
|
</div>
|
|
276
276
|
</div>
|
|
277
277
|
|
|
@@ -280,8 +280,8 @@ export const OnStatus: Story = {
|
|
|
280
280
|
<span class="text-content-on-status-error heading-m">Aa</span>
|
|
281
281
|
</div>
|
|
282
282
|
<div class="text-center">
|
|
283
|
-
<span class="label-
|
|
284
|
-
<code class="copy-btn label-
|
|
283
|
+
<span class="label-xs-medium text-content-on-surface-primary block">error</span>
|
|
284
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-status-error', this)">text-content-on-status-error</code>
|
|
285
285
|
</div>
|
|
286
286
|
</div>
|
|
287
287
|
|
|
@@ -290,8 +290,8 @@ export const OnStatus: Story = {
|
|
|
290
290
|
<span class="text-content-on-status-info heading-m">Aa</span>
|
|
291
291
|
</div>
|
|
292
292
|
<div class="text-center">
|
|
293
|
-
<span class="label-
|
|
294
|
-
<code class="copy-btn label-
|
|
293
|
+
<span class="label-xs-medium text-content-on-surface-primary block">info</span>
|
|
294
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-status-info', this)">text-content-on-status-info</code>
|
|
295
295
|
</div>
|
|
296
296
|
</div>
|
|
297
297
|
|
|
@@ -300,8 +300,8 @@ export const OnStatus: Story = {
|
|
|
300
300
|
<span class="text-content-on-status-neutral heading-m">Aa</span>
|
|
301
301
|
</div>
|
|
302
302
|
<div class="text-center">
|
|
303
|
-
<span class="label-
|
|
304
|
-
<code class="copy-btn label-
|
|
303
|
+
<span class="label-xs-medium text-content-on-surface-primary block">neutral</span>
|
|
304
|
+
<code class="copy-btn label-xs-regular text-content-on-surface-muted block mt-0.5 px-1 py-0.5 rounded" onclick="copyToClipboard('text-content-on-status-neutral', this)">text-content-on-status-neutral</code>
|
|
305
305
|
</div>
|
|
306
306
|
</div>
|
|
307
307
|
</div>
|