@widgetic/design-system 0.5.39 → 0.5.40
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/components/chat/Composer.svelte +1 -1
- package/dist/components/filters/FilterByButton.svelte +2 -1
- package/dist/components/navigation/Breadcrumbs.svelte +1 -1
- package/dist/components/toast/ToasterModal.svelte +2 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
- package/package.json +1 -1
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
</Button>
|
|
207
207
|
{/snippet}
|
|
208
208
|
</DropdownMenu.Trigger>
|
|
209
|
-
<DropdownMenu.Content side="top" align="start" class="max-h-48
|
|
209
|
+
<DropdownMenu.Content side="top" align="start" class="max-h-48 overflow-y-auto">
|
|
210
210
|
{#each models as model (model.id)}
|
|
211
211
|
<DropdownMenu.Item
|
|
212
212
|
class="justify-between gap-2"
|
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
aria-hidden="true"
|
|
59
59
|
/>
|
|
60
60
|
</DropdownMenu.Trigger>
|
|
61
|
-
|
|
61
|
+
<!-- The panel is as wide as its widest option (the rule of every dropdown); a page that wants more passes `menuClass`. -->
|
|
62
|
+
<DropdownMenu.Content side="bottom" align={contentAlign} class={menuClass}>
|
|
62
63
|
{#each options as option (option.value)}
|
|
63
64
|
{@const OptionIcon = option.icon}
|
|
64
65
|
<DropdownMenu.Item
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
<DropdownMenu.Trigger class="flex cursor-pointer items-center gap-1">
|
|
348
348
|
<span class="{crumbTextClass} text-muted-foreground">...</span>
|
|
349
349
|
</DropdownMenu.Trigger>
|
|
350
|
-
<DropdownMenu.Content align="start"
|
|
350
|
+
<DropdownMenu.Content align="start">
|
|
351
351
|
{#each currentPath.slice(0, -itemsToShow + 1) as _, index}
|
|
352
352
|
<DropdownMenu.Item>
|
|
353
353
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
@@ -150,8 +150,9 @@
|
|
|
150
150
|
toastMainClass +
|
|
151
151
|
'-close-button !absolute !end-1.5 !top-1/2 !z-10 !-translate-y-1/2 !flex !size-7 !shrink-0 !items-center !justify-center !rounded-full !border-0 !bg-transparent !p-0 !text-inherit !transition-colors hover:!bg-current/20 focus-visible:!bg-current/20 focus-visible:!outline-hidden [&_svg]:!size-3.5 [&_svg]:!stroke-2',
|
|
152
152
|
info: '!border-border !bg-popover !text-popover-foreground',
|
|
153
|
+
// The success pill writes white on the brand green (the close mark inherits it), not the dark brand foreground.
|
|
153
154
|
success:
|
|
154
|
-
'!border-transparent !bg-brand !text-
|
|
155
|
+
'!border-transparent !bg-brand !text-white [&>[data-icon]]:!hidden',
|
|
155
156
|
warning: '!border-transparent !bg-warning !text-primary-foreground [&>[data-icon]]:!hidden',
|
|
156
157
|
error:
|
|
157
158
|
'!border-transparent !bg-destructive !text-destructive-foreground [&>[data-icon]]:!hidden'
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{sideOffset}
|
|
26
26
|
dir={$textDirection}
|
|
27
27
|
class={cn(
|
|
28
|
-
'bg-popover text-popover-foreground border-border data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 min-w-[8rem] overflow-hidden rounded-xl border p-1 outline-hidden',
|
|
28
|
+
'bg-popover text-popover-foreground border-border data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-max min-w-[8rem] max-w-[min(24rem,calc(100vw-1rem))] overflow-hidden rounded-xl border p-1 outline-hidden',
|
|
29
29
|
overlayFloatingContentZClass,
|
|
30
30
|
className
|
|
31
31
|
)}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
bind:ref
|
|
24
24
|
dir={$textDirection}
|
|
25
25
|
class={cn(
|
|
26
|
-
'bg-popover text-popover-foreground border-border min-w-[8rem] rounded-xl border p-1 focus:outline-hidden',
|
|
26
|
+
'bg-popover text-popover-foreground border-border w-max min-w-[8rem] max-w-[min(24rem,calc(100vw-1rem))] rounded-xl border p-1 focus:outline-hidden',
|
|
27
27
|
overlayFloatingContentZClass,
|
|
28
28
|
className
|
|
29
29
|
)}
|