@onereach/ui-components 2.62.7-beta.1921.0 → 2.62.7-beta.1928.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/{OrConfirm-edc537b3.js → OrConfirm-24e2a1a2.js} +1 -1
- package/dist/v2/{OrInlineInput-73ec1b85.js → OrInlineInput-8455f9da.js} +5 -5
- package/dist/v2/{OrInlineTextarea-1858a348.js → OrInlineTextarea-1127e512.js} +5 -5
- package/dist/v2/{OrInput-655bed71.js → OrInput-24028f23.js} +5 -5
- package/dist/v2/{OrSearch-287a08a9.js → OrSearch-978a3a6e.js} +1 -1
- package/dist/v2/OrSegmentedControl-58b5db14.js +231 -0
- package/dist/v2/{OrSelect-1a353817.js → OrSelect-c6d0a69e.js} +3 -3
- package/dist/v2/{OrTextarea-cc70afc9.js → OrTextarea-8773d494.js} +5 -5
- package/dist/v2/components/index.d.ts +1 -2
- package/dist/v2/components/{or-sort-header-v3/OrSortHeader.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
- package/dist/{v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts → v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts} +45 -25
- 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 +8 -9
- package/dist/v2/index11.js +1 -20
- package/dist/v2/index12.js +12 -3
- package/dist/v2/index13.js +2 -3
- package/dist/v2/index14.js +5 -11
- package/dist/v2/index15.js +14 -5
- package/dist/v2/index16.js +19 -4
- package/dist/v2/index17.js +4 -28
- package/dist/v2/index18.js +7 -3
- package/dist/v2/index19.js +23 -5
- package/dist/v2/index2.js +8 -9
- package/dist/v2/index20.js +21 -25
- package/dist/v2/index21.js +18 -21
- package/dist/v2/index22.js +2 -20
- package/dist/v2/index23.js +4 -2
- package/dist/v2/index24.js +1 -2
- package/dist/v2/index25.js +2 -1
- package/dist/v2/index26.js +2 -2
- package/dist/v2/index27.js +7 -4
- package/dist/v2/index28.js +2 -6
- package/dist/v2/index29.js +3 -3
- package/dist/v2/index30.js +10 -3
- package/dist/v2/index31.js +12 -9
- package/dist/v2/index32.js +1 -11
- package/dist/v2/index33.js +1 -1
- package/dist/v2/index34.js +16 -1
- package/dist/v2/index35.js +17 -17
- package/dist/v2/index36.js +17 -17
- package/dist/v2/index37.js +1 -16
- package/dist/v2/index38.js +17 -1
- package/dist/v2/index39.js +22 -18
- package/dist/v2/index40.js +2 -22
- package/dist/v2/index41.js +3 -3
- package/dist/v2/index42.js +1 -1
- package/dist/v2/index43.js +20 -3
- package/dist/v2/index44.js +7 -1
- package/dist/v2/index45.js +1 -24
- package/dist/v2/index46.js +3 -3
- package/dist/v2/index47.js +2 -1
- package/dist/v2/index48.js +9 -2
- package/dist/v2/index49.js +17 -10
- package/dist/v2/index50.js +13 -17
- package/dist/v2/index51.js +14 -13
- package/dist/v2/index52.js +13 -14
- package/dist/v2/index53.js +15 -12
- package/dist/v2/index54.js +1 -16
- package/dist/v2/index55.js +6 -2
- package/dist/v2/index56.js +5 -1
- package/dist/v2/index57.js +3 -10
- package/dist/v2/index58.js +4 -2
- package/dist/v2/index59.js +3 -5
- package/dist/v2/index60.js +1 -2
- package/dist/v2/index61.js +5 -2
- package/dist/v2/index62.js +18 -3
- package/dist/v2/index63.js +2 -19
- package/dist/v2/index65.js +2 -2
- package/dist/v2/index71.js +15 -4
- package/dist/v2/index72.js +2 -13
- package/dist/v2/index73.js +6 -4
- package/dist/v2/index74.js +4 -6
- package/dist/v2/index75.js +1 -2
- package/dist/v2/index76.js +3 -3
- package/dist/v2/index77.js +4 -3
- package/dist/v2/index78.js +15 -4
- package/dist/v2/index79.js +11 -14
- package/dist/v2/index80.js +13 -11
- package/dist/v2/index81.js +2 -14
- package/dist/v2/index82.js +2 -2
- package/dist/v2/index83.js +3 -2
- package/dist/v2/index84.js +6 -1
- package/dist/v2/index85.js +20 -7
- package/dist/v2/index86.js +9 -12
- package/dist/v2/index87.js +1 -18
- package/dist/v2/index88.js +18 -2
- package/dist/v2/index89.js +2 -18
- package/dist/v2/index90.js +10 -2
- package/dist/v2/index91.js +11 -9
- package/dist/v2/index92.js +1 -12
- package/dist/v2/index93.js +6 -1
- package/dist/v2/index94.js +1 -5
- package/dist/v3/{OrConfirm-0bafcc7b.js → OrConfirm-371630a4.js} +1 -1
- package/dist/v3/{OrInlineInput-dc71bbcb.js → OrInlineInput-a080b0a3.js} +3 -5
- package/dist/v3/{OrInlineTextarea-bdebb784.js → OrInlineTextarea-08767485.js} +3 -5
- package/dist/v3/{OrInput-db4813b4.js → OrInput-256d2530.js} +3 -5
- package/dist/v3/{OrSearch-0c29f499.js → OrSearch-375eab55.js} +1 -1
- package/dist/v3/OrSegmentedControl-e45af169.js +183 -0
- package/dist/v3/{OrSelect-323a87b4.js → OrSelect-52cfb10d.js} +4 -6
- package/dist/v3/{OrTextarea-98895b2a.js → OrTextarea-09aa33dc.js} +4 -6
- package/dist/v3/components/index.d.ts +1 -2
- package/dist/v3/components/{or-sort-header-v3/OrSortHeader.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
- package/dist/{v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts → v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts} +45 -25
- 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 +8 -9
- package/dist/v3/index11.js +1 -19
- package/dist/v3/index12.js +11 -3
- package/dist/v3/index13.js +2 -3
- package/dist/v3/index14.js +4 -9
- package/dist/v3/index15.js +11 -4
- package/dist/v3/index16.js +17 -3
- package/dist/v3/index17.js +4 -25
- package/dist/v3/index18.js +6 -3
- package/dist/v3/index19.js +20 -5
- package/dist/v3/index2.js +8 -9
- package/dist/v3/index20.js +20 -21
- package/dist/v3/index21.js +15 -20
- package/dist/v3/index22.js +1 -16
- package/dist/v3/index23.js +4 -2
- package/dist/v3/index24.js +1 -2
- package/dist/v3/index25.js +2 -1
- package/dist/v3/index26.js +2 -2
- package/dist/v3/index27.js +6 -4
- package/dist/v3/index28.js +2 -5
- package/dist/v3/index29.js +3 -3
- package/dist/v3/index30.js +9 -3
- package/dist/v3/index31.js +11 -8
- package/dist/v3/index32.js +1 -10
- package/dist/v3/index33.js +1 -1
- package/dist/v3/index34.js +15 -1
- package/dist/v3/index35.js +14 -16
- package/dist/v3/index36.js +16 -14
- package/dist/v3/index37.js +2 -16
- package/dist/v3/index38.js +17 -2
- package/dist/v3/index39.js +17 -17
- package/dist/v3/index40.js +1 -16
- package/dist/v3/index41.js +3 -3
- package/dist/v3/index42.js +1 -1
- package/dist/v3/index43.js +16 -3
- package/dist/v3/index44.js +7 -1
- package/dist/v3/index45.js +1 -20
- package/dist/v3/index46.js +3 -3
- package/dist/v3/index47.js +2 -1
- package/dist/v3/index48.js +8 -2
- package/dist/v3/index49.js +14 -9
- package/dist/v3/index50.js +12 -14
- package/dist/v3/index51.js +11 -12
- package/dist/v3/index52.js +12 -11
- package/dist/v3/index53.js +11 -11
- package/dist/v3/index54.js +1 -12
- package/dist/v3/index55.js +5 -2
- package/dist/v3/index56.js +5 -1
- package/dist/v3/index57.js +3 -9
- package/dist/v3/index58.js +4 -2
- package/dist/v3/index59.js +3 -5
- package/dist/v3/index60.js +1 -2
- package/dist/v3/index61.js +4 -1
- package/dist/v3/index62.js +17 -3
- package/dist/v3/index63.js +2 -18
- package/dist/v3/index65.js +2 -2
- package/dist/v3/index71.js +12 -4
- package/dist/v3/index72.js +2 -10
- package/dist/v3/index73.js +5 -3
- package/dist/v3/index74.js +3 -5
- package/dist/v3/index75.js +1 -2
- package/dist/v3/index76.js +3 -3
- package/dist/v3/index77.js +4 -3
- package/dist/v3/index78.js +14 -4
- package/dist/v3/index79.js +10 -13
- package/dist/v3/index80.js +12 -10
- package/dist/v3/index81.js +1 -13
- package/dist/v3/index82.js +1 -1
- package/dist/v3/index83.js +3 -1
- package/dist/v3/index84.js +6 -1
- package/dist/v3/index85.js +16 -6
- package/dist/v3/index86.js +9 -12
- package/dist/v3/index87.js +1 -15
- package/dist/v3/index88.js +17 -2
- package/dist/v3/index89.js +2 -17
- package/dist/v3/index90.js +8 -2
- package/dist/v3/index91.js +9 -6
- package/dist/v3/index92.js +1 -11
- package/dist/v3/index93.js +6 -1
- package/dist/v3/index94.js +1 -5
- package/package.json +1 -1
- package/src/components/index.ts +1 -2
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
- package/src/components/or-inline-input-v3/OrInlineInput.vue +10 -12
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +10 -12
- package/src/components/or-input-v3/OrInput.vue +10 -12
- 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 +118 -0
- package/src/components/{or-sort-header-v3/OrSortHeader.vue → or-segmented-control-v3/OrSegmentedControl.vue} +34 -36
- package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +63 -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-select-v3/OrSelect.vue +3 -5
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
- package/src/components/or-textarea-v3/OrTextarea.vue +10 -12
- package/dist/v2/OrCardCollection-5d5046f1.js +0 -227
- package/dist/v2/OrSortHeader-a6004b24.js +0 -133
- package/dist/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -17
- package/dist/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -98
- package/dist/v2/components/or-card-collection-v3/index.d.ts +0 -3
- package/dist/v2/components/or-card-collection-v3/props.d.ts +0 -4
- package/dist/v2/components/or-card-collection-v3/styles.d.ts +0 -6
- package/dist/v2/components/or-card-collection-v3/types.d.ts +0 -7
- package/dist/v2/components/or-sort-header-v3/index.d.ts +0 -2
- package/dist/v2/components/or-sort-header-v3/styles.d.ts +0 -1
- package/dist/v2/components/or-sort-header-v3/types.d.ts +0 -4
- package/dist/v2/index95.js +0 -3
- package/dist/v3/OrCardCollection-c6f3ac23.js +0 -198
- package/dist/v3/OrSortHeader-5eba50cd.js +0 -104
- package/dist/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -17
- package/dist/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -98
- package/dist/v3/components/or-card-collection-v3/index.d.ts +0 -3
- package/dist/v3/components/or-card-collection-v3/props.d.ts +0 -4
- package/dist/v3/components/or-card-collection-v3/styles.d.ts +0 -6
- package/dist/v3/components/or-card-collection-v3/types.d.ts +0 -7
- package/dist/v3/components/or-sort-header-v3/index.d.ts +0 -2
- package/dist/v3/components/or-sort-header-v3/styles.d.ts +0 -1
- package/dist/v3/components/or-sort-header-v3/types.d.ts +0 -4
- package/dist/v3/index95.js +0 -3
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +0 -3
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +0 -162
- package/src/components/or-card-collection-v3/OrCardCollection.vue +0 -210
- package/src/components/or-card-collection-v3/index.ts +0 -3
- package/src/components/or-card-collection-v3/props.ts +0 -4
- package/src/components/or-card-collection-v3/styles.ts +0 -53
- package/src/components/or-card-collection-v3/types.ts +0 -8
- package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +0 -3
- package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +0 -132
- package/src/components/or-sort-header-v3/index.ts +0 -2
- package/src/components/or-sort-header-v3/styles.ts +0 -23
- package/src/components/or-sort-header-v3/types.ts +0 -4
package/dist/v3/index85.js
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
export { s as
|
|
2
|
-
export { a as TextareaSize } from './OrInputBox-634230b1.js';
|
|
1
|
+
export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
|
|
3
2
|
import 'vue-demi';
|
|
4
|
-
import './useClassAttribute-47fdb016.js';
|
|
5
3
|
import '@vueuse/core';
|
|
6
|
-
import './
|
|
4
|
+
import './useToggle-29e4d7c7.js';
|
|
5
|
+
import './px-to-rem-0b26b83e.js';
|
|
6
|
+
import './dom-7a41831b.js';
|
|
7
|
+
import 'lodash';
|
|
8
|
+
import './OrLabel-876f8729.js';
|
|
7
9
|
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/index86.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
export { s as
|
|
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';
|
|
3
|
-
import '
|
|
4
|
-
import './useToggle-29e4d7c7.js';
|
|
5
|
-
import './px-to-rem-0b26b83e.js';
|
|
6
|
-
import './dom-7a41831b.js';
|
|
5
|
+
import './OrIcon-e23028f8.js';
|
|
7
6
|
import 'lodash';
|
|
8
|
-
import './
|
|
7
|
+
import './OrTooltip-121eae2b.js';
|
|
9
8
|
import 'vue';
|
|
10
9
|
import './style-inject.es-4c6f2515.js';
|
|
11
|
-
import './OrIconButton-f72cb8d9.js';
|
|
12
|
-
import './OrIcon-e23028f8.js';
|
|
13
|
-
import './OrTooltip-121eae2b.js';
|
|
14
10
|
import './OrFloating-3da814a2.js';
|
|
15
11
|
import '@floating-ui/dom';
|
|
16
12
|
import './OrTeleportVue3-ad639f12.js';
|
|
13
|
+
import './dom-7a41831b.js';
|
|
14
|
+
import './px-to-rem-0b26b83e.js';
|
|
17
15
|
import './OrLoader-15174477.js';
|
|
18
|
-
import './
|
|
19
|
-
import '
|
|
20
|
-
import './OrCollapse-37a52e8f.js';
|
|
16
|
+
import './OrProgress-d0d52c86.js';
|
|
17
|
+
import '@vueuse/core';
|
package/dist/v3/index87.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export {
|
|
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 { a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
|
|
4
2
|
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';
|
|
17
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,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 useQueueV3, u as useToastV3 } from './useToast-0665462d.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/index90.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
|
-
import '
|
|
3
|
+
import 'lodash';
|
|
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';
|
package/dist/v3/index91.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export { s as
|
|
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';
|
|
3
|
-
import '
|
|
5
|
+
import './useClassAttribute-47fdb016.js';
|
|
4
6
|
import 'vue';
|
|
5
|
-
import './style-inject.es-4c6f2515.js';
|
|
6
|
-
import './OrFloating-3da814a2.js';
|
|
7
7
|
import '@floating-ui/dom';
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
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,12 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { P as TooltipPlacement } from './OrPopover-3525c670.js';
|
|
3
|
-
import '@vueuse/core';
|
|
1
|
+
export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
4
2
|
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/index93.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
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';
|
|
4
|
+
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
+
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
2
6
|
import 'vue-demi';
|
|
7
|
+
import '@vueuse/core';
|
package/dist/v3/index94.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
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';
|
|
4
1
|
export { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
5
|
-
export { u as useToggle } from './useToggle-29e4d7c7.js';
|
|
6
|
-
import 'vue-demi';
|
|
7
2
|
import '@vueuse/core';
|
|
3
|
+
import 'vue-demi';
|
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './or-button-v2';
|
|
|
6
6
|
export * from './or-button-v3';
|
|
7
7
|
export * from './or-card';
|
|
8
8
|
export * from './or-card-collection';
|
|
9
|
-
export * from './or-card-collection-v3';
|
|
10
9
|
export * from './or-card-v3';
|
|
11
10
|
export * from './or-carousel';
|
|
12
11
|
export * from './or-checkbox';
|
|
@@ -59,6 +58,7 @@ export * from './or-radio';
|
|
|
59
58
|
export * from './or-radio-group';
|
|
60
59
|
export * from './or-radio-v3';
|
|
61
60
|
export * from './or-search-v3';
|
|
61
|
+
export * from './or-segmented-control-v3';
|
|
62
62
|
export * from './or-select';
|
|
63
63
|
export * from './or-select-v3';
|
|
64
64
|
export * from './or-sidebar';
|
|
@@ -66,7 +66,6 @@ export * from './or-sidebar-v3';
|
|
|
66
66
|
export * from './or-skeleton';
|
|
67
67
|
export * from './or-skeleton-v3';
|
|
68
68
|
export * from './or-slider';
|
|
69
|
-
export * from './or-sort-header-v3';
|
|
70
69
|
export * from './or-stepper';
|
|
71
70
|
export * from './or-switch';
|
|
72
71
|
export * from './or-switch-v3';
|
|
@@ -41,18 +41,16 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
43
|
<template v-if="!invalid">
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</OrHint>
|
|
55
|
-
</template>
|
|
44
|
+
<OrHint>
|
|
45
|
+
{{ hint }}
|
|
46
|
+
|
|
47
|
+
<template
|
|
48
|
+
v-if="maxLength"
|
|
49
|
+
v-slot:addon
|
|
50
|
+
>
|
|
51
|
+
{{ currentLength }} / {{ maxLength }}
|
|
52
|
+
</template>
|
|
53
|
+
</OrHint>
|
|
56
54
|
</template>
|
|
57
55
|
|
|
58
56
|
<template v-else>
|
|
@@ -40,18 +40,16 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<template v-if="!invalid">
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</OrHint>
|
|
54
|
-
</template>
|
|
43
|
+
<OrHint>
|
|
44
|
+
{{ hint }}
|
|
45
|
+
|
|
46
|
+
<template
|
|
47
|
+
v-if="maxLength"
|
|
48
|
+
v-slot:addon
|
|
49
|
+
>
|
|
50
|
+
{{ currentLength }} / {{ maxLength }}
|
|
51
|
+
</template>
|
|
52
|
+
</OrHint>
|
|
55
53
|
</template>
|
|
56
54
|
|
|
57
55
|
<template v-else>
|
|
@@ -72,18 +72,16 @@
|
|
|
72
72
|
</OrInputBox>
|
|
73
73
|
|
|
74
74
|
<template v-if="!invalid">
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</OrHint>
|
|
86
|
-
</template>
|
|
75
|
+
<OrHint :disabled="disabled">
|
|
76
|
+
{{ hint }}
|
|
77
|
+
|
|
78
|
+
<template
|
|
79
|
+
v-if="maxLength"
|
|
80
|
+
v-slot:addon
|
|
81
|
+
>
|
|
82
|
+
{{ currentLength }} / {{ maxLength }}
|
|
83
|
+
</template>
|
|
84
|
+
</OrHint>
|
|
87
85
|
</template>
|
|
88
86
|
|
|
89
87
|
<template v-else>
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
focus: {
|
|
46
|
+
table: { disable: true },
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
blur: {
|
|
50
|
+
table: { disable: true },
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
parameters: {
|
|
55
|
+
layout: 'centered',
|
|
56
|
+
|
|
57
|
+
docs: {
|
|
58
|
+
page: OrSegmentedControlDocs,
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
design: {
|
|
62
|
+
type: 'figma',
|
|
63
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=410%3A2097&t=7N93DAotOYMOX2kx-1',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
} as Meta<typeof OrSegmentedControl>;
|
|
67
|
+
|
|
68
|
+
const Template: StoryFn<typeof OrSegmentedControl> = (args) => ({
|
|
69
|
+
components: {
|
|
70
|
+
OrSegmentedControl,
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
setup() {
|
|
74
|
+
// State
|
|
75
|
+
const model = ref<string>();
|
|
76
|
+
|
|
77
|
+
// Effects
|
|
78
|
+
watch(model, (value) => {
|
|
79
|
+
console.debug(value);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
args,
|
|
84
|
+
model,
|
|
85
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
86
|
+
onInput: action('input'),
|
|
87
|
+
onFocus: action('focus'),
|
|
88
|
+
onBlur: action('blur'),
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
template: `
|
|
93
|
+
<OrSegmentedControl
|
|
94
|
+
v-model="model"
|
|
95
|
+
v-bind="args"
|
|
96
|
+
@update:modelValue="onUpdateModelValue"
|
|
97
|
+
@input="onInput"
|
|
98
|
+
@focus="onFocus"
|
|
99
|
+
@blur="onBlur"
|
|
100
|
+
/>
|
|
101
|
+
`,
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export const Base = Template.bind({});
|
|
105
|
+
|
|
106
|
+
Base.args = {
|
|
107
|
+
// Props
|
|
108
|
+
options: Array.from<string, SegmentedControlOption>([
|
|
109
|
+
'Alfa',
|
|
110
|
+
'Bravo',
|
|
111
|
+
'Charlie',
|
|
112
|
+
'Delta',
|
|
113
|
+
'Echo',
|
|
114
|
+
], (item) => ({
|
|
115
|
+
value: item.toLowerCase(),
|
|
116
|
+
label: item,
|
|
117
|
+
})),
|
|
118
|
+
};
|
|
@@ -3,50 +3,61 @@
|
|
|
3
3
|
ref="root"
|
|
4
4
|
v-bind="$attrs"
|
|
5
5
|
:class="rootStyles"
|
|
6
|
-
:activated="activated ? '' : null"
|
|
7
|
-
@click.stop="toggleDirection()"
|
|
8
6
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
17
|
</div>
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script lang="ts">
|
|
21
21
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
22
22
|
import { useClassAttribute } from '../../hooks';
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
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';
|
|
26
27
|
|
|
27
28
|
export default defineComponent({
|
|
28
|
-
name: '
|
|
29
|
+
name: 'OrSegmentedControl',
|
|
29
30
|
|
|
30
31
|
components: {
|
|
31
|
-
|
|
32
|
+
OrSegmentedControlItem,
|
|
32
33
|
},
|
|
33
34
|
|
|
34
35
|
inheritAttrs: false,
|
|
35
36
|
|
|
36
37
|
props: {
|
|
38
|
+
options: {
|
|
39
|
+
type: Array as PropType<SegmentedControlOption[]>,
|
|
40
|
+
default: [] as SegmentedControlOption[],
|
|
41
|
+
},
|
|
42
|
+
|
|
37
43
|
modelValue: {
|
|
38
|
-
type:
|
|
44
|
+
type: String,
|
|
39
45
|
default: undefined,
|
|
40
46
|
},
|
|
41
47
|
|
|
42
48
|
value: { // TODO: Remove Vue 2 fallback
|
|
43
|
-
type:
|
|
49
|
+
type: String,
|
|
44
50
|
default: undefined,
|
|
45
51
|
},
|
|
46
52
|
|
|
47
|
-
|
|
48
|
-
type: String
|
|
49
|
-
|
|
53
|
+
size: {
|
|
54
|
+
type: String as PropType<SegmentedControlSize>,
|
|
55
|
+
default: SegmentedControlSize.M,
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
disabled: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false,
|
|
50
61
|
},
|
|
51
62
|
},
|
|
52
63
|
|
|
@@ -70,8 +81,9 @@ export default defineComponent({
|
|
|
70
81
|
const classAttribute = useClassAttribute();
|
|
71
82
|
|
|
72
83
|
const rootStyles = computed(() => [
|
|
73
|
-
'or-
|
|
74
|
-
...
|
|
84
|
+
'or-segmented-control',
|
|
85
|
+
...SegmentedControlRoot,
|
|
86
|
+
...SegmentedControlRootSizes[props.size],
|
|
75
87
|
classAttribute.value,
|
|
76
88
|
]);
|
|
77
89
|
|
|
@@ -87,24 +99,10 @@ export default defineComponent({
|
|
|
87
99
|
},
|
|
88
100
|
});
|
|
89
101
|
|
|
90
|
-
const activated = computed(() => {
|
|
91
|
-
return proxyModelValue.value?.column === props.inputValue;
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
// Methods
|
|
95
|
-
function toggleDirection(): void {
|
|
96
|
-
proxyModelValue.value = {
|
|
97
|
-
column: props.inputValue,
|
|
98
|
-
direction: proxyModelValue.value?.direction === 'asc' ? 'desc' : 'asc',
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
102
|
return {
|
|
103
103
|
root,
|
|
104
104
|
rootStyles,
|
|
105
105
|
proxyModelValue,
|
|
106
|
-
activated,
|
|
107
|
-
toggleDirection,
|
|
108
106
|
};
|
|
109
107
|
},
|
|
110
108
|
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
v-bind="$attrs"
|
|
5
|
+
:class="rootStyles"
|
|
6
|
+
:selected="selected ? '' : null"
|
|
7
|
+
:disabled="disabled ? '' : null"
|
|
8
|
+
>
|
|
9
|
+
<div :class="['truncate']">
|
|
10
|
+
<slot />
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
17
|
+
import { useClassAttribute } from '../../../../hooks';
|
|
18
|
+
import { SegmentedControlSize } from '../../props';
|
|
19
|
+
import { SegmentedControlItemRoot, SegmentedControlItemRootSizes } from './styles';
|
|
20
|
+
|
|
21
|
+
export default defineComponent({
|
|
22
|
+
name: 'OrSegmentedControlItem',
|
|
23
|
+
|
|
24
|
+
inheritAttrs: false,
|
|
25
|
+
|
|
26
|
+
props: {
|
|
27
|
+
size: {
|
|
28
|
+
type: String as PropType<SegmentedControlSize>,
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
selected: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false,
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
disabled: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
setup(props) {
|
|
44
|
+
// Refs
|
|
45
|
+
const root = ref<HTMLElement>();
|
|
46
|
+
|
|
47
|
+
// Styles
|
|
48
|
+
const classAttribute = useClassAttribute();
|
|
49
|
+
|
|
50
|
+
const rootStyles = computed(() => [
|
|
51
|
+
'or-segmented-control-item',
|
|
52
|
+
...SegmentedControlItemRoot,
|
|
53
|
+
...SegmentedControlItemRootSizes[props.size],
|
|
54
|
+
classAttribute.value,
|
|
55
|
+
]);
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
root,
|
|
59
|
+
rootStyles,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
</script>
|