@onereach/ui-components 2.62.7 → 2.62.8-beta.1934.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/v2/{OrInlineInput-8455f9da.js → OrInlineInput-f00cba5e.js} +5 -4
- package/dist/v2/{OrInlineTextarea-1127e512.js → OrInlineTextarea-75de33d0.js} +5 -4
- package/dist/v2/OrSegmentedControl-17df63b8.js +236 -0
- package/dist/v2/{OrTabs-b4a9740b.js → OrTabs-f2a60b41.js} +1 -1
- package/dist/v2/components/index.d.ts +1 -0
- package/dist/v2/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +12 -0
- package/dist/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
- package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
- package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/index.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/props.d.ts +4 -0
- package/dist/v2/components/or-segmented-control-v3/styles.d.ts +3 -0
- package/dist/v2/components/or-segmented-control-v3/types.d.ts +4 -0
- package/dist/v2/index.js +4 -3
- package/dist/v2/index2.js +4 -3
- package/dist/v2/index34.js +1 -1
- package/dist/v2/index36.js +1 -1
- package/dist/v2/index63.js +2 -16
- package/dist/v2/index64.js +15 -24
- package/dist/v2/index65.js +26 -4
- package/dist/v2/index66.js +2 -1
- package/dist/v2/index67.js +3 -4
- package/dist/v2/index68.js +3 -4
- package/dist/v2/index69.js +3 -10
- package/dist/v2/index70.js +3 -6
- package/dist/v2/index71.js +13 -2
- package/dist/v2/index72.js +4 -6
- package/dist/v2/index73.js +6 -4
- package/dist/v2/index74.js +2 -1
- package/dist/v2/index75.js +3 -3
- package/dist/v2/index76.js +3 -4
- package/dist/v2/index77.js +4 -15
- package/dist/v2/index78.js +14 -11
- package/dist/v2/index79.js +11 -13
- package/dist/v2/index80.js +14 -2
- package/dist/v2/index81.js +2 -2
- package/dist/v2/index82.js +2 -3
- package/dist/v2/index83.js +1 -6
- package/dist/v2/index84.js +7 -20
- package/dist/v2/index85.js +12 -9
- package/dist/v2/index86.js +18 -1
- package/dist/v2/index87.js +2 -18
- package/dist/v2/index88.js +18 -2
- package/dist/v2/index89.js +2 -10
- package/dist/v2/index90.js +9 -11
- package/dist/v2/index91.js +12 -1
- package/dist/v2/index92.js +1 -6
- package/dist/v2/index93.js +5 -1
- package/dist/v2/index94.js +3 -0
- package/dist/v3/{OrInlineInput-a080b0a3.js → OrInlineInput-bac4abdd.js} +3 -2
- package/dist/v3/{OrInlineTextarea-08767485.js → OrInlineTextarea-d1ec1bba.js} +3 -2
- package/dist/v3/OrSegmentedControl-2bbc0f22.js +184 -0
- package/dist/v3/{OrTabs-194ca950.js → OrTabs-ac0be933.js} +1 -1
- package/dist/v3/components/index.d.ts +1 -0
- package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.stories3.d.ts +12 -0
- package/dist/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +77 -0
- package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
- package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/index.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/props.d.ts +4 -0
- package/dist/v3/components/or-segmented-control-v3/styles.d.ts +3 -0
- package/dist/v3/components/or-segmented-control-v3/types.d.ts +4 -0
- package/dist/v3/index.js +4 -3
- package/dist/v3/index2.js +4 -3
- package/dist/v3/index34.js +1 -1
- package/dist/v3/index36.js +1 -1
- package/dist/v3/index63.js +2 -15
- package/dist/v3/index64.js +13 -22
- package/dist/v3/index65.js +24 -3
- package/dist/v3/index66.js +2 -1
- package/dist/v3/index67.js +3 -4
- package/dist/v3/index68.js +3 -4
- package/dist/v3/index69.js +3 -9
- package/dist/v3/index70.js +3 -4
- package/dist/v3/index71.js +10 -2
- package/dist/v3/index72.js +3 -5
- package/dist/v3/index73.js +5 -3
- package/dist/v3/index74.js +2 -1
- package/dist/v3/index75.js +3 -3
- package/dist/v3/index76.js +3 -4
- package/dist/v3/index77.js +4 -14
- package/dist/v3/index78.js +13 -10
- package/dist/v3/index79.js +10 -12
- package/dist/v3/index80.js +13 -1
- package/dist/v3/index81.js +1 -1
- package/dist/v3/index82.js +1 -3
- package/dist/v3/index83.js +1 -6
- package/dist/v3/index84.js +6 -16
- package/dist/v3/index85.js +12 -9
- package/dist/v3/index86.js +15 -1
- package/dist/v3/index87.js +2 -17
- package/dist/v3/index88.js +17 -2
- package/dist/v3/index89.js +2 -8
- package/dist/v3/index90.js +6 -9
- package/dist/v3/index91.js +11 -1
- package/dist/v3/index92.js +1 -6
- package/dist/v3/index93.js +5 -1
- package/dist/v3/index94.js +3 -0
- package/package.json +2 -3
- package/src/components/index.ts +1 -0
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-inline-input-v3/OrInlineInput.vue +2 -2
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +2 -2
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +7 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +106 -0
- package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +107 -0
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +64 -0
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/styles.ts +50 -0
- package/src/components/or-segmented-control-v3/index.ts +3 -0
- package/src/components/or-segmented-control-v3/props.ts +4 -0
- package/src/components/or-segmented-control-v3/styles.ts +24 -0
- package/src/components/or-segmented-control-v3/types.ts +4 -0
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +9 -4
- package/src/components/or-tabs-v3/OrTabs.vue +1 -1
- package/src/hooks/useClassAttribute.ts +1 -1
package/dist/v3/index74.js
CHANGED
package/dist/v3/index75.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '
|
|
4
|
-
import '@vueuse/core';
|
|
3
|
+
import 'lodash';
|
|
5
4
|
import 'vue';
|
|
5
|
+
import './style-inject.es-4c6f2515.js';
|
package/dist/v3/index76.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrTabV3 } from './OrTab-97044946.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import './
|
|
4
|
-
import '
|
|
3
|
+
import './useClassAttribute-47fdb016.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
5
|
import 'vue';
|
|
6
|
-
import './style-inject.es-4c6f2515.js';
|
package/dist/v3/index77.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
export { s as
|
|
2
|
-
import '@vueuse/core';
|
|
1
|
+
export { s as OrTabs } from './OrTabs-d3812c11.js';
|
|
3
2
|
import 'vue-demi';
|
|
4
|
-
import './
|
|
5
|
-
import '
|
|
3
|
+
import './OrTabHeaderItem-d668cc59.js';
|
|
4
|
+
import 'lodash';
|
|
6
5
|
import 'vue';
|
|
7
|
-
import './
|
|
8
|
-
import './OrMenu-75ef8635.js';
|
|
9
|
-
import './OrPopover-3525c670.js';
|
|
10
|
-
import '@floating-ui/dom';
|
|
11
|
-
import './useElevation-0e973238.js';
|
|
12
|
-
import './useResponsive-a02e95b7.js';
|
|
13
|
-
import './OrBottomSheet-9de57dd0.js';
|
|
14
|
-
import './OrOverlay-27050c19.js';
|
|
15
|
-
import './OrTeleport.vue3-8099178c.js';
|
|
16
|
-
import './OrTab-97044946.js';
|
|
6
|
+
import './style-inject.es-4c6f2515.js';
|
package/dist/v3/index78.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-ac0be933.js';
|
|
2
|
+
import '@vueuse/core';
|
|
2
3
|
import 'vue-demi';
|
|
3
|
-
import './
|
|
4
|
-
import '
|
|
5
|
-
import './OrTooltip-121eae2b.js';
|
|
4
|
+
import './useClassAttribute-47fdb016.js';
|
|
5
|
+
import './OrIcon-b3906e35.js';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
7
|
+
import './OrMenuItem-8773d073.js';
|
|
8
|
+
import './OrMenu-75ef8635.js';
|
|
9
|
+
import './OrPopover-3525c670.js';
|
|
9
10
|
import '@floating-ui/dom';
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
11
|
+
import './useElevation-0e973238.js';
|
|
12
|
+
import './useResponsive-a02e95b7.js';
|
|
13
|
+
import './OrBottomSheet-9de57dd0.js';
|
|
14
|
+
import './OrOverlay-27050c19.js';
|
|
15
|
+
import './OrTeleport.vue3-8099178c.js';
|
|
16
|
+
import './OrTab-97044946.js';
|
package/dist/v3/index79.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrTag } from './OrTag-7e24fdbc.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import './
|
|
4
|
-
import '
|
|
5
|
-
import './
|
|
6
|
-
import './OrIcon-b3906e35.js';
|
|
3
|
+
import './OrIcon-e23028f8.js';
|
|
4
|
+
import 'lodash';
|
|
5
|
+
import './OrTooltip-121eae2b.js';
|
|
7
6
|
import 'vue';
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
7
|
+
import './style-inject.es-4c6f2515.js';
|
|
8
|
+
import './OrFloating-3da814a2.js';
|
|
10
9
|
import '@floating-ui/dom';
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './
|
|
15
|
-
import './OrTeleport.vue3-8099178c.js';
|
|
10
|
+
import './OrTeleportVue3-ad639f12.js';
|
|
11
|
+
import './dom-7a41831b.js';
|
|
12
|
+
import './px-to-rem-0b26b83e.js';
|
|
13
|
+
import './color-1f348774.js';
|
package/dist/v3/index80.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-deaff080.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
+
import './useClassAttribute-47fdb016.js';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import './OrIconButton-5fb3a9aa.js';
|
|
6
|
+
import './OrIcon-b3906e35.js';
|
|
3
7
|
import 'vue';
|
|
8
|
+
import './OrTooltip-36c6728c.js';
|
|
9
|
+
import './OrPopover-3525c670.js';
|
|
10
|
+
import '@floating-ui/dom';
|
|
11
|
+
import './useElevation-0e973238.js';
|
|
12
|
+
import './useResponsive-a02e95b7.js';
|
|
13
|
+
import './OrBottomSheet-9de57dd0.js';
|
|
14
|
+
import './OrOverlay-27050c19.js';
|
|
15
|
+
import './OrTeleport.vue3-8099178c.js';
|
package/dist/v3/index81.js
CHANGED
package/dist/v3/index82.js
CHANGED
package/dist/v3/index83.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
export { s as
|
|
2
|
-
export { a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
1
|
+
export { s as OrTextV3 } from './OrText-ecb46923.js';
|
|
3
2
|
import 'vue-demi';
|
|
4
3
|
import './useClassAttribute-47fdb016.js';
|
|
5
4
|
import '@vueuse/core';
|
|
6
|
-
import './OrError-19a62a18.js';
|
|
7
5
|
import 'vue';
|
|
8
|
-
import './OrHint-73835593.js';
|
|
9
|
-
import './OrLabel-7d4fe80b.js';
|
|
10
|
-
import './style-inject.es-4c6f2515.js';
|
package/dist/v3/index84.js
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
export { s as
|
|
1
|
+
export { s as OrTextareaV3 } from './OrTextarea-09aa33dc.js';
|
|
2
|
+
export { a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
2
3
|
import 'vue-demi';
|
|
4
|
+
import './useClassAttribute-47fdb016.js';
|
|
3
5
|
import '@vueuse/core';
|
|
4
|
-
import './
|
|
5
|
-
import './px-to-rem-0b26b83e.js';
|
|
6
|
-
import './dom-7a41831b.js';
|
|
7
|
-
import 'lodash';
|
|
8
|
-
import './OrLabel-876f8729.js';
|
|
6
|
+
import './OrError-19a62a18.js';
|
|
9
7
|
import 'vue';
|
|
8
|
+
import './OrHint-73835593.js';
|
|
9
|
+
import './OrLabel-7d4fe80b.js';
|
|
10
10
|
import './style-inject.es-4c6f2515.js';
|
|
11
|
-
import './OrIconButton-f72cb8d9.js';
|
|
12
|
-
import './OrIcon-e23028f8.js';
|
|
13
|
-
import './OrTooltip-121eae2b.js';
|
|
14
|
-
import './OrFloating-3da814a2.js';
|
|
15
|
-
import '@floating-ui/dom';
|
|
16
|
-
import './OrTeleportVue3-ad639f12.js';
|
|
17
|
-
import './OrLoader-15174477.js';
|
|
18
|
-
import './OrHint-1414c530.js';
|
|
19
|
-
import './OrError-f90296db.js';
|
|
20
|
-
import './OrCollapse-37a52e8f.js';
|
package/dist/v3/index85.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
export { s as
|
|
2
|
-
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
3
|
-
import './OrIconButton-f72cb8d9.js';
|
|
1
|
+
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
|
|
4
2
|
import 'vue-demi';
|
|
5
|
-
import '
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import './useToggle-29e4d7c7.js';
|
|
5
|
+
import './px-to-rem-0b26b83e.js';
|
|
6
|
+
import './dom-7a41831b.js';
|
|
6
7
|
import 'lodash';
|
|
7
|
-
import './
|
|
8
|
+
import './OrLabel-876f8729.js';
|
|
8
9
|
import 'vue';
|
|
9
10
|
import './style-inject.es-4c6f2515.js';
|
|
11
|
+
import './OrIconButton-f72cb8d9.js';
|
|
12
|
+
import './OrIcon-e23028f8.js';
|
|
13
|
+
import './OrTooltip-121eae2b.js';
|
|
10
14
|
import './OrFloating-3da814a2.js';
|
|
11
15
|
import '@floating-ui/dom';
|
|
12
16
|
import './OrTeleportVue3-ad639f12.js';
|
|
13
|
-
import './dom-7a41831b.js';
|
|
14
|
-
import './px-to-rem-0b26b83e.js';
|
|
15
17
|
import './OrLoader-15174477.js';
|
|
16
|
-
import './
|
|
17
|
-
import '
|
|
18
|
+
import './OrHint-1414c530.js';
|
|
19
|
+
import './OrError-f90296db.js';
|
|
20
|
+
import './OrCollapse-37a52e8f.js';
|
package/dist/v3/index86.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
|
|
2
|
+
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
3
|
+
import './OrIconButton-f72cb8d9.js';
|
|
2
4
|
import 'vue-demi';
|
|
5
|
+
import './OrIcon-e23028f8.js';
|
|
6
|
+
import 'lodash';
|
|
7
|
+
import './OrTooltip-121eae2b.js';
|
|
8
|
+
import 'vue';
|
|
9
|
+
import './style-inject.es-4c6f2515.js';
|
|
10
|
+
import './OrFloating-3da814a2.js';
|
|
11
|
+
import '@floating-ui/dom';
|
|
12
|
+
import './OrTeleportVue3-ad639f12.js';
|
|
13
|
+
import './dom-7a41831b.js';
|
|
14
|
+
import './px-to-rem-0b26b83e.js';
|
|
15
|
+
import './OrLoader-15174477.js';
|
|
16
|
+
import './OrProgress-d0d52c86.js';
|
|
3
17
|
import '@vueuse/core';
|
package/dist/v3/index87.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
export { a as
|
|
2
|
-
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
3
|
-
import '@vueuse/core';
|
|
1
|
+
export { a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
4
2
|
import 'vue-demi';
|
|
5
|
-
import '
|
|
6
|
-
import 'vue';
|
|
7
|
-
import './OrIconButton-5fb3a9aa.js';
|
|
8
|
-
import './useClassAttribute-47fdb016.js';
|
|
9
|
-
import './OrIcon-b3906e35.js';
|
|
10
|
-
import './OrTooltip-36c6728c.js';
|
|
11
|
-
import './OrPopover-3525c670.js';
|
|
12
|
-
import '@floating-ui/dom';
|
|
13
|
-
import './useElevation-0e973238.js';
|
|
14
|
-
import './useResponsive-a02e95b7.js';
|
|
15
|
-
import './OrBottomSheet-9de57dd0.js';
|
|
16
|
-
import './OrOverlay-27050c19.js';
|
|
17
|
-
import './OrLoader-60943812.js';
|
|
18
|
-
import './style-inject.es-4c6f2515.js';
|
|
3
|
+
import '@vueuse/core';
|
package/dist/v3/index88.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
export { a as
|
|
2
|
-
|
|
1
|
+
export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-d5d4ab32.js';
|
|
2
|
+
export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
+
import 'vue-demi';
|
|
5
|
+
import './OrTeleport.vue3-8099178c.js';
|
|
6
|
+
import 'vue';
|
|
7
|
+
import './OrIconButton-5fb3a9aa.js';
|
|
8
|
+
import './useClassAttribute-47fdb016.js';
|
|
9
|
+
import './OrIcon-b3906e35.js';
|
|
10
|
+
import './OrTooltip-36c6728c.js';
|
|
11
|
+
import './OrPopover-3525c670.js';
|
|
12
|
+
import '@floating-ui/dom';
|
|
13
|
+
import './useElevation-0e973238.js';
|
|
14
|
+
import './useResponsive-a02e95b7.js';
|
|
15
|
+
import './OrBottomSheet-9de57dd0.js';
|
|
16
|
+
import './OrOverlay-27050c19.js';
|
|
17
|
+
import './OrLoader-60943812.js';
|
|
18
|
+
import './style-inject.es-4c6f2515.js';
|
package/dist/v3/index89.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '
|
|
4
|
-
import 'vue';
|
|
5
|
-
import './style-inject.es-4c6f2515.js';
|
|
6
|
-
import './OrFloating-3da814a2.js';
|
|
7
|
-
import '@floating-ui/dom';
|
|
8
|
-
import './OrTeleportVue3-ad639f12.js';
|
|
9
|
-
import './dom-7a41831b.js';
|
|
3
|
+
import '@vueuse/core';
|
package/dist/v3/index90.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
export { s as
|
|
2
|
-
export { P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
3
|
-
import '@vueuse/core';
|
|
1
|
+
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
|
|
4
2
|
import 'vue-demi';
|
|
5
|
-
import '
|
|
3
|
+
import 'lodash';
|
|
6
4
|
import 'vue';
|
|
5
|
+
import './style-inject.es-4c6f2515.js';
|
|
6
|
+
import './OrFloating-3da814a2.js';
|
|
7
7
|
import '@floating-ui/dom';
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './OrBottomSheet-9de57dd0.js';
|
|
11
|
-
import './OrOverlay-27050c19.js';
|
|
12
|
-
import './OrTeleport.vue3-8099178c.js';
|
|
8
|
+
import './OrTeleportVue3-ad639f12.js';
|
|
9
|
+
import './dom-7a41831b.js';
|
package/dist/v3/index91.js
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
|
|
2
|
+
export { P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
3
|
+
import '@vueuse/core';
|
|
2
4
|
import 'vue-demi';
|
|
5
|
+
import './useClassAttribute-47fdb016.js';
|
|
6
|
+
import 'vue';
|
|
7
|
+
import '@floating-ui/dom';
|
|
8
|
+
import './useElevation-0e973238.js';
|
|
9
|
+
import './useResponsive-a02e95b7.js';
|
|
10
|
+
import './OrBottomSheet-9de57dd0.js';
|
|
11
|
+
import './OrOverlay-27050c19.js';
|
|
12
|
+
import './OrTeleport.vue3-8099178c.js';
|
package/dist/v3/index92.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { u as useElevation } from './useElevation-0e973238.js';
|
|
3
|
-
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
4
|
-
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
-
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
1
|
+
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
6
2
|
import 'vue-demi';
|
|
7
|
-
import '@vueuse/core';
|
package/dist/v3/index93.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
2
|
+
export { u as useElevation } from './useElevation-0e973238.js';
|
|
3
|
+
export { u as useOverflow } from './useOverflow-ac506c65.js';
|
|
1
4
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
2
|
-
|
|
5
|
+
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
3
6
|
import 'vue-demi';
|
|
7
|
+
import '@vueuse/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.62.
|
|
3
|
+
"version": "2.62.8-beta.1934.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -78,6 +78,5 @@
|
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
|
-
}
|
|
82
|
-
"gitHead": "68786c7ab00263953414278989c2661a57789053"
|
|
81
|
+
}
|
|
83
82
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './or-radio';
|
|
|
58
58
|
export * from './or-radio-group';
|
|
59
59
|
export * from './or-radio-v3';
|
|
60
60
|
export * from './or-search-v3';
|
|
61
|
+
export * from './or-segmented-control-v3';
|
|
61
62
|
export * from './or-select';
|
|
62
63
|
export * from './or-select-v3';
|
|
63
64
|
export * from './or-sidebar';
|
|
@@ -217,7 +217,7 @@ export default defineComponent({
|
|
|
217
217
|
|
|
218
218
|
function reset(): void {
|
|
219
219
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
220
|
-
draftModelValue.value = proxyModelValue.value;
|
|
220
|
+
draftModelValue.value = proxyModelValue.value ?? '';
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
activated.value = false;
|
|
@@ -225,7 +225,7 @@ export default defineComponent({
|
|
|
225
225
|
|
|
226
226
|
// Effects
|
|
227
227
|
watch(proxyModelValue, (value) => {
|
|
228
|
-
draftModelValue.value = value;
|
|
228
|
+
draftModelValue.value = value ?? '';
|
|
229
229
|
}, { immediate: true });
|
|
230
230
|
|
|
231
231
|
return {
|
|
@@ -205,7 +205,7 @@ export default defineComponent({
|
|
|
205
205
|
|
|
206
206
|
function reset(): void {
|
|
207
207
|
if (draftModelValue.value !== proxyModelValue.value) {
|
|
208
|
-
draftModelValue.value = proxyModelValue.value;
|
|
208
|
+
draftModelValue.value = proxyModelValue.value ?? '';
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
activated.value = false;
|
|
@@ -213,7 +213,7 @@ export default defineComponent({
|
|
|
213
213
|
|
|
214
214
|
// Effects
|
|
215
215
|
watch(proxyModelValue, (value) => {
|
|
216
|
-
draftModelValue.value = value;
|
|
216
|
+
draftModelValue.value = value ?? '';
|
|
217
217
|
}, { immediate: true });
|
|
218
218
|
|
|
219
219
|
return {
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { action } from '@storybook/addon-actions';
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
+
import { ref, watch } from 'vue-demi';
|
|
4
|
+
import OrSegmentedControlDocs from './OrSegmentedControl.docs.mdx';
|
|
5
|
+
import OrSegmentedControl from './OrSegmentedControl.vue';
|
|
6
|
+
import { SegmentedControlSize } from './props';
|
|
7
|
+
import { SegmentedControlOption } from './types';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Components/Forms/Segmented Control',
|
|
11
|
+
component: OrSegmentedControl,
|
|
12
|
+
|
|
13
|
+
argTypes: {
|
|
14
|
+
// Props
|
|
15
|
+
options: {
|
|
16
|
+
control: { type: 'object' },
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
modelValue: {
|
|
20
|
+
control: { type: 'text' },
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
value: { // TODO: Remove Vue 2 fallback
|
|
24
|
+
table: { disable: true },
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
size: {
|
|
28
|
+
control: { type: 'select' },
|
|
29
|
+
options: Object.values(SegmentedControlSize),
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
disabled: {
|
|
33
|
+
control: { type: 'boolean' },
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
// Events
|
|
37
|
+
'update:modelValue': {
|
|
38
|
+
table: { disable: true },
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
input: {
|
|
42
|
+
table: { disable: true },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
parameters: {
|
|
47
|
+
layout: 'centered',
|
|
48
|
+
|
|
49
|
+
docs: {
|
|
50
|
+
page: OrSegmentedControlDocs,
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
design: {
|
|
54
|
+
type: 'figma',
|
|
55
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=410%3A2097&t=7N93DAotOYMOX2kx-1',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
} as Meta<typeof OrSegmentedControl>;
|
|
59
|
+
|
|
60
|
+
const Template: StoryFn<typeof OrSegmentedControl> = (args) => ({
|
|
61
|
+
components: {
|
|
62
|
+
OrSegmentedControl,
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
setup() {
|
|
66
|
+
// State
|
|
67
|
+
const model = ref<string>();
|
|
68
|
+
|
|
69
|
+
// Effects
|
|
70
|
+
watch(model, (value) => {
|
|
71
|
+
console.debug(value);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
args,
|
|
76
|
+
model,
|
|
77
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
78
|
+
onInput: action('input'),
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
template: `
|
|
83
|
+
<OrSegmentedControl
|
|
84
|
+
v-model="model"
|
|
85
|
+
v-bind="args"
|
|
86
|
+
@update:modelValue="onUpdateModelValue"
|
|
87
|
+
@input="onInput"
|
|
88
|
+
/>
|
|
89
|
+
`,
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export const Base = Template.bind({});
|
|
93
|
+
|
|
94
|
+
Base.args = {
|
|
95
|
+
// Props
|
|
96
|
+
options: Array.from<string, SegmentedControlOption>([
|
|
97
|
+
'Alfa',
|
|
98
|
+
'Bravo',
|
|
99
|
+
'Charlie',
|
|
100
|
+
'Delta',
|
|
101
|
+
'Echo',
|
|
102
|
+
], (item) => ({
|
|
103
|
+
value: item.toLowerCase(),
|
|
104
|
+
label: item,
|
|
105
|
+
})),
|
|
106
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
5
|
+
:class="rootStyles"
|
|
6
|
+
>
|
|
7
|
+
<OrSegmentedControlItem
|
|
8
|
+
v-for="option in options"
|
|
9
|
+
:key="option.value"
|
|
10
|
+
:size="size"
|
|
11
|
+
:selected="option.value === proxyModelValue"
|
|
12
|
+
:disabled="disabled"
|
|
13
|
+
@click.stop="proxyModelValue = option.value"
|
|
14
|
+
>
|
|
15
|
+
{{ option.label }}
|
|
16
|
+
</OrSegmentedControlItem>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script lang="ts">
|
|
21
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
22
|
+
import { useClassAttribute } from '../../hooks';
|
|
23
|
+
import OrSegmentedControlItem from './components/or-segmented-control-item/OrSegmentedControlItem.vue';
|
|
24
|
+
import { SegmentedControlSize } from './props';
|
|
25
|
+
import { SegmentedControlRoot, SegmentedControlRootSizes } from './styles';
|
|
26
|
+
import { SegmentedControlOption } from './types';
|
|
27
|
+
|
|
28
|
+
export default defineComponent({
|
|
29
|
+
name: 'OrSegmentedControl',
|
|
30
|
+
|
|
31
|
+
components: {
|
|
32
|
+
OrSegmentedControlItem,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
inheritAttrs: false,
|
|
36
|
+
|
|
37
|
+
props: {
|
|
38
|
+
options: {
|
|
39
|
+
type: Array as PropType<SegmentedControlOption[]>,
|
|
40
|
+
default: [] as SegmentedControlOption[],
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
modelValue: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: undefined,
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
value: { // TODO: Remove Vue 2 fallback
|
|
49
|
+
type: String,
|
|
50
|
+
default: undefined,
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
size: {
|
|
54
|
+
type: String as PropType<SegmentedControlSize>,
|
|
55
|
+
default: SegmentedControlSize.M,
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
disabled: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
emits: [
|
|
65
|
+
'update:modelValue',
|
|
66
|
+
|
|
67
|
+
'input',
|
|
68
|
+
],
|
|
69
|
+
|
|
70
|
+
expose: [
|
|
71
|
+
'root',
|
|
72
|
+
],
|
|
73
|
+
|
|
74
|
+
setup(props, context) {
|
|
75
|
+
// Refs
|
|
76
|
+
const root = ref<HTMLElement>();
|
|
77
|
+
|
|
78
|
+
// Styles
|
|
79
|
+
const classAttribute = useClassAttribute();
|
|
80
|
+
|
|
81
|
+
const rootStyles = computed(() => [
|
|
82
|
+
'or-segmented-control',
|
|
83
|
+
...SegmentedControlRoot,
|
|
84
|
+
...SegmentedControlRootSizes[props.size],
|
|
85
|
+
classAttribute.value,
|
|
86
|
+
]);
|
|
87
|
+
|
|
88
|
+
// State
|
|
89
|
+
const proxyModelValue = computed({
|
|
90
|
+
get: () => {
|
|
91
|
+
return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
set: (value) => {
|
|
95
|
+
context.emit('input', value);
|
|
96
|
+
context.emit('update:modelValue', value);
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
root,
|
|
102
|
+
rootStyles,
|
|
103
|
+
proxyModelValue,
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
</script>
|