@r2digisolutions/components 0.22.0 → 0.22.1

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.
@@ -419,11 +419,15 @@
419
419
  {disabled}
420
420
  onkeydown={onTriggerKeydown}
421
421
  class={[
422
- 'gap-2 rounded-lg border-border bg-surface-elevated font-medium text-primary inline-flex items-center border transition-colors',
423
- 'hover:bg-surface-overlay focus-visible:ring-brand-500/30 focus-visible:ring-2 focus-visible:outline-none',
424
- size === 'sm' ? 'min-h-8 px-2.5 text-xs' : 'min-h-9 px-3 text-sm',
425
- disabled && 'cursor-not-allowed opacity-50',
426
- trigger && 'p-0 border-0 bg-transparent hover:bg-transparent'
422
+ 'inline-flex items-center font-medium transition-colors focus-visible:ring-brand-500/30 focus-visible:ring-2 focus-visible:outline-none',
423
+ trigger
424
+ ? 'gap-0 rounded-lg border-0 bg-transparent p-0 text-inherit hover:bg-transparent'
425
+ : [
426
+ 'gap-2 rounded-lg border border-border bg-surface-elevated text-primary',
427
+ 'hover:bg-surface-overlay',
428
+ size === 'sm' ? 'min-h-8 px-2.5 text-xs' : 'min-h-9 px-3 text-sm'
429
+ ],
430
+ disabled && 'cursor-not-allowed opacity-50'
427
431
  ]}
428
432
  aria-label={trigger ? label : undefined}
429
433
  aria-haspopup="menu"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",