@onereach/ui-components 2.68.1-beta.2071.0 → 2.68.2-beta.2074.0
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/{OrSelect-f37e751b.js → OrSelect-759b4410.js} +1 -1
- package/dist/bundled/v2/components/index.js +2 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/bundled/v2/hooks/index.js +1 -1
- package/dist/bundled/v2/index.js +3 -3
- package/dist/bundled/v2/{useOverflow-43299d81.js → useOverflow-dc93a300.js} +10 -6
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c74a63e1.js → OrSelect.vue_vue_type_script_lang-dfadd12f.js} +1 -1
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/bundled/v3/hooks/index.js +1 -1
- package/dist/bundled/v3/index.js +4 -4
- package/dist/bundled/v3/{useOverflow-2468b718.js → useOverflow-06bcc7d7.js} +10 -6
- package/dist/esm/v2/{OrSelect-528c7480.js → OrSelect-ac382aa6.js} +1 -1
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +2 -2
- package/dist/esm/v2/{useOverflow-ac506c65.js → useOverflow-a3dc6212.js} +10 -6
- package/dist/esm/v3/{OrSelect-d9c76482.js → OrSelect-fee9c099.js} +1 -1
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +2 -2
- package/dist/esm/v3/{useOverflow-ac506c65.js → useOverflow-a3dc6212.js} +10 -6
- package/package.json +1 -1
- package/src/components/or-tag-v3/OrTag.stories3.ts +112 -0
- package/src/hooks/useOverflow.ts +5 -2
|
@@ -15,12 +15,16 @@ function useOverflow(container) {
|
|
|
15
15
|
innerItems,
|
|
16
16
|
outerItems
|
|
17
17
|
}, child) => {
|
|
18
|
-
const item = child
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
const item = child;
|
|
19
|
+
const {
|
|
20
|
+
x: itemOffset,
|
|
21
|
+
width: itemWidth
|
|
22
|
+
} = item.getBoundingClientRect();
|
|
23
|
+
const {
|
|
24
|
+
x: containerOffset,
|
|
25
|
+
width: containerWidth
|
|
26
|
+
} = container.getBoundingClientRect();
|
|
27
|
+
if (itemOffset + itemWidth >= containerOffset + containerWidth) {
|
|
24
28
|
item.style.setProperty('visibility', 'hidden');
|
|
25
29
|
return {
|
|
26
30
|
innerItems,
|
|
@@ -12,7 +12,7 @@ import './OrPopover-c462ce77.js';
|
|
|
12
12
|
import { s as script$3 } from './OrTag.vue_vue_type_script_lang-92d9fb12.js';
|
|
13
13
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-293d2de2.js';
|
|
14
14
|
import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
|
|
15
|
-
import { u as useOverflow } from './useOverflow-
|
|
15
|
+
import { u as useOverflow } from './useOverflow-06bcc7d7.js';
|
|
16
16
|
import { s as script$4 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
|
|
17
17
|
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
|
|
18
18
|
import { s as script$6 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
|
|
@@ -66,7 +66,7 @@ export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-2e666a56.js'
|
|
|
66
66
|
export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-ed78b21f.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-579406f5.js';
|
|
68
68
|
export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
|
|
69
|
-
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-
|
|
69
|
+
export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-dfadd12f.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
|
|
71
71
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
|
|
72
72
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js';
|
|
@@ -130,4 +130,4 @@ import '../useResponsive-9d397e2a.js';
|
|
|
130
130
|
import '../useElevation-c8d5d3ba.js';
|
|
131
131
|
import '../OrMenuItem-4feaba6c.js';
|
|
132
132
|
import '../dropdown-open-293d2de2.js';
|
|
133
|
-
import '../useOverflow-
|
|
133
|
+
import '../useOverflow-06bcc7d7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-dfadd12f.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '../../OrCheckbox.vue_vue_type_script_lang-8b36e06c.js';
|
|
@@ -31,4 +31,4 @@ import '../../OrMenuItem-4feaba6c.js';
|
|
|
31
31
|
import '../../OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
|
|
32
32
|
import '../../OrTag.vue_vue_type_script_lang-92d9fb12.js';
|
|
33
33
|
import '../../dropdown-open-293d2de2.js';
|
|
34
|
-
import '../../useOverflow-
|
|
34
|
+
import '../../useOverflow-06bcc7d7.js';
|
|
@@ -15,3 +15,8 @@ export declare const WithCustomColor: StoryFn<import("vue").ComponentOptions<imp
|
|
|
15
15
|
} | string[], {} & {}, {
|
|
16
16
|
[x: number]: string;
|
|
17
17
|
} | {}, true>)>;
|
|
18
|
+
export declare const InsideContainer: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
19
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
+
} | string[], {} & {}, {
|
|
21
|
+
[x: number]: string;
|
|
22
|
+
} | {}, true>)>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { u as useClassAttribute } from '../useClassAttribute-00888f78.js';
|
|
2
2
|
export { u as useElevation } from '../useElevation-c8d5d3ba.js';
|
|
3
|
-
export { u as useOverflow } from '../useOverflow-
|
|
3
|
+
export { u as useOverflow } from '../useOverflow-06bcc7d7.js';
|
|
4
4
|
export { u as useToggle } from '../useToggle-09b6cb90.js';
|
|
5
5
|
export { u as useResponsive } from '../useResponsive-9d397e2a.js';
|
|
6
6
|
import 'vue';
|