@onereach/ui-components 2.74.13-beta.2362.0 → 2.74.13-beta.2365.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 (155) hide show
  1. package/dist/bundled/v2/{OrCardCollection-ba527c32.js → OrCardCollection-638bc4a8.js} +1 -1
  2. package/dist/bundled/v2/{OrConfirm-c6397de7.js → OrConfirm-f7ade1d1.js} +1 -1
  3. package/dist/bundled/v2/{OrInlineInput-9304f205.js → OrInlineInput-20e93482.js} +9 -11
  4. package/dist/bundled/v2/{OrInlineTextarea-e0d28fc6.js → OrInlineTextarea-e849ae9b.js} +9 -11
  5. package/dist/bundled/v2/{OrInput-e0e8b941.js → OrInput-15c2b072.js} +11 -12
  6. package/dist/bundled/v2/{OrInputBox-e54dcef9.js → OrInputBox-9a31d211.js} +2 -12
  7. package/dist/bundled/v2/{OrNotification-e102f0d7.js → OrNotification-f7644c55.js} +2 -6
  8. package/dist/bundled/v2/{OrSearch-fbf62c5d.js → OrSearch-8df5d7fd.js} +2 -2
  9. package/dist/bundled/v2/{OrSelect-601c4893.js → OrSelect-3ac5eefe.js} +11 -10
  10. package/dist/bundled/v2/{OrTextarea-5fdf63d0.js → OrTextarea-53d756e4.js} +11 -12
  11. package/dist/bundled/v2/components/index.js +11 -10
  12. package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -4
  13. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
  14. package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
  15. package/dist/bundled/v2/components/or-combined-input-v3/index.js +146 -0
  16. package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
  17. package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
  18. package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -3
  19. package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
  20. package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
  22. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
  23. package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
  24. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +5 -7
  25. package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
  26. package/dist/bundled/v2/components/or-notification-v3/OrNotification.vue.d.ts +0 -11
  27. package/dist/bundled/v2/components/or-notification-v3/index.js +1 -1
  28. package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
  29. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +5 -7
  30. package/dist/bundled/v2/components/or-select-v3/index.js +4 -3
  31. package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
  32. package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
  33. package/dist/bundled/v2/index.js +12 -11
  34. package/dist/bundled/v2/props-78496a2d.js +12 -0
  35. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3e33148c.js → OrCardCollection.vue_vue_type_script_lang-990fb52d.js} +1 -1
  36. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f31f4f53.js → OrConfirm.vue_vue_type_script_lang-8ac01851.js} +2 -2
  37. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js → OrInlineInput.vue_vue_type_script_lang-18853dd7.js} +3 -5
  38. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js → OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js} +3 -5
  39. package/dist/bundled/v3/{OrInput-7679287c.js → OrInput-2c10c351.js} +5 -5
  40. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-edf81609.js → OrInput.vue_vue_type_script_lang-ce8b23e8.js} +6 -7
  41. package/dist/bundled/v3/{OrInputBox-358d4856.js → OrInputBox-44f37541.js} +1 -1
  42. package/dist/{esm/v2/OrInputBox-53d1f66d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js} +3 -53
  43. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-7dd0d85f.js → OrNotification.vue_vue_type_script_lang-4532696a.js} +0 -4
  44. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-7b934bbf.js → OrSearch.vue_vue_type_script_lang-db6e6f7f.js} +3 -3
  45. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-f4f620ab.js → OrSelect.vue_vue_type_script_lang-52193c4c.js} +9 -8
  46. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-de99a858.js → OrTextarea.vue_vue_type_script_lang-b2899ba6.js} +6 -7
  47. package/dist/bundled/v3/components/index.js +13 -12
  48. package/dist/bundled/v3/components/or-card-collection-v3/index.js +7 -6
  49. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
  50. package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
  51. package/dist/bundled/v3/components/or-combined-input-v3/index.js +128 -0
  52. package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
  53. package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
  54. package/dist/bundled/v3/components/or-confirm-v3/index.js +6 -5
  55. package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
  56. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
  57. package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
  58. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
  59. package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
  60. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +5 -7
  61. package/dist/bundled/v3/components/or-input-v3/index.js +4 -3
  62. package/dist/bundled/v3/components/or-notification-v3/OrNotification.vue.d.ts +0 -11
  63. package/dist/bundled/v3/components/or-notification-v3/index.js +1 -1
  64. package/dist/bundled/v3/components/or-search-v3/index.js +6 -5
  65. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -7
  66. package/dist/bundled/v3/components/or-select-v3/index.js +6 -5
  67. package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
  68. package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
  69. package/dist/bundled/v3/index.js +39 -39
  70. package/dist/bundled/v3/props-78496a2d.js +12 -0
  71. package/dist/esm/v2/{OrCardCollection-fa7e81fc.js → OrCardCollection-ffa4e842.js} +2 -2
  72. package/dist/esm/v2/{OrConfirm-d7082ce0.js → OrConfirm-73a902ce.js} +1 -1
  73. package/dist/esm/v2/{OrInlineInput-df02ab5d.js → OrInlineInput-b003ddde.js} +9 -11
  74. package/dist/esm/v2/{OrInlineTextarea-ad120656.js → OrInlineTextarea-6349b529.js} +9 -11
  75. package/dist/esm/v2/{OrInput-a19adb5d.js → OrInput-67eb3178.js} +11 -12
  76. package/dist/esm/v2/OrInputBox-5c4b3104.js +43 -0
  77. package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js} +1 -1
  78. package/dist/esm/v2/{OrNotification-76498693.js → OrNotification-687b4999.js} +2 -6
  79. package/dist/esm/v2/{OrSearch-513c80e5.js → OrSearch-a5cab600.js} +2 -2
  80. package/dist/esm/v2/{OrSelect-71672992.js → OrSelect-2773ebeb.js} +11 -10
  81. package/dist/esm/v2/{OrTextarea-0a64f718.js → OrTextarea-0bf9bf33.js} +11 -12
  82. package/dist/esm/v2/components/index.js +11 -10
  83. package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -4
  84. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
  85. package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
  86. package/dist/esm/v2/components/or-combined-input-v3/index.js +143 -0
  87. package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
  88. package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
  89. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -3
  90. package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
  91. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  92. package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
  93. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  94. package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
  95. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +5 -7
  96. package/dist/esm/v2/components/or-input-v3/index.js +3 -2
  97. package/dist/esm/v2/components/or-notification-v3/OrNotification.vue.d.ts +0 -11
  98. package/dist/esm/v2/components/or-notification-v3/index.js +1 -1
  99. package/dist/esm/v2/components/or-search-v3/index.js +4 -3
  100. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +5 -7
  101. package/dist/esm/v2/components/or-select-v3/index.js +4 -3
  102. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
  103. package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
  104. package/dist/esm/v2/index.js +11 -10
  105. package/dist/esm/v3/{OrCardCollection-8a658b21.js → OrCardCollection-274a413e.js} +1 -1
  106. package/dist/esm/v3/{OrConfirm-7a4f09e4.js → OrConfirm-c73aa589.js} +1 -1
  107. package/dist/esm/v3/{OrInlineInput-cd3753ee.js → OrInlineInput-65127ed7.js} +7 -9
  108. package/dist/esm/v3/{OrInlineTextarea-4c5b0390.js → OrInlineTextarea-176a2701.js} +7 -9
  109. package/dist/esm/v3/{OrInput-ab92224c.js → OrInput-86c9d300.js} +7 -9
  110. package/dist/esm/v3/{OrNotification-aab2e22a.js → OrNotification-03a7426c.js} +3 -8
  111. package/dist/esm/v3/{OrSearch-88811fdc.js → OrSearch-1a92f8cf.js} +1 -1
  112. package/dist/esm/v3/{OrSelect-74c6bfb1.js → OrSelect-e1443e71.js} +9 -9
  113. package/dist/esm/v3/{OrTextarea-42d21f77.js → OrTextarea-14a6b456.js} +7 -9
  114. package/dist/esm/v3/components/index.js +9 -9
  115. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  116. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
  117. package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
  118. package/dist/esm/v3/components/or-combined-input-v3/index.js +127 -0
  119. package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
  120. package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
  121. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  122. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
  123. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  124. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
  125. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  126. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +5 -7
  127. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  128. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +0 -11
  129. package/dist/esm/v3/components/or-notification-v3/index.js +1 -1
  130. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  131. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -7
  132. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  133. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
  134. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  135. package/dist/esm/v3/index.js +9 -9
  136. package/package.json +2 -2
  137. package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
  138. package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +201 -0
  139. package/src/components/or-combined-input-v3/OrCombinedInput.vue +127 -0
  140. package/src/components/or-combined-input-v3/index.ts +2 -0
  141. package/src/components/or-combined-input-v3/props.ts +1 -0
  142. package/src/components/or-combined-input-v3/styles.ts +25 -0
  143. package/src/components/or-inline-input-v3/OrInlineInput.vue +4 -7
  144. package/src/components/or-inline-input-v3/styles.ts +2 -2
  145. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +4 -7
  146. package/src/components/or-inline-textarea-v3/styles.ts +2 -2
  147. package/src/components/or-input-v3/OrInput.vue +4 -7
  148. package/src/components/or-input-v3/styles.ts +2 -2
  149. package/src/components/or-notification-v3/OrNotification.stories3.ts +0 -52
  150. package/src/components/or-notification-v3/OrNotification.vue +0 -6
  151. package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
  152. package/src/components/or-select-v3/OrSelect.vue +4 -6
  153. package/src/components/or-select-v3/styles.ts +4 -1
  154. package/src/components/or-textarea-v3/OrTextarea.vue +4 -7
  155. package/src/components/or-textarea-v3/styles.ts +2 -2
