@onereach/ui-components 2.74.13-beta.2365.0 → 2.74.13

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 (202) hide show
  1. package/dist/bundled/v2/{OrButton-0a9470c0.js → OrButton-0242b4c0.js} +1 -1
  2. package/dist/bundled/v2/{OrCardCollection-638bc4a8.js → OrCardCollection-04e767c2.js} +2 -2
  3. package/dist/bundled/v2/{OrConfirm-f7ade1d1.js → OrConfirm-a76ff6d2.js} +2 -2
  4. package/dist/bundled/v2/{OrInlineInput-20e93482.js → OrInlineInput-9304f205.js} +11 -9
  5. package/dist/bundled/v2/{OrInlineTextarea-e849ae9b.js → OrInlineTextarea-e0d28fc6.js} +11 -9
  6. package/dist/bundled/v2/{OrInput-15c2b072.js → OrInput-b8511a0c.js} +13 -12
  7. package/dist/bundled/v2/{OrInputBox-9a31d211.js → OrInputBox-e54dcef9.js} +12 -2
  8. package/dist/bundled/v2/{OrLoader-cf28bfa6.js → OrLoader-6bec8824.js} +10 -2
  9. package/dist/bundled/v2/{OrPagination-95f37111.js → OrPagination-166592a5.js} +1 -1
  10. package/dist/bundled/v2/{OrProgress-15fe65ec.js → OrProgress-01123d1f.js} +6 -2
  11. package/dist/bundled/v2/{OrSearch-8df5d7fd.js → OrSearch-60b64568.js} +2 -2
  12. package/dist/bundled/v2/{OrSelect-3ac5eefe.js → OrSelect-752bdd3b.js} +10 -11
  13. package/dist/bundled/v2/{OrSwitch-34f79eb1.js → OrSwitch-aa0da6b9.js} +1 -1
  14. package/dist/bundled/v2/{OrTextarea-53d756e4.js → OrTextarea-5fdf63d0.js} +12 -11
  15. package/dist/bundled/v2/components/index.js +15 -16
  16. package/dist/bundled/v2/components/or-button-v3/index.js +3 -2
  17. package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -7
  18. package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -6
  19. package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
  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 +7 -5
  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 +1 -2
  24. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
  25. package/dist/bundled/v2/components/or-input-v3/index.js +3 -4
  26. package/dist/bundled/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
  27. package/dist/bundled/v2/components/or-loader-v3/index.js +2 -1
  28. package/dist/bundled/v2/components/or-pagination-v3/index.js +4 -4
  29. package/dist/bundled/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
  30. package/dist/bundled/v2/components/or-progress-v3/index.js +1 -1
  31. package/dist/bundled/v2/components/or-search-v3/index.js +4 -5
  32. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
  33. package/dist/bundled/v2/components/or-select-v3/index.js +4 -5
  34. package/dist/bundled/v2/components/or-switch-v3/index.js +3 -2
  35. package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
  36. package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
  37. package/dist/bundled/v2/components/or-toast-v3/index.js +2 -2
  38. package/dist/bundled/v2/index.js +16 -17
  39. package/dist/bundled/v2/{types-0e3ca5b9.js → types-e494517f.js} +1 -1
  40. package/dist/bundled/v3/{OrButton-a5b98ee2.js → OrButton-452d3149.js} +1 -1
  41. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-e75f9a10.js → OrButton.vue_vue_type_script_lang-7d4f420c.js} +2 -2
  42. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-990fb52d.js → OrCardCollection.vue_vue_type_script_lang-e71a0ea0.js} +3 -3
  43. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-8ac01851.js → OrConfirm.vue_vue_type_script_lang-b550c3d3.js} +4 -4
  44. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-18853dd7.js → OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js} +5 -3
  45. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js → OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js} +5 -3
  46. package/dist/bundled/v3/{OrInput-2c10c351.js → OrInput-6d49f353.js} +5 -5
  47. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ce8b23e8.js → OrInput.vue_vue_type_script_lang-af68d0e7.js} +9 -8
  48. package/dist/bundled/v3/{OrInputBox-44f37541.js → OrInputBox-358d4856.js} +1 -1
  49. package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +1 -1
  50. package/dist/bundled/v3/{OrLoader-663e062d.js → OrLoader-be9d72cd.js} +11 -11
  51. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-8fc03499.js → OrLoader.vue_vue_type_script_lang-65971a23.js} +8 -0
  52. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b6e7592e.js → OrPagination.vue_vue_type_script_lang-a79c359c.js} +2 -2
  53. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-52f660d6.js → OrProgress.vue_vue_type_script_lang-c387db0b.js} +4 -0
  54. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-db6e6f7f.js → OrSearch.vue_vue_type_script_lang-8c37e5a7.js} +3 -3
  55. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-52193c4c.js → OrSelect.vue_vue_type_script_lang-35ac0247.js} +8 -9
  56. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-f6039c8f.js → OrSwitch.vue_vue_type_script_lang-fd43080e.js} +2 -2
  57. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-b2899ba6.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +7 -6
  58. package/dist/bundled/v3/{OrToastContainer-5c99d3ce.js → OrToastContainer-6a85ebf8.js} +1 -1
  59. package/dist/bundled/v3/components/index.js +19 -20
  60. package/dist/bundled/v3/components/or-button-v3/index.js +4 -3
  61. package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -11
  62. package/dist/bundled/v3/components/or-confirm-v3/index.js +9 -10
  63. package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
  64. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
  65. package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
  66. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
  67. package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
  68. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
  69. package/dist/bundled/v3/components/or-input-v3/index.js +5 -6
  70. package/dist/bundled/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
  71. package/dist/bundled/v3/components/or-loader-v3/index.js +2 -1
  72. package/dist/bundled/v3/components/or-pagination-v3/index.js +6 -6
  73. package/dist/bundled/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
  74. package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
  75. package/dist/bundled/v3/components/or-search-v3/index.js +7 -8
  76. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
  77. package/dist/bundled/v3/components/or-select-v3/index.js +7 -8
  78. package/dist/bundled/v3/components/or-switch-v3/index.js +4 -3
  79. package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
  80. package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
  81. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  82. package/dist/bundled/v3/index.js +65 -65
  83. package/dist/bundled/v3/{types-5a9ace3b.js → types-661a05a5.js} +2 -2
  84. package/dist/esm/v2/{OrButton-49f7f20b.js → OrButton-c5ec96e7.js} +1 -1
  85. package/dist/esm/v2/{OrCardCollection-ffa4e842.js → OrCardCollection-f7856175.js} +3 -3
  86. package/dist/esm/v2/{OrConfirm-73a902ce.js → OrConfirm-98d62065.js} +2 -2
  87. package/dist/esm/v2/{OrInlineInput-b003ddde.js → OrInlineInput-df02ab5d.js} +11 -9
  88. package/dist/esm/v2/{OrInlineTextarea-6349b529.js → OrInlineTextarea-ad120656.js} +11 -9
  89. package/dist/esm/v2/{OrInput-67eb3178.js → OrInput-3bb91436.js} +13 -12
  90. package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js → esm/v2/OrInputBox-53d1f66d.js} +53 -3
  91. package/dist/esm/v2/{OrLoader-8f1f3af1.js → OrLoader-b11ed386.js} +10 -2
  92. package/dist/esm/v2/{OrPagination-81d4476a.js → OrPagination-a9233838.js} +1 -1
  93. package/dist/esm/v2/{OrProgress-b7d1c689.js → OrProgress-ff999494.js} +6 -2
  94. package/dist/esm/v2/{OrSearch-a5cab600.js → OrSearch-dad9b02f.js} +2 -2
  95. package/dist/esm/v2/{OrSelect-2773ebeb.js → OrSelect-7ef80130.js} +10 -11
  96. package/dist/esm/v2/{OrSwitch-1bd5b4d1.js → OrSwitch-6129b63d.js} +1 -1
  97. package/dist/esm/v2/{OrTextarea-0bf9bf33.js → OrTextarea-0a64f718.js} +12 -11
  98. package/dist/esm/v2/components/index.js +15 -16
  99. package/dist/esm/v2/components/or-button-v3/index.js +3 -2
  100. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -8
  101. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -6
  102. package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
  103. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  104. package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
  105. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  106. package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
  107. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +7 -5
  108. package/dist/esm/v2/components/or-input-v3/index.js +3 -4
  109. package/dist/esm/v2/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
  110. package/dist/esm/v2/components/or-loader-v3/index.js +2 -1
  111. package/dist/esm/v2/components/or-pagination-v3/index.js +4 -4
  112. package/dist/esm/v2/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
  113. package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
  114. package/dist/esm/v2/components/or-search-v3/index.js +4 -5
  115. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +7 -5
  116. package/dist/esm/v2/components/or-select-v3/index.js +4 -5
  117. package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
  118. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
  119. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
  120. package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
  121. package/dist/esm/v2/index.js +15 -16
  122. package/dist/esm/v2/{types-d5127999.js → types-e9a54dcf.js} +1 -1
  123. package/dist/esm/v3/{OrButton-eab948fb.js → OrButton-9f059df6.js} +1 -1
  124. package/dist/esm/v3/{OrCardCollection-274a413e.js → OrCardCollection-4cb41408.js} +2 -2
  125. package/dist/esm/v3/{OrConfirm-c73aa589.js → OrConfirm-19da64d1.js} +2 -2
  126. package/dist/esm/v3/{OrInlineInput-65127ed7.js → OrInlineInput-cd3753ee.js} +9 -7
  127. package/dist/esm/v3/{OrInlineTextarea-176a2701.js → OrInlineTextarea-4c5b0390.js} +9 -7
  128. package/dist/esm/v3/{OrInput-86c9d300.js → OrInput-ae9f6871.js} +10 -8
  129. package/dist/esm/v3/{OrLoader-3a918ce9.js → OrLoader-18f66bca.js} +18 -10
  130. package/dist/esm/v3/{OrPagination-94c2095f.js → OrPagination-183803e7.js} +1 -1
  131. package/dist/esm/v3/{OrProgress-639ed5e8.js → OrProgress-f881a58a.js} +15 -10
  132. package/dist/esm/v3/{OrSearch-1a92f8cf.js → OrSearch-6f6b4fcd.js} +1 -1
  133. package/dist/esm/v3/{OrSelect-e1443e71.js → OrSelect-96bf9b63.js} +9 -9
  134. package/dist/esm/v3/{OrSwitch-0e92c92c.js → OrSwitch-2a23a9b8.js} +1 -1
  135. package/dist/esm/v3/{OrTextarea-14a6b456.js → OrTextarea-42d21f77.js} +9 -7
  136. package/dist/esm/v3/components/index.js +14 -14
  137. package/dist/esm/v3/components/or-button-v3/index.js +3 -2
  138. package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
  139. package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
  140. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +7 -5
  141. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  142. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +7 -5
  143. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  144. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +7 -5
  145. package/dist/esm/v3/components/or-input-v3/index.js +2 -2
  146. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +2 -0
  147. package/dist/esm/v3/components/or-loader-v3/index.js +2 -1
  148. package/dist/esm/v3/components/or-pagination-v3/index.js +4 -4
  149. package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +2 -0
  150. package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
  151. package/dist/esm/v3/components/or-search-v3/index.js +3 -3
  152. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +7 -5
  153. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  154. package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
  155. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +7 -5
  156. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  157. package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
  158. package/dist/esm/v3/index.js +14 -14
  159. package/dist/esm/v3/{types-f6f8ab6b.js → types-b9717ff2.js} +1 -1
  160. package/package.json +4 -3
  161. package/src/components/or-inline-input-v3/OrInlineInput.vue +7 -4
  162. package/src/components/or-inline-input-v3/styles.ts +2 -2
  163. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +7 -4
  164. package/src/components/or-inline-textarea-v3/styles.ts +2 -2
  165. package/src/components/or-input-v3/OrInput.vue +7 -4
  166. package/src/components/or-input-v3/styles.ts +2 -2
  167. package/src/components/or-loader-v3/OrLoader.vue +12 -2
  168. package/src/components/or-progress-v3/OrProgress.vue +9 -2
  169. package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
  170. package/src/components/or-select-v3/OrSelect.vue +6 -4
  171. package/src/components/or-select-v3/styles.ts +1 -4
  172. package/src/components/or-textarea-v3/OrTextarea.vue +7 -4
  173. package/src/components/or-textarea-v3/styles.ts +2 -2
  174. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
  175. package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
  176. package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -146
  177. package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
  178. package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
  179. package/dist/bundled/v2/props-78496a2d.js +0 -12
  180. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
  181. package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
  182. package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -128
  183. package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
  184. package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
  185. package/dist/bundled/v3/props-78496a2d.js +0 -12
  186. package/dist/esm/v2/OrInputBox-5c4b3104.js +0 -43
  187. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
  188. package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
  189. package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -143
  190. package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
  191. package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
  192. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -105
  193. package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
  194. package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -127
  195. package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
  196. package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
  197. package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
  198. package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
  199. package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -127
  200. package/src/components/or-combined-input-v3/index.ts +0 -2
  201. package/src/components/or-combined-input-v3/props.ts +0 -1
  202. package/src/components/or-combined-input-v3/styles.ts +0 -25
@@ -25,7 +25,7 @@
25
25
  :class="[popoverState === 'open' && 'rounded-b-0']"
26
26
  :variant="disableDefaultStyles ? 'unstyled' : 'styled'"
27
27
  :size="size"
28
- :invalid="!!error"
28
+ :invalid="invalid"
29
29
  :readonly="readonly"
30
30
  :disabled="disabled"
31
31
  >
@@ -202,7 +202,7 @@
202
202
  </OrPopover>
203
203
  </OrInputBox>
204
204
 
205
- <template v-if="!error">
205
+ <template v-if="!invalid">
206
206
  <template v-if="hint">
207
207
  <OrHint :disabled="disabled">
208
208
  {{ hint }}
@@ -210,7 +210,7 @@
210
210
  </template>
211
211
  </template>
212
212
 
213
- <template v-if="typeof error === 'string'">
213
+ <template v-else>
214
214
  <OrError :disabled="disabled">
215
215
  {{ error }}
216
216
  </OrError>
@@ -306,7 +306,7 @@ export default defineComponent({
306
306
  },
307
307
 
308
308
  error: {
309
- type: [String, Boolean],
309
+ type: String,
310
310
  default: undefined,
311
311
  },
312
312
 
@@ -416,6 +416,7 @@ export default defineComponent({
416
416
  }
417
417
  });
418
418
 
419
+ const invalid = computed(() => !!props.error);
419
420
  const readonly = computed(() => context.attrs.readonly as boolean);
420
421
 
421
422
  const selection = computed(() => {
@@ -518,6 +519,7 @@ export default defineComponent({
518
519
  noSearchResultsStyles,
519
520
  controlId,
520
521
  proxyModelValue,
522
+ invalid,
521
523
  readonly,
522
524
  selection,
523
525
  searchText,
@@ -8,10 +8,7 @@ export const SelectRoot: string[] = [
8
8
 
9
9
  export const SelectControl: string[] = [
10
10
  // Layout
11
- 'layout-row',
12
-
13
- // Box
14
- 'w-full',
11
+ 'layout-row grow',
15
12
 
16
13
  // Overflow
17
14
  'overflow-hidden',
@@ -20,7 +20,7 @@
20
20
 
21
21
  <OrInputBox
22
22
  :size="size"
23
- :invalid="!!error"
23
+ :invalid="invalid"
24
24
  :readonly="readonly"
25
25
  :disabled="disabled"
26
26
  >
@@ -40,7 +40,7 @@
40
40
  />
41
41
  </OrInputBox>
42
42
 
43
- <template v-if="!error">
43
+ <template v-if="!invalid">
44
44
  <template v-if="hint || maxLength">
45
45
  <OrHint :disabled="disabled">
46
46
  {{ hint }}
@@ -55,7 +55,7 @@
55
55
  </template>
56
56
  </template>
57
57
 
58
- <template v-if="typeof error === 'string'">
58
+ <template v-else>
59
59
  <OrError :disabled="disabled">
60
60
  {{ error }}
61
61
 
@@ -122,7 +122,7 @@ export default defineComponent({
122
122
  },
123
123
 
124
124
  error: {
125
- type: [String, Boolean],
125
+ type: String,
126
126
  default: undefined,
127
127
  },
128
128
 
@@ -191,6 +191,8 @@ export default defineComponent({
191
191
  const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
192
192
  const maxLength = computed(() => controlAttributes.maxlength);
193
193
 
194
+ const invalid = computed(() => !!props.error);
195
+
194
196
  // Methods
195
197
  function focus(): void {
196
198
  control.value?.focus();
@@ -209,6 +211,7 @@ export default defineComponent({
209
211
  proxyModelValue,
210
212
  currentLength,
211
213
  maxLength,
214
+ invalid,
212
215
  focus,
213
216
  blur,
214
217
  };
@@ -7,8 +7,8 @@ export const TextareaRoot: string[] = [
7
7
  ];
8
8
 
9
9
  export const TextareaControl: string[] = [
10
- // Box
11
- 'w-full',
10
+ // Layout
11
+ 'grow',
12
12
 
13
13
  // Typography
14
14
  'typography-inherit',
@@ -1,105 +0,0 @@
1
- import { PropType } from 'vue-demi';
2
- import { CombinedInputSize } from './props';
3
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
- root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
- rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
- controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
7
- }> & import("@vue/composition-api").Data, {}, {}, {
8
- size: {
9
- type: PropType<CombinedInputSize>;
10
- default: CombinedInputSize;
11
- };
12
- label: {
13
- type: StringConstructor;
14
- default: undefined;
15
- };
16
- hint: {
17
- type: StringConstructor;
18
- default: undefined;
19
- };
20
- error: {
21
- type: (BooleanConstructor | StringConstructor)[];
22
- default: undefined;
23
- };
24
- required: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- readonly: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- disabled: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- disableDefaultStyles: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- }, import("@vue/composition-api").ExtractPropTypes<{
41
- size: {
42
- type: PropType<CombinedInputSize>;
43
- default: CombinedInputSize;
44
- };
45
- label: {
46
- type: StringConstructor;
47
- default: undefined;
48
- };
49
- hint: {
50
- type: StringConstructor;
51
- default: undefined;
52
- };
53
- error: {
54
- type: (BooleanConstructor | StringConstructor)[];
55
- default: undefined;
56
- };
57
- required: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- readonly: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- };
65
- disabled: {
66
- type: BooleanConstructor;
67
- default: boolean;
68
- };
69
- disableDefaultStyles: {
70
- type: BooleanConstructor;
71
- default: boolean;
72
- };
73
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
74
- size: CombinedInputSize;
75
- label: string;
76
- hint: string;
77
- error: string | boolean;
78
- required: boolean;
79
- readonly: boolean;
80
- disabled: boolean;
81
- disableDefaultStyles: boolean;
82
- } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
83
- root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
84
- rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
85
- controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
86
- }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
87
- size: CombinedInputSize;
88
- label: string;
89
- hint: string;
90
- error: string | boolean;
91
- required: boolean;
92
- readonly: boolean;
93
- disabled: boolean;
94
- disableDefaultStyles: boolean;
95
- } & {}, {
96
- size: CombinedInputSize;
97
- label: string;
98
- hint: string;
99
- error: string | boolean;
100
- required: boolean;
101
- readonly: boolean;
102
- disabled: boolean;
103
- disableDefaultStyles: boolean;
104
- }, true>);
105
- export default _default;
@@ -1,2 +0,0 @@
1
- export { default as OrCombinedInputV3 } from './OrCombinedInput.vue';
2
- export * from './props';
@@ -1,146 +0,0 @@
1
- import '../../index-fa6eb4ca.js';
2
- import { O as OrError } from '../../OrError-52f668a4.js';
3
- import { O as OrHint } from '../../OrHint-fde53334.js';
4
- import { O as OrLabel } from '../../OrLabel-aff09c39.js';
5
- import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
6
- import { a as InputBoxSize } from '../../props-78496a2d.js';
7
- export { a as CombinedInputSize } from '../../props-78496a2d.js';
8
- import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
9
- import 'vue';
10
-
11
- const CombinedInputRoot = [
12
- // Layout
13
- 'layout-column',
14
- // Spacing
15
- 'gap-xs'];
16
- const CombinedInputControlGroup = [
17
- // Layout
18
- 'layout-row',
19
- // Box
20
- 'w-full',
21
- // Shape (.or-input-box)
22
- '[&_.or-input-box]:first-child:rounded-r-0', '[&_.or-input-box]:intermediate-child:rounded-0', '[&_.or-input-box]:last-child:rounded-l-0',
23
- // Spacing (.or-input-box)
24
- '[&_.or-input-box]:first-child:mr-[-1px]', '[&_.or-input-box]:intermediate-child:border-x-0', '[&_.or-input-box]:last-child:ml-[-1px]'];
25
-
26
- var script = defineComponent({
27
- name: 'OrCombinedInput',
28
- components: {
29
- OrError,
30
- OrHint,
31
- OrLabel
32
- },
33
- props: {
34
- size: {
35
- type: String,
36
- default: InputBoxSize.M
37
- },
38
- label: {
39
- type: String,
40
- default: undefined
41
- },
42
- hint: {
43
- type: String,
44
- default: undefined
45
- },
46
- error: {
47
- type: [String, Boolean],
48
- default: undefined
49
- },
50
- required: {
51
- type: Boolean,
52
- default: false
53
- },
54
- readonly: {
55
- type: Boolean,
56
- default: false
57
- },
58
- disabled: {
59
- type: Boolean,
60
- default: false
61
- },
62
- disableDefaultStyles: {
63
- type: Boolean,
64
- default: false
65
- }
66
- },
67
- setup(props, context) {
68
- // Refs
69
- const root = ref();
70
- // Styles
71
- const rootStyles = computed(() => ['or-combined-input', ...CombinedInputRoot]);
72
- const controlGroup = computed(() => [...CombinedInputControlGroup]);
73
- return {
74
- root,
75
- rootStyles,
76
- controlGroup
77
- };
78
- }
79
- });
80
-
81
- /* script */
82
- const __vue_script__ = script;
83
-
84
- /* template */
85
- var __vue_render__ = function () {
86
- var _vm = this;
87
- var _h = _vm.$createElement;
88
- var _c = _vm._self._c || _h;
89
- return _c('div', {
90
- ref: "root",
91
- class: _vm.rootStyles
92
- }, [_vm.label ? [_c('OrLabel', {
93
- attrs: {
94
- "variant": 'input',
95
- "required": _vm.required,
96
- "disabled": _vm.disabled
97
- },
98
- scopedSlots: _vm._u([{
99
- key: "addon",
100
- fn: function () {
101
- return [_vm._t("addon")];
102
- },
103
- proxy: true
104
- }], null, true)
105
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('div', {
106
- class: _vm.controlGroup
107
- }, [_vm._t("default", null, {
108
- "size": _vm.size,
109
- "error": !!_vm.error,
110
- "required": _vm.required,
111
- "readonly": _vm.readonly,
112
- "disabled": _vm.disabled,
113
- "disableDefaultStyles": _vm.disableDefaultStyles
114
- })], 2), _vm._v(" "), !_vm.error ? [_vm.hint ? [_c('OrHint', {
115
- attrs: {
116
- "disabled": _vm.disabled
117
- }
118
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : _vm._e(), _vm._v(" "), typeof _vm.error === 'string' ? [_c('OrError', {
119
- attrs: {
120
- "disabled": _vm.disabled
121
- }
122
- }, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])] : _vm._e()], 2);
123
- };
124
- var __vue_staticRenderFns__ = [];
125
-
126
- /* style */
127
- const __vue_inject_styles__ = undefined;
128
- /* scoped */
129
- const __vue_scope_id__ = undefined;
130
- /* module identifier */
131
- const __vue_module_identifier__ = undefined;
132
- /* functional template */
133
- const __vue_is_functional_template__ = false;
134
- /* style inject */
135
-
136
- /* style inject SSR */
137
-
138
- /* style inject shadow dom */
139
-
140
- const __vue_component__ = /*#__PURE__*/normalizeComponent({
141
- render: __vue_render__,
142
- staticRenderFns: __vue_staticRenderFns__
143
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
144
- var __vue_component__$1 = __vue_component__;
145
-
146
- export { __vue_component__$1 as OrCombinedInputV3 };
@@ -1 +0,0 @@
1
- export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
@@ -1,2 +0,0 @@
1
- export declare const CombinedInputRoot: string[];
2
- export declare const CombinedInputControlGroup: string[];
@@ -1,12 +0,0 @@
1
- var InputBoxVariant;
2
- (function (InputBoxVariant) {
3
- InputBoxVariant["Styled"] = "styled";
4
- InputBoxVariant["Unstyled"] = "unstyled";
5
- })(InputBoxVariant || (InputBoxVariant = {}));
6
- var InputBoxSize;
7
- (function (InputBoxSize) {
8
- InputBoxSize["M"] = "m";
9
- InputBoxSize["S"] = "s";
10
- })(InputBoxSize || (InputBoxSize = {}));
11
-
12
- export { InputBoxVariant as I, InputBoxSize as a };
@@ -1,105 +0,0 @@
1
- import { PropType } from 'vue-demi';
2
- import { CombinedInputSize } from './props';
3
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
- root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
- rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
- controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
7
- }> & import("@vue/composition-api").Data, {}, {}, {
8
- size: {
9
- type: PropType<CombinedInputSize>;
10
- default: CombinedInputSize;
11
- };
12
- label: {
13
- type: StringConstructor;
14
- default: undefined;
15
- };
16
- hint: {
17
- type: StringConstructor;
18
- default: undefined;
19
- };
20
- error: {
21
- type: (BooleanConstructor | StringConstructor)[];
22
- default: undefined;
23
- };
24
- required: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- readonly: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
- disabled: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- disableDefaultStyles: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- }, import("@vue/composition-api").ExtractPropTypes<{
41
- size: {
42
- type: PropType<CombinedInputSize>;
43
- default: CombinedInputSize;
44
- };
45
- label: {
46
- type: StringConstructor;
47
- default: undefined;
48
- };
49
- hint: {
50
- type: StringConstructor;
51
- default: undefined;
52
- };
53
- error: {
54
- type: (BooleanConstructor | StringConstructor)[];
55
- default: undefined;
56
- };
57
- required: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- readonly: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- };
65
- disabled: {
66
- type: BooleanConstructor;
67
- default: boolean;
68
- };
69
- disableDefaultStyles: {
70
- type: BooleanConstructor;
71
- default: boolean;
72
- };
73
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
74
- size: CombinedInputSize;
75
- label: string;
76
- hint: string;
77
- error: string | boolean;
78
- required: boolean;
79
- readonly: boolean;
80
- disabled: boolean;
81
- disableDefaultStyles: boolean;
82
- } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
83
- root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
84
- rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
85
- controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
86
- }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
87
- size: CombinedInputSize;
88
- label: string;
89
- hint: string;
90
- error: string | boolean;
91
- required: boolean;
92
- readonly: boolean;
93
- disabled: boolean;
94
- disableDefaultStyles: boolean;
95
- } & {}, {
96
- size: CombinedInputSize;
97
- label: string;
98
- hint: string;
99
- error: string | boolean;
100
- required: boolean;
101
- readonly: boolean;
102
- disabled: boolean;
103
- disableDefaultStyles: boolean;
104
- }, true>);
105
- export default _default;
@@ -1,2 +0,0 @@
1
- export { default as OrCombinedInputV3 } from './OrCombinedInput.vue';
2
- export * from './props';
@@ -1,128 +0,0 @@
1
- import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, Fragment } from 'vue';
2
- import '../../OrHint-5d5e4d99.js';
3
- import '../../OrLabel-c556887e.js';
4
- import { s as script$1 } from '../../OrError.vue_vue_type_script_lang-53648a65.js';
5
- import { s as script$2 } from '../../OrHint.vue_vue_type_script_lang-e322f61e.js';
6
- import { s as script$3 } from '../../OrLabel.vue_vue_type_script_lang-191d2304.js';
7
- import { a as InputBoxSize } from '../../props-78496a2d.js';
8
- export { a as CombinedInputSize } from '../../props-78496a2d.js';
9
-
10
- const CombinedInputRoot = [
11
- // Layout
12
- 'layout-column',
13
- // Spacing
14
- 'gap-xs'];
15
- const CombinedInputControlGroup = [
16
- // Layout
17
- 'layout-row',
18
- // Box
19
- 'w-full',
20
- // Shape (.or-input-box)
21
- '[&_.or-input-box]:first-child:rounded-r-0', '[&_.or-input-box]:intermediate-child:rounded-0', '[&_.or-input-box]:last-child:rounded-l-0',
22
- // Spacing (.or-input-box)
23
- '[&_.or-input-box]:first-child:mr-[-1px]', '[&_.or-input-box]:intermediate-child:border-x-0', '[&_.or-input-box]:last-child:ml-[-1px]'];
24
-
25
- var script = defineComponent({
26
- name: 'OrCombinedInput',
27
- components: {
28
- OrError: script$1,
29
- OrHint: script$2,
30
- OrLabel: script$3
31
- },
32
- props: {
33
- size: {
34
- type: String,
35
- default: InputBoxSize.M
36
- },
37
- label: {
38
- type: String,
39
- default: undefined
40
- },
41
- hint: {
42
- type: String,
43
- default: undefined
44
- },
45
- error: {
46
- type: [String, Boolean],
47
- default: undefined
48
- },
49
- required: {
50
- type: Boolean,
51
- default: false
52
- },
53
- readonly: {
54
- type: Boolean,
55
- default: false
56
- },
57
- disabled: {
58
- type: Boolean,
59
- default: false
60
- },
61
- disableDefaultStyles: {
62
- type: Boolean,
63
- default: false
64
- }
65
- },
66
- setup(props, context) {
67
- // Refs
68
- const root = ref();
69
- // Styles
70
- const rootStyles = computed(() => ['or-combined-input', ...CombinedInputRoot]);
71
- const controlGroup = computed(() => [...CombinedInputControlGroup]);
72
- return {
73
- root,
74
- rootStyles,
75
- controlGroup
76
- };
77
- }
78
- });
79
-
80
- function render(_ctx, _cache, $props, $setup, $data, $options) {
81
- const _component_OrLabel = resolveComponent("OrLabel");
82
- const _component_OrHint = resolveComponent("OrHint");
83
- const _component_OrError = resolveComponent("OrError");
84
- return openBlock(), createElementBlock("div", {
85
- ref: "root",
86
- class: normalizeClass(_ctx.rootStyles)
87
- }, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
88
- key: 0,
89
- variant: 'input',
90
- required: _ctx.required,
91
- disabled: _ctx.disabled
92
- }, {
93
- addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
94
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label) + " ", 1 /* TEXT */)]),
95
-
96
- _: 3 /* FORWARDED */
97
- }, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true), createElementVNode("div", {
98
- class: normalizeClass(_ctx.controlGroup)
99
- }, [renderSlot(_ctx.$slots, "default", {
100
- size: _ctx.size,
101
- error: !!_ctx.error,
102
- required: _ctx.required,
103
- readonly: _ctx.readonly,
104
- disabled: _ctx.disabled,
105
- disableDefaultStyles: _ctx.disableDefaultStyles
106
- })], 2 /* CLASS */), !_ctx.error ? (openBlock(), createElementBlock(Fragment, {
107
- key: 1
108
- }, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
109
- key: 0,
110
- disabled: _ctx.disabled
111
- }, {
112
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
113
-
114
- _: 1 /* STABLE */
115
- }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), typeof _ctx.error === 'string' ? (openBlock(), createBlock(_component_OrError, {
116
- key: 2,
117
- disabled: _ctx.disabled
118
- }, {
119
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
120
-
121
- _: 1 /* STABLE */
122
- }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
123
- }
124
-
125
- script.render = render;
126
- script.__file = "src/components/or-combined-input-v3/OrCombinedInput.vue";
127
-
128
- export { script as OrCombinedInputV3 };
@@ -1 +0,0 @@
1
- export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
@@ -1,2 +0,0 @@
1
- export declare const CombinedInputRoot: string[];
2
- export declare const CombinedInputControlGroup: string[];
@@ -1,12 +0,0 @@
1
- var InputBoxVariant;
2
- (function (InputBoxVariant) {
3
- InputBoxVariant["Styled"] = "styled";
4
- InputBoxVariant["Unstyled"] = "unstyled";
5
- })(InputBoxVariant || (InputBoxVariant = {}));
6
- var InputBoxSize;
7
- (function (InputBoxSize) {
8
- InputBoxSize["M"] = "m";
9
- InputBoxSize["S"] = "s";
10
- })(InputBoxSize || (InputBoxSize = {}));
11
-
12
- export { InputBoxVariant as I, InputBoxSize as a };