@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
|
@@ -12,7 +12,7 @@ const props = defineProps<{
|
|
|
12
12
|
data-slot="alert-description"
|
|
13
13
|
:class="
|
|
14
14
|
cn(
|
|
15
|
-
'text-muted
|
|
15
|
+
'text-content-on-surface-muted col-start-2 grid justify-items-start gap-1 body-14-regular [&_p]:leading-relaxed',
|
|
16
16
|
props.class,
|
|
17
17
|
)
|
|
18
18
|
"
|
|
@@ -6,7 +6,7 @@ export { default as AlertDescription } from './AlertDescription.vue';
|
|
|
6
6
|
export { default as AlertTitle } from './AlertTitle.vue';
|
|
7
7
|
|
|
8
8
|
export const alertVariants = cva(
|
|
9
|
-
'relative w-full rounded-lg border px-4 py-3
|
|
9
|
+
'relative w-full rounded-lg border px-4 py-3 body-14-regular grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
@@ -4,7 +4,7 @@ import { cva } from 'class-variance-authority';
|
|
|
4
4
|
export { default as Badge } from './Badge.vue';
|
|
5
5
|
|
|
6
6
|
export const badgeVariants = cva(
|
|
7
|
-
'inline-flex w-fit shrink-0 select-none items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border font-[var(--font-font-weight-regular,400)] [font-family:var(--font-font-family-body,Saans)] [font-style:normal] transition-[color,box-shadow,opacity] [&>svg]:size-3 [&>svg]:pointer-events-none
|
|
7
|
+
'inline-flex w-fit shrink-0 select-none items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border font-[var(--font-font-weight-regular,400)] [font-family:var(--font-font-family-body,Saans)] [font-style:normal] transition-[color,box-shadow,opacity] [&>svg]:size-3 [&>svg]:pointer-events-none ui-focus-ring aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:aria-invalid:ring-destructive/40',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -4,14 +4,14 @@ import { cva } from 'class-variance-authority';
|
|
|
4
4
|
export { default as Button } from './Button.vue';
|
|
5
5
|
|
|
6
6
|
export const buttonVariants = cva(
|
|
7
|
-
'inline-flex items-center justify-center whitespace-nowrap border border-transparent transition-all relative disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0
|
|
7
|
+
'inline-flex items-center justify-center whitespace-nowrap border border-transparent transition-all relative disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 ui-focus-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default:
|
|
12
12
|
'bg-background-button-primary-button text-content-on-button-primary-button hover-layer hover-layer-subtle',
|
|
13
13
|
destructive:
|
|
14
|
-
'bg-background-button-danger-button text-content-on-button-danger-button hover-layer hover-layer-default
|
|
14
|
+
'bg-background-button-danger-button text-content-on-button-danger-button hover-layer hover-layer-default',
|
|
15
15
|
outline:
|
|
16
16
|
'border border-input bg-transparent text-foreground hover:bg-background-surface-muted-subtle',
|
|
17
17
|
secondary:
|
|
@@ -103,12 +103,12 @@ watch(() => props.readonly, removeUnsupportedReadonlyAttributes);
|
|
|
103
103
|
<div class="**:data-[slot=native-select-icon]:right-1">
|
|
104
104
|
<div class="relative">
|
|
105
105
|
<div
|
|
106
|
-
class="absolute inset-0 flex h-full items-center
|
|
106
|
+
class="absolute inset-0 flex h-full items-center label-14-regular pl-2 pointer-events-none"
|
|
107
107
|
>
|
|
108
108
|
{{ formatter.custom(toDate(date), { month: 'short' }) }}
|
|
109
109
|
</div>
|
|
110
110
|
<NativeSelect
|
|
111
|
-
class="
|
|
111
|
+
class="label-12-regular h-8 pr-6 pl-2 text-transparent relative"
|
|
112
112
|
@change="
|
|
113
113
|
(e: Event) => {
|
|
114
114
|
placeholder = placeholder.set({
|
|
@@ -134,12 +134,12 @@ watch(() => props.readonly, removeUnsupportedReadonlyAttributes);
|
|
|
134
134
|
<div class="**:data-[slot=native-select-icon]:right-1">
|
|
135
135
|
<div class="relative">
|
|
136
136
|
<div
|
|
137
|
-
class="absolute inset-0 flex h-full items-center
|
|
137
|
+
class="absolute inset-0 flex h-full items-center label-14-regular pl-2 pointer-events-none"
|
|
138
138
|
>
|
|
139
139
|
{{ formatter.custom(toDate(date), { year: 'numeric' }) }}
|
|
140
140
|
</div>
|
|
141
141
|
<NativeSelect
|
|
142
|
-
class="
|
|
142
|
+
class="label-12-regular h-8 pr-6 pl-2 text-transparent relative"
|
|
143
143
|
@change="
|
|
144
144
|
(e: Event) => {
|
|
145
145
|
placeholder = placeholder.set({
|
|
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
19
19
|
data-slot="calendar-cell"
|
|
20
20
|
:class="
|
|
21
21
|
cn(
|
|
22
|
-
'relative p-0 text-center
|
|
22
|
+
'relative p-0 text-center label-14-regular focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent',
|
|
23
23
|
props.class,
|
|
24
24
|
)
|
|
25
25
|
"
|
|
@@ -29,11 +29,11 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
29
29
|
// Selected: accent-default background with on-accent-default foreground
|
|
30
30
|
'data-[selected]:bg-accent-default data-[selected]:text-accent-default-foreground data-[selected]:opacity-100 data-[selected]:hover:bg-accent-default data-[selected]:hover:text-accent-default-foreground data-[selected]:focus:bg-accent-default data-[selected]:focus:text-accent-default-foreground',
|
|
31
31
|
// Disabled
|
|
32
|
-
'data-[disabled]:text-muted
|
|
32
|
+
'data-[disabled]:text-content-on-surface-muted data-[disabled]:opacity-50',
|
|
33
33
|
// Unavailable
|
|
34
34
|
'data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through',
|
|
35
35
|
// Outside months
|
|
36
|
-
'data-[outside-view]:text-muted
|
|
36
|
+
'data-[outside-view]:text-content-on-surface-muted',
|
|
37
37
|
props.class,
|
|
38
38
|
)
|
|
39
39
|
"
|
|
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
19
19
|
data-slot="calendar-head-cell"
|
|
20
20
|
:class="
|
|
21
21
|
cn(
|
|
22
|
-
'text-muted
|
|
22
|
+
'text-content-on-surface-muted rounded-md flex-1 font-normal text-[0.8rem]',
|
|
23
23
|
props.class,
|
|
24
24
|
)
|
|
25
25
|
"
|
|
@@ -24,7 +24,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
24
24
|
v-bind="forwarded"
|
|
25
25
|
:class="
|
|
26
26
|
cn(
|
|
27
|
-
'peer border-input data-[state=checked]:bg-accent-default data-[state=checked]:text-accent-default-foreground data-[state=checked]:border-accent-default
|
|
27
|
+
'peer border-input data-[state=checked]:bg-accent-default data-[state=checked]:text-accent-default-foreground data-[state=checked]:border-accent-default ui-focus-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-sm border shadow-xs transition-shadow disabled:cursor-not-allowed disabled:opacity-50',
|
|
28
28
|
props.class,
|
|
29
29
|
)
|
|
30
30
|
"
|
|
@@ -15,7 +15,7 @@ const delegatedProps = reactiveOmit(props, 'class');
|
|
|
15
15
|
<DialogDescription
|
|
16
16
|
data-slot="drawer-description"
|
|
17
17
|
v-bind="delegatedProps"
|
|
18
|
-
:class="cn('text-muted
|
|
18
|
+
:class="cn('text-content-on-surface-muted body-14-regular', props.class)"
|
|
19
19
|
>
|
|
20
20
|
<slot />
|
|
21
21
|
</DialogDescription>
|
|
@@ -25,7 +25,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
25
25
|
v-bind="forwarded"
|
|
26
26
|
:class="
|
|
27
27
|
cn(
|
|
28
|
-
'group/dropdown-menu-checkbox-item hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8
|
|
28
|
+
'group/dropdown-menu-checkbox-item hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 label-14-regular outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
29
29
|
props.class,
|
|
30
30
|
)
|
|
31
31
|
"
|
|
@@ -31,7 +31,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
31
31
|
v-bind="forwardedProps"
|
|
32
32
|
:class="
|
|
33
33
|
cn(
|
|
34
|
-
'hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle focus:text-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=\'text-\'])]:text-muted
|
|
34
|
+
'hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle focus:text-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*=\'text-\'])]:text-content-on-surface-muted relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 label-14-regular outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
35
35
|
props.class,
|
|
36
36
|
)
|
|
37
37
|
"
|
|
@@ -21,9 +21,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
21
21
|
data-slot="dropdown-menu-label"
|
|
22
22
|
:data-inset="inset ? '' : undefined"
|
|
23
23
|
v-bind="forwardedProps"
|
|
24
|
-
:class="
|
|
25
|
-
cn('px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', props.class)
|
|
26
|
-
"
|
|
24
|
+
:class="cn('px-2 py-1.5 label-14-medium data-[inset]:pl-8', props.class)"
|
|
27
25
|
>
|
|
28
26
|
<slot />
|
|
29
27
|
</DropdownMenuLabel>
|
|
@@ -29,7 +29,7 @@ const visualRadioValue = computed(() => String(props.value ?? ''));
|
|
|
29
29
|
v-bind="forwarded"
|
|
30
30
|
:class="
|
|
31
31
|
cn(
|
|
32
|
-
'group/dropdown-menu-radio-item hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8
|
|
32
|
+
'group/dropdown-menu-radio-item hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle focus:text-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 label-14-regular outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
33
33
|
props.class,
|
|
34
34
|
)
|
|
35
35
|
"
|
|
@@ -11,7 +11,10 @@ const props = defineProps<{
|
|
|
11
11
|
<span
|
|
12
12
|
data-slot="dropdown-menu-shortcut"
|
|
13
13
|
:class="
|
|
14
|
-
cn(
|
|
14
|
+
cn(
|
|
15
|
+
'text-content-on-surface-muted ml-auto label-12-regular tracking-widest',
|
|
16
|
+
props.class,
|
|
17
|
+
)
|
|
15
18
|
"
|
|
16
19
|
>
|
|
17
20
|
<slot />
|
|
@@ -23,7 +23,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
23
23
|
v-bind="forwardedProps"
|
|
24
24
|
:class="
|
|
25
25
|
cn(
|
|
26
|
-
'hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle data-[state=open]:bg-background-surface-muted-subtle focus:text-foreground data-[state=open]:text-foreground flex cursor-default items-center rounded-sm px-2 py-1.5
|
|
26
|
+
'hover:bg-background-surface-muted-subtle data-[highlighted]:bg-background-surface-muted-subtle data-[state=open]:bg-background-surface-muted-subtle focus:text-foreground data-[state=open]:text-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 label-14-regular outline-hidden select-none data-[inset]:pl-8',
|
|
27
27
|
props.class,
|
|
28
28
|
)
|
|
29
29
|
"
|
|
@@ -12,7 +12,7 @@ const props = defineProps<{
|
|
|
12
12
|
data-slot="field-description"
|
|
13
13
|
:class="
|
|
14
14
|
cn(
|
|
15
|
-
'text-
|
|
15
|
+
'text-content-on-surface-muted body-14-regular group-has-[[data-orientation=horizontal]]/field:text-balance',
|
|
16
16
|
'last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5',
|
|
17
17
|
'[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',
|
|
18
18
|
props.class,
|
|
@@ -16,7 +16,7 @@ const props = defineProps<{
|
|
|
16
16
|
:for="props.for"
|
|
17
17
|
:class="
|
|
18
18
|
cn(
|
|
19
|
-
'group/field-label peer/field-label flex w-fit items-center gap-2 leading-snug group-data-[disabled=true]/field:opacity-50',
|
|
19
|
+
'group/field-label peer/field-label flex w-fit items-center gap-2 leading-snug text-content-on-surface-muted body-14-medium group-data-[disabled=true]/field:opacity-50',
|
|
20
20
|
'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4',
|
|
21
21
|
'has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10',
|
|
22
22
|
props.class,
|
|
@@ -14,7 +14,7 @@ const props = defineProps<{
|
|
|
14
14
|
:data-content="!!$slots.default"
|
|
15
15
|
:class="
|
|
16
16
|
cn(
|
|
17
|
-
'relative -my-2 h-5
|
|
17
|
+
'relative -my-2 h-5 label-14-regular group-data-[variant=outline]/field-group:-mb-2',
|
|
18
18
|
props.class,
|
|
19
19
|
)
|
|
20
20
|
"
|
|
@@ -22,7 +22,7 @@ const props = defineProps<{
|
|
|
22
22
|
<Separator class="absolute inset-0 top-1/2" />
|
|
23
23
|
<span
|
|
24
24
|
v-if="$slots.default"
|
|
25
|
-
class="bg-background text-muted
|
|
25
|
+
class="bg-background text-content-on-surface-muted relative mx-auto block w-fit px-2"
|
|
26
26
|
data-slot="field-separator-content"
|
|
27
27
|
>
|
|
28
28
|
<slot />
|
|
@@ -25,8 +25,8 @@ const modelValue = useVModel(props, 'modelValue', emits, {
|
|
|
25
25
|
data-slot="input"
|
|
26
26
|
:class="
|
|
27
27
|
cn(
|
|
28
|
-
'file:text-foreground placeholder:text-muted
|
|
29
|
-
'
|
|
28
|
+
'file:text-foreground placeholder:text-content-on-surface-muted selection:bg-primary selection:text-primary-foreground border-input h-9 w-full min-w-0 rounded-md border bg-background-input-default px-3 py-1 label-16-regular transition-[color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:label-14-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:label-14-regular',
|
|
29
|
+
'ui-focus-ring',
|
|
30
30
|
'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
31
31
|
props.class,
|
|
32
32
|
)
|
|
@@ -13,7 +13,7 @@ export { default as ItemSeparator } from './ItemSeparator.vue';
|
|
|
13
13
|
export { default as ItemTitle } from './ItemTitle.vue';
|
|
14
14
|
|
|
15
15
|
export const itemVariants = cva(
|
|
16
|
-
'group/item flex items-center
|
|
16
|
+
'group/item flex items-center label-14-regular rounded-md transition-[background-color,color,box-shadow] [a]:transition-colors duration-100 flex-wrap ui-focus-ring disabled:pointer-events-none disabled:opacity-50',
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
19
19
|
variant: {
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{ class?: HTMLAttributes['class'] }>();
|
|
|
10
10
|
data-slot="kbd"
|
|
11
11
|
:class="
|
|
12
12
|
cn(
|
|
13
|
-
'pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-background-surface-muted px-1.5 font-mono text-[10px] font-medium text-muted
|
|
13
|
+
'pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-background-surface-muted px-1.5 font-mono text-[10px] font-medium text-content-on-surface-muted',
|
|
14
14
|
props.class,
|
|
15
15
|
)
|
|
16
16
|
"
|
|
@@ -18,7 +18,7 @@ const delegatedProps = reactiveOmit(props, 'class', 'for');
|
|
|
18
18
|
:for="props.for"
|
|
19
19
|
:class="
|
|
20
20
|
cn(
|
|
21
|
-
'flex items-center gap-2
|
|
21
|
+
'flex items-center gap-2 label-14-medium leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
22
22
|
props.class,
|
|
23
23
|
)
|
|
24
24
|
"
|
|
@@ -20,7 +20,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
20
20
|
data-slot="listbox-filter"
|
|
21
21
|
:class="
|
|
22
22
|
cn(
|
|
23
|
-
'placeholder:text-muted
|
|
23
|
+
'placeholder:text-content-on-surface-muted flex h-9 w-full rounded-md bg-transparent px-3 py-2 label-14-regular outline-none disabled:cursor-not-allowed disabled:opacity-50',
|
|
24
24
|
props.class,
|
|
25
25
|
)
|
|
26
26
|
"
|
|
@@ -18,7 +18,10 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
18
18
|
<ListboxGroupLabel
|
|
19
19
|
data-slot="listbox-group-label"
|
|
20
20
|
:class="
|
|
21
|
-
cn(
|
|
21
|
+
cn(
|
|
22
|
+
'text-content-on-surface-muted px-2 py-1.5 label-12-medium',
|
|
23
|
+
props.class,
|
|
24
|
+
)
|
|
22
25
|
"
|
|
23
26
|
v-bind="forwardedProps"
|
|
24
27
|
>
|
|
@@ -20,7 +20,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
20
20
|
data-slot="listbox-item"
|
|
21
21
|
:class="
|
|
22
22
|
cn(
|
|
23
|
-
'hover-layer hover-layer-default data-[highlighted]:text-foreground [&_svg:not([class*=\'text-\'])]:text-muted
|
|
23
|
+
'hover-layer hover-layer-default data-[highlighted]:text-foreground [&_svg:not([class*=\'text-\'])]:text-content-on-surface-muted relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 label-14-regular outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
24
24
|
props.class,
|
|
25
25
|
)
|
|
26
26
|
"
|
|
@@ -43,8 +43,8 @@ const delegatedProps = reactiveOmit(props, 'class');
|
|
|
43
43
|
data-slot="native-select"
|
|
44
44
|
:class="
|
|
45
45
|
cn(
|
|
46
|
-
'border-input placeholder:text-muted
|
|
47
|
-
'
|
|
46
|
+
'border-input placeholder:text-content-on-surface-muted selection:bg-primary selection:text-primary-foreground h-9 w-full min-w-0 appearance-none rounded-md border bg-background-input-default px-3 py-2 pr-9 label-14-regular shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed',
|
|
47
|
+
'ui-focus-ring',
|
|
48
48
|
'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
49
49
|
props.class,
|
|
50
50
|
)
|
|
@@ -55,7 +55,7 @@ const delegatedProps = reactiveOmit(props, 'class');
|
|
|
55
55
|
<UiIcon
|
|
56
56
|
name="chevron-down"
|
|
57
57
|
:size="16"
|
|
58
|
-
class="text-muted
|
|
58
|
+
class="text-content-on-surface-muted pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 opacity-50 select-none"
|
|
59
59
|
aria-hidden="true"
|
|
60
60
|
data-slot="native-select-icon"
|
|
61
61
|
/>
|
|
@@ -23,7 +23,7 @@ const forwarded = useForwardPropsEmits(props, emits);
|
|
|
23
23
|
// Focus-visible: mirrors UiButton's focus recipe (focus-ring border
|
|
24
24
|
// + tinted ring shadow at 3px) so keyboard focus reads consistently
|
|
25
25
|
// across buttons and nav links.
|
|
26
|
-
'bg-transparent text-content-on-surface-primary border border-transparent flex flex-col gap-1 rounded-sm p-2
|
|
26
|
+
'bg-transparent text-content-on-surface-primary border border-transparent flex flex-col gap-1 rounded-sm p-2 label-14-regular transition-[color,box-shadow,border-color] outline-none hover:bg-background-surface-muted data-[active]:bg-background-surface-muted [&_svg:not([class*=\'text-\'])]:text-content-on-surface-muted ui-focus-ring [&_svg:not([class*=\'size-\'])]:size-4',
|
|
27
27
|
$attrs.class ?? '',
|
|
28
28
|
)
|
|
29
29
|
"
|
|
@@ -19,5 +19,5 @@ export { default as NavigationMenuViewport } from './NavigationMenuViewport.vue'
|
|
|
19
19
|
// tinted ring shadow, 3px wide (no plain `:focus` bg —
|
|
20
20
|
// pointer hovers and kb focus are decoupled here)
|
|
21
21
|
export const navigationMenuTriggerStyle = cva(
|
|
22
|
-
'group inline-flex h-9 w-max items-center justify-center rounded-md border border-transparent bg-transparent px-4 py-2
|
|
22
|
+
'group inline-flex h-9 w-max items-center justify-center rounded-md border border-transparent bg-transparent px-4 py-2 label-14-medium text-content-on-surface-primary transition-[color,box-shadow,border-color] outline-none hover:bg-background-surface-muted data-[state=open]:bg-background-surface-muted data-[active]:bg-background-surface-muted disabled:pointer-events-none disabled:opacity-50 ui-focus-ring',
|
|
23
23
|
);
|
|
@@ -20,7 +20,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
20
20
|
v-bind="forwardedProps"
|
|
21
21
|
:class="
|
|
22
22
|
cn(
|
|
23
|
-
'border-input data-[state=checked]:border-accent-default
|
|
23
|
+
'border-input data-[state=checked]:border-accent-default ui-focus-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50',
|
|
24
24
|
props.class,
|
|
25
25
|
)
|
|
26
26
|
"
|
|
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
19
19
|
data-slot="range-calendar-cell"
|
|
20
20
|
:class="
|
|
21
21
|
cn(
|
|
22
|
-
'relative p-0 text-center
|
|
22
|
+
'relative p-0 text-center label-14-regular focus-within:relative focus-within:z-20 [&:has([data-selected])]:bg-accent first:[&:has([data-selected])]:rounded-l-md last:[&:has([data-selected])]:rounded-r-md [&:has([data-selected][data-selection-end])]:rounded-r-md [&:has([data-selected][data-selection-start])]:rounded-l-md',
|
|
23
23
|
props.class,
|
|
24
24
|
)
|
|
25
25
|
"
|
|
@@ -35,9 +35,9 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
35
35
|
// Selection End: accent-default background with accent-default foreground
|
|
36
36
|
'data-[selection-end]:bg-accent-default data-[selection-end]:text-accent-default-foreground data-[selection-end]:hover:bg-accent-default data-[selection-end]:hover:text-accent-default-foreground data-[selection-end]:focus:bg-accent-default data-[selection-end]:focus:text-accent-default-foreground',
|
|
37
37
|
// Outside months
|
|
38
|
-
'data-[outside-view]:text-muted
|
|
38
|
+
'data-[outside-view]:text-content-on-surface-muted',
|
|
39
39
|
// Disabled
|
|
40
|
-
'data-[disabled]:text-muted
|
|
40
|
+
'data-[disabled]:text-content-on-surface-muted data-[disabled]:opacity-50',
|
|
41
41
|
// Unavailable
|
|
42
42
|
'data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through',
|
|
43
43
|
props.class,
|
|
@@ -19,7 +19,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
19
19
|
data-slot="range-calendar-head-cell"
|
|
20
20
|
:class="
|
|
21
21
|
cn(
|
|
22
|
-
'w-8 rounded-md text-[0.8rem] font-normal text-muted
|
|
22
|
+
'w-8 rounded-md text-[0.8rem] font-normal text-content-on-surface-muted',
|
|
23
23
|
props.class,
|
|
24
24
|
)
|
|
25
25
|
"
|
|
@@ -26,7 +26,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
26
26
|
v-bind="forwardedProps"
|
|
27
27
|
:class="
|
|
28
28
|
cn(
|
|
29
|
-
'hover-layer hover-layer-default focus:text-foreground [&_svg:not([class*=\'text-\'])]:text-muted
|
|
29
|
+
'hover-layer hover-layer-default focus:text-foreground [&_svg:not([class*=\'text-\'])]:text-content-on-surface-muted relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-12 pl-2 label-14-regular outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([data-slot=icon]):not([class*=\'size-\'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2',
|
|
30
30
|
props.class,
|
|
31
31
|
)
|
|
32
32
|
"
|
|
@@ -12,7 +12,12 @@ const props = defineProps<
|
|
|
12
12
|
<template>
|
|
13
13
|
<SelectLabel
|
|
14
14
|
data-slot="select-label"
|
|
15
|
-
:class="
|
|
15
|
+
:class="
|
|
16
|
+
cn(
|
|
17
|
+
'text-content-on-surface-muted px-2 py-1.5 label-12-regular',
|
|
18
|
+
props.class,
|
|
19
|
+
)
|
|
20
|
+
"
|
|
16
21
|
>
|
|
17
22
|
<slot />
|
|
18
23
|
</SelectLabel>
|
|
@@ -27,7 +27,7 @@ const forwardedProps = useForwardProps(delegatedProps);
|
|
|
27
27
|
v-bind="forwardedProps"
|
|
28
28
|
:class="
|
|
29
29
|
cn(
|
|
30
|
-
'border-input data-[placeholder]:text-muted
|
|
30
|
+
'border-input data-[placeholder]:text-content-on-surface-muted data-[placeholder]:bg-background-input-default [&:not([data-placeholder])]:border-border-surface-focus-ring [&_svg:not([class*=\'text-\'])]:text-content-on-surface-muted focus:border-border-surface-focus-ring focus-visible:border-border-surface-focus-ring active:border-border-surface-focus-ring data-[state=open]:border-border-surface-focus-ring focus:ring-ring/50 focus-visible:ring-ring/50 focus:shadow-xs focus-visible:shadow-xs aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-fit items-center justify-between gap-2 rounded-md border bg-accent px-3 py-2 label-14-regular whitespace-nowrap transition-[color,box-shadow] outline-none focus:ring-[3px] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([data-slot=icon]):not([class*=\'size-\'])]:size-4',
|
|
31
31
|
props.class,
|
|
32
32
|
)
|
|
33
33
|
"
|
|
@@ -11,7 +11,9 @@ const forwarded = useForwardProps(props);
|
|
|
11
11
|
<template>
|
|
12
12
|
<DialogDescription
|
|
13
13
|
data-slot="sheet-description"
|
|
14
|
-
:class="
|
|
14
|
+
:class="
|
|
15
|
+
cn('body-14-regular text-content-on-surface-muted', $attrs.class ?? '')
|
|
16
|
+
"
|
|
15
17
|
v-bind="forwarded"
|
|
16
18
|
>
|
|
17
19
|
<slot />
|
|
@@ -9,7 +9,7 @@ defineOptions({ inheritAttrs: false });
|
|
|
9
9
|
v-bind="$attrs"
|
|
10
10
|
data-slot="sidebar-group-content"
|
|
11
11
|
data-sidebar="group-content"
|
|
12
|
-
:class="cn('w-full
|
|
12
|
+
:class="cn('w-full label-14-regular', $attrs.class ?? '')"
|
|
13
13
|
>
|
|
14
14
|
<slot />
|
|
15
15
|
</div>
|
|
@@ -12,7 +12,7 @@ defineOptions({ inheritAttrs: false });
|
|
|
12
12
|
data-sidebar="group-label"
|
|
13
13
|
:class="
|
|
14
14
|
cn(
|
|
15
|
-
'ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2
|
|
15
|
+
'ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 label-12-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
|
|
16
16
|
'group-data-[collapsible=icon]:hidden',
|
|
17
17
|
$attrs.class ?? '',
|
|
18
18
|
)
|
|
@@ -11,7 +11,7 @@ defineOptions({ inheritAttrs: false });
|
|
|
11
11
|
data-sidebar="menu-badge"
|
|
12
12
|
:class="
|
|
13
13
|
cn(
|
|
14
|
-
'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1
|
|
14
|
+
'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 label-12-medium tabular-nums select-none',
|
|
15
15
|
'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground',
|
|
16
16
|
'peer-data-[size=sm]/menu-button:top-1',
|
|
17
17
|
'peer-data-[size=default]/menu-button:top-1.5',
|
|
@@ -26,8 +26,8 @@ withDefaults(
|
|
|
26
26
|
cn(
|
|
27
27
|
'text-sidebar-foreground ring-sidebar-ring hover:bg-background-surface-muted-subtle hover:text-sidebar-accent-foreground active:bg-background-surface-muted-subtle active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',
|
|
28
28
|
'data-[active=true]:bg-background-surface-muted-subtle data-[active=true]:text-sidebar-accent-foreground',
|
|
29
|
-
size === 'sm' && '
|
|
30
|
-
size === 'md' && '
|
|
29
|
+
size === 'sm' && 'label-12-regular',
|
|
30
|
+
size === 'md' && 'label-14-regular',
|
|
31
31
|
'group-data-[collapsible=icon]:hidden',
|
|
32
32
|
$attrs.class ?? '',
|
|
33
33
|
)
|
|
@@ -51,7 +51,7 @@ export { default as SidebarTrigger } from './SidebarTrigger.vue';
|
|
|
51
51
|
export { useSidebar } from './utils';
|
|
52
52
|
|
|
53
53
|
export const sidebarMenuButtonVariants = cva(
|
|
54
|
-
'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left
|
|
54
|
+
'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left label-14-regular outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-background-surface-muted-subtle hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-background-surface-muted-subtle active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-background-surface-muted-subtle data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-background-surface-muted-subtle data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:justify-center! group-data-[collapsible=icon]:p-2! group-data-[collapsible=icon]:[&>svg~span]:hidden group-data-[collapsible=icon]:[&>span~svg]:hidden group-data-[collapsible=icon]:[&>div~*]:hidden [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',
|
|
55
55
|
{
|
|
56
56
|
variants: {
|
|
57
57
|
variant: {
|
|
@@ -61,9 +61,9 @@ export const sidebarMenuButtonVariants = cva(
|
|
|
61
61
|
'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-background-surface-muted-subtle hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',
|
|
62
62
|
},
|
|
63
63
|
size: {
|
|
64
|
-
default: 'h-8
|
|
65
|
-
sm: 'h-7
|
|
66
|
-
lg: 'h-12
|
|
64
|
+
default: 'h-8 label-14-regular',
|
|
65
|
+
sm: 'h-7 label-12-regular',
|
|
66
|
+
lg: 'h-12 label-14-regular group-data-[collapsible=icon]:p-0!',
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
defaultVariants: {
|
|
@@ -35,11 +35,11 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
35
35
|
>
|
|
36
36
|
<SliderTrack
|
|
37
37
|
data-slot="slider-track"
|
|
38
|
-
class="bg-background-surface-
|
|
38
|
+
class="bg-background-surface-primary relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
|
|
39
39
|
>
|
|
40
40
|
<SliderRange
|
|
41
41
|
data-slot="slider-range"
|
|
42
|
-
class="bg-
|
|
42
|
+
class="bg-background-accent-default absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
|
|
43
43
|
/>
|
|
44
44
|
</SliderTrack>
|
|
45
45
|
|
|
@@ -48,7 +48,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
48
48
|
:key="key"
|
|
49
49
|
data-slot="slider-thumb"
|
|
50
50
|
:aria-label="(modelValue?.length ?? 0) > 1 ? `Value ${key + 1}` : 'Value'"
|
|
51
|
-
class="bg-white border-
|
|
51
|
+
class="bg-white border-accent-default ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
52
52
|
/>
|
|
53
53
|
</SliderRoot>
|
|
54
54
|
</template>
|
|
@@ -18,7 +18,7 @@ const forwarded = useForwardProps(delegatedProps);
|
|
|
18
18
|
<StepperDescription
|
|
19
19
|
v-slot="slotProps: Record<string, unknown>"
|
|
20
20
|
v-bind="forwarded"
|
|
21
|
-
:class="cn('
|
|
21
|
+
:class="cn('label-12-regular text-content-on-surface-muted', props.class)"
|
|
22
22
|
>
|
|
23
23
|
<slot v-bind="slotProps" />
|
|
24
24
|
</StepperDescription>
|