@@ -1,4 +1,4 @@
1
- export { s as OrTextareaV3 } from '../../OrTextarea-42d21f77.js';
1
+ export { s as OrTextareaV3 } from '../../OrTextarea-14a6b456.js';
2
2
  export { a as TextareaSize } from '../../OrInputBox-2467d7e4.js';
3
3
  import 'vue-demi';
4
4
  import '../../useIdAttribute-859439f0.js';
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
6
6
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-eab948fb.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1258cd45.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-8a658b21.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-274a413e.js';
10
10
  export { s as OrCardV3 } from './OrCard-cd6af82e.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-a3a855e8.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-8d8887ea.js';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-033d49f4.js';
16
16
  export { s as OrCollapse } from './OrCollapse-37a52e8f.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-9a149e6b.js';
18
18
  export { s as OrConfirm } from './OrConfirm-45796889.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-7a4f09e4.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-c73aa589.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-efd8aae7.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from './OrErrorTag-0025b17c.js';
@@ -31,11 +31,11 @@ export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-ed3e10
31
31
  export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-385e997c.js';
32
32
  export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-ea40e58c.js';
33
33
  export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
34
- export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-cd3753ee.js';
34
+ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-65127ed7.js';
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-adf71cc1.js';
36
- export { s as OrInlineTextareaV3 } from './OrInlineTextarea-4c5b0390.js';
36
+ export { s as OrInlineTextareaV3 } from './OrInlineTextarea-176a2701.js';
37
37
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-2467d7e4.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-ab92224c.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-86c9d300.js';
39
39
  export { s as OrInput } from './OrInput-0dbd5a01.js';
