@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.
@@ -1 +1 @@
1
- export { s as default } from '../OrTabsV3-3427e9d4.js';
1
+ export { s as default } from '../OrTabsV3-fa7ba3c8.js';
@@ -1 +1 @@
1
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabsV3-3427e9d4.js';
1
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabsV3-fa7ba3c8.js';
@@ -1 +1 @@
1
- export { T as TabsVariant } from '../OrTabsV3-3427e9d4.js';
1
+ export { T as TabsVariant } from '../OrTabsV3-fa7ba3c8.js';
@@ -1 +1 @@
1
- export { b as Tabs, a as TabsContainer, d as TabsContent, c as TabsVariants } from '../OrTabsV3-3427e9d4.js';
1
+ export { b as Tabs, a as TabsContainer, d as TabsContent, c as TabsVariants } from '../OrTabsV3-fa7ba3c8.js';
@@ -22,26 +22,26 @@ const TabsContainer = [
22
22
  'gap-lg'];
23
23
  const Tabs = [
24
24
  // Layout
25
- 'grid', 'grid-flow-col', 'items-center',
26
- // Box
27
- 'shrink-0',
28
- // Spacing
29
- 'gap-lg',
25
+ 'grid grid-flow-col items-center shrink-0',
30
26
  // Theme
31
27
  'theme-border-underline', 'theme-border-1-outline', 'dark:theme-border-1-outline'];
32
28
  const TabsVariants = {
33
29
  'default': [
34
30
  // Layout
35
- 'auto-cols-max'],
31
+ 'auto-cols-max',
32
+ // Spacing
33
+ 'gap-lg'],
36
34
  'fitted': [
37
35
  // Layout
38
- 'auto-cols-auto']
36
+ 'auto-cols-auto',
37
+ // Spacing (children)
38
+ 'children:px-lg']
39
39
  };
40
40
  const TabsContent = [
41
41
  // Layout
42
42
  'grow',
43
- // box
44
- 'h-full', 'overflow-auto'];
43
+ // Overflow
44
+ 'overflow-auto'];
45
45
 
46
46
  var script = defineComponent({
47
47
  name: 'OrTabs',
@@ -117,7 +117,7 @@ var script = defineComponent({
117
117
  [...children].reverse().forEach(element => {
118
118
  if (currentWidth > rootElement.clientWidth) {
119
119
  nextHiddenTabs.unshift(nextNormalTabs.pop());
120
- currentWidth -= element.clientWidth + 16;
120
+ currentWidth -= element.clientWidth + (props.variant === TabsVariant.Default ? 16 : 0);
121
121
  }
122
122
  });
123
123
  if (nextHiddenTabs.includes(activeTab)) {
@@ -100,7 +100,7 @@ export { default as OrTab } from './OrTab/OrTab.js';
100
100
  export { default as OrTabHeaderItem } from './OrTabHeaderItem/OrTabHeaderItem.js';
101
101
  export { s as OrTabV3 } from './OrTabV3-9dbd8ad9.js';
102
102
  export { default as OrTabs } from './OrTabs/OrTabs.js';
103
- export { s as OrTabsV3, T as TabsVariant } from './OrTabsV3-3427e9d4.js';
103
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabsV3-fa7ba3c8.js';
104
104
  export { default as OrTag } from './OrTag/OrTag.js';
105
105
  export { s as OrTagInputV3 } from './OrTagInputV3-dd2713f5.js';
106
106
  export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTagV3-b65981a7.js';