@onereach/ui-components 5.0.1-beta.3131.0 → 5.0.1

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 (273) hide show
  1. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -3
  2. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +5 -5
  3. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
  4. package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
  5. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
  6. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
  7. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
  8. package/dist/bundled/v2/components/OrLabelV3/OrLabel.js +3 -7
  9. package/dist/bundled/v2/components/OrLabelV3/OrLabel.vue.d.ts +5 -16
  10. package/dist/bundled/v2/components/OrLabelV3/props.d.ts +1 -2
  11. package/dist/bundled/v2/components/OrLabelV3/props.js +0 -1
  12. package/dist/bundled/v2/components/OrLabelV3/styles.d.ts +2 -2
  13. package/dist/bundled/v2/components/OrLabelV3/styles.js +5 -14
  14. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +24 -142
  15. package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +0 -14
  16. package/dist/bundled/v2/components/OrSelectV3/styles.d.ts +1 -3
  17. package/dist/bundled/v2/components/OrSelectV3/styles.js +2 -12
  18. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +1 -1
  19. package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -1
  20. package/dist/bundled/v2/components/index.js +1 -1
  21. package/dist/bundled/v2/directives/dropdown-close.js +2 -0
  22. package/dist/bundled/v2/directives/dropdown-open.js +3 -1
  23. package/dist/bundled/v2/index.js +2 -2
  24. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c93da401.js → OrCardCollection.vue_vue_type_script_lang-40124ef0.js} +1 -1
  25. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-38736023.js → OrCheckbox.vue_vue_type_script_lang-eeb6b419.js} +1 -1
  26. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-51bbd047.js → OrCheckboxGroup.vue_vue_type_script_lang-3b25afe5.js} +2 -2
  27. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-e67747a4.js → OrCheckboxTree.vue_vue_type_script_lang-ab30a5c4.js} +1 -1
  28. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-0e34e3c4.js → OrCode.vue_vue_type_script_lang-a99a2768.js} +1 -1
  29. package/dist/bundled/v3/{OrCombinedInput.vue_vue_type_script_lang-230d4d9c.js → OrCombinedInput.vue_vue_type_script_lang-cb7a88f3.js} +1 -1
  30. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-383e286f.js → OrConfirm.vue_vue_type_script_lang-3f6484d7.js} +1 -1
  31. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-ae3aabc6.js → OrDatePicker.vue_vue_type_script_lang-15cde361.js} +2 -2
  32. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-911a50a3.js → OrDateTimePicker.vue_vue_type_script_lang-e3f9a844.js} +2 -2
  33. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-eff1f44b.js → OrDateTimePickerPopoverHeader-d9eef487.js} +1 -1
  34. package/dist/bundled/v3/{OrFormGroup.vue_vue_type_script_lang-d67479fc.js → OrFormGroup.vue_vue_type_script_lang-1c6844d6.js} +1 -1
  35. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ec80afeb.js → OrInput.vue_vue_type_script_lang-0ddddd27.js} +1 -1
  36. package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-fcdfd80d.js → OrLabel.vue_vue_type_script_lang-3e11ab8a.js} +3 -6
  37. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-08ab2220.js → OrRadio.vue_vue_type_script_lang-48c2bc6b.js} +1 -1
  38. package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-d84948fc.js → OrRadioGroup.vue_vue_type_script_lang-d7f6f8ca.js} +2 -2
  39. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-12bbade9.js → OrSearch.vue_vue_type_script_lang-495149b0.js} +1 -1
  40. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-5f42a363.js → OrSelect.vue_vue_type_script_lang-cb556343.js} +8 -36
  41. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-14b4ec0a.js → OrSwitch.vue_vue_type_script_lang-ee55263f.js} +1 -1
  42. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-00010fb4.js → OrTagInput.vue_vue_type_script_lang-9f594179.js} +1 -1
  43. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-a7cfbe82.js → OrTextarea.vue_vue_type_script_lang-7562cca1.js} +1 -1
  44. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a3554386.js → OrTimePicker.vue_vue_type_script_lang-7de3a004.js} +2 -2
  45. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +5 -5
  46. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +4 -4
  47. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +6 -6
  48. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +5 -5
  49. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +4 -4
  50. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +3 -3
  51. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -5
  52. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +3 -3
  53. package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -2
  54. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +3 -3
  55. package/dist/bundled/v3/components/OrCodeV3/index.js +2 -2
  56. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +3 -3
  57. package/dist/bundled/v3/components/OrCombinedInputV3/index.js +2 -2
  58. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +4 -4
  59. package/dist/bundled/v3/components/OrConfirmV3/index.js +3 -3
  60. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +4 -4
  61. package/dist/bundled/v3/components/OrDatePickerV3/index.js +3 -3
  62. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
  63. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
  64. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +3 -3
  65. package/dist/bundled/v3/components/OrFormGroupV3/index.js +2 -2
  66. package/dist/bundled/v3/components/OrInputV3/OrInput.js +3 -3
  67. package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
  68. package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +3 -4
  69. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +3 -12
  70. package/dist/bundled/v3/components/OrLabelV3/index.js +1 -1
  71. package/dist/bundled/v3/components/OrLabelV3/props.d.ts +1 -2
  72. package/dist/bundled/v3/components/OrLabelV3/props.js +0 -1
  73. package/dist/bundled/v3/components/OrLabelV3/styles.d.ts +2 -2
  74. package/dist/bundled/v3/components/OrLabelV3/styles.js +5 -14
  75. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +5 -5
  76. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +4 -4
  77. package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +3 -3
  78. package/dist/bundled/v3/components/OrRadioV3/index.js +2 -2
  79. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +4 -4
  80. package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
  81. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +43 -93
  82. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +0 -7
  83. package/dist/bundled/v3/components/OrSelectV3/index.js +4 -4
  84. package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +1 -3
  85. package/dist/bundled/v3/components/OrSelectV3/styles.js +2 -12
  86. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +3 -3
  87. package/dist/bundled/v3/components/OrSwitchV3/index.js +2 -2
  88. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +3 -3
  89. package/dist/bundled/v3/components/OrTagInputV3/index.js +2 -2
  90. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
  91. package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
  92. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +4 -4
  93. package/dist/bundled/v3/components/OrTimePickerV3/index.js +3 -3
  94. package/dist/bundled/v3/components/index.js +21 -21
  95. package/dist/bundled/v3/directives/dropdown-close.js +2 -0
  96. package/dist/bundled/v3/directives/dropdown-open.js +3 -1
  97. package/dist/bundled/v3/index.js +22 -22
  98. package/dist/esm/v2/{OrCardCollection-10ae5e3a.js → OrCardCollection-9aaa7a3c.js} +1 -1
  99. package/dist/esm/v2/{OrCheckbox-ae903071.js → OrCheckbox-db66b4ea.js} +3 -4
  100. package/dist/esm/v2/{OrCheckboxGroup-74dc7c1d.js → OrCheckboxGroup-a04f27fe.js} +2 -2
  101. package/dist/esm/v2/{OrCheckboxTree-19f5d69b.js → OrCheckboxTree-f48db82f.js} +1 -1
  102. package/dist/esm/v2/{OrCode-65f78f9f.js → OrCode-dd915faf.js} +1 -1
  103. package/dist/esm/v2/{OrCombinedInput-2639e3e1.js → OrCombinedInput-45187323.js} +1 -1
  104. package/dist/esm/v2/{OrConfirm-d2ae622a.js → OrConfirm-a0875502.js} +1 -1
  105. package/dist/esm/v2/{OrDatePicker-3eef3059.js → OrDatePicker-0b119ef4.js} +3 -3
  106. package/dist/esm/v2/{OrDateTimePicker-aeebd5ea.js → OrDateTimePicker-061c7472.js} +1 -1
  107. package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-5044ee23.js → OrDateTimePicker.vue_rollup-plugin-vue_script-18dea32e.js} +3 -3
  108. package/dist/esm/v2/{OrDateTimePickerPopoverHeader-83eb5ad1.js → OrDateTimePickerPopoverHeader-30ec0bf4.js} +1 -1
  109. package/dist/esm/v2/{OrFormGroup-9000fcdf.js → OrFormGroup-29a514db.js} +1 -1
  110. package/dist/esm/v2/{OrInput-fbed0b61.js → OrInput-99ccfff7.js} +3 -3
  111. package/dist/esm/v2/{OrLabel-4a3d8904.js → OrLabel-63380256.js} +6 -18
  112. package/dist/esm/v2/{OrRadio-0fc3ae14.js → OrRadio-b32dfbfe.js} +1 -1
  113. package/dist/esm/v2/{OrRadioGroup-1108883d.js → OrRadioGroup-d1c2e460.js} +2 -2
  114. package/dist/esm/v2/{OrSearch-598dee09.js → OrSearch-f49e5f70.js} +1 -1
  115. package/dist/esm/v2/{OrSelect-36461157.js → OrSelect-5e9508c9.js} +27 -156
  116. package/dist/esm/v2/{OrSwitch-a3da6bec.js → OrSwitch-e49ce2d8.js} +1 -1
  117. package/dist/esm/v2/{OrTagInput-400f0605.js → OrTagInput-5b1ac86e.js} +1 -1
  118. package/dist/esm/v2/{OrTextarea-6fe8b65f.js → OrTextarea-824f7048.js} +1 -1
  119. package/dist/esm/v2/{OrTimePicker-b6c79be1.js → OrTimePicker-d73ce31e.js} +4 -4
  120. package/dist/esm/v2/components/index.js +23 -23
  121. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
  122. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +5 -5
  123. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +3 -3
  124. package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +5 -5
  125. package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
  126. package/dist/esm/v2/components/or-code-v3/index.js +2 -2
  127. package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
  128. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  129. package/dist/esm/v2/components/or-date-picker-v3/index.js +4 -4
  130. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +5 -5
  131. package/dist/esm/v2/components/or-form-group-v3/index.js +2 -2
  132. package/dist/esm/v2/components/or-input-v3/index.js +2 -2
  133. package/dist/esm/v2/components/or-label-v3/OrLabel.vue.d.ts +5 -16
  134. package/dist/esm/v2/components/or-label-v3/index.js +1 -1
  135. package/dist/esm/v2/components/or-label-v3/props.d.ts +1 -2
  136. package/dist/esm/v2/components/or-label-v3/styles.d.ts +2 -2
  137. package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -4
  138. package/dist/esm/v2/components/or-radio-v3/index.js +2 -2
  139. package/dist/esm/v2/components/or-search-v3/index.js +3 -3
  140. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +0 -14
  141. package/dist/esm/v2/components/or-select-v3/index.js +6 -6
  142. package/dist/esm/v2/components/or-select-v3/styles.d.ts +1 -3
  143. package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
  144. package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
  145. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
  146. package/dist/esm/v2/components/or-time-picker-v3/index.js +5 -5
  147. package/dist/esm/v2/directives/index.js +1 -1
  148. package/dist/esm/{v3/dropdown-open-06d651cf.js → v2/dropdown-open-e1f90e0a.js} +5 -1
  149. package/dist/esm/v2/index.js +23 -23
  150. package/dist/esm/v3/{OrCardCollection-7d647b53.js → OrCardCollection-5a10ca80.js} +1 -1
  151. package/dist/esm/v3/{OrCheckbox-a571fc90.js → OrCheckbox-09f62aab.js} +2 -3
  152. package/dist/esm/v3/{OrCheckboxGroup-7fe25d85.js → OrCheckboxGroup-6c054793.js} +2 -2
  153. package/dist/esm/v3/{OrCheckboxTree-bea23696.js → OrCheckboxTree-bb32455e.js} +1 -1
  154. package/dist/esm/v3/{OrCode-fd372d76.js → OrCode-98aceeef.js} +1 -1
  155. package/dist/esm/v3/{OrCombinedInput-6dd0f75d.js → OrCombinedInput-2800ee8b.js} +1 -1
  156. package/dist/esm/v3/{OrConfirm-de678c6c.js → OrConfirm-8d0351b9.js} +1 -1
  157. package/dist/esm/v3/{OrDatePicker-10c4e1ea.js → OrDatePicker-819007d7.js} +3 -3
  158. package/dist/esm/v3/{OrDateTimePicker-044dd6fb.js → OrDateTimePicker-7b08665c.js} +3 -3
  159. package/dist/esm/v3/{OrDateTimePickerPopoverHeader-ae493df9.js → OrDateTimePickerPopoverHeader-c3900e9a.js} +1 -1
  160. package/dist/esm/v3/{OrFormGroup-c4631ef0.js → OrFormGroup-9f581536.js} +1 -1
  161. package/dist/esm/v3/{OrInput-487c7632.js → OrInput-cfc9d445.js} +1 -1
  162. package/dist/esm/v3/{OrLabel-d4c46bb6.js → OrLabel-4da56db0.js} +7 -19
  163. package/dist/esm/v3/{OrRadio-48cd02a9.js → OrRadio-7b722b16.js} +1 -1
  164. package/dist/esm/v3/{OrRadioGroup-82d10aa8.js → OrRadioGroup-58c0214c.js} +2 -2
  165. package/dist/esm/v3/{OrSearch-998e4390.js → OrSearch-c823ee5e.js} +1 -1
  166. package/dist/esm/v3/{OrSelect-1ef6f9d9.js → OrSelect-d4bbddf1.js} +47 -135
  167. package/dist/esm/v3/{OrSwitch-f4d9e196.js → OrSwitch-a6efd081.js} +1 -1
  168. package/dist/esm/v3/{OrTagInput-65e725b0.js → OrTagInput-b5f6be7c.js} +1 -1
  169. package/dist/esm/v3/{OrTextarea-f3412790.js → OrTextarea-6c471ccd.js} +1 -1
  170. package/dist/esm/v3/{OrTimePicker-ef98ec36.js → OrTimePicker-27be4172.js} +4 -4
  171. package/dist/esm/v3/components/index.js +22 -22
  172. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  173. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +5 -5
  174. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +3 -3
  175. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -3
  176. package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
  177. package/dist/esm/v3/components/or-code-v3/index.js +2 -2
  178. package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
  179. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  180. package/dist/esm/v3/components/or-date-picker-v3/index.js +4 -4
  181. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
  182. package/dist/esm/v3/components/or-form-group-v3/index.js +2 -2
  183. package/dist/esm/v3/components/or-input-v3/index.js +2 -2
  184. package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +3 -12
  185. package/dist/esm/v3/components/or-label-v3/index.js +1 -1
  186. package/dist/esm/v3/components/or-label-v3/props.d.ts +1 -2
  187. package/dist/esm/v3/components/or-label-v3/styles.d.ts +2 -2
  188. package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -4
  189. package/dist/esm/v3/components/or-radio-v3/index.js +2 -2
  190. package/dist/esm/v3/components/or-search-v3/index.js +3 -3
  191. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +0 -7
  192. package/dist/esm/v3/components/or-select-v3/index.js +6 -6
  193. package/dist/esm/v3/components/or-select-v3/styles.d.ts +1 -3
  194. package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
  195. package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
  196. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  197. package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
  198. package/dist/esm/v3/directives/index.js +1 -1
  199. package/dist/esm/{v2/dropdown-open-06d651cf.js → v3/dropdown-open-e1f90e0a.js} +5 -1
  200. package/dist/esm/v3/index.js +22 -22
  201. package/package.json +4 -9
  202. package/src/components/or-checkbox-v3/OrCheckbox.vue +0 -1
  203. package/src/components/or-input-v3/OrInput.vue +0 -1
  204. package/src/components/or-label-v3/OrLabel.vue +5 -9
  205. package/src/components/or-label-v3/props.ts +0 -1
  206. package/src/components/or-label-v3/styles.ts +4 -16
  207. package/src/components/or-select-v3/OrSelect.vue +27 -123
  208. package/src/components/or-select-v3/styles.ts +1 -18
  209. package/src/components/or-toast/constants.ts +4 -4
  210. package/src/directives/dropdown-close.ts +3 -0
  211. package/src/directives/dropdown-open.ts +4 -1
  212. package/dist/bundled/v2/components/OrSelect/stories.helpers.d.ts +0 -6
  213. package/dist/bundled/v3/components/OrSelect/stories.helpers.d.ts +0 -6
  214. package/dist/esm/v2/components/or-select/stories.helpers.d.ts +0 -6
  215. package/dist/esm/v3/components/or-select/stories.helpers.d.ts +0 -6
  216. package/src/components/or-avatar/OrAvatar.stories.ts +0 -44
  217. package/src/components/or-button/OrButton.stories.ts +0 -364
  218. package/src/components/or-button-v2/OrButton.stories.ts +0 -136
  219. package/src/components/or-card/OrCard.stories.ts +0 -58
  220. package/src/components/or-card-collection/OrCardCollection.stories.ts +0 -110
  221. package/src/components/or-checkbox/OrCheckbox.stories.ts +0 -383
  222. package/src/components/or-chips/OrChips.stories.ts +0 -96
  223. package/src/components/or-chips/or-chip/OrChip.stories.ts +0 -59
  224. package/src/components/or-code/OrCode.stories.ts +0 -328
  225. package/src/components/or-collapse/OrCollapse.stories.ts +0 -654
  226. package/src/components/or-color-picker/OrColorPicker.stories.ts +0 -48
  227. package/src/components/or-confirm/OrConfirm.stories.ts +0 -175
  228. package/src/components/or-date-time-picker/OrDateTimePicker.stories.ts +0 -162
  229. package/src/components/or-error/OrError.stories.ts +0 -35
  230. package/src/components/or-floating/OrFloating.stories.ts +0 -81
  231. package/src/components/or-hint/OrHint.stories.ts +0 -26
  232. package/src/components/or-icon/OrIcon.stories.ts +0 -74
  233. package/src/components/or-icon/or-icon-tips.stories.mdx +0 -26
  234. package/src/components/or-icon-button-v2/OrIconButton.stories.ts +0 -134
  235. package/src/components/or-inline-text-edit/OrInlineTextEdit.stories.ts +0 -187
  236. package/src/components/or-input/OrInput.stories.ts +0 -375
  237. package/src/components/or-input/or-textbox-migration.stories.mdx +0 -32
  238. package/src/components/or-label/OrLabel.stories.ts +0 -64
  239. package/src/components/or-list/OrList.stories.ts +0 -229
  240. package/src/components/or-list-of-inputs/OrListOfInputs.stories.ts +0 -164
  241. package/src/components/or-loader/OrLoader.stories.ts +0 -43
  242. package/src/components/or-modal/OrModal.stories.ts +0 -215
  243. package/src/components/or-notification/OrNotification.stories.ts +0 -98
  244. package/src/components/or-number-input/OrNumberInput.stories.ts +0 -354
  245. package/src/components/or-overflow-menu/OrOverflowMenu.stories.ts +0 -167
  246. package/src/components/or-overlay/OrOverlay.stories.ts +0 -53
  247. package/src/components/or-password/OrPassword.stories.ts +0 -367
  248. package/src/components/or-progress/OrProgress.stories.ts +0 -162
  249. package/src/components/or-radio/OrRadio.stories.ts +0 -143
  250. package/src/components/or-search/OrSearch.stories.ts +0 -402
  251. package/src/components/or-select/OrSelect.stories.ts +0 -330
  252. package/src/components/or-select/partials/OrSelectContent.stories.ts +0 -191
  253. package/src/components/or-select/partials/OrSelectInput.stories.ts +0 -115
  254. package/src/components/or-select/stories.helpers.ts +0 -40
  255. package/src/components/or-sidebar/OrSidebar.stories.ts +0 -242
  256. package/src/components/or-skeleton/OrSkeleton.stories.ts +0 -120
  257. package/src/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.stories.ts +0 -35
  258. package/src/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.stories.ts +0 -53
  259. package/src/components/or-skeleton/or-skeleton-text/OrSkeletonText.stories.ts +0 -52
  260. package/src/components/or-slider/OrSlider.stories.ts +0 -49
  261. package/src/components/or-stepper/OrStepper.stories.ts +0 -50
  262. package/src/components/or-switch/OrSwitch.stories.ts +0 -194
  263. package/src/components/or-tabs/OrTabs.stories.ts +0 -166
  264. package/src/components/or-tag/OrTag.stories.ts +0 -87
  265. package/src/components/or-teleport/OrTeleport.stories.ts +0 -54
  266. package/src/components/or-textarea/OrTextarea.stories.ts +0 -367
  267. package/src/components/or-textbox/OrTextbox.stories.ts +0 -596
  268. package/src/components/or-toast/OrToast.stories.ts +0 -59
  269. package/src/components/or-toast/or-toast-container/OrToastContainer.stories.mdx +0 -101
  270. package/src/components/or-toast/or-toast-container/OrToastContainer.stories.ts +0 -96
  271. package/src/components/or-tooltip/OrTooltip.stories.ts +0 -205
  272. package/src/hooks/useResponsive/useResponsive.stories.mdx +0 -26
  273. /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-f3d67e5d.js → OrDateTimePickerPopoverHeader-a4f77733.js} +0 -0
@@ -1,215 +0,0 @@
1
- import { action } from '@storybook/addon-actions';
2
- import { Story, Meta } from '@storybook/vue';
3
-
4
- import OrModal from './OrModal.vue';
5
- import { OrButtonV2 as OrButton } from '../or-button-v2';
6
- import { OrOverflowMenu } from '../or-overflow-menu';
7
- import { OrModalSizes } from './constants';
8
- import { OrCollapse } from '../or-collapse';
9
- import { OrSelect } from '../or-select';
10
- import { OrInput } from '../or-input';
11
- import { getTestOption } from '../or-select/stories.helpers';
12
-
13
- export default {
14
- title: 'Components/OrModal',
15
- component: OrModal,
16
- args: {
17
- isOpen: true,
18
- trapFocus: false,
19
- },
20
- argTypes: {
21
- showClose: {},
22
- closeOnClickOutside: {},
23
- isOpen: {
24
- type: 'boolean',
25
- },
26
- trapFocus: {
27
- type: 'boolean',
28
- },
29
- titleText: {
30
- control: {
31
- type: 'text',
32
- },
33
- },
34
- size: {
35
- control: {
36
- type: 'select',
37
- options: Object.values(OrModalSizes) as string[],
38
- default: OrModalSizes.small,
39
- },
40
- },
41
- default: {
42
- control: 'text',
43
- description: 'Slot content',
44
- table: {
45
- defaultValue: '',
46
- type: {
47
- summary: null,
48
- },
49
- },
50
- },
51
- footer: {
52
- control: 'text',
53
- description: 'Footer Slot content',
54
- },
55
- title: {
56
- control: 'text',
57
- description: 'Slot content',
58
- },
59
- },
60
- } as Meta;
61
-
62
- const Template: Story = (args, { argTypes }) => ({
63
- props: Object.keys(argTypes),
64
- components: {
65
- OrModal,
66
- OrButton,
67
- OrOverflowMenu,
68
- OrCollapse,
69
- OrSelect,
70
- OrInput,
71
- },
72
-
73
- methods: {
74
- onClose: action('close'),
75
- },
76
- template: `
77
- <div style="height: 200px;">
78
- <or-modal v-bind="$props" @close="onClose" style="position: absolute;">
79
- <template>
80
- ${args.default}
81
- </template>
82
- <template v-if="${!!args.footer}" v-slot:footer>
83
- ${args.footer}
84
- </template>
85
- </or-modal>
86
- </div>
87
- `,
88
- });
89
-
90
- export const Default = Template.bind({});
91
- Default.args = {
92
- default: 'Modal text content',
93
- isOpen: true,
94
- };
95
-
96
- export const WithTitleText = Template.bind({});
97
- WithTitleText.args = {
98
- titleText: 'Modal title text',
99
- default: 'Modal text content',
100
- };
101
-
102
- export const WithClickOutside = Template.bind({});
103
- WithClickOutside.args = {
104
- titleText: 'Modal title text',
105
- default: 'Modal text content',
106
- closeOnClickOutside: true,
107
- };
108
-
109
- export const WithInputContent = Template.bind({});
110
- WithInputContent.args = {
111
- titleText: 'Modal title text',
112
- default: '<or-input />',
113
- closeOnClickOutside: true,
114
- footer: `
115
- <or-button color="primary" @click="onClose">Confirm</or-button>
116
- <or-button color="error" type="outlined" @click="onClose">Cancel</or-button>
117
- `,
118
- };
119
-
120
- export const WithFooter = Template.bind({});
121
- WithFooter.args = {
122
- titleText: 'Modal title text',
123
- default: 'Modal text content',
124
- footer: '<div> Footer content</div>',
125
- };
126
-
127
- export const WithoutClose = Template.bind({});
128
- WithoutClose.args = {
129
- titleText: 'Modal title text',
130
- default: 'Modal text content',
131
- showClose: false,
132
- };
133
-
134
- export const WithoutOverlay = Template.bind({});
135
- WithoutOverlay.args = {
136
- titleText: 'Modal title text',
137
- default: 'Modal text content',
138
- isWithoutOverlay: true,
139
- };
140
-
141
- export const WithCustomClose = Template.bind({});
142
- WithCustomClose.args = {
143
- titleText: 'Modal title text',
144
- default: 'Modal text content',
145
- footer: '<or-button type="outlined" @click="onClose">Close</or-button>',
146
- };
147
-
148
- export const WithOverflowMenu = Template.bind({});
149
- WithOverflowMenu.args = {
150
- titleText: 'Modal title text',
151
- default: 'Modal text content',
152
- items: [
153
- {
154
- icon: 'open_in_new',
155
- label: 'Open in new tab',
156
- // eslint-disable-next-line @typescript-eslint/no-empty-function
157
- handler: () => {},
158
- },
159
- {
160
- icon: 'update',
161
- label: 'Update',
162
- isDisabled: true,
163
- // eslint-disable-next-line @typescript-eslint/no-empty-function
164
- handler: () => {},
165
- },
166
- ],
167
- footer: '<or-overflow-menu :items="items" placement="bottom-start" />',
168
- };
169
-
170
- export const WithLongContent = Template.bind({});
171
- WithLongContent.args = {
172
- titleText: 'Modal title text',
173
- default: `
174
- <div>
175
- <div>
176
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
177
- Asperiores aspernatur assumenda aut consectetur cupiditate ea enim,
178
- esse hic nulla optio quidem ratione saepe ullam!
179
- A nihil omnis provident reprehenderit rerum.
180
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
181
- Asperiores aspernatur assumenda aut consectetur cupiditate ea enim,
182
- esse hic nulla optio quidem ratione saepe ullam!
183
- A nihil omnis provident reprehenderit rerum.
184
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
185
- Asperiores aspernatur assumenda aut consectetur cupiditate ea enim,
186
- esse hic nulla optio quidem ratione saepe ullam!
187
- A nihil omnis provident reprehenderit rerum.
188
- </div>
189
- <or-overflow-menu :items="items" />
190
- <or-select :options="options" />
191
- <div>
192
- Lorem ipsum dolor sit amet, consectetur adipisicing elit.
193
- Asperiores aspernatur assumenda aut consectetur cupiditate ea enim,
194
- esse hic nulla optio quidem ratione saepe ullam!
195
- A nihil omnis provident reprehenderit rerum.
196
- </div>
197
- </div>`,
198
- footer: '<or-button type="outlined" @click="onClose">Close</or-button>',
199
- items: [
200
- {
201
- icon: 'open_in_new',
202
- label: 'Open in new tab',
203
- // eslint-disable-next-line @typescript-eslint/no-empty-function
204
- handler: () => {},
205
- },
206
- {
207
- icon: 'update',
208
- label: 'Update',
209
- isDisabled: true,
210
- // eslint-disable-next-line @typescript-eslint/no-empty-function
211
- handler: () => {},
212
- },
213
- ],
214
- options: Array.from(Array(10).keys()).map(getTestOption),
215
- };
@@ -1,98 +0,0 @@
1
- import Faker from 'faker';
2
- import { Story } from '@storybook/vue';
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import OrNotification from './OrNotification.vue';
6
- import OrButton from '../or-button-v2/OrButton.vue';
7
- import OrIcon from '../or-icon/OrIcon.vue';
8
-
9
- import { OR_NOTIFICATION_SIZE, OR_NOTIFICATION_TYPE } from './constants';
10
-
11
- export default {
12
- title: 'Components/OrNotification',
13
- component: OrNotification,
14
- argTypes: {
15
- size: {
16
- control: {
17
- type: 'select',
18
- options: Object.values(OR_NOTIFICATION_SIZE),
19
- },
20
- },
21
- type: {
22
- control: {
23
- type: 'select',
24
- options: Object.values(OR_NOTIFICATION_TYPE),
25
- },
26
- },
27
- },
28
- };
29
-
30
- const Template: Story = (_args, { argTypes }) => ({
31
- props: Object.keys(argTypes),
32
- components: {
33
- OrNotification,
34
- OrButton,
35
- },
36
- template: '<or-notification v-bind="$props" @close="onClose" />',
37
- methods: {
38
- onClose: action('close'),
39
- },
40
- });
41
-
42
- export const Default = Template.bind({});
43
- Default.args = {
44
- content: Faker.company.catchPhrase(),
45
- canDelete: true,
46
- };
47
-
48
- export const PropsWithLongText = Template.bind({});
49
- PropsWithLongText.args = {
50
- type: OR_NOTIFICATION_TYPE.WARNING,
51
- size: OR_NOTIFICATION_SIZE.INLINE,
52
- icon: 'forum',
53
- content: Faker.random.alpha({
54
- count: 250,
55
- upcase: true,
56
- }),
57
- canDelete: true,
58
- };
59
-
60
- export const BlankWithLargeContent = Template.bind({});
61
- BlankWithLargeContent.args = {
62
- type: '',
63
- size: OR_NOTIFICATION_SIZE.INLINE,
64
- icon: 'chat',
65
- content: Faker.lorem.paragraphs(2),
66
- canDelete: true,
67
- };
68
-
69
- const TemplateWithSlots: Story = (_args, { argTypes }) => ({
70
- props: Object.keys(argTypes),
71
- components: {
72
- OrNotification,
73
- OrButton,
74
- OrIcon,
75
- },
76
- template: `
77
- <or-notification v-bind="$props" @close="onClose">
78
- <or-icon class="my-icon" icon="forum" slot="icon" />
79
-
80
- <div slot="default" class="my-content" style="display: flex; flex-direction: column;">
81
- <div class="text">${Faker.lorem.paragraph()}</div>
82
- <a href="#" class="link" style="margin-top: 0.5rem;">
83
- ${Faker.internet.email()}
84
- </a>
85
- </div>
86
- </or-notification>
87
- `,
88
- methods: {
89
- onClose: action('close'),
90
- },
91
- });
92
-
93
- export const WithSlotsAndLinks = TemplateWithSlots.bind({});
94
- WithSlotsAndLinks.args = {
95
- type: OR_NOTIFICATION_TYPE.SUCCESS,
96
- size: OR_NOTIFICATION_SIZE.INLINE,
97
- canDelete: true,
98
- };
@@ -1,354 +0,0 @@
1
- import { ArgTypes, Story } from '@storybook/vue';
2
-
3
- import { action } from '@storybook/addon-actions';
4
-
5
- import OrNumberInput from './OrNumberInput.vue';
6
- import { OrIcon } from '../or-icon';
7
- import { OrSwitch } from '../or-switch';
8
- import { OrIconButton } from '../or-button-v2';
9
-
10
- export default {
11
- title: 'Components/OrInputs/OrNumberInput',
12
- component: OrNumberInput,
13
- };
14
-
15
- const defaultMixin = (argTypes: ArgTypes) => ({
16
- props: Object.keys(argTypes),
17
-
18
- components: {
19
- OrNumberInput,
20
- OrIcon,
21
- OrSwitch,
22
- OrIconButton,
23
- },
24
-
25
- data() {
26
- return {
27
- inputValue: '',
28
- defaultValue: 42,
29
- };
30
- },
31
-
32
- methods: {
33
- action: action('update:modelValue'),
34
- onFocus: action('focus'),
35
- onBlur: action('blur'),
36
- actionClick: action('click'),
37
- clear: action('clear'),
38
- },
39
- });
40
-
41
- const Template: Story = (_args, { argTypes }) => ({
42
- mixins: [defaultMixin(argTypes)],
43
-
44
- template: `
45
- <div>
46
- <or-number-input
47
- v-model="inputValue"
48
- v-bind="$props"
49
- @update:modelValue="action"
50
- @focus="onFocus"
51
- @blur="onBlur"
52
- @clear="clear"
53
- />
54
- </div>
55
- `,
56
- });
57
-
58
- const TemplateLabelAppend: Story = (_args, { argTypes }) => ({
59
- mixins: [defaultMixin(argTypes)],
60
-
61
- template: `
62
- <or-number-input
63
- v-model="inputValue"
64
- v-bind="$props"
65
- @update:modelValue="action"
66
- @focus="onFocus"
67
- @blur="onBlur"
68
- >
69
- <or-icon slot="label-append" icon="code"/>
70
- </or-number-input>
71
- `,
72
- });
73
-
74
- const TemplateLabelSlot: Story = (_args, { argTypes }) => ({
75
- mixins: [defaultMixin(argTypes)],
76
-
77
- template: `
78
- <or-number-input
79
- v-model="inputValue"
80
- v-bind="$props"
81
- @update:modelValue="action"
82
- @focus="onFocus"
83
- @blur="onBlur"
84
- >
85
- <div slot="label-default">
86
- <div>Label Slot</div>
87
- </div>
88
- </or-number-input>
89
- `,
90
- });
91
-
92
- const TemplateSlotPrepend: Story = (_args, { argTypes }) => ({
93
- mixins: [defaultMixin(argTypes)],
94
-
95
- template: `
96
- <or-number-input
97
- v-model="inputValue"
98
- v-bind="$props"
99
- @update:modelValue="action"
100
- @focus="onFocus"
101
- @blur="onBlur"
102
- >
103
- <or-icon-button
104
- slot="prepend"
105
- type="icon"
106
- icon="search"
107
- @click="actionClick"
108
- />
109
- </or-number-input>
110
- `,
111
- });
112
-
113
- const TemplateSlotAppend: Story = (_args, { argTypes }) => ({
114
- mixins: [defaultMixin(argTypes)],
115
-
116
- template: `
117
- <or-number-input
118
- v-model="inputValue"
119
- v-bind="$props"
120
- @update:modelValue="action"
121
- @focus="onFocus"
122
- @blur="onBlur"
123
- >
124
- <or-icon-button
125
- slot="append"
126
- type="icon"
127
- icon="search"
128
- @click="actionClick"
129
- />
130
- </or-number-input>
131
- `,
132
- });
133
-
134
- const TemplateWithValue: Story = (_args, { argTypes }) => ({
135
- mixins: [defaultMixin(argTypes)],
136
-
137
- template: `
138
- <or-number-input
139
- v-bind="$props"
140
- v-model="defaultValue"
141
- @update:modelValue="action"
142
- @focus="onFocus"
143
- @blur="onBlur"
144
- />
145
- `,
146
- });
147
-
148
- const TemplateDynamicError: Story = (_args, { argTypes }) => ({
149
- mixins: [defaultMixin(argTypes)],
150
-
151
- computed: {
152
- hasError() {
153
- return (this as any).inputValue <= 4;
154
- },
155
- },
156
-
157
- template: `
158
- <div>
159
- <or-number-input
160
- v-bind="$props"
161
- v-model="inputValue"
162
- :is-invalid="hasError"
163
- @update:modelValue="action"
164
- @focus="onFocus"
165
- @blur="onBlur"
166
- />
167
-
168
- <or-number-input
169
- v-bind="$props"
170
- v-model="inputValue"
171
- :is-invalid="hasError"
172
- @update:modelValue="action"
173
- @focus="onFocus"
174
- @blur="onBlur"
175
- />
176
- </div>
177
- `,
178
- });
179
-
180
- const TemplateToggleErrorMessage: Story = (_args, { argTypes }) => ({
181
- mixins: [defaultMixin(argTypes)],
182
-
183
- data() {
184
- return {
185
- hasError: false,
186
- };
187
- },
188
-
189
- template: `
190
- <div>
191
- <or-switch style="display: block; margin-bottom: 20px;" v-model="hasError" :label="'Has Error: ' + hasError"/>
192
-
193
- <or-number-input
194
- v-bind="$props"
195
- v-model="inputValue"
196
- :is-invalid="hasError"
197
- error="Something went wrong"
198
- @update:modelValue="action"
199
- @focus="onFocus"
200
- @blur="onBlur"
201
- />
202
-
203
- <or-number-input
204
- v-bind="$props"
205
- v-model="inputValue"
206
- :is-invalid="hasError"
207
- error="Something went wrong"
208
- @update:modelValue="action"
209
- @focus="onFocus"
210
- @blur="onBlur"
211
- />
212
-
213
- <or-number-input
214
- v-bind="$props"
215
- v-model="inputValue"
216
- :is-invalid="hasError"
217
- error="Something went wrong"
218
- @update:modelValue="action"
219
- @focus="onFocus"
220
- @blur="onBlur"
221
- />
222
- </div>
223
- `,
224
- });
225
-
226
- const TemplateToggleHint: Story = (_args, { argTypes }) => ({
227
- mixins: [defaultMixin(argTypes)],
228
-
229
- data() {
230
- return {
231
- isActive: false,
232
- };
233
- },
234
-
235
- template: `
236
- <div>
237
- <or-switch style="display: block;" v-model="isActive" :label="'Has Hint: ' + isActive"/>
238
- <or-number-input
239
- v-bind="$props"
240
- :hint="isActive ? $props.hint : ''"
241
- v-model="inputValue"
242
- @update:modelValue="action"
243
- @focus="onFocus"
244
- @blur="onBlur"
245
- />
246
- </div>
247
- `,
248
- });
249
-
250
- export const Default = Template.bind({});
251
- Default.args = {};
252
-
253
- export const Small = Template.bind({});
254
- Small.args = { isSmall: true };
255
-
256
- export const Placeholder = Template.bind({});
257
- Placeholder.args = { placeholder: 'Placeholder' };
258
-
259
- export const Label = Template.bind({});
260
- Label.args = {
261
- label: 'Label',
262
-
263
- ...Placeholder.args,
264
- };
265
-
266
- export const Required = Template.bind({});
267
- Required.args = {
268
- isRequired: true,
269
-
270
- ...Label.args,
271
- ...Placeholder.args,
272
- };
273
-
274
- export const LabelAppendSlot = TemplateLabelAppend.bind({});
275
- LabelAppendSlot.args = { ...Label.args };
276
-
277
- export const LabelSlot = TemplateLabelSlot.bind({});
278
- LabelSlot.args = {
279
- id: 'input-id',
280
-
281
- ...Placeholder.args,
282
- };
283
-
284
- export const Disabled = Template.bind({});
285
- Disabled.args = {
286
- isDisabled: true,
287
-
288
- ...Placeholder.args,
289
- ...Label.args,
290
- };
291
-
292
- export const DefaultValue = TemplateWithValue.bind({});
293
- DefaultValue.args = {};
294
-
295
- export const Readonly = TemplateWithValue.bind({});
296
- Readonly.args = {
297
- isReadonly: true,
298
- label: 'Label',
299
- };
300
-
301
- export const MaxValue = Template.bind({});
302
- MaxValue.args = { maxValue: 10 };
303
-
304
- export const MinValue = Template.bind({});
305
- MinValue.args = { minValue: 0 };
306
-
307
- export const StepValue = Template.bind({});
308
- StepValue.args = { stepValue: 0.1 };
309
-
310
- export const MaxValueDefaultValue = TemplateWithValue.bind({});
311
- MaxValueDefaultValue.args = {
312
- maxValue: 10,
313
- hint: 'If the value > max value then should decrease the value',
314
- };
315
-
316
- export const Hint = Template.bind({});
317
- Hint.args = { hint: 'Hint' };
318
-
319
- export const HintToggle = TemplateToggleHint.bind({});
320
- HintToggle.args = { ...Hint.args };
321
-
322
- export const Invalid = Template.bind({});
323
- Invalid.args = { isInvalid: true };
324
-
325
- export const InvalidAndErrorText = Template.bind({});
326
- InvalidAndErrorText.args = {
327
- ...Invalid.args,
328
- error: 'Something went wrong',
329
- };
330
-
331
- export const InvalidErrorToggle = TemplateToggleErrorMessage.bind({});
332
- InvalidErrorToggle.args = {};
333
-
334
- export const InvalidErrorAndHint = TemplateToggleErrorMessage.bind({});
335
- InvalidErrorAndHint.args = {
336
- hint: 'Hint',
337
- };
338
-
339
- export const InvalidDynamicError = TemplateDynamicError.bind({});
340
- InvalidDynamicError.args = {
341
- hint: 'Good Good Good Good Good Good Good Good Good Good Good Good',
342
- error: 'Should be > 4',
343
- };
344
-
345
- export const SlotPrepend = TemplateSlotPrepend.bind({});
346
- SlotPrepend.args = {
347
- ...Label.args,
348
- label: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',
349
- isInvalid: true,
350
- error: 'Text error',
351
- };
352
-
353
- export const SlotAppend = TemplateSlotAppend.bind({});
354
- SlotAppend.args = {};