40
40
  export { s as OrLabel } from './OrLabel-876f8729.js';
41
41
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
@@ -50,7 +50,7 @@ export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as Popov
50
50
  export { s as OrModal, O as OrModalSizes } from './OrModal-153310f7.js';
51
51
  export { M as ModalSize, s as OrModalV3 } from './OrModal-f9f2279b.js';
52
52
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-b90cf406.js';
53
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-aab2e22a.js';
53
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-03a7426c.js';
54
54
  export { s as OrNumberInput } from './OrNumberInput-dca5e850.js';
55
55
  export { s as OrOverflowMenu } from './OrOverflowMenu-775d380c.js';
56
56
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
@@ -63,10 +63,10 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
63
63
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
64
64
  export { s as OrRadioV3 } from './OrRadio-97fb105f.js';
65
65
  export { s as OrSearch } from './OrSearch-4a5c943b.js';
66
- export { s as OrSearchV3 } from './OrSearch-88811fdc.js';
66
+ export { s as OrSearchV3 } from './OrSearch-1a92f8cf.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
68
68
  export { s as OrSelect } from './OrSelect-88e5dfaf.js';
69
- export { s as OrSelectV3 } from './OrSelect-74c6bfb1.js';
69
+ export { s as OrSelectV3 } from './OrSelect-e1443e71.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
71
71
  export { s as OrSidebarV3 } from './OrSidebar-64703ef6.js';
72
72
  export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-506fc73c.js';
