@onereach/ui-components 8.15.3 → 8.15.4

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.
@@ -83,7 +83,7 @@ var script = defineComponent({
83
83
  [...children].reverse().forEach(element => {
84
84
  if (currentWidth > rootElement.clientWidth) {
85
85
  nextHiddenTabs.unshift(nextNormalTabs.pop());
86
- currentWidth -= element.clientWidth + 16;
86
+ currentWidth -= element.clientWidth + (props.variant === TabsVariant.Default ? 16 : 0);
87
87
  }
88
88
  });
89
89
  if (nextHiddenTabs.includes(activeTab)) {
@@ -7,25 +7,25 @@ const TabsContainer = [
7
7
  'gap-lg'];
8
8
  const Tabs = [
9
9
  // Layout
10
- 'grid', 'grid-flow-col', 'items-center',
11
- // Box
12
- 'shrink-0',
13
- // Spacing
14
- 'gap-lg',
10
+ 'grid grid-flow-col items-center shrink-0',
15
11
  // Theme
16
12
  'theme-border-underline', 'theme-border-1-outline', 'dark:theme-border-1-outline'];
17
13
  const TabsVariants = {
18
14
  'default': [
19
15
  // Layout
20
- 'auto-cols-max'],
16
+ 'auto-cols-max',
17
+ // Spacing
18
+ 'gap-lg'],
21
19
  'fitted': [
22
20
  // Layout
23
- 'auto-cols-auto']
21
+ 'auto-cols-auto',
22
+ // Spacing (children)
23
+ 'children:px-lg']
24
24
  };
25
25
  const TabsContent = [
26
26
  // Layout
27
27
  'grow',
28
- // box
29
- 'h-full', 'overflow-auto'];
28
+ // Overflow
29
+ 'overflow-auto'];
30
30
 
31
31
  export { Tabs, TabsContainer, TabsContent, TabsVariants };