@onereach/ui-components 2.69.1-beta.2101.0 → 2.69.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.
- package/dist/bundled/v2/{OrAvatar-1ada4581.js → OrAvatar-2fa559e1.js} +1 -7
- package/dist/bundled/v2/{OrSelect-759b4410.js → OrSelect-b20a9be0.js} +1 -1
- package/dist/bundled/v2/components/index.js +3 -3
- package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v2/hooks/index.js +1 -1
- package/dist/bundled/v2/index.js +4 -4
- package/dist/bundled/v2/{useOverflow-dc93a300.js → useOverflow-bae6342f.js} +1 -1
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-a0a72134.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +1 -7
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-dfadd12f.js → OrSelect.vue_vue_type_script_lang-15285ce4.js} +1 -1
- package/dist/bundled/v3/components/index.js +3 -3
- package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v3/hooks/index.js +1 -1
- package/dist/bundled/v3/index.js +6 -6
- package/dist/bundled/v3/{useOverflow-06bcc7d7.js → useOverflow-6dce216b.js} +1 -1
- package/dist/esm/v2/{OrAvatar-95b029b4.js → OrAvatar-0afdef36.js} +1 -7
- package/dist/esm/v2/{OrSelect-ac382aa6.js → OrSelect-f0ff5a85.js} +1 -1
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-avatar-v3/index.js +1 -1
- package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v2/{useOverflow-a3dc6212.js → useOverflow-af6161c8.js} +1 -1
- package/dist/esm/v3/{OrAvatar-9ed782da.js → OrAvatar-ef88d31c.js} +1 -7
- package/dist/esm/v3/{OrSelect-fee9c099.js → OrSelect-7e813982.js} +1 -1
- package/dist/esm/v3/components/index.js +3 -3
- package/dist/esm/v3/components/or-avatar-v3/index.js +1 -1
- package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +3 -3
- package/dist/esm/v3/{useOverflow-a3dc6212.js → useOverflow-af6161c8.js} +1 -1
- package/package.json +3 -2
- package/src/components/or-avatar-v3/props.ts +0 -1
- package/src/components/or-avatar-v3/styles.ts +0 -9
- package/src/hooks/useOverflow.ts +1 -1
|
@@ -23,7 +23,7 @@ function useOverflow(container) {
|
|
|
23
23
|
x: containerOffset,
|
|
24
24
|
width: containerWidth
|
|
25
25
|
} = container.getBoundingClientRect();
|
|
26
|
-
if (itemOffset + itemWidth
|
|
26
|
+
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
27
27
|
item.style.setProperty('visibility', 'hidden');
|
|
28
28
|
return {
|
|
29
29
|
innerItems,
|
|
@@ -10,7 +10,6 @@ var AvatarSize;
|
|
|
10
10
|
AvatarSize["L"] = "l";
|
|
11
11
|
AvatarSize["M"] = "m";
|
|
12
12
|
AvatarSize["S"] = "s";
|
|
13
|
-
AvatarSize["XS"] = "xs";
|
|
14
13
|
})(AvatarSize || (AvatarSize = {}));
|
|
15
14
|
var AvatarColor;
|
|
16
15
|
(function (AvatarColor) {
|
|
@@ -52,12 +51,7 @@ const AvatarRootSizes = {
|
|
|
52
51
|
// Box
|
|
53
52
|
'w-[32px]', 'h-[32px]',
|
|
54
53
|
// Typography
|
|
55
|
-
'text-[16px]']
|
|
56
|
-
'xs': [
|
|
57
|
-
// Box
|
|
58
|
-
'w-[24px]', 'h-[24px]',
|
|
59
|
-
// Typography
|
|
60
|
-
'text-[12px]']
|
|
54
|
+
'text-[16px]']
|
|
61
55
|
};
|
|
62
56
|
const AvatarRootColors = {
|
|
63
57
|
[AvatarColor.blue]: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { u as useOverflow } from './useOverflow-
|
|
4
|
+
import { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import { _ as __vue_component__$1 } from './OrCheckbox-567e387c.js';
|
|
7
7
|
import { _ as __vue_component__$2 } from './OrError-d267ee9a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, _ as OrAvatar } from '../OrAvatar-4824c57f.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../OrAvatar-0afdef36.js';
|
|
3
3
|
export { _ as OrBottomSheetV3 } from '../OrBottomSheet-16c2e610.js';
|
|
4
4
|
export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton-2ca1c3d6.js';
|
|
5
5
|
export { _ as OrButtonV2 } from '../OrButton-c4f9955b.js';
|
|
@@ -66,7 +66,7 @@ export { _ as OrRadioV3 } from '../OrRadio-848ce55d.js';
|
|
|
66
66
|
export { _ as OrSearchV3 } from '../OrSearch-ddb7c1fe.js';
|
|
67
67
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-e8dce8f9.js';
|
|
68
68
|
export { _ as OrSelect } from '../OrSelect-dae2b069.js';
|
|
69
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
69
|
+
export { _ as OrSelectV3 } from '../OrSelect-f0ff5a85.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-7d6125bb.js';
|
|
71
71
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-fabc7bc9.js';
|
|
72
72
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-cc94bdc9.js';
|
|
@@ -121,6 +121,6 @@ import '../useElevation-31bfe1f6.js';
|
|
|
121
121
|
import '../useResponsive-a02e95b7.js';
|
|
122
122
|
import '@vueuse/integrations/useFocusTrap';
|
|
123
123
|
import '../dropdown-open-0d314aa4.js';
|
|
124
|
-
import '../useOverflow-
|
|
124
|
+
import '../useOverflow-af6161c8.js';
|
|
125
125
|
import 'portal-vue/dist/portal-vue.esm.js';
|
|
126
126
|
import 'portal-vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../../OrAvatar-
|
|
1
|
+
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../../OrAvatar-0afdef36.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-f0ff5a85.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-4d5a318d.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
6
|
-
import '../../useOverflow-
|
|
6
|
+
import '../../useOverflow-af6161c8.js';
|
|
7
7
|
import '@vueuse/core';
|
|
8
8
|
import '../../OrCheckbox-567e387c.js';
|
|
9
9
|
import '../../OrLabel-2a9f1477.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { u as useClassAttribute } from '../useClassAttribute-47fdb016.js';
|
|
2
2
|
export { u as useElevation } from '../useElevation-31bfe1f6.js';
|
|
3
|
-
export { u as useOverflow } from '../useOverflow-
|
|
3
|
+
export { u as useOverflow } from '../useOverflow-af6161c8.js';
|
|
4
4
|
export { u as useResponsive } from '../useResponsive-a02e95b7.js';
|
|
5
5
|
export { u as useToggle } from '../useToggle-29e4d7c7.js';
|
|
6
6
|
import 'vue-demi';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, _ as OrAvatar } from './OrAvatar-4824c57f.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-0afdef36.js';
|
|
3
3
|
export { _ as OrBottomSheetV3 } from './OrBottomSheet-16c2e610.js';
|
|
4
4
|
export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-2ca1c3d6.js';
|
|
5
5
|
export { _ as OrButtonV2 } from './OrButton-c4f9955b.js';
|
|
@@ -66,7 +66,7 @@ export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
|
|
|
66
66
|
export { _ as OrSearchV3 } from './OrSearch-ddb7c1fe.js';
|
|
67
67
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
|
|
68
68
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
69
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { _ as OrSelectV3 } from './OrSelect-f0ff5a85.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
|
|
71
71
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
|
|
72
72
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-cc94bdc9.js';
|
|
@@ -98,7 +98,7 @@ export { _ as OrTooltipV3 } from './OrTooltip-513bee30.js';
|
|
|
98
98
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
99
99
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
100
100
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
101
|
-
export { u as useOverflow } from './useOverflow-
|
|
101
|
+
export { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
102
102
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
103
103
|
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
104
104
|
import { R as RX_ABBREVIATION_FROM_STRING } from './color-1f348774.js';
|
|
@@ -23,7 +23,7 @@ function useOverflow(container) {
|
|
|
23
23
|
x: containerOffset,
|
|
24
24
|
width: containerWidth
|
|
25
25
|
} = container.getBoundingClientRect();
|
|
26
|
-
if (itemOffset + itemWidth
|
|
26
|
+
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
27
27
|
item.style.setProperty('visibility', 'hidden');
|
|
28
28
|
return {
|
|
29
29
|
innerItems,
|
|
@@ -10,7 +10,6 @@ var AvatarSize;
|
|
|
10
10
|
AvatarSize["L"] = "l";
|
|
11
11
|
AvatarSize["M"] = "m";
|
|
12
12
|
AvatarSize["S"] = "s";
|
|
13
|
-
AvatarSize["XS"] = "xs";
|
|
14
13
|
})(AvatarSize || (AvatarSize = {}));
|
|
15
14
|
var AvatarColor;
|
|
16
15
|
(function (AvatarColor) {
|
|
@@ -52,12 +51,7 @@ const AvatarRootSizes = {
|
|
|
52
51
|
// Box
|
|
53
52
|
'w-[32px]', 'h-[32px]',
|
|
54
53
|
// Typography
|
|
55
|
-
'text-[16px]']
|
|
56
|
-
'xs': [
|
|
57
|
-
// Box
|
|
58
|
-
'w-[24px]', 'h-[24px]',
|
|
59
|
-
// Typography
|
|
60
|
-
'text-[12px]']
|
|
54
|
+
'text-[16px]']
|
|
61
55
|
};
|
|
62
56
|
const AvatarRootColors = {
|
|
63
57
|
[AvatarColor.blue]: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { u as useOverflow } from './useOverflow-
|
|
4
|
+
import { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import { s as script$1 } from './OrCheckbox-3e139eac.js';
|
|
7
7
|
import { s as script$2 } from './OrError-ec8c709d.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from '../OrAvatar-2808a314.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../OrAvatar-ef88d31c.js';
|
|
3
3
|
export { s as OrBottomSheetV3 } from '../OrBottomSheet-62817aec.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from '../OrIconButton-8be9c89f.js';
|
|
@@ -61,7 +61,7 @@ export { s as OrRadioV3 } from '../OrRadio-54b6d0de.js';
|
|
|
61
61
|
export { s as OrSearchV3 } from '../OrSearch-cdde55ce.js';
|
|
62
62
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-171cad78.js';
|
|
63
63
|
export { s as OrSelect } from '../OrSelect-0821b907.js';
|
|
64
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
64
|
+
export { s as OrSelectV3 } from '../OrSelect-7e813982.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
66
66
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
|
|
67
67
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
|
|
@@ -115,4 +115,4 @@ import '../useElevation-31bfe1f6.js';
|
|
|
115
115
|
import '../useResponsive-a02e95b7.js';
|
|
116
116
|
import '@vueuse/integrations/useFocusTrap';
|
|
117
117
|
import '../dropdown-open-0d314aa4.js';
|
|
118
|
-
import '../useOverflow-
|
|
118
|
+
import '../useOverflow-af6161c8.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar-
|
|
1
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from '../../OrAvatar-ef88d31c.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-7e813982.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-5247ab25.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
5
5
|
import '../../useClassAttribute-47fdb016.js';
|
|
6
|
-
import '../../useOverflow-
|
|
6
|
+
import '../../useOverflow-af6161c8.js';
|
|
7
7
|
import '@vueuse/core';
|
|
8
8
|
import '../../OrCheckbox-3e139eac.js';
|
|
9
9
|
import '../../OrLabel-bdaec602.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { u as useClassAttribute } from '../useClassAttribute-47fdb016.js';
|
|
2
2
|
export { u as useElevation } from '../useElevation-31bfe1f6.js';
|
|
3
|
-
export { u as useOverflow } from '../useOverflow-
|
|
3
|
+
export { u as useOverflow } from '../useOverflow-af6161c8.js';
|
|
4
4
|
export { u as useResponsive } from '../useResponsive-a02e95b7.js';
|
|
5
5
|
export { u as useToggle } from '../useToggle-29e4d7c7.js';
|
|
6
6
|
import 'vue-demi';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
|
|
2
|
-
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-
|
|
2
|
+
export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-ef88d31c.js';
|
|
3
3
|
export { s as OrBottomSheetV3 } from './OrBottomSheet-62817aec.js';
|
|
4
4
|
export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
|
|
5
5
|
export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
|
|
@@ -61,7 +61,7 @@ export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
|
|
|
61
61
|
export { s as OrSearchV3 } from './OrSearch-cdde55ce.js';
|
|
62
62
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
|
|
63
63
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
64
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
64
|
+
export { s as OrSelectV3 } from './OrSelect-7e813982.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
66
66
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
67
67
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
|
@@ -92,7 +92,7 @@ export { s as OrTooltipV3 } from './OrTooltip-50d27b4f.js';
|
|
|
92
92
|
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
93
93
|
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
94
94
|
export { u as useElevation } from './useElevation-31bfe1f6.js';
|
|
95
|
-
export { u as useOverflow } from './useOverflow-
|
|
95
|
+
export { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
96
96
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
97
97
|
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
98
98
|
import { R as RX_ABBREVIATION_FROM_STRING } from './color-1f348774.js';
|
|
@@ -23,7 +23,7 @@ function useOverflow(container) {
|
|
|
23
23
|
x: containerOffset,
|
|
24
24
|
width: containerWidth
|
|
25
25
|
} = container.getBoundingClientRect();
|
|
26
|
-
if (itemOffset + itemWidth
|
|
26
|
+
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
27
27
|
item.style.setProperty('visibility', 'hidden');
|
|
28
28
|
return {
|
|
29
29
|
innerItems,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.69.1
|
|
3
|
+
"version": "2.69.1",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -123,5 +123,6 @@
|
|
|
123
123
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
124
124
|
},
|
|
125
125
|
"./package.json": "./package.json"
|
|
126
|
-
}
|
|
126
|
+
},
|
|
127
|
+
"gitHead": "91728e79fd4e9fbe584d302a41e170f2670f7f28"
|
|
127
128
|
}
|
|
@@ -58,15 +58,6 @@ export const AvatarRootSizes: Record<AvatarSize, string[]> = {
|
|
|
58
58
|
// Typography
|
|
59
59
|
'text-[16px]',
|
|
60
60
|
],
|
|
61
|
-
|
|
62
|
-
'xs': [
|
|
63
|
-
// Box
|
|
64
|
-
'w-[24px]',
|
|
65
|
-
'h-[24px]',
|
|
66
|
-
|
|
67
|
-
// Typography
|
|
68
|
-
'text-[12px]',
|
|
69
|
-
],
|
|
70
61
|
};
|
|
71
62
|
|
|
72
63
|
export const AvatarRootColors: Record<AvatarColor, string[]> = {
|
package/src/hooks/useOverflow.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function useOverflow(
|
|
|
26
26
|
const { x: itemOffset, width: itemWidth } = item.getBoundingClientRect();
|
|
27
27
|
const { x: containerOffset, width: containerWidth } = container.getBoundingClientRect();
|
|
28
28
|
|
|
29
|
-
if (itemOffset + itemWidth
|
|
29
|
+
if (itemOffset + itemWidth > containerOffset + containerWidth) {
|
|
30
30
|
item.style.setProperty('visibility', 'hidden');
|
|
31
31
|
|
|
32
32
|
return {
|