@@ -88,7 +88,7 @@ export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
88
88
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
89
89
  export { s as OrTextV3 } from './OrText-a3b00048.js';
90
90
  export { s as OrTextarea } from './OrTextarea-de1ecb0f.js';
91
- export { s as OrTextareaV3 } from './OrTextarea-42d21f77.js';
91
+ export { s as OrTextareaV3 } from './OrTextarea-14a6b456.js';
92
92
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-5c1cf735.js';
93
93
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-11a58425.js';
94
94
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.74.13-beta.2362.0",
3
+ "version": "2.74.13-beta.2365.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -38,7 +38,7 @@
38
38
  "@codemirror/lang-json": "6.0.0",
39
39
  "@codemirror/lang-markdown": "6.0.1",
40
40
  "@floating-ui/dom": "0.3.1",
41
- "@onereach/styles": "^2.35.1-beta.2362.0",
41
+ "@onereach/styles": "^2.35.1-beta.2365.0",
42
42
  "@splidejs/splide": "4.0.6",
43
43
  "@types/lodash": "4.14.173",
44
44
  "@types/sortablejs": "1.10.7",
@@ -0,0 +1,7 @@
1
+ import { DocsPage } from '@storybook/addon-docs';
2
+
3
+ ```ts
4
+ import { OrCombinedInputV3 as OrCombinedInput } from '@onereach/ui-components';
5
+ ```
6
+
7
+ <DocsPage />
@@ -0,0 +1,201 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
+ import { ref, watch } from 'vue-demi';
3
+ import { OrIconV3 as OrIcon } from '../or-icon-v3';
4
+ import { OrInputV3 as OrInput } from '../or-input-v3';
5
+ import { OrSelectV3 as OrSelect, SelectOption } from '../or-select-v3';
6
+ import OrCombinedInputDocs from './OrCombinedInput.docs.mdx';
7
+ import OrCombinedInput from './OrCombinedInput.vue';
8
+ import { CombinedInputSize } from './props';
9
+
10
+ export default {
11
+ title: 'Components/Forms/Combined Input',
12
+ component: OrCombinedInput,
13
+
14
+ argTypes: {
15
+ // Slots
16
+ default: {
17
+ type: {
18
+ name: 'string',
19
+ required: true,
20
+ },
21
+
22
+ control: { type: 'text' },
23
+ },
24
+
25
+ addon: {
26
+ type: {
27
+ name: 'string',
28
+ required: false,
29
+ },
30
+
31
+ control: { type: 'text' },
32
+ },
33
+
34
+ // Props
35
+ size: {
36
+ control: { type: 'select' },
37
+ options: Object.values(CombinedInputSize),
38
+ },
39
+
40
+ label: {
41
+ control: { type: 'text' },
42
+ },
43
+
44
+ hint: {
45
+ control: { type: 'text' },
46
+ },
47
+
48
+ error: {
49
+ control: { type: 'text' },
50
+ },
51
+
52
+ required: {
53
+ control: { type: 'boolean' },
54
+ },
55
+
56
+ readonly: {
57
+ control: { type: 'boolean' },
58
+ },
59
+
60
+ disabled: {
61
+ control: { type: 'boolean' },
62
+ },
63
+
64
+ disableDefaultStyles: {
65
+ control: { type: 'boolean' },
66
+ },
67
+ },
68
+
69
+ parameters: {
70
+ docs: {
71
+ page: OrCombinedInputDocs,
72
+ },
73
+
74
+ design: {
75
+ type: 'figma',
76
+ url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
77
+ },
78
+ },
79
+ } as Meta<typeof OrCombinedInput>;
80
+
81
+ const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
82
+ components: {
83
+ OrCombinedInput,
84
+ OrIcon,
85
+ OrInput,
86
+ OrSelect,
87
+ },
88
+
89
+ setup() {
90
+ // State
91
+ const options = Array.from<string, SelectOption>([
92
+ 'Alfa',
93
+ 'Bravo',
94
+ 'Charlie',
95
+ 'Delta',
96
+ 'Echo',
97
+ 'Foxtrot',
98
+ 'Golf',
99
+ 'Hotel',
100
+ 'India',
101
+ 'Juliett',
102
+ 'Kilo',
103
+ 'Lima',
104
+ 'Mike',
105
+ 'November',
106
+ 'Oscar',
107
+ 'Papa',
108
+ 'Quebec',
109
+ 'Romeo',
110
+ 'Sierra',
111
+ 'Tango',
112
+ 'Uniform',
113
+ 'Victor',
114
+ 'Whiskey',
115
+ 'X-Ray',
116
+ 'Yankee',
117
+ 'Zulu',
118
+ ], (item) => ({
119
+ value: item.toLowerCase(),
120
+ label: item,
121
+ }));
122
+
123
+ const selectModel = ref<string>();
124
+ const inputModel = ref<string>();
125
+
126
+ // Effects
127
+ watch([selectModel, inputModel], (values) => {
128
+ console.debug(values);
129
+ });
130
+
131
+ return {
132
+ args,
133
+ options,
134
+ selectModel,
135
+ inputModel,
136
+ };
137
+ },
138
+
139
+ template: `
140
+ <OrCombinedInput v-bind="args">
141
+ ${args.default}
142
+ ${args.addon}
143
+ </OrCombinedInput>
144
+ `,
145
+ });
146
+
147
+ export const Default = Template.bind({});
148
+
149
+ Default.args = {
150
+ // Slots
151
+ default: `
152
+ <template v-slot="props">
153
+ <OrSelect
154
+ class="basis-1/4"
155
+ v-model="selectModel"
156
+ v-bind="props"
157
+ :options="options"
158
+ />
159
+
160
+ <OrInput
161
+ class="basis-3/4"
162
+ v-model="inputModel"
163
+ v-bind="props"
164
+ />
165
+ </template>
166
+ `,
167
+
168
+ // Props
169
+ label: 'Combined Input',
170
+ };
171
+
172
+ export const Addon = Template.bind({});
173
+
174
+ Addon.args = {
175
+ ...Default.args,
176
+
177
+ // Slots
178
+ addon: `
179
+ <template v-slot:addon>
180
+ <OrIcon icon="info" />
181
+ </template>
182
+ `,
183
+ };
184
+
185
+ export const Hint = Template.bind({});
186
+
187
+ Hint.args = {
188
+ ...Default.args,
189
+
190
+ // Props
191
+ hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
192
+ };
193
+
194
+ export const Error = Template.bind({});
195
+
196
+ Error.args = {
197
+ ...Default.args,
198
+
199
+ // Props
200
+ error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
201
+ };
@@ -0,0 +1,127 @@
1
+ <template>
2
+ <div
3
+ ref="root"
4
+ :class="rootStyles"
5
+ >
6
+ <template v-if="label">
7
+ <OrLabel
8
+ :variant="'input'"
9
+ :required="required"
10
+ :disabled="disabled"
11
+ >
12
+ {{ label }}
13
+
14
+ <template v-slot:addon>
15
+ <slot name="addon" />
16
+ </template>
17
+ </OrLabel>
18
+ </template>
19
+
20
+ <div :class="controlGroup">
21
+ <slot
22
+ :size="size"
23
+ :error="!!error"
24
+ :required="required"
25
+ :readonly="readonly"
26
+ :disabled="disabled"
27
+ :disable-default-styles="disableDefaultStyles"
28
+ />
29
+ </div>
30
+
31
+ <template v-if="!error">
32
+ <template v-if="hint">
33
+ <OrHint :disabled="disabled">
34
+ {{ hint }}
35
+ </OrHint>
36
+ </template>
37
+ </template>
38
+
39
+ <template v-if="typeof error === 'string'">
40
+ <OrError :disabled="disabled">
41
+ {{ error }}
42
+ </OrError>
43
+ </template>
44
+ </div>
45
+ </template>
46
+
47
+ <script lang="ts">
48
+ import { computed, defineComponent, PropType, ref } from 'vue-demi';
49
+ import { OrErrorV3 as OrError } from '../or-error-v3';
50
+ import { OrHintV3 as OrHint } from '../or-hint-v3';
51
+ import { OrLabelV3 as OrLabel } from '../or-label-v3';
52
+ import { CombinedInputSize } from './props';
53
+ import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
54
+
55
+ export default defineComponent({
56
+ name: 'OrCombinedInput',
57
+
58
+ components: {
59
+ OrError,
60
+ OrHint,
61
+ OrLabel,
62
+ },
63
+
64
+ props: {
65
+ size: {
66
+ type: String as PropType<CombinedInputSize>,
67
+ default: CombinedInputSize.M,
68
+ },
69
+
70
+ label: {
71
+ type: String,
72
+ default: undefined,
73
+ },
74
+
75
+ hint: {
76
+ type: String,
77
+ default: undefined,
78
+ },
79
+
80
+ error: {
81
+ type: [String, Boolean],
82
+ default: undefined,
83
+ },
84
+
85
+ required: {
86
+ type: Boolean,
87
+ default: false,
88
+ },
89
+
90
+ readonly: {
91
+ type: Boolean,
92
+ default: false,
93
+ },
94
+
95
+ disabled: {
96
+ type: Boolean,
97
+ default: false,
98
+ },
99
+
100
+ disableDefaultStyles: {
101
+ type: Boolean,
102
+ default: false,
103
+ },
104
+ },
105
+
106
+ setup(props, context) {
107
+ // Refs
108
+ const root = ref<HTMLElement>();
109
+
110
+ // Styles
111
+ const rootStyles = computed(() => [
112
+ 'or-combined-input',
113
+ ...CombinedInputRoot,
114
+ ]);
115
+
116
+ const controlGroup = computed(() => [
117
+ ...CombinedInputControlGroup,
118
+ ]);
119
+
120
+ return {
121
+ root,
122
+ rootStyles,
123
+ controlGroup,
124
+ };
125
+ },
126
+ });
127
+ </script>
@@ -0,0 +1,2 @@
1
+ export { default as OrCombinedInputV3 } from './OrCombinedInput.vue';
2
+ export * from './props';
@@ -0,0 +1 @@
1
+ export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
@@ -0,0 +1,25 @@
1
+ export const CombinedInputRoot: string[] = [
2
+ // Layout
3
+ 'layout-column',
4
+
5
+ // Spacing
6
+ 'gap-xs',
7
+ ];
8
+
9
+ export const CombinedInputControlGroup: string[] = [
10
+ // Layout
11
+ 'layout-row',
12
+
13
+ // Box
14
+ 'w-full',
15
+
16
+ // Shape (.or-input-box)
17
+ '[&_.or-input-box]:first-child:rounded-r-0',
18
+ '[&_.or-input-box]:intermediate-child:rounded-0',
19
+ '[&_.or-input-box]:last-child:rounded-l-0',
20
+
21
+ // Spacing (.or-input-box)
22
+ '[&_.or-input-box]:first-child:mr-[-1px]',
23
+ '[&_.or-input-box]:intermediate-child:border-x-0',
24
+ '[&_.or-input-box]:last-child:ml-[-1px]',
25
+ ];
@@ -6,7 +6,7 @@
6
6
  <div :class="['layout-row', 'gap-sm+']">
