@saasmakers/ui 1.5.4 → 1.5.6

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.
@@ -47,7 +47,7 @@ function onClose(event: KeyboardEvent | MouseEvent) {
47
47
 
48
48
  <button
49
49
  v-if="action"
50
- class="ml-2 min-h-6 inline-flex items-center justify-center gap-1.25 rounded-md px-2 py-0.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-800"
50
+ class="ml-2 min-h-6 inline-flex items-center justify-center gap-1.25 rounded-md px-2 py-0.5 uppercase transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-800"
51
51
  :class="{
52
52
  'bg-red-100 text-red-700 hover:bg-red-200 focus-visible:ring-red-500 dark:bg-red-400/15 dark:text-red-400 dark:hover:bg-red-400/25': status === 'error',
53
53
  'bg-indigo-100 text-indigo-700 hover:bg-indigo-200 focus-visible:ring-indigo-500 dark:bg-indigo-400/15 dark:text-indigo-400 dark:hover:bg-indigo-400/25': status === 'info',
@@ -51,12 +51,18 @@ function onTabClick(event: MouseEvent, tabValue: string) {
51
51
  'flex-col': orientation === 'vertical',
52
52
  'text-gray-900 dark:text-gray-100': isTabActive(tab.value),
53
53
  'text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100': !isTabActive(tab.value) && !disabled,
54
- 'py-1.5 px-2.5': size === 'xs' && theme === 'rounded',
55
- 'py-2 px-3': size === 'sm' && theme === 'rounded',
56
- 'py-2.5 px-3.5': size === 'base' && theme === 'rounded' || size === 'xs' && theme === 'border',
57
- 'py-3 px-4': size === 'lg' && theme === 'rounded' || size === 'sm' && theme === 'border',
58
- 'py-3.5 px-4.5': size === 'base' && theme === 'border',
59
- 'py-4 px-5': size === 'lg' && theme === 'border',
54
+ 'py-1 px-2.5 sm:py-1.5': size === 'xs' && theme === 'rounded' && orientation === 'responsive',
55
+ 'py-1.5 px-3 sm:py-2': size === 'sm' && theme === 'rounded' && orientation === 'responsive',
56
+ 'py-2 px-3.5 sm:py-2.5': (size === 'base' && theme === 'rounded' || size === 'xs' && theme === 'border') && orientation === 'responsive',
57
+ 'py-2.5 px-4 sm:py-3': (size === 'lg' && theme === 'rounded' || size === 'sm' && theme === 'border') && orientation === 'responsive',
58
+ 'py-3 px-4.5 sm:py-3.5': size === 'base' && theme === 'border' && orientation === 'responsive',
59
+ 'py-3.5 px-5 sm:py-4': size === 'lg' && theme === 'border' && orientation === 'responsive',
60
+ 'py-1.5 px-2.5': size === 'xs' && theme === 'rounded' && orientation !== 'responsive',
61
+ 'py-2 px-3': size === 'sm' && theme === 'rounded' && orientation !== 'responsive',
62
+ 'py-2.5 px-3.5': (size === 'base' && theme === 'rounded' || size === 'xs' && theme === 'border') && orientation !== 'responsive',
63
+ 'py-3 px-4': (size === 'lg' && theme === 'rounded' || size === 'sm' && theme === 'border') && orientation !== 'responsive',
64
+ 'py-3.5 px-4.5': size === 'base' && theme === 'border' && orientation !== 'responsive',
65
+ 'py-4 px-5': size === 'lg' && theme === 'border' && orientation !== 'responsive',
60
66
  'border-b-2 border-gray-300 dark:border-gray-700 transition duration-500': theme === 'border',
61
67
  'border-gray-900 dark:border-gray-100': isTabActive(tab.value) && theme === 'border',
62
68
  'border-gray-100 dark:border-gray-900': !isTabActive(tab.value) && theme === 'border',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasmakers/ui",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "private": false,
5
5
  "description": "Reusable Nuxt UI components for SaaS Makers projects",
6
6
  "license": "MIT",