@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={cn(
243
- 'inline-flex items-center transition-transform group-active:translate-y-px',
244
- !iconOnly && 'gap-1'
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()}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.55",
4
+ "version": "0.1.56",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },