@onereach/ui-components 2.69.7-beta.2155.0 → 2.69.7-beta.2168.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 (213) hide show
  1. package/dist/bundled/v2/{OrButton-ec551691.js → OrButton-4b99c680.js} +1 -14
  2. package/dist/bundled/v2/{OrCardCollection-1b20a00f.js → OrCardCollection-aa6b8553.js} +2 -2
  3. package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-4f665252.js} +3 -3
  4. package/dist/bundled/v2/{OrConfirm-0a34d7e9.js → OrConfirm-dc704484.js} +2 -2
  5. package/dist/bundled/v2/{OrInlineInput-9add2e1e.js → OrInlineInput-6af4fe07.js} +2 -2
  6. package/dist/bundled/v2/{OrInlineTextarea-9c6f9044.js → OrInlineTextarea-ddf84267.js} +2 -2
  7. package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-e7b864c1.js} +20 -13
  8. package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-de8ce3ac.js} +2 -12
  9. package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-a60fc5c0.js} +3 -3
  10. package/dist/bundled/v2/{OrSearch-76b002cf.js → OrSearch-ad84b460.js} +2 -2
  11. package/dist/bundled/v2/{OrSelect-ff9e4fbd.js → OrSelect-b393f564.js} +15 -7
  12. package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-fe9b7de7.js} +3 -3
  13. package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-59fba95c.js} +14 -11
  14. package/dist/bundled/v2/components/index.d.ts +0 -1
  15. package/dist/bundled/v2/components/index.js +14 -14
  16. package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  17. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  18. package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -5
  19. package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
  20. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  21. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  22. package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
  23. package/dist/bundled/v2/components/or-combined-input-v3/index.js +149 -0
  24. package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
  25. package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
  26. package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -4
  27. package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
  28. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
  29. package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
  30. package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
  31. package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
  32. package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
  33. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  34. package/dist/bundled/v2/components/or-select-v3/index.d.ts +0 -1
  35. package/dist/bundled/v2/components/or-select-v3/index.js +5 -4
  36. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  37. package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
  38. package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
  39. package/dist/bundled/v2/index.js +15 -15
  40. package/dist/bundled/v2/props-78496a2d.js +12 -0
  41. package/dist/bundled/v3/{OrButton-e38644d0.js → OrButton-a671b8a1.js} +2 -3
  42. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-08f0dea0.js → OrButton.vue_vue_type_script_lang-b0dc31ca.js} +1 -13
  43. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ff722f3f.js → OrCardCollection.vue_vue_type_script_lang-ece2eab6.js} +3 -3
  44. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ed99973c.js → OrConfirm.vue_vue_type_script_lang-fcbdf2c6.js} +4 -4
  45. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-84c521f9.js} +2 -2
  46. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js} +2 -2
  47. package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-4ccc2c7b.js} +17 -14
  48. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f6d793d3.js → OrInput.vue_vue_type_script_lang-96ce8121.js} +5 -4
  49. package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-27aa1cec.js} +1 -1
  50. package/dist/{esm/v2/OrInputBox-4d5a318d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-28353c10.js} +4 -55
  51. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-014ad470.js → OrSearch.vue_vue_type_script_lang-71fbb2fc.js} +3 -3
  52. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-05b03858.js → OrSelect.vue_vue_type_script_lang-363605c5.js} +17 -9
  53. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-9f2a0234.js} +5 -4
  54. package/dist/bundled/v3/components/index.d.ts +0 -1
  55. package/dist/bundled/v3/components/index.js +14 -14
  56. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  57. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  58. package/dist/bundled/v3/components/or-card-collection-v3/index.js +9 -8
  59. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  60. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  61. package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
  62. package/dist/bundled/v3/components/or-combined-input-v3/index.js +132 -0
  63. package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
  64. package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
  65. package/dist/bundled/v3/components/or-confirm-v3/index.js +8 -7
  66. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
  67. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
  68. package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
  69. package/dist/bundled/v3/components/or-input-v3/index.js +4 -3
  70. package/dist/bundled/v3/components/or-search-v3/index.js +6 -5
  71. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  72. package/dist/bundled/v3/components/or-select-v3/index.d.ts +0 -1
  73. package/dist/bundled/v3/components/or-select-v3/index.js +6 -5
  74. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  75. package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
  76. package/dist/bundled/v3/index.js +188 -264
  77. package/dist/bundled/v3/props-78496a2d.js +12 -0
  78. package/dist/esm/v2/{OrButton-c02a6c26.js → OrButton-357e1e2c.js} +1 -14
  79. package/dist/esm/v2/{OrCardCollection-46a25600.js → OrCardCollection-fe34fef3.js} +3 -3
  80. package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-ea48d156.js} +3 -3
  81. package/dist/esm/v2/{OrConfirm-31dfa3e0.js → OrConfirm-3bead0be.js} +2 -2
  82. package/dist/esm/v2/{OrInlineInput-cfeeea33.js → OrInlineInput-e32f322f.js} +2 -2
  83. package/dist/esm/v2/{OrInlineTextarea-897b5377.js → OrInlineTextarea-7296fbdb.js} +2 -2
  84. package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-db0e2368.js} +20 -13
  85. package/dist/esm/v2/OrInputBox-9d1193b5.js +43 -0
  86. package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-328ae841.js} +3 -2
  87. package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-6e10f071.js} +3 -3
  88. package/dist/esm/v2/{OrSearch-2f260b09.js → OrSearch-9d9459f5.js} +2 -2
  89. package/dist/esm/v2/{OrSelect-651bb83e.js → OrSelect-e6aa1b2a.js} +15 -7
  90. package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-c628d2c5.js} +3 -3
  91. package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-52354386.js} +14 -11
  92. package/dist/esm/v2/components/index.d.ts +0 -1
  93. package/dist/esm/v2/components/index.js +14 -14
  94. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  95. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  96. package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -5
  97. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
  98. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  99. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  100. package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
  101. package/dist/esm/v2/components/or-combined-input-v3/index.js +147 -0
  102. package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
  103. package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
  104. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -4
  105. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  106. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  107. package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
  108. package/dist/esm/v2/components/or-input-v3/index.js +3 -2
  109. package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
  110. package/dist/esm/v2/components/or-search-v3/index.js +4 -3
  111. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  112. package/dist/esm/v2/components/or-select-v3/index.d.ts +0 -1
  113. package/dist/esm/v2/components/or-select-v3/index.js +5 -4
  114. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  115. package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
  116. package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
  117. package/dist/esm/v2/index.js +14 -14
  118. package/dist/esm/v3/{OrButton-2ca1996a.js → OrButton-bb6bf8a9.js} +2 -15
  119. package/dist/esm/v3/{OrCardCollection-167ed657.js → OrCardCollection-8a84f69c.js} +2 -2
  120. package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-d1b516c8.js} +3 -2
  121. package/dist/esm/v3/{OrConfirm-492012c6.js → OrConfirm-5bd1f4db.js} +2 -2
  122. package/dist/esm/v3/{OrInlineInput-31026cd0.js → OrInlineInput-00f0d1b8.js} +2 -2
  123. package/dist/esm/v3/{OrInlineTextarea-b28c3d8c.js → OrInlineTextarea-c1babfda.js} +2 -2
  124. package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-2b447f81.js} +18 -15
  125. package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-ef9d4c6e.js} +3 -2
  126. package/dist/esm/v3/{OrSearch-e5a2e93e.js → OrSearch-d72cfc74.js} +1 -1
  127. package/dist/esm/v3/{OrSelect-28a175dc.js → OrSelect-e6e006d5.js} +14 -7
  128. package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-cc797a48.js} +3 -3
  129. package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-ed35cd0b.js} +16 -14
  130. package/dist/esm/v3/components/index.d.ts +0 -1
  131. package/dist/esm/v3/components/index.js +12 -13
  132. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  133. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  134. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  135. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
  136. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
  137. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
  138. package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
  139. package/dist/esm/v3/components/or-combined-input-v3/index.js +132 -0
  140. package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
  141. package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
  142. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  143. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  144. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  145. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  146. package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
  147. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  148. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  149. package/dist/esm/v3/components/or-select-v3/index.d.ts +0 -1
  150. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  151. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  152. package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
  153. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  154. package/dist/esm/v3/index.js +12 -13
  155. package/package.json +2 -2
  156. package/src/components/index.ts +0 -1
  157. package/src/components/or-button-v3/OrButton.stories3.ts +0 -4
  158. package/src/components/or-button-v3/OrButton.vue +0 -6
  159. package/src/components/or-button-v3/styles.ts +1 -15
  160. package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
  161. package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
  162. package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +202 -0
  163. package/src/components/or-combined-input-v3/OrCombinedInput.vue +134 -0
  164. package/src/components/or-combined-input-v3/index.ts +2 -0
  165. package/src/components/or-combined-input-v3/props.ts +1 -0
  166. package/src/components/or-combined-input-v3/styles.ts +25 -0
  167. package/src/components/or-inline-input-v3/styles.ts +2 -2
  168. package/src/components/or-inline-textarea-v3/styles.ts +2 -2
  169. package/src/components/or-input-v3/OrInput.vue +28 -22
  170. package/src/components/or-input-v3/styles.ts +2 -2
  171. package/src/components/or-radio-v3/OrRadio.vue +1 -1
  172. package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
  173. package/src/components/or-select-v3/OrSelect.vue +9 -3
  174. package/src/components/or-select-v3/index.ts +0 -1
  175. package/src/components/or-select-v3/styles.ts +4 -1
  176. package/src/components/or-select-v3/types.ts +1 -1
  177. package/src/components/or-switch-v3/OrSwitch.vue +1 -1
  178. package/src/components/or-textarea-v3/OrTextarea.vue +5 -1
  179. package/src/components/or-textarea-v3/styles.ts +2 -2
  180. package/dist/bundled/v2/OrPagination-ccaef550.js +0 -297
  181. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  182. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  183. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +0 -2
  184. package/dist/bundled/v2/components/or-pagination-v3/index.js +0 -20
  185. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +0 -3
  186. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +0 -4
  187. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-5246de48.js +0 -180
  188. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  189. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  190. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +0 -2
  191. package/dist/bundled/v3/components/or-pagination-v3/index.js +0 -22
  192. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +0 -3
  193. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +0 -4
  194. package/dist/esm/v2/OrPagination-179098fb.js +0 -297
  195. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  196. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  197. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +0 -2
  198. package/dist/esm/v2/components/or-pagination-v3/index.js +0 -18
  199. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +0 -3
  200. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +0 -4
  201. package/dist/esm/v3/OrPagination-a84ad212.js +0 -258
  202. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  203. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  204. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +0 -2
  205. package/dist/esm/v3/components/or-pagination-v3/index.js +0 -17
  206. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +0 -3
  207. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +0 -4
  208. package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
  209. package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -87
  210. package/src/components/or-pagination-v3/OrPagination.vue +0 -261
  211. package/src/components/or-pagination-v3/index.ts +0 -2
  212. package/src/components/or-pagination-v3/styles.ts +0 -30
  213. package/src/components/or-pagination-v3/types.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.69.7-beta.2155.0",
3
+ "version": "2.69.7-beta.2168.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.33.0",
41
+ "@onereach/styles": "^2.33.1-beta.2168.0",
42
42
  "@splidejs/splide": "4.0.6",
43
43
  "@types/lodash": "4.14.173",
44
44
  "@types/sortablejs": "1.10.7",
@@ -53,7 +53,6 @@ export * from './or-notification-v3';
53
53
  export * from './or-overflow-menu';
54
54
  export * from './or-overlay';
55
55
  export * from './or-overlay-v3';
56
- export * from './or-pagination-v3';
57
56
  export * from './or-popover-v3';
58
57
  export * from './or-progress';
59
58
  export * from './or-progress-v3';
@@ -36,10 +36,6 @@ export default {
36
36
  options: Object.values(ButtonColor),
37
37
  },
38
38
 
39
- activated: {
40
- table: { disable: true },
41
- },
42
-
43
39
  disabled: {
44
40
  control: { type: 'boolean' },
45
41
  },
@@ -4,7 +4,6 @@
4
4
  v-bind="$attrs"
5
5
  :class="rootStyles"
6
6
  :type="type"
7
- :activated="activated ? '' : null"
8
7
  :disabled="disabled"
9
8
  @click="$emit('click', $event)"
10
9
  @focus="$emit('focus', $event)"
@@ -64,11 +63,6 @@ export default defineComponent({
64
63
  default: ButtonColor.Primary,
65
64
  },
66
65
 
67
- activated: {
68
- type: Boolean,
69
- default: false,
70
- },
71
-
72
66
  disabled: {
73
67
  type: Boolean,
74
68
  default: false,
@@ -116,19 +116,5 @@ export const ButtonRootColors: Record<`${ButtonColor}-${ButtonVariant}`, string[
116
116
  'dark:theme-preset-4-error-dark',
117
117
  ],
118
118
 
119
- 'inherit-link': [
120
- // Typography
121
- 'typography-caption-regular',
122
-
123
- // Typography (activated)
124
- 'activated:typography-caption-bold',
125
-
126
- // Theme
127
- 'theme-foreground-inherit',
128
- 'dark:theme-foreground-inherit',
129
-
130
- // Theme (activated)
131
- 'activated:theme-foreground-default',
132
- 'dark:activated:theme-foreground-default-dark',
133
- ],
119
+ 'inherit-link': [],
134
120
  };
@@ -4,9 +4,9 @@
4
4
  :class="rootStyles"
5
5
  >
6
6
  <input
7
- v-bind="$attrs"
8
7
  :id="controlId"
9
8
  v-model="proxyModelValue"
9
+ v-bind="$attrs"
10
10
  :class="controlStyles"
11
11
  type="checkbox"
12
12
  :value="inputValue"
@@ -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,202 @@
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
+ // Attrs
16
+ readonly: {
17
+ control: { type: 'boolean' },
18
+ },
19
+
20
+ // Slots
21
+ default: {
22
+ type: {
23
+ name: 'string',
24
+ required: true,
25
+ },
26
+
27
+ control: { type: 'text' },
28
+ },
29
+
30
+ addon: {
31
+ type: {
32
+ name: 'string',
33
+ required: false,
34
+ },
35
+
36
+ control: { type: 'text' },
37
+ },
38
+
39
+ // Props
40
+ size: {
41
+ control: { type: 'select' },
42
+ options: Object.values(CombinedInputSize),
43
+ },
44
+
45
+ label: {
46
+ control: { type: 'text' },
47
+ },
48
+
49
+ hint: {
50
+ control: { type: 'text' },
51
+ },
52
+
53
+ error: {
54
+ control: { type: 'text' },
55
+ },
56
+
57
+ required: {
58
+ control: { type: 'boolean' },
59
+ },
60
+
61
+ disabled: {
62
+ control: { type: 'boolean' },
63
+ },
64
+
65
+ disableDefaultStyles: {
66
+ control: { type: 'boolean' },
67
+ },
68
+ },
69
+
70
+ parameters: {
71
+ docs: {
72
+ page: OrCombinedInputDocs,
73
+ },
74
+
75
+ design: {
76
+ type: 'figma',
77
+ url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
78
+ },
79
+ },
80
+ } as Meta<typeof OrCombinedInput>;
81
+
82
+ const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
83
+ components: {
84
+ OrCombinedInput,
85
+ OrIcon,
86
+ OrInput,
87
+ OrSelect,
88
+ },
89
+
90
+ setup() {
91
+ // State
92
+ const options = Array.from<string, SelectOption>([
93
+ 'Alfa',
94
+ 'Bravo',
95
+ 'Charlie',
96
+ 'Delta',
97
+ 'Echo',
98
+ 'Foxtrot',
99
+ 'Golf',
100
+ 'Hotel',
101
+ 'India',
102
+ 'Juliett',
103
+ 'Kilo',
104
+ 'Lima',
105
+ 'Mike',
106
+ 'November',
107
+ 'Oscar',
108
+ 'Papa',
109
+ 'Quebec',
110
+ 'Romeo',
111
+ 'Sierra',
112
+ 'Tango',
113
+ 'Uniform',
114
+ 'Victor',
115
+ 'Whiskey',
116
+ 'X-Ray',
117
+ 'Yankee',
118
+ 'Zulu',
119
+ ], (item) => ({
120
+ value: item.toLowerCase(),
121
+ label: item,
122
+ }));
123
+
124
+ const selectModel = ref<string>();
125
+ const inputModel = ref<string>();
126
+
127
+ // Effects
128
+ watch([selectModel, inputModel], (values) => {
129
+ console.debug(values);
130
+ });
131
+
132
+ return {
133
+ args,
134
+ options,
135
+ selectModel,
136
+ inputModel,
137
+ };
138
+ },
139
+
140
+ template: `
141
+ <OrCombinedInput v-bind="args">
142
+ ${args.default}
143
+ ${args.addon}
144
+ </OrCombinedInput>
145
+ `,
146
+ });
147
+
148
+ export const Default = Template.bind({});
149
+
150
+ Default.args = {
151
+ // Slots
152
+ default: `
153
+ <template v-slot="props">
154
+ <OrSelect
155
+ class="basis-1/4"
156
+ v-model="selectModel"
157
+ v-bind="props"
158
+ :options="options"
159
+ />
160
+
161
+ <OrInput
162
+ class="basis-3/4"
163
+ v-model="inputModel"
164
+ v-bind="props"
165
+ />
166
+ </template>
167
+ `,
168
+
169
+ // Props
170
+ label: 'Combined Input',
171
+ };
172
+
173
+ export const Addon = Template.bind({});
174
+
175
+ Addon.args = {
176
+ ...Default.args,
177
+
178
+ // Slots
179
+ addon: `
180
+ <template v-slot:addon>
181
+ <OrIcon icon="info" />
182
+ </template>
183
+ `,
184
+ };
185
+
186
+ export const Hint = Template.bind({});
187
+
188
+ Hint.args = {
189
+ ...Default.args,
190
+
191
+ // Props
192
+ hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
193
+ };
194
+
195
+ export const Error = Template.bind({});
196
+
197
+ Error.args = {
198
+ ...Default.args,
199
+
200
+ // Props
201
+ error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
202
+ };
@@ -0,0 +1,134 @@
1
+ <template>
2
+ <div
3
+ ref="root"
4
+ v-bind="$attrs"
5
+ :class="rootStyles"
6
+ >
7
+ <template v-if="label">
8
+ <OrLabel
9
+ :variant="'input'"
10
+ :required="required"
11
+ :disabled="disabled"
12
+ >
13
+ {{ label }}
14
+
15
+ <template v-slot:addon>
16
+ <slot name="addon" />
17
+ </template>
18
+ </OrLabel>
19
+ </template>
20
+
21
+ <div :class="controlGroup">
22
+ <slot
23
+ :size="size"
24
+ :required="required"
25
+ :readonly="readonly"
26
+ :disabled="disabled"
27
+ :disable-default-styles="disableDefaultStyles"
28
+ />
29
+ </div>
30
+
31
+ <template v-if="!invalid">
32
+ <template v-if="hint">
33
+ <OrHint :disabled="disabled">
34
+ {{ hint }}
35
+ </OrHint>
36
+ </template>
37
+ </template>
38
+
39
+ <template v-else>
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 { useClassAttribute } from '../../hooks';
50
+ import { OrErrorV3 as OrError } from '../or-error-v3';
51
+ import { OrHintV3 as OrHint } from '../or-hint-v3';
52
+ import { OrLabelV3 as OrLabel } from '../or-label-v3';
53
+ import { CombinedInputSize } from './props';
54
+ import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
55
+
56
+ export default defineComponent({
57
+ name: 'OrCombinedInput',
58
+
59
+ components: {
60
+ OrError,
61
+ OrHint,
62
+ OrLabel,
63
+ },
64
+
65
+ inheritAttrs: false,
66
+
67
+ props: {
68
+ size: {
69
+ type: String as PropType<CombinedInputSize>,
70
+ default: CombinedInputSize.M,
71
+ },
72
+
73
+ label: {
74
+ type: String,
75
+ default: undefined,
76
+ },
77
+
78
+ hint: {
79
+ type: String,
80
+ default: undefined,
81
+ },
82
+
83
+ error: {
84
+ type: String,
85
+ default: undefined,
86
+ },
87
+
88
+ required: {
89
+ type: Boolean,
90
+ default: false,
91
+ },
92
+
93
+ disabled: {
94
+ type: Boolean,
95
+ default: false,
96
+ },
97
+
98
+ disableDefaultStyles: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
102
+ },
103
+
104
+ setup(props, context) {
105
+ // Refs
106
+ const root = ref<HTMLElement>();
107
+
108
+ // Styles
109
+ const classAttribute = useClassAttribute();
110
+
111
+ const rootStyles = computed(() => [
112
+ 'or-combined-input',
113
+ ...CombinedInputRoot,
114
+ classAttribute.value,
115
+ ]);
116
+
117
+ const controlGroup = computed(() => [
118
+ ...CombinedInputControlGroup,
119
+ ]);
120
+
121
+ // State
122
+ const invalid = computed(() => !!props.error);
123
+ const readonly = computed(() => context.attrs.readonly as boolean);
124
+
125
+ return {
126
+ root,
127
+ rootStyles,
128
+ controlGroup,
129
+ invalid,
130
+ readonly,
131
+ };
132
+ },
133
+ });
134
+ </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
+ ];
@@ -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',
@@ -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',
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  ref="root"
4
+ v-bind="$attrs"
4
5
  :class="rootStyles"
5
6
  >
6
7
  <template v-if="label">
@@ -29,46 +30,51 @@
29
30
  :id="controlId"
30
31
  ref="input"
31
32
  v-model="proxyModelValue"
32
- v-bind="$attrs"
33
33
  :class="controlStyles"
34
34
  :type="type === 'password' && disclosed ? 'text' : type"
35
35
  :placeholder="placeholder"
36
36
  :required="required"
37
37
  :disabled="disabled"
38
+
39
+ :readonly="readonly"
40
+ :maxlength="maxLength"
41
+
38
42
  @keydown="$emit('keydown', $event)"
39
43
  @keyup="$emit('keyup', $event)"
40
44
  @focus="$emit('focus', $event)"
41
45
  @blur="$emit('blur', $event)"
42
46
  >
43
47
 
44
- <div :class="['layout-row']">
45
- <template v-if="type === 'password'">
46
- <OrIconButton
47
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
48
- :color="'inherit'"
49
- :disabled="disabled"
50
- @click.stop="disclosed = !disclosed"
51
- />
52
- </template>
53
-
54
- <template v-if="type === 'search'">
55
- <template v-if="modelValue">
48
+ <template v-if="type !== 'text'">
49
+ <div :class="['layout-row']">
50
+ <template v-if="type === 'password'">
56
51
  <OrIconButton
57
- :icon="'close'"
52
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
58
53
  :color="'inherit'"
59
54
  :disabled="disabled"
60
- @click.stop="$emit('update:modelValue', '')"
55
+ @click.stop="disclosed = !disclosed"
61
56
  />
62
57
  </template>
63
58
 
64
- <template v-else>
65
- <OrIcon
66
- :icon="'search'"
67
- :variant="'outlined'"
68
- />
59
+ <template v-if="type === 'search'">
60
+ <template v-if="modelValue">
61
+ <OrIconButton
62
+ :icon="'close'"
63
+ :color="'inherit'"
64
+ :disabled="disabled"
65
+ @click.stop="$emit('update:modelValue', '')"
66
+ />
67
+ </template>
68
+
69
+ <template v-else>
70
+ <OrIcon
71
+ :icon="'search'"
72
+ :variant="'outlined'"
73
+ />
74
+ </template>
69
75
  </template>
70
- </template>
71
- </div>
76
+ </div>
77
+ </template>
72
78
  </OrInputBox>
73
79
 
74
80
  <template v-if="!invalid">
@@ -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',
@@ -4,9 +4,9 @@
4
4
  :class="rootStyles"
5
5
  >
6
6
  <input
7
- v-bind="$attrs"
8
7
  :id="controlId"
9
8
  v-model="proxyModelValue"
9
+ v-bind="$attrs"
10
10
  :class="controlStyles"
11
11
  type="radio"
12
12
  :value="inputValue"
@@ -108,6 +108,10 @@ export default {
108
108
  control: { type: 'boolean' },
109
109
  },
110
110
 
111
+ disableDefaultStyles: {
112
+ control: { type: 'boolean' },
113
+ },
114
+
111
115
  enableSearch: {
112
116
  control: { type: 'boolean' },
113
117
  },
@@ -24,6 +24,7 @@
24
24
  v-dropdown-open="toggle"
25
25
  v-dropdown-close="close"
26
26
  :class="[popoverState === 'open' && 'rounded-b-0']"
27
+ :variant="disableDefaultStyles ? 'unstyled' : 'styled'"
27
28
  :size="size"
28
29
  :invalid="invalid"
29
30
  :readonly="readonly"
@@ -38,7 +39,7 @@
38
39
  @focus="$emit('focus', $event)"
39
40
  @blur="$emit('blur', $event)"
40
41
  >
41
- <template v-if="proxyModelValue !== undefined">
42
+ <template v-if="proxyModelValue && proxyModelValue.length > 0">
42
43
  <template v-if="multiple">
43
44
  <slot
44
45
  name="valueTemplate"
@@ -265,12 +266,12 @@ export default defineComponent({
265
266
  },
266
267
 
267
268
  modelValue: {
268
- type: [String, Number, Array] as PropType<string | number | (string | number)[]>,
269
+ type: [String, Array] as PropType<string | string[]>,
269
270
  default: undefined,
270
271
  },
271
272
 
272
273
  value: { // TODO: Remove Vue 2 fallback
273
- type: [String, Number, Array] as PropType<string | number | (string | number)[]>,
274
+ type: [String, Array] as PropType<string | string[]>,
274
275
  default: undefined,
275
276
  },
276
277
 
@@ -314,6 +315,11 @@ export default defineComponent({
314
315
  default: false,
315
316
  },
316
317
 
318
+ disableDefaultStyles: {
319
+ type: Boolean,
320
+ default: false,
321
+ },
322
+
317
323
  enableSearch: {
318
324
  type: Boolean,
319
325
  default: false,
@@ -1,3 +1,2 @@
1
1
  export { default as OrSelectV3 } from './OrSelect.vue';
2
2
  export * from './props';
3
- export * from './types';
@@ -8,7 +8,10 @@ export const SelectRoot: string[] = [
8
8
 
9
9
  export const SelectControl: string[] = [
10
10
  // Layout
11
- 'layout-row grow',
11
+ 'layout-row',
12
+
13
+ // Box
14
+ 'w-full',
12
15
 
13
16
  // Overflow
14
17
  'overflow-hidden',
@@ -1,5 +1,5 @@
1
1
  export interface SelectOption {
2
- value: string | number;
2
+ value: string;
3
3
  label: string;
4
4
  }
5
5