7
7
  <OrInlineInputBox
8
8
  :size="size"
9
- :invalid="invalid"
9
+ :invalid="!!error"
10
10
  >
11
11
  <input
12
12
  ref="control"
@@ -40,7 +40,7 @@
40
40
  </template>
41
41
  </div>
42
42
 
43
- <template v-if="!invalid">
43
+ <template v-if="!error">
44
44
  <template v-if="hint || maxLength">
45
45
  <OrHint>
46
46
  {{ hint }}
@@ -55,7 +55,7 @@
55
55
  </template>
56
56
  </template>
57
57
 
58
- <template v-else>
58
+ <template v-if="typeof error === 'string'">
59
59
  <OrError>
60
60
  {{ error }}
61
61
 
@@ -127,7 +127,7 @@ export default defineComponent({
127
127
  },
128
128
 
129
129
  error: {
130
- type: String,
130
+ type: [String, Boolean],
131
131
  default: undefined,
132
132
  },
133
133
  },
@@ -188,8 +188,6 @@ export default defineComponent({
188
188
  const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
189
189
  const maxLength = computed(() => controlAttributes.maxlength);
190
190
 
191
- const invalid = computed(() => !!props.error);
192
-
193
191
  const activated = ref(false);
194
192
 
195
193
  // Handlers
@@ -248,7 +246,6 @@ export default defineComponent({
248
246
  draftModelValue,
249
247
  currentLength,
250
248
  maxLength,
251
- invalid,
252
249
  activated,
253
250
  onFocus,
254
251
  onBlur,
@@ -9,8 +9,8 @@ export const InlineInputRoot: string[] = [
9
9
  ];
10
10
 
11
11
  export const InlineInputControl: string[] = [
12
- // Layout
13
- 'grow',
12
+ // Box
13
+ 'w-full',
14
14
 
15
15
  // Typography
16
16
  'typography-inherit',
@@ -6,7 +6,7 @@
6
6
  <div :class="['layout-row', 'gap-sm+']">
7
7
  <OrInlineInputBox
8
8
  :size="'s'"
9
- :invalid="invalid"
9
+ :invalid="!!error"
10
10
  >
11
11
  <textarea
12
12
  ref="control"
@@ -39,7 +39,7 @@
39
39
  </template>
40
40
  </div>
41
41
 
42
- <template v-if="!invalid">
42
+ <template v-if="!error">
43
43
  <template v-if="hint || maxLength">
44
44
  <OrHint>
45
45
  {{ hint }}
@@ -54,7 +54,7 @@
54
54
  </template>
55
55
  </template>
56
56
 
57
- <template v-else>
57
+ <template v-if="typeof error === 'string'">
58
58
  <OrError>
59
59
  {{ error }}
60
60
 
@@ -115,7 +115,7 @@ export default defineComponent({
115
115
  },
116
116
 
117
117
  error: {
118
- type: String,
118
+ type: [String, Boolean],
119
119
  default: undefined,
120
120
  },
121
121
  },
@@ -175,8 +175,6 @@ export default defineComponent({
175
175
  const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
176
176
  const maxLength = computed(() => controlAttributes.maxlength);
177
177
 
178
- const invalid = computed(() => !!props.error);
179
-
180
178
  const activated = ref(false);
181
179
 
182
180
  // Handlers
@@ -235,7 +233,6 @@ export default defineComponent({
235
233
  draftModelValue,
236
234
  currentLength,
237
235
  maxLength,
238
- invalid,
239
236
  activated,
240
237
  onFocus,
241
238
  onBlur,
@@ -7,8 +7,8 @@ export const InlineTextareaRoot: string[] = [
7
7
  ];
8
8
 
9
9
  export const InlineTextareaControl: string[] = [
10
- // Layout
11
- 'grow',
10
+ // Box
11
+ 'w-full',
12
12
 
13
13
  // Typography
14
14
  'typography-inherit',
@@ -21,7 +21,7 @@
21
21
  <OrInputBox
22
22
  :variant="disableDefaultStyles ? 'unstyled' : 'styled'"
23
23
  :size="size"
24
- :invalid="invalid"
24
+ :invalid="!!error"
25
25
  :readonly="readonly || loading"
26
26
  :disabled="disabled"
27
27
  >
@@ -82,7 +82,7 @@
82
82
  </div>
83
83
  </OrInputBox>
84
84
 
85
- <template v-if="!invalid">
85
+ <template v-if="!error">
86
86
  <template v-if="hint || maxLength">
87
87
  <OrHint :disabled="disabled">
88
88
  {{ hint }}
@@ -97,7 +97,7 @@
97
97
  </template>
98
98
  </template>
99
99
 
100
- <template v-else>
100
+ <template v-if="typeof error === 'string'">
101
101
  <OrError :disabled="disabled">
102
102
  {{ error }}
103
103
 
@@ -175,7 +175,7 @@ export default defineComponent({
175
175
  },
176
176
 
177
177
  error: {
178
- type: String,
178
+ type: [String, Boolean],
179
179
  default: undefined,
180
180
  },
181
181
 
@@ -259,8 +259,6 @@ export default defineComponent({
259
259
  const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
260
260
  const maxLength = computed(() => controlAttributes.maxlength);
261
261
 
262
- const invalid = computed(() => !!props.error);
263
-
264
262
  const disclosed = ref(false);
265
263
 
266
264
  const { isMobile } = useResponsive();
@@ -283,7 +281,6 @@ export default defineComponent({
283
281
  proxyModelValue,
284
282
  currentLength,
285
283
  maxLength,
286
- invalid,
287
284
  disclosed,
288
285
  isMobile,
289
286
  focus,
@@ -7,8 +7,8 @@ export const InputRoot: string[] = [
7
7
  ];
8
8
 
9
9
  export const InputControl: string[] = [
10
- // Layout
11
- 'grow',
10
+ // Box
11
+ 'w-full',
12
12
 
13
13
  // Typography
14
14
  'typography-inherit',