@saasmakers/ui 1.5.5 → 1.5.7
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.
|
@@ -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
|
|
55
|
-
'py-
|
|
56
|
-
'py-2
|
|
57
|
-
'py-
|
|
58
|
-
'py-3
|
|
59
|
-
'py-
|
|
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',
|
|
@@ -229,7 +229,7 @@ watch(visible, (isVisible) => {
|
|
|
229
229
|
@transitionend="onPanelTransitionEnd"
|
|
230
230
|
>
|
|
231
231
|
<div
|
|
232
|
-
class="flex shrink-0 cursor-grab touch-none justify-center px-
|
|
232
|
+
class="flex shrink-0 cursor-grab touch-none justify-center px-6 pb-2 pt-3 active:cursor-grabbing md:px-8"
|
|
233
233
|
@pointercancel="onPointerUp"
|
|
234
234
|
@pointerdown="onHeaderPointerDown"
|
|
235
235
|
@pointermove="onPointerMove"
|
|
@@ -242,7 +242,7 @@ watch(visible, (isVisible) => {
|
|
|
242
242
|
|
|
243
243
|
<div
|
|
244
244
|
ref="contentRef"
|
|
245
|
-
class="min-h-0 flex-1 overflow-y-auto px-
|
|
245
|
+
class="min-h-0 flex-1 overflow-y-auto px-6 md:px-8"
|
|
246
246
|
:class="{
|
|
247
247
|
'pb-4': $slots.footer,
|
|
248
248
|
'pb-6': !($slots.footer),
|
|
@@ -257,7 +257,7 @@ watch(visible, (isVisible) => {
|
|
|
257
257
|
|
|
258
258
|
<div
|
|
259
259
|
v-if="$slots.footer"
|
|
260
|
-
class="flex shrink-0 justify-center px-
|
|
260
|
+
class="flex shrink-0 justify-center px-6 pb-6 pt-2 md:px-8"
|
|
261
261
|
>
|
|
262
262
|
<slot name="footer" />
|
|
263
263
|
</div>
|