@onereach/ui-components 2.62.7-beta.1920.0 → 2.62.7-beta.1922.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.
Files changed (99) hide show
  1. package/dist/v2/OrSegmentedControls-cd8b1cd3.js +230 -0
  2. package/dist/v2/components/index.d.ts +1 -0
  3. package/dist/v2/components/or-segmented-controls-v3/OrSegmentedControls.stories3.d.ts +12 -0
  4. package/dist/v2/components/or-segmented-controls-v3/OrSegmentedControls.vue.d.ts +77 -0
  5. package/dist/v2/components/or-segmented-controls-v3/components/or-segmented-controls-item/OrSegmentedControlsItem.vue.d.ts +47 -0
  6. package/dist/v2/components/or-segmented-controls-v3/components/or-segmented-controls-item/styles.d.ts +3 -0
  7. package/dist/v2/components/or-segmented-controls-v3/index.d.ts +3 -0
  8. package/dist/v2/components/or-segmented-controls-v3/props.d.ts +4 -0
  9. package/dist/v2/components/or-segmented-controls-v3/styles.d.ts +3 -0
  10. package/dist/v2/components/or-segmented-controls-v3/types.d.ts +4 -0
  11. package/dist/v2/index.js +1 -0
  12. package/dist/v2/index2.js +1 -0
  13. package/dist/v2/index63.js +2 -16
  14. package/dist/v2/index64.js +15 -24
  15. package/dist/v2/index65.js +26 -4
  16. package/dist/v2/index66.js +2 -1
  17. package/dist/v2/index67.js +3 -4
  18. package/dist/v2/index68.js +3 -4
  19. package/dist/v2/index69.js +3 -10
  20. package/dist/v2/index70.js +3 -6
  21. package/dist/v2/index71.js +13 -2
  22. package/dist/v2/index72.js +4 -6
  23. package/dist/v2/index73.js +6 -4
  24. package/dist/v2/index74.js +2 -1
  25. package/dist/v2/index75.js +3 -3
  26. package/dist/v2/index76.js +3 -4
  27. package/dist/v2/index77.js +4 -15
  28. package/dist/v2/index78.js +14 -11
  29. package/dist/v2/index79.js +11 -13
  30. package/dist/v2/index80.js +14 -2
  31. package/dist/v2/index81.js +2 -2
  32. package/dist/v2/index82.js +2 -3
  33. package/dist/v2/index83.js +1 -6
  34. package/dist/v2/index84.js +7 -20
  35. package/dist/v2/index85.js +12 -9
  36. package/dist/v2/index86.js +18 -1
  37. package/dist/v2/index87.js +2 -18
  38. package/dist/v2/index88.js +18 -2
  39. package/dist/v2/index89.js +2 -10
  40. package/dist/v2/index90.js +9 -11
  41. package/dist/v2/index91.js +12 -1
  42. package/dist/v2/index92.js +1 -6
  43. package/dist/v2/index93.js +5 -1
  44. package/dist/v2/index94.js +3 -0
  45. package/dist/v3/OrSegmentedControls-e4522910.js +183 -0
  46. package/dist/v3/components/index.d.ts +1 -0
  47. package/dist/v3/components/or-segmented-controls-v3/OrSegmentedControls.stories3.d.ts +12 -0
  48. package/dist/v3/components/or-segmented-controls-v3/OrSegmentedControls.vue.d.ts +77 -0
  49. package/dist/v3/components/or-segmented-controls-v3/components/or-segmented-controls-item/OrSegmentedControlsItem.vue.d.ts +47 -0
  50. package/dist/v3/components/or-segmented-controls-v3/components/or-segmented-controls-item/styles.d.ts +3 -0
  51. package/dist/v3/components/or-segmented-controls-v3/index.d.ts +3 -0
  52. package/dist/v3/components/or-segmented-controls-v3/props.d.ts +4 -0
  53. package/dist/v3/components/or-segmented-controls-v3/styles.d.ts +3 -0
  54. package/dist/v3/components/or-segmented-controls-v3/types.d.ts +4 -0
  55. package/dist/v3/index.js +1 -0
  56. package/dist/v3/index2.js +1 -0
  57. package/dist/v3/index63.js +2 -15
  58. package/dist/v3/index64.js +13 -22
  59. package/dist/v3/index65.js +24 -3
  60. package/dist/v3/index66.js +2 -1
  61. package/dist/v3/index67.js +3 -4
  62. package/dist/v3/index68.js +3 -4
  63. package/dist/v3/index69.js +3 -9
  64. package/dist/v3/index70.js +3 -4
  65. package/dist/v3/index71.js +10 -2
  66. package/dist/v3/index72.js +3 -5
  67. package/dist/v3/index73.js +5 -3
  68. package/dist/v3/index74.js +2 -1
  69. package/dist/v3/index75.js +3 -3
  70. package/dist/v3/index76.js +3 -4
  71. package/dist/v3/index77.js +4 -14
  72. package/dist/v3/index78.js +13 -10
  73. package/dist/v3/index79.js +10 -12
  74. package/dist/v3/index80.js +13 -1
  75. package/dist/v3/index81.js +1 -1
  76. package/dist/v3/index82.js +1 -3
  77. package/dist/v3/index83.js +1 -6
  78. package/dist/v3/index84.js +6 -16
  79. package/dist/v3/index85.js +12 -9
  80. package/dist/v3/index86.js +15 -1
  81. package/dist/v3/index87.js +2 -17
  82. package/dist/v3/index88.js +17 -2
  83. package/dist/v3/index89.js +2 -8
  84. package/dist/v3/index90.js +6 -9
  85. package/dist/v3/index91.js +11 -1
  86. package/dist/v3/index92.js +1 -6
  87. package/dist/v3/index93.js +5 -1
  88. package/dist/v3/index94.js +3 -0
  89. package/package.json +2 -2
  90. package/src/components/index.ts +1 -0
  91. package/src/components/or-segmented-controls-v3/OrSegmentedControls.docs.mdx +7 -0
  92. package/src/components/or-segmented-controls-v3/OrSegmentedControls.stories3.ts +118 -0
  93. package/src/components/or-segmented-controls-v3/OrSegmentedControls.vue +109 -0
  94. package/src/components/or-segmented-controls-v3/components/or-segmented-controls-item/OrSegmentedControlsItem.vue +63 -0
  95. package/src/components/or-segmented-controls-v3/components/or-segmented-controls-item/styles.ts +50 -0
  96. package/src/components/or-segmented-controls-v3/index.ts +3 -0
  97. package/src/components/or-segmented-controls-v3/props.ts +4 -0
  98. package/src/components/or-segmented-controls-v3/styles.ts +24 -0
  99. package/src/components/or-segmented-controls-v3/types.ts +4 -0
@@ -1,5 +1,5 @@
1
- export { _ as OrTabV3 } from './OrTab-4e6ff742.js';
1
+ export { _ as OrTabHeaderItem } from './OrTabHeaderItem-6a08756e.js';
2
2
  import 'vue-demi';
3
- import './useClassAttribute-47fdb016.js';
4
- import '@vueuse/core';
3
+ import 'lodash';
4
+ import './style-inject.es-4c6f2515.js';
5
5
  import './normalize-component-6e8e3d80.js';
@@ -1,6 +1,5 @@
1
- export { _ as OrTabs } from './OrTabs-12138346.js';
1
+ export { _ as OrTabV3 } from './OrTab-4e6ff742.js';
2
2
  import 'vue-demi';
3
- import './OrTabHeaderItem-6a08756e.js';
4
- import 'lodash';
5
- import './style-inject.es-4c6f2515.js';
3
+ import './useClassAttribute-47fdb016.js';
4
+ import '@vueuse/core';
6
5
  import './normalize-component-6e8e3d80.js';
@@ -1,17 +1,6 @@
1
- export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-b4a9740b.js';
2
- import '@vueuse/core';
1
+ export { _ as OrTabs } from './OrTabs-12138346.js';
3
2
  import 'vue-demi';
4
- import './useClassAttribute-47fdb016.js';
5
- import './OrIcon-124f3bad.js';
3
+ import './OrTabHeaderItem-6a08756e.js';
4
+ import 'lodash';
5
+ import './style-inject.es-4c6f2515.js';
6
6
  import './normalize-component-6e8e3d80.js';
7
- import './OrMenuItem-3a28db7b.js';
8
- import './OrMenu-bb81644d.js';
9
- import './OrPopover-9080fc00.js';
10
- import '@floating-ui/dom';
11
- import './useElevation-0e973238.js';
12
- import './useResponsive-a02e95b7.js';
13
- import './OrBottomSheet-f09adbbb.js';
14
- import './OrOverlay-4838a9b0.js';
15
- import './OrTeleport.vue2-fb92f29f.js';
16
- import 'portal-vue';
17
- import './OrTab-4e6ff742.js';
@@ -1,14 +1,17 @@
1
- export { _ as OrTag } from './OrTag-140d4f72.js';
1
+ export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-b4a9740b.js';
2
+ import '@vueuse/core';
2
3
  import 'vue-demi';
3
- import './OrIcon-7cd10497.js';
4
- import 'lodash';
5
- import './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
6
- import './style-inject.es-4c6f2515.js';
4
+ import './useClassAttribute-47fdb016.js';
5
+ import './OrIcon-124f3bad.js';
7
6
  import './normalize-component-6e8e3d80.js';
8
- import './OrFloating-b15309d1.js';
7
+ import './OrMenuItem-3a28db7b.js';
8
+ import './OrMenu-bb81644d.js';
9
+ import './OrPopover-9080fc00.js';
9
10
  import '@floating-ui/dom';
10
- import './OrTeleportVue2-fce4676d.js';
11
- import 'vue';
12
- import './dom-7a41831b.js';
13
- import './px-to-rem-0b26b83e.js';
14
- import './color-1f348774.js';
11
+ import './useElevation-0e973238.js';
12
+ import './useResponsive-a02e95b7.js';
13
+ import './OrBottomSheet-f09adbbb.js';
14
+ import './OrOverlay-4838a9b0.js';
15
+ import './OrTeleport.vue2-fb92f29f.js';
16
+ import 'portal-vue';
17
+ import './OrTab-4e6ff742.js';
@@ -1,16 +1,14 @@
1
- export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-1ced4e58.js';
1
+ export { _ as OrTag } from './OrTag-140d4f72.js';
2
2
  import 'vue-demi';
3
- import './useClassAttribute-47fdb016.js';
4
- import '@vueuse/core';
5
- import './OrIconButton-2088a37f.js';
6
- import './OrIcon-124f3bad.js';
3
+ import './OrIcon-7cd10497.js';
4
+ import 'lodash';
5
+ import './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
6
+ import './style-inject.es-4c6f2515.js';
7
7
  import './normalize-component-6e8e3d80.js';
8
- import './OrTooltip-afe7030b.js';
9
- import './OrPopover-9080fc00.js';
8
+ import './OrFloating-b15309d1.js';
10
9
  import '@floating-ui/dom';
11
- import './useElevation-0e973238.js';
12
- import './useResponsive-a02e95b7.js';
13
- import './OrBottomSheet-f09adbbb.js';
14
- import './OrOverlay-4838a9b0.js';
15
- import './OrTeleport.vue2-fb92f29f.js';
16
- import 'portal-vue';
10
+ import './OrTeleportVue2-fce4676d.js';
11
+ import 'vue';
12
+ import './dom-7a41831b.js';
13
+ import './px-to-rem-0b26b83e.js';
14
+ import './color-1f348774.js';
@@ -1,4 +1,16 @@
1
- export { _ as OrTeleport } from './OrTeleportVue2-fce4676d.js';
1
+ export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-1ced4e58.js';
2
2
  import 'vue-demi';
3
- import 'vue';
3
+ import './useClassAttribute-47fdb016.js';
4
+ import '@vueuse/core';
5
+ import './OrIconButton-2088a37f.js';
6
+ import './OrIcon-124f3bad.js';
4
7
  import './normalize-component-6e8e3d80.js';
8
+ import './OrTooltip-afe7030b.js';
9
+ import './OrPopover-9080fc00.js';
10
+ import '@floating-ui/dom';
11
+ import './useElevation-0e973238.js';
12
+ import './useResponsive-a02e95b7.js';
13
+ import './OrBottomSheet-f09adbbb.js';
14
+ import './OrOverlay-4838a9b0.js';
15
+ import './OrTeleport.vue2-fb92f29f.js';
16
+ import 'portal-vue';
@@ -1,4 +1,4 @@
1
- export { _ as OrTeleportV3 } from './OrTeleport.vue2-fb92f29f.js';
2
- import 'portal-vue';
1
+ export { _ as OrTeleport } from './OrTeleportVue2-fce4676d.js';
3
2
  import 'vue-demi';
3
+ import 'vue';
4
4
  import './normalize-component-6e8e3d80.js';
@@ -1,5 +1,4 @@
1
- export { _ as OrTextV3 } from './OrText-ba5a2b6c.js';
1
+ export { _ as OrTeleportV3 } from './OrTeleport.vue2-fb92f29f.js';
2
+ import 'portal-vue';
2
3
  import 'vue-demi';
3
- import './useClassAttribute-47fdb016.js';
4
- import '@vueuse/core';
5
4
  import './normalize-component-6e8e3d80.js';
@@ -1,10 +1,5 @@
1
- export { _ as OrTextareaV3 } from './OrTextarea-8773d494.js';
2
- export { a as TextareaSize } from './OrInputBox-208dceac.js';
1
+ export { _ as OrTextV3 } from './OrText-ba5a2b6c.js';
3
2
  import 'vue-demi';
4
3
  import './useClassAttribute-47fdb016.js';
5
4
  import '@vueuse/core';
6
- import './OrError-be656098.js';
7
5
  import './normalize-component-6e8e3d80.js';
8
- import './OrHint-44356417.js';
9
- import './OrLabel-5670468e.js';
10
- import './style-inject.es-4c6f2515.js';
@@ -1,23 +1,10 @@
1
- export { _ as OrTextbox, T as TextboxTypes } from './OrTextbox-91382d58.js';
1
+ export { _ as OrTextareaV3 } from './OrTextarea-8773d494.js';
2
+ export { a as TextareaSize } from './OrInputBox-208dceac.js';
2
3
  import 'vue-demi';
4
+ import './useClassAttribute-47fdb016.js';
3
5
  import '@vueuse/core';
4
- import './useToggle-29e4d7c7.js';
5
- import './px-to-rem-0b26b83e.js';
6
- import './dom-7a41831b.js';
7
- import 'lodash';
8
- import './OrLabel-931394a5.js';
9
- import './style-inject.es-4c6f2515.js';
6
+ import './OrError-be656098.js';
10
7
  import './normalize-component-6e8e3d80.js';
11
- import './OrIconButton.vue_rollup-plugin-vue_styles.0-dc224e53.js';
12
- import './OrIcon-7cd10497.js';
13
- import './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
14
- import './OrFloating-b15309d1.js';
15
- import '@floating-ui/dom';
16
- import './OrTeleportVue2-fce4676d.js';
17
- import 'vue';
18
- import './OrLoader-212ef381.js';
19
- import './OrTooltip-b31bd78d.js';
20
- import './OrIconButton-cab39659.js';
21
- import './OrHint-fe65fbe6.js';
22
- import './OrError-efc74907.js';
23
- import './OrCollapse-50e3914c.js';
8
+ import './OrHint-44356417.js';
9
+ import './OrLabel-5670468e.js';
10
+ import './style-inject.es-4c6f2515.js';
@@ -1,20 +1,23 @@
1
- export { _ as OrToast, a as OrToastContainer } from './OrToastContainer-e285a86c.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.vue_rollup-plugin-vue_styles.0-dc224e53.js';
1
+ export { _ as OrTextbox, T as TextboxTypes } from './OrTextbox-91382d58.js';
4
2
  import 'vue-demi';
5
- import './OrIcon-7cd10497.js';
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 './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
8
+ import './OrLabel-931394a5.js';
8
9
  import './style-inject.es-4c6f2515.js';
9
10
  import './normalize-component-6e8e3d80.js';
11
+ import './OrIconButton.vue_rollup-plugin-vue_styles.0-dc224e53.js';
12
+ import './OrIcon-7cd10497.js';
13
+ import './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
10
14
  import './OrFloating-b15309d1.js';
11
15
  import '@floating-ui/dom';
12
16
  import './OrTeleportVue2-fce4676d.js';
13
17
  import 'vue';
14
- import './dom-7a41831b.js';
15
- import './px-to-rem-0b26b83e.js';
16
18
  import './OrLoader-212ef381.js';
17
19
  import './OrTooltip-b31bd78d.js';
18
20
  import './OrIconButton-cab39659.js';
19
- import './OrProgress-e6f20dc1.js';
20
- import '@vueuse/core';
21
+ import './OrHint-fe65fbe6.js';
22
+ import './OrError-efc74907.js';
23
+ import './OrCollapse-50e3914c.js';
@@ -1,3 +1,20 @@
1
- export { a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
1
+ export { _ as OrToast, a as OrToastContainer } from './OrToastContainer-e285a86c.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.vue_rollup-plugin-vue_styles.0-dc224e53.js';
2
4
  import 'vue-demi';
5
+ import './OrIcon-7cd10497.js';
6
+ import 'lodash';
7
+ import './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
8
+ import './style-inject.es-4c6f2515.js';
9
+ import './normalize-component-6e8e3d80.js';
10
+ import './OrFloating-b15309d1.js';
11
+ import '@floating-ui/dom';
12
+ import './OrTeleportVue2-fce4676d.js';
13
+ import 'vue';
14
+ import './dom-7a41831b.js';
15
+ import './px-to-rem-0b26b83e.js';
16
+ import './OrLoader-212ef381.js';
17
+ import './OrTooltip-b31bd78d.js';
18
+ import './OrIconButton-cab39659.js';
19
+ import './OrProgress-e6f20dc1.js';
3
20
  import '@vueuse/core';
@@ -1,19 +1,3 @@
1
- export { a as OrToastContainerV3, _ as OrToastV3, t as TypesV3 } from './types-89aad7fb.js';
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 './OrTeleport.vue2-fb92f29f.js';
6
- import 'portal-vue';
7
- import './normalize-component-6e8e3d80.js';
8
- import './OrIconButton-2088a37f.js';
9
- import './useClassAttribute-47fdb016.js';
10
- import './OrIcon-124f3bad.js';
11
- import './OrTooltip-afe7030b.js';
12
- import './OrPopover-9080fc00.js';
13
- import '@floating-ui/dom';
14
- import './useElevation-0e973238.js';
15
- import './useResponsive-a02e95b7.js';
16
- import './OrBottomSheet-f09adbbb.js';
17
- import './OrOverlay-4838a9b0.js';
18
- import './OrLoader-bd088836.js';
19
- import './style-inject.es-4c6f2515.js';
3
+ import '@vueuse/core';
@@ -1,3 +1,19 @@
1
- export { a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
2
- import 'vue-demi';
1
+ export { a as OrToastContainerV3, _ as OrToastV3, t as TypesV3 } from './types-89aad7fb.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.vue2-fb92f29f.js';
6
+ import 'portal-vue';
7
+ import './normalize-component-6e8e3d80.js';
8
+ import './OrIconButton-2088a37f.js';
9
+ import './useClassAttribute-47fdb016.js';
10
+ import './OrIcon-124f3bad.js';
11
+ import './OrTooltip-afe7030b.js';
12
+ import './OrPopover-9080fc00.js';
13
+ import '@floating-ui/dom';
14
+ import './useElevation-0e973238.js';
15
+ import './useResponsive-a02e95b7.js';
16
+ import './OrBottomSheet-f09adbbb.js';
17
+ import './OrOverlay-4838a9b0.js';
18
+ import './OrLoader-bd088836.js';
19
+ import './style-inject.es-4c6f2515.js';
@@ -1,11 +1,3 @@
1
- export { _ as OrTooltip } from './OrTooltip-b31bd78d.js';
2
- export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
3
- import './normalize-component-6e8e3d80.js';
1
+ export { a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
4
2
  import 'vue-demi';
5
- import 'lodash';
6
- import './style-inject.es-4c6f2515.js';
7
- import './OrFloating-b15309d1.js';
8
- import '@floating-ui/dom';
9
- import './OrTeleportVue2-fce4676d.js';
10
- import 'vue';
11
- import './dom-7a41831b.js';
3
+ import '@vueuse/core';
@@ -1,13 +1,11 @@
1
- export { _ as OrTooltipV3 } from './OrTooltip-afe7030b.js';
2
- export { P as TooltipPlacement } from './OrPopover-9080fc00.js';
3
- import '@vueuse/core';
4
- import 'vue-demi';
5
- import './useClassAttribute-47fdb016.js';
1
+ export { _ as OrTooltip } from './OrTooltip-b31bd78d.js';
2
+ export { _ as OrTooltipContent } from './OrTooltip.vue_rollup-plugin-vue_styles.0-54c17910.js';
6
3
  import './normalize-component-6e8e3d80.js';
4
+ import 'vue-demi';
5
+ import 'lodash';
6
+ import './style-inject.es-4c6f2515.js';
7
+ import './OrFloating-b15309d1.js';
7
8
  import '@floating-ui/dom';
8
- import './useElevation-0e973238.js';
9
- import './useResponsive-a02e95b7.js';
10
- import './OrBottomSheet-f09adbbb.js';
11
- import './OrOverlay-4838a9b0.js';
12
- import './OrTeleport.vue2-fb92f29f.js';
13
- import 'portal-vue';
9
+ import './OrTeleportVue2-fce4676d.js';
10
+ import 'vue';
11
+ import './dom-7a41831b.js';
@@ -1,2 +1,13 @@
1
- export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
1
+ export { _ as OrTooltipV3 } from './OrTooltip-afe7030b.js';
2
+ export { P as TooltipPlacement } from './OrPopover-9080fc00.js';
3
+ import '@vueuse/core';
2
4
  import 'vue-demi';
5
+ import './useClassAttribute-47fdb016.js';
6
+ import './normalize-component-6e8e3d80.js';
7
+ import '@floating-ui/dom';
8
+ import './useElevation-0e973238.js';
9
+ import './useResponsive-a02e95b7.js';
10
+ import './OrBottomSheet-f09adbbb.js';
11
+ import './OrOverlay-4838a9b0.js';
12
+ import './OrTeleport.vue2-fb92f29f.js';
13
+ import 'portal-vue';
@@ -1,7 +1,2 @@
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';
1
+ export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
6
2
  import 'vue-demi';
7
- import '@vueuse/core';
@@ -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
- import '@vueuse/core';
5
+ export { u as useToggle } from './useToggle-29e4d7c7.js';
3
6
  import 'vue-demi';
7
+ import '@vueuse/core';
@@ -0,0 +1,3 @@
1
+ export { u as useResponsive } from './useResponsive-a02e95b7.js';
2
+ import '@vueuse/core';
3
+ import 'vue-demi';
@@ -0,0 +1,183 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { openBlock, createElementBlock, mergeProps, createElementVNode, renderSlot, normalizeClass, resolveComponent, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
5
+
6
+ const SegmentedControlsItemRoot = [
7
+ // Layout
8
+ 'flex', 'items-center', 'justify-center',
9
+ // Shape
10
+ 'rounded-md',
11
+ // Interactivity
12
+ 'interactivity-auto',
13
+ // Theme
14
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark',
15
+ // Theme (selected)
16
+ 'selected:theme-background-default', 'dark:selected:theme-background-default-dark',
17
+ // Theme (selected, enabled)
18
+ 'selected:enabled:shadow-card', 'dark:selected:enabled:shadow-card-dark'];
19
+ const SegmentedControlsItemRootSizes = {
20
+ 'm': [
21
+ // Box
22
+ 'h-[44px] md:h-[36px]',
23
+ // Spacing
24
+ 'px-sm+ md:px-sm+',
25
+ // Typography
26
+ 'typography-body-2-regular'],
27
+ 's': [
28
+ // Box
29
+ 'h-[36px] md:h-[32px]',
30
+ // Spacing
31
+ 'px-sm+ md:px-sm',
32
+ // Typography
33
+ 'typography-caption-regular']
34
+ };
35
+
36
+ var script$1 = defineComponent({
37
+ name: 'OrSegmentedControlsItem',
38
+ inheritAttrs: false,
39
+ props: {
40
+ size: {
41
+ type: String,
42
+ required: true
43
+ },
44
+ selected: {
45
+ type: Boolean,
46
+ default: false
47
+ },
48
+ disabled: {
49
+ type: Boolean,
50
+ default: false
51
+ }
52
+ },
53
+ setup(props) {
54
+ // Refs
55
+ const root = ref();
56
+ // Styles
57
+ const classAttribute = useClassAttribute();
58
+ const rootStyles = computed(() => ['or-segmented-controls-item', ...SegmentedControlsItemRoot, ...SegmentedControlsItemRootSizes[props.size], classAttribute.value]);
59
+ return {
60
+ root,
61
+ rootStyles
62
+ };
63
+ }
64
+ });
65
+
66
+ const _hoisted_1 = ["selected", "disabled"];
67
+ const _hoisted_2 = {
68
+ class: /*#__PURE__*/normalizeClass(['truncate'])
69
+ };
70
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
71
+ return openBlock(), createElementBlock("div", mergeProps({
72
+ ref: "root"
73
+ }, _ctx.$attrs, {
74
+ class: _ctx.rootStyles,
75
+ selected: _ctx.selected ? '' : null,
76
+ disabled: _ctx.disabled ? '' : null
77
+ }), [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default")])], 16 /* FULL_PROPS */, _hoisted_1);
78
+ }
79
+
80
+ script$1.render = render$1;
81
+ script$1.__file = "src/components/or-segmented-controls-v3/components/or-segmented-controls-item/OrSegmentedControlsItem.vue";
82
+
83
+ var SegmentedControlsSize;
84
+ (function (SegmentedControlsSize) {
85
+ SegmentedControlsSize["M"] = "m";
86
+ SegmentedControlsSize["S"] = "s";
87
+ })(SegmentedControlsSize || (SegmentedControlsSize = {}));
88
+
89
+ const SegmentedControlsRoot = [
90
+ // Layout
91
+ 'grid', 'grid-flow-col', 'auto-cols-fr',
92
+ // Shape
93
+ 'rounded-md',
94
+ // Spacing
95
+ 'px-[2px]', 'py-[2px]',
96
+ // Theme
97
+ 'theme-background-surface-variant', 'dark:theme-background-surface-variant-dark'];
98
+ const SegmentedControlsRootSizes = {
99
+ 'm': [],
100
+ 's': []
101
+ };
102
+
103
+ var script = defineComponent({
104
+ name: 'OrSegmentedControls',
105
+ components: {
106
+ OrSegmentedControlsItem: script$1
107
+ },
108
+ inheritAttrs: false,
109
+ props: {
110
+ options: {
111
+ type: Array,
112
+ default: []
113
+ },
114
+ modelValue: {
115
+ type: String,
116
+ default: undefined
117
+ },
118
+ value: {
119
+ type: String,
120
+ default: undefined
121
+ },
122
+ size: {
123
+ type: String,
124
+ default: SegmentedControlsSize.M
125
+ },
126
+ disabled: {
127
+ type: Boolean,
128
+ default: false
129
+ }
130
+ },
131
+ emits: ['update:modelValue', 'input', 'focus', 'blur'],
132
+ expose: ['root'],
133
+ setup(props, context) {
134
+ // Refs
135
+ const root = ref();
136
+ // Styles
137
+ const classAttribute = useClassAttribute();
138
+ const rootStyles = computed(() => ['or-segmented-controls', ...SegmentedControlsRoot, ...SegmentedControlsRootSizes[props.size], classAttribute.value]);
139
+ // State
140
+ const proxyModelValue = computed({
141
+ get: () => {
142
+ var _a;
143
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
144
+ },
145
+
146
+ set: value => {
147
+ context.emit('input', value);
148
+ context.emit('update:modelValue', value);
149
+ }
150
+ });
151
+ return {
152
+ root,
153
+ rootStyles,
154
+ proxyModelValue
155
+ };
156
+ }
157
+ });
158
+
159
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
160
+ const _component_OrSegmentedControlsItem = resolveComponent("OrSegmentedControlsItem");
161
+ return openBlock(), createElementBlock("div", mergeProps({
162
+ ref: "root"
163
+ }, _ctx.$attrs, {
164
+ class: _ctx.rootStyles
165
+ }), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
166
+ return openBlock(), createBlock(_component_OrSegmentedControlsItem, {
167
+ key: option.value,
168
+ size: _ctx.size,
169
+ selected: option.value === _ctx.proxyModelValue,
170
+ disabled: _ctx.disabled,
171
+ onClick: $event => _ctx.proxyModelValue = option.value
172
+ }, {
173
+ default: withCtx(() => [createTextVNode(toDisplayString(option.label), 1 /* TEXT */)]),
174
+
175
+ _: 2 /* DYNAMIC */
176
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["size", "selected", "disabled", "onClick"]);
177
+ }), 128 /* KEYED_FRAGMENT */))], 16 /* FULL_PROPS */);
178
+ }
179
+
180
+ script.render = render;
181
+ script.__file = "src/components/or-segmented-controls-v3/OrSegmentedControls.vue";
182
+
183
+ export { SegmentedControlsSize as S, script as s };
@@ -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-controls-v3';
61
62
  export * from './or-select';
62
63
  export * from './or-select-v3';
63
64
  export * from './or-sidebar';
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
+ declare const _default: Meta<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, {
3
+ [x: string]: ((...args: any[]) => any) | null;
4
+ } | string[], {} & {}, {
5
+ [x: number]: string;
6
+ } | {}, true>)>;
7
+ export default _default;
8
+ export declare const Base: 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, {
9
+ [x: string]: ((...args: any[]) => any) | null;
10
+ } | string[], {} & {}, {
11
+ [x: number]: string;
12
+ } | {}, true>)>;
@@ -0,0 +1,77 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { SegmentedControlsSize } from './props';
3
+ import { SegmentedControlsOption } from './types';
4
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
7
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
8
+ }> & import("@vue/composition-api").Data, {}, {}, {
9
+ options: {
10
+ type: PropType<SegmentedControlsOption[]>;
11
+ default: SegmentedControlsOption[];
12
+ };
13
+ modelValue: {
14
+ type: StringConstructor;
15
+ default: undefined;
16
+ };
17
+ value: {
18
+ type: StringConstructor;
19
+ default: undefined;
20
+ };
21
+ size: {
22
+ type: PropType<SegmentedControlsSize>;
23
+ default: SegmentedControlsSize;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ }, import("@vue/composition-api").ExtractPropTypes<{
30
+ options: {
31
+ type: PropType<SegmentedControlsOption[]>;
32
+ default: SegmentedControlsOption[];
33
+ };
34
+ modelValue: {
35
+ type: StringConstructor;
36
+ default: undefined;
37
+ };
38
+ value: {
39
+ type: StringConstructor;
40
+ default: undefined;
41
+ };
42
+ size: {
43
+ type: PropType<SegmentedControlsSize>;
44
+ default: SegmentedControlsSize;
45
+ };
46
+ disabled: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
51
+ options: SegmentedControlsOption[];
52
+ modelValue: string;
53
+ value: string;
54
+ size: SegmentedControlsSize;
55
+ disabled: boolean;
56
+ } & {} & {
57
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
58
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
59
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
60
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
61
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
62
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
63
+ options: SegmentedControlsOption[];
64
+ modelValue: string;
65
+ value: string;
66
+ size: SegmentedControlsSize;
67
+ disabled: boolean;
68
+ } & {} & {
69
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
70
+ }, {
71
+ options: SegmentedControlsOption[];
72
+ modelValue: string;
73
+ value: string;
74
+ size: SegmentedControlsSize;
75
+ disabled: boolean;
76
+ }, true>);
77
+ export default _default;