@invopop/popui 0.1.55 → 0.1.56
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.
|
@@ -177,6 +177,7 @@
|
|
|
177
177
|
<script lang="ts">
|
|
178
178
|
import { Icon } from '@steeze-ui/svelte-icon'
|
|
179
179
|
import ShortcutWrapper from '../ShortcutWrapper.svelte'
|
|
180
|
+
import clsx from 'clsx'
|
|
180
181
|
|
|
181
182
|
let {
|
|
182
183
|
class: className,
|
|
@@ -239,10 +240,10 @@
|
|
|
239
240
|
|
|
240
241
|
{#snippet buttonContent()}
|
|
241
242
|
<div
|
|
242
|
-
class={
|
|
243
|
-
'
|
|
244
|
-
!iconOnly &&
|
|
245
|
-
)}
|
|
243
|
+
class={clsx('inline-flex items-center transition-transform group-active:translate-y-px', {
|
|
244
|
+
'gap-1': !iconOnly && !shortcut,
|
|
245
|
+
'gap-1.5': !iconOnly && shortcut
|
|
246
|
+
})}
|
|
246
247
|
>
|
|
247
248
|
{#if icon && !children}
|
|
248
249
|
{@render iconContent()}
|