@onereach/ui-components 2.71.2-beta.2238.0 → 2.71.2-beta.2240.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 (195) hide show
  1. package/dist/bundled/v2/{OrCardCollection-166cfcc6.js → OrCardCollection-89428bbf.js} +5 -5
  2. package/dist/bundled/v2/{OrCardCollection-091e2193.js → OrCardCollection-c1ccde63.js} +1 -1
  3. package/dist/bundled/v2/{OrConfirm-55b89b17.js → OrConfirm-56d01cff.js} +4 -4
  4. package/dist/bundled/v2/{OrConfirm-bb2df177.js → OrConfirm-cc8b767f.js} +1 -1
  5. package/dist/bundled/v2/{OrInput-5404a234.js → OrInput-c539e47c.js} +23 -6
  6. package/dist/bundled/v2/{OrListOfInputs-ab7f9d97.js → OrListOfInputs-8f076650.js} +4 -4
  7. package/dist/bundled/v2/{OrTextarea-71ff236d.js → OrPassword-7da938aa.js} +449 -7
  8. package/dist/bundled/v2/{OrSearch-d1169241.js → OrSearch-d7326373.js} +1 -1
  9. package/dist/bundled/v2/{OrSearch-832d7978.js → OrSearch-f7cfa52f.js} +4 -4
  10. package/dist/bundled/v2/{OrSelect-5634790b.js → OrSelect-8802f330.js} +1 -1
  11. package/dist/bundled/v2/components/index.d.ts +1 -5
  12. package/dist/bundled/v2/components/index.js +13 -15
  13. package/dist/bundled/v2/components/or-card-collection/index.js +4 -4
  14. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
  15. package/dist/bundled/v2/components/or-confirm/index.js +2 -2
  16. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  17. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  18. package/dist/bundled/v2/components/or-input-v3/index.js +2 -1
  19. package/dist/bundled/v2/components/or-inputs/index.d.ts +5 -0
  20. package/dist/bundled/v2/components/{or-password → or-inputs}/index.js +4 -3
  21. package/dist/bundled/v2/components/or-list-of-inputs/index.js +2 -2
  22. package/dist/bundled/v2/components/or-search-v3/index.js +3 -2
  23. package/dist/bundled/v2/components/or-select-v3/index.js +3 -2
  24. package/dist/bundled/v2/index.js +11 -13
  25. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-cd84f344.js → OrCardCollection.vue_vue_type_script_lang-d8124dda.js} +4 -4
  26. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-60403ae6.js → OrCardCollection.vue_vue_type_script_lang-f9897e01.js} +1 -1
  27. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-41b4d791.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +1 -2
  28. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9231d51e.js → OrConfirm.vue_vue_type_script_lang-e9ba9909.js} +2 -2
  29. package/dist/bundled/v3/{OrInput-2a7c6b57.js → OrInput-41f8351a.js} +13 -4
  30. package/dist/bundled/v3/{OrInput-704e72ba.js → OrInput-7d4b571a.js} +193 -5
  31. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-509de504.js → OrInput.vue_vue_type_script_lang-b88324b6.js} +13 -1
  32. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-6c5cf7a5.js → OrListOfInputs.vue_vue_type_script_lang-62dbf1e7.js} +1 -2
  33. package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-13bc5b00.js +390 -0
  34. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-5356fa79.js → OrSearch.vue_vue_type_script_lang-16fbccc0.js} +1 -2
  35. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ab2ef22c.js → OrSearch.vue_vue_type_script_lang-56eb4e93.js} +2 -2
  36. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-54f683a2.js → OrSelect.vue_vue_type_script_lang-ee433d47.js} +2 -2
  37. package/dist/bundled/v3/components/index.d.ts +1 -5
  38. package/dist/bundled/v3/components/index.js +14 -17
  39. package/dist/bundled/v3/components/or-card-collection/index.js +4 -5
  40. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
  41. package/dist/bundled/v3/components/or-confirm/index.js +2 -3
  42. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  43. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  44. package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
  45. package/dist/bundled/v3/components/or-inputs/index.d.ts +5 -0
  46. package/dist/bundled/v3/components/{or-search → or-inputs}/index.js +5 -4
  47. package/dist/bundled/v3/components/or-list-of-inputs/index.js +2 -3
  48. package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
  49. package/dist/bundled/v3/components/or-select-v3/index.js +5 -3
  50. package/dist/bundled/v3/index.js +659 -664
  51. package/dist/esm/v2/{OrCardCollection-19582949.js → OrCardCollection-f6b07557.js} +7 -6
  52. package/dist/esm/v2/{OrCardCollection-bbdb6159.js → OrCardCollection-ff1e9819.js} +1 -1
  53. package/dist/esm/v2/{OrConfirm-ede619eb.js → OrConfirm-d7112dd3.js} +4 -4
  54. package/dist/esm/v2/{OrConfirm-cfaf4266.js → OrConfirm-ec81498e.js} +1 -1
  55. package/dist/esm/v2/{OrInput-e8fe9102.js → OrInput-b029d058.js} +23 -6
  56. package/dist/esm/v2/{OrListOfInputs-4298fa2c.js → OrListOfInputs-50aa1ef1.js} +5 -5
  57. package/dist/esm/v2/{OrTextarea-91a95068.js → OrPassword-1fa97156.js} +245 -187
  58. package/dist/esm/v2/{OrSearch-b4f4d59b.js → OrSearch-0589d17d.js} +5 -122
  59. package/dist/esm/v2/{OrSearch-4b774707.js → OrSearch-1c934f72.js} +1 -1
  60. package/dist/esm/v2/{OrInput-6e6cfd11.js → OrSearch.vue_rollup-plugin-vue_script-197d77fc.js} +492 -4
  61. package/dist/esm/v2/{OrSelect-d7016575.js → OrSelect-cfcb233a.js} +1 -1
  62. package/dist/esm/v2/components/index.d.ts +1 -5
  63. package/dist/esm/v2/components/index.js +13 -15
  64. package/dist/esm/v2/components/or-card-collection/index.js +4 -3
  65. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  66. package/dist/esm/v2/components/or-confirm/index.js +3 -2
  67. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  68. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  69. package/dist/esm/v2/components/or-input-v3/index.js +3 -2
  70. package/dist/esm/v2/components/or-inputs/index.d.ts +5 -0
  71. package/dist/esm/v2/components/{or-password → or-inputs}/index.js +6 -5
  72. package/dist/esm/v2/components/or-list-of-inputs/index.js +4 -2
  73. package/dist/esm/v2/components/or-search-v3/index.js +4 -3
  74. package/dist/esm/v2/components/or-select-v3/index.js +4 -3
  75. package/dist/esm/v2/index.js +11 -13
  76. package/dist/esm/v3/{OrCardCollection-47f61c40.js → OrCardCollection-5ecdcbaf.js} +1 -1
  77. package/dist/esm/v3/{OrCardCollection-1e44c758.js → OrCardCollection-a5e326ef.js} +2 -2
  78. package/dist/esm/v3/{OrConfirm-e7cbf54c.js → OrConfirm-beeb74d6.js} +1 -1
  79. package/dist/esm/v3/{OrConfirm-c11ee2ec.js → OrConfirm-f39bd784.js} +1 -1
  80. package/dist/esm/v3/{OrInput-6fb81556.js → OrInput-8a4573cd.js} +24 -4
  81. package/dist/esm/v3/{OrListOfInputs-508e056f.js → OrListOfInputs-7a67440f.js} +1 -1
  82. package/dist/esm/v3/{OrSearch-e15955a7.js → OrSearch-10d09806.js} +1 -1
  83. package/dist/esm/v3/OrSearch-7cb2c91c.js +1075 -0
  84. package/dist/esm/v3/{OrSelect-027b5e8f.js → OrSelect-1e4c6062.js} +1 -1
  85. package/dist/esm/v3/components/index.d.ts +1 -5
  86. package/dist/esm/v3/components/index.js +11 -15
  87. package/dist/esm/v3/components/or-card-collection/index.js +3 -3
  88. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  89. package/dist/esm/v3/components/or-confirm/index.js +3 -2
  90. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  91. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  92. package/dist/esm/v3/components/or-input-v3/index.js +3 -2
  93. package/dist/esm/v3/components/or-inputs/index.d.ts +5 -0
  94. package/dist/esm/v3/components/{or-password → or-inputs}/index.js +2 -3
  95. package/dist/esm/v3/components/or-list-of-inputs/index.js +4 -2
  96. package/dist/esm/v3/components/or-search-v3/index.js +4 -3
  97. package/dist/esm/v3/components/or-select-v3/index.js +4 -3
  98. package/dist/esm/v3/index.js +9 -13
  99. package/package.json +1 -1
  100. package/src/components/index.ts +1 -5
  101. package/src/components/or-card-collection/OrCardCollection.vue +8 -8
  102. package/src/components/or-confirm/OrConfirm.vue +1 -1
  103. package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
  104. package/src/components/or-input-v3/OrInput.vue +37 -17
  105. package/src/components/{or-number-input → or-inputs}/OrNumberInput.vue +1 -1
  106. package/src/components/{or-password → or-inputs}/OrPassword.vue +1 -1
  107. package/src/components/{or-search → or-inputs}/OrSearch.vue +1 -1
  108. package/src/components/{or-textarea → or-inputs}/OrTextarea.vue +6 -225
  109. package/src/components/or-inputs/index.ts +5 -0
  110. package/src/components/or-list/OrList.stories.ts +1 -1
  111. package/src/components/or-list-of-inputs/OrListOfInputs.vue +1 -1
  112. package/src/components/or-modal/OrModal.stories.ts +1 -1
  113. package/dist/bundled/v2/OrNumberInput-face8ccc.js +0 -227
  114. package/dist/bundled/v2/OrPassword-a818e7b5.js +0 -227
  115. package/dist/bundled/v2/components/or-input/index.d.ts +0 -1
  116. package/dist/bundled/v2/components/or-input/index.js +0 -13
  117. package/dist/bundled/v2/components/or-number-input/index.d.ts +0 -1
  118. package/dist/bundled/v2/components/or-number-input/index.js +0 -14
  119. package/dist/bundled/v2/components/or-password/index.d.ts +0 -1
  120. package/dist/bundled/v2/components/or-search/index.d.ts +0 -1
  121. package/dist/bundled/v2/components/or-search/index.js +0 -25
  122. package/dist/bundled/v2/components/or-textarea/index.d.ts +0 -1
  123. package/dist/bundled/v2/components/or-textarea/index.js +0 -13
  124. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-409235cc.js +0 -190
  125. package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-f061d829.js +0 -113
  126. package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-b75f6543.js +0 -99
  127. package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-69ea22e9.js +0 -187
  128. package/dist/bundled/v3/components/or-input/index.d.ts +0 -1
  129. package/dist/bundled/v3/components/or-input/index.js +0 -14
  130. package/dist/bundled/v3/components/or-number-input/index.d.ts +0 -1
  131. package/dist/bundled/v3/components/or-number-input/index.js +0 -16
  132. package/dist/bundled/v3/components/or-password/index.d.ts +0 -1
  133. package/dist/bundled/v3/components/or-password/index.js +0 -31
  134. package/dist/bundled/v3/components/or-search/index.d.ts +0 -1
  135. package/dist/bundled/v3/components/or-textarea/index.d.ts +0 -1
  136. package/dist/bundled/v3/components/or-textarea/index.js +0 -14
  137. package/dist/esm/v2/OrNumberInput-b20d75d2.js +0 -225
  138. package/dist/esm/v2/OrPassword-e6d5e968.js +0 -225
  139. package/dist/esm/v2/components/or-input/index.d.ts +0 -1
  140. package/dist/esm/v2/components/or-input/index.js +0 -11
  141. package/dist/esm/v2/components/or-number-input/index.d.ts +0 -1
  142. package/dist/esm/v2/components/or-number-input/index.js +0 -12
  143. package/dist/esm/v2/components/or-password/index.d.ts +0 -1
  144. package/dist/esm/v2/components/or-search/index.d.ts +0 -1
  145. package/dist/esm/v2/components/or-search/index.js +0 -23
  146. package/dist/esm/v2/components/or-textarea/index.d.ts +0 -1
  147. package/dist/esm/v2/components/or-textarea/index.js +0 -11
  148. package/dist/esm/v3/OrInput-81125804.js +0 -295
  149. package/dist/esm/v3/OrNumberInput-b32b5ce3.js +0 -170
  150. package/dist/esm/v3/OrPassword-b0cbb578.js +0 -162
  151. package/dist/esm/v3/OrSearch-11fdf667.js +0 -188
  152. package/dist/esm/v3/OrTextarea-1f5c3be1.js +0 -290
  153. package/dist/esm/v3/components/or-input/index.d.ts +0 -1
  154. package/dist/esm/v3/components/or-input/index.js +0 -11
  155. package/dist/esm/v3/components/or-number-input/index.d.ts +0 -1
  156. package/dist/esm/v3/components/or-number-input/index.js +0 -12
  157. package/dist/esm/v3/components/or-password/index.d.ts +0 -1
  158. package/dist/esm/v3/components/or-search/index.d.ts +0 -1
  159. package/dist/esm/v3/components/or-search/index.js +0 -20
  160. package/dist/esm/v3/components/or-textarea/index.d.ts +0 -1
  161. package/dist/esm/v3/components/or-textarea/index.js +0 -11
  162. package/src/components/or-input/index.ts +0 -1
  163. package/src/components/or-number-input/index.ts +0 -1
  164. package/src/components/or-password/index.ts +0 -1
  165. package/src/components/or-search/index.ts +0 -1
  166. package/src/components/or-textarea/index.ts +0 -1
  167. /package/dist/bundled/v2/{OrInput-df1a14fa.js → OrInput-08f2f666.js} +0 -0
  168. /package/dist/bundled/v2/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  169. /package/dist/bundled/v2/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  170. /package/dist/bundled/v2/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  171. /package/dist/bundled/v2/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  172. /package/dist/bundled/v2/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  173. /package/dist/bundled/v3/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  174. /package/dist/bundled/v3/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  175. /package/dist/bundled/v3/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  176. /package/dist/bundled/v3/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  177. /package/dist/bundled/v3/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  178. /package/dist/esm/v2/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  179. /package/dist/esm/v2/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  180. /package/dist/esm/v2/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  181. /package/dist/esm/v2/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  182. /package/dist/esm/v2/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  183. /package/dist/esm/v3/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  184. /package/dist/esm/v3/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  185. /package/dist/esm/v3/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  186. /package/dist/esm/v3/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  187. /package/dist/esm/v3/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  188. /package/src/components/{or-input → or-inputs}/OrInput.stories.ts +0 -0
  189. /package/src/components/{or-input → or-inputs}/OrInput.vue +0 -0
  190. /package/src/components/{or-number-input → or-inputs}/OrNumberInput.stories.ts +0 -0
  191. /package/src/components/{or-password → or-inputs}/OrPassword.stories.ts +0 -0
  192. /package/src/components/{or-search → or-inputs}/OrSearch.stories.ts +0 -0
  193. /package/src/components/{or-textarea → or-inputs}/OrTextarea.stories.ts +0 -0
  194. /package/src/components/{or-input → or-inputs}/or-textbox-migration.stories.mdx +0 -0
  195. /package/src/components/{or-input → or-inputs}/styles.scss +0 -0
@@ -1,123 +1,6 @@
1
- import { defineComponent, ref } from 'vue-demi';
2
- import { _ as __vue_component__$1 } from './OrInput-6e6cfd11.js';
3
- import { debouncedWatch } from '@vueuse/core';
4
- import { b as BUTTON_SIZE } from './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
5
- import { c as createInjector } from './browser-82dea9ed.js';
6
- import { _ as __vue_component__$2 } from './OrIconButton-014e86a7.js';
1
+ import { c as script } from './OrSearch.vue_rollup-plugin-vue_script-197d77fc.js';
7
2
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
8
-
9
- var script = defineComponent({
10
- name: 'OrSearch',
11
- components: {
12
- OrInput: __vue_component__$1,
13
- OrIconButton: __vue_component__$2
14
- },
15
- model: {
16
- prop: 'modelValue',
17
- event: 'update:modelValue'
18
- },
19
- props: {
20
- modelValue: {
21
- type: String,
22
- default: '',
23
- required: false
24
- },
25
- htmlId: {
26
- type: String,
27
- default: '',
28
- required: false
29
- },
30
- placeholder: {
31
- type: String,
32
- default: '',
33
- required: false
34
- },
35
- label: {
36
- type: String,
37
- default: '',
38
- required: false
39
- },
40
- error: {
41
- type: String,
42
- default: '',
43
- required: false
44
- },
45
- hint: {
46
- type: String,
47
- default: '',
48
- required: false
49
- },
50
- debounce: {
51
- type: Number,
52
- default: 500,
53
- required: false
54
- },
55
- isUsingTrim: {
56
- type: Boolean,
57
- default: true,
58
- required: false
59
- },
60
- maxLength: {
61
- type: Number,
62
- default: undefined,
63
- required: false
64
- },
65
- isSmall: Boolean,
66
- isRequired: Boolean,
67
- isDisabled: Boolean,
68
- isReadonly: Boolean,
69
- isInvalid: Boolean
70
- },
71
- emits: ['focus', 'blur', 'update:modelValue', 'input', 'search', 'clear', 'keypress', 'keyup', 'keydown'],
72
- setup(props, {
73
- emit
74
- }) {
75
- var _a;
76
- const inputRef = ref();
77
- const localValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
78
- debouncedWatch(localValue, () => {
79
- emit('search', props.isUsingTrim ? localValue.value.trim() : localValue.value);
80
- }, {
81
- debounce: +props.debounce
82
- });
83
- return {
84
- inputRef,
85
- localValue
86
- };
87
- },
88
- computed: {
89
- hasValue() {
90
- var _a;
91
- return !!((_a = this.localValue) === null || _a === void 0 ? void 0 : _a.length);
92
- },
93
- currentButtonIcon() {
94
- return this.hasValue ? 'close' : 'search';
95
- },
96
- size() {
97
- return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
98
- }
99
- },
100
- watch: {
101
- modelValue(val) {
102
- if (this.localValue !== val) this.localValue = val;
103
- }
104
- },
105
- methods: {
106
- onClick() {
107
- var _a;
108
- if (this.hasValue) {
109
- this.localValue = '';
110
- this.$emit('update:modelValue', '');
111
- this.$emit('clear');
112
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
113
- }
114
- },
115
- onModelValueUpdate(value) {
116
- this.localValue = value;
117
- this.$emit('update:modelValue', value);
118
- }
119
- }
120
- });
3
+ import { c as createInjector } from './browser-82dea9ed.js';
121
4
 
122
5
  /* script */
123
6
  const __vue_script__ = script;
@@ -222,14 +105,14 @@ var __vue_staticRenderFns__ = [];
222
105
  /* style */
223
106
  const __vue_inject_styles__ = function (inject) {
224
107
  if (!inject) return;
225
- inject("data-v-81c3bf2c_0", {
226
- source: "@keyframes spinAround-data-v-81c3bf2c{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-81c3bf2c{from{opacity:1}to{opacity:0}}.or-search .or-icon-button-root[data-v-81c3bf2c]{position:absolute;top:50%;right:0;z-index:1;transform:translate(-.625rem,-50%)}.or-search[data-v-81c3bf2c] .or-textbox--input{padding-right:calc(.625rem + 1.625rem)}.or-search.is-small[data-v-81c3bf2c] .or-textbox--input{padding-right:calc(.625rem + 1.5rem)}",
108
+ inject("data-v-073ad33e_0", {
109
+ source: "@keyframes spinAround-data-v-073ad33e{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-073ad33e{from{opacity:1}to{opacity:0}}.or-search .or-icon-button-root[data-v-073ad33e]{position:absolute;top:50%;right:0;z-index:1;transform:translate(-.625rem,-50%)}.or-search[data-v-073ad33e] .or-textbox--input{padding-right:calc(.625rem + 1.625rem)}.or-search.is-small[data-v-073ad33e] .or-textbox--input{padding-right:calc(.625rem + 1.5rem)}",
227
110
  map: undefined,
228
111
  media: undefined
229
112
  });
230
113
  };
231
114
  /* scoped */
232
- const __vue_scope_id__ = "data-v-81c3bf2c";
115
+ const __vue_scope_id__ = "data-v-073ad33e";
233
116
  /* module identifier */
234
117
  const __vue_module_identifier__ = undefined;
235
118
  /* functional template */
@@ -1,6 +1,6 @@
1
1
  import { debouncedWatch } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, watch } from 'vue-demi';
3
- import { _ as __vue_component__$1 } from './OrInput-e8fe9102.js';
3
+ import { _ as __vue_component__$1 } from './OrInput-b029d058.js';
4
4
  import { a as InputBoxSize } from './OrInputBox-9ceb9fc4.js';
5
5
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
6
 
@@ -5,10 +5,188 @@ import { _ as __vue_component__$1 } from './OrLabel-33b41516.js';
5
5
  import { _ as __vue_component__$2 } from './OrHint-c45f1e09.js';
6
6
  import { _ as __vue_component__$3 } from './OrError-081130bb.js';
7
7
  import { _ as __vue_component__$4 } from './OrCollapse-4d892ca3.js';
8
- import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
8
+ import { useVModel, debouncedWatch } from '@vueuse/core';
9
+ import { u as useToggle } from './useToggle-29e4d7c7.js';
10
+ import { b as BUTTON_SIZE } from './OrIconButton.vue_rollup-plugin-vue_script-9fb7b7ab.js';
9
11
  import { c as createInjector } from './browser-82dea9ed.js';
12
+ import { _ as __vue_component__$5 } from './OrIconButton-014e86a7.js';
13
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
14
 
11
- var script = defineComponent({
15
+ var script$4 = defineComponent({
16
+ name: 'OrTextarea',
17
+ components: {
18
+ OrLabel: __vue_component__$1,
19
+ OrHint: __vue_component__$2,
20
+ OrError: __vue_component__$3,
21
+ OrCollapse: __vue_component__$4
22
+ },
23
+ model: {
24
+ prop: 'modelValue',
25
+ event: 'update:modelValue'
26
+ },
27
+ props: {
28
+ modelValue: {
29
+ type: String,
30
+ default: '',
31
+ required: false
32
+ },
33
+ htmlId: {
34
+ type: String,
35
+ default: '',
36
+ required: false
37
+ },
38
+ placeholder: {
39
+ type: String,
40
+ default: '',
41
+ required: false
42
+ },
43
+ label: {
44
+ type: String,
45
+ default: '',
46
+ required: false
47
+ },
48
+ error: {
49
+ type: String,
50
+ default: '',
51
+ required: false
52
+ },
53
+ hint: {
54
+ type: String,
55
+ default: '',
56
+ required: false
57
+ },
58
+ maxLength: {
59
+ type: Number,
60
+ default: undefined,
61
+ required: false
62
+ },
63
+ isSmall: Boolean,
64
+ isRequired: Boolean,
65
+ isDisabled: Boolean,
66
+ isReadonly: Boolean,
67
+ isInvalid: Boolean
68
+ },
69
+ emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
70
+ setup() {
71
+ const inputRef = ref();
72
+ return {
73
+ inputRef
74
+ };
75
+ },
76
+ data() {
77
+ return {
78
+ reqAF: null,
79
+ isFocused: false
80
+ };
81
+ },
82
+ computed: {
83
+ localValue() {
84
+ if (this.maxLength && this.modelValue.length > this.maxLength) {
85
+ return this.modelValue.slice(0, -(this.modelValue.length - this.maxLength));
86
+ }
87
+ return this.modelValue;
88
+ },
89
+ localId() {
90
+ var _a;
91
+ return this.htmlId || `input-${(_a = getCurrentInstance()) === null || _a === void 0 ? void 0 : _a.uid}`;
92
+ },
93
+ hasValue() {
94
+ return !!this.localValue.length;
95
+ },
96
+ counterString() {
97
+ return this.maxLength && this.maxLength > 0 ? `${this.localValue.length} / ${this.maxLength}` : '';
98
+ },
99
+ isInactive() {
100
+ return this.isDisabled || this.isReadonly;
101
+ },
102
+ isShowError() {
103
+ return !!this.error && this.isInvalid;
104
+ },
105
+ isShowHint() {
106
+ return !!this.hint && !this.isShowError;
107
+ },
108
+ isShowInfo() {
109
+ return this.isShowError || this.isShowHint || !!this.maxLength;
110
+ },
111
+ rootClasses() {
112
+ return ['or-textbox', {
113
+ 'is-show-info': this.isShowInfo,
114
+ 'is-small': this.isSmall,
115
+ 'has-counter': !!this.maxLength,
116
+ 'has-label': !!this.label || !!this.$slots['label-default']
117
+ }];
118
+ },
119
+ inputClasses() {
120
+ return ['or-textbox--input-textarea', {
121
+ 'is-disabled': this.isDisabled,
122
+ 'is-readonly': this.isReadonly,
123
+ 'is-focused': this.isFocused,
124
+ 'is-required': this.isRequired,
125
+ 'has-error': this.isInvalid
126
+ }];
127
+ }
128
+ },
129
+ methods: {
130
+ focus() {
131
+ var _a;
132
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
133
+ },
134
+ calcTextareaHeight() {
135
+ var _a;
136
+ if (this.inputRef) {
137
+ setStyle(this.inputRef, 'height', 0);
138
+ setStyle(this.inputRef, 'height', pxToRem((_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.scrollHeight));
139
+ }
140
+ },
141
+ onInput(event) {
142
+ if (this.isInactive) return;
143
+ this.calcTextareaHeight();
144
+ this.$emit('update:modelValue', event.target.value);
145
+ this.$emit('input', event.target.value);
146
+ },
147
+ onFocus(event) {
148
+ var _a;
149
+ this.isFocused = true;
150
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
151
+ this.$emit('focus', event);
152
+ },
153
+ onBlur(event) {
154
+ var _a;
155
+ this.isFocused = false;
156
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
157
+ this.$emit('blur', event);
158
+ },
159
+ beforeEnter(el) {
160
+ setStyle(el, 'opacity', 0);
161
+ },
162
+ enter(el) {
163
+ const {
164
+ scrollHeight,
165
+ parentElement
166
+ } = el;
167
+ this.reqAF = requestAF(() => {
168
+ const pt = parseFloat(getCS(parentElement).paddingTop);
169
+ const pb = parseFloat(getCS(parentElement).paddingBottom);
170
+ const height = scrollHeight + pt + pb;
171
+ if (parentElement) {
172
+ reflow(parentElement);
173
+ setStyle(parentElement, 'height', pxToRem(height));
174
+ }
175
+ setStyle(el, 'opacity', 1);
176
+ });
177
+ },
178
+ leave(el) {
179
+ this.reqAF = requestAF(() => {
180
+ el.style.opacity = '0';
181
+ });
182
+ },
183
+ cancelRequestAF() {
184
+ cancelAF(this.reqAF);
185
+ }
186
+ }
187
+ });
188
+
189
+ var script$3 = defineComponent({
12
190
  name: 'OrInput',
13
191
  components: {
14
192
  OrLabel: __vue_component__$1,
@@ -186,7 +364,7 @@ var script = defineComponent({
186
364
  });
187
365
 
188
366
  /* script */
189
- const __vue_script__ = script;
367
+ const __vue_script__ = script$3;
190
368
 
191
369
  /* template */
192
370
  var __vue_render__ = function () {
@@ -329,4 +507,314 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
329
507
  staticRenderFns: __vue_staticRenderFns__
330
508
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);
331
509
 
332
- export { __vue_component__ as _ };
510
+ var script$2 = defineComponent({
511
+ name: 'OrNumberInput',
512
+ components: {
513
+ OrInput: __vue_component__
514
+ },
515
+ model: {
516
+ prop: 'modelValue',
517
+ event: 'update:modelValue'
518
+ },
519
+ props: {
520
+ modelValue: {
521
+ type: Number,
522
+ default: undefined,
523
+ required: false
524
+ },
525
+ htmlId: {
526
+ type: String,
527
+ default: '',
528
+ required: false
529
+ },
530
+ placeholder: {
531
+ type: String,
532
+ default: '',
533
+ required: false
534
+ },
535
+ label: {
536
+ type: String,
537
+ default: '',
538
+ required: false
539
+ },
540
+ error: {
541
+ type: String,
542
+ default: '',
543
+ required: false
544
+ },
545
+ hint: {
546
+ type: String,
547
+ default: '',
548
+ required: false
549
+ },
550
+ minValue: {
551
+ type: Number,
552
+ default: undefined,
553
+ required: false
554
+ },
555
+ maxValue: {
556
+ type: Number,
557
+ default: undefined,
558
+ required: false
559
+ },
560
+ stepValue: {
561
+ type: Number,
562
+ default: undefined,
563
+ required: false
564
+ },
565
+ isSmall: Boolean,
566
+ isRequired: Boolean,
567
+ isDisabled: Boolean,
568
+ isReadonly: Boolean,
569
+ isInvalid: Boolean
570
+ },
571
+ emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
572
+ setup(props, {
573
+ emit
574
+ }) {
575
+ const inputRef = ref();
576
+ if (props.modelValue) {
577
+ if (props.minValue !== undefined && props.modelValue < props.minValue) {
578
+ emit('update:modelValue', props.minValue);
579
+ } else if (props.maxValue !== undefined && props.modelValue > props.maxValue) {
580
+ emit('update:modelValue', props.maxValue);
581
+ }
582
+ }
583
+ return {
584
+ inputRef
585
+ };
586
+ },
587
+ computed: {
588
+ htmlInputAttrs() {
589
+ return {
590
+ min: this.minValue,
591
+ max: this.maxValue,
592
+ step: this.stepValue
593
+ };
594
+ },
595
+ localValue: {
596
+ get() {
597
+ var _a;
598
+ return ((_a = this.modelValue) !== null && _a !== void 0 ? _a : '') + '';
599
+ },
600
+ set(val) {
601
+ if (val === undefined || val === '') {
602
+ this.$emit('update:modelValue', undefined);
603
+ return;
604
+ }
605
+ const numVal = +val;
606
+ if (this.minValue !== undefined && numVal < this.minValue) {
607
+ this.$emit('update:modelValue', this.minValue);
608
+ } else if (this.maxValue !== undefined && numVal > this.maxValue) {
609
+ this.$emit('update:modelValue', this.maxValue);
610
+ } else {
611
+ this.$emit('update:modelValue', numVal);
612
+ }
613
+ }
614
+ }
615
+ }
616
+ });
617
+
618
+ var script$1 = defineComponent({
619
+ name: 'OrPassword',
620
+ components: {
621
+ OrInput: __vue_component__,
622
+ OrIconButton: __vue_component__$5
623
+ },
624
+ model: {
625
+ prop: 'modelValue',
626
+ event: 'update:modelValue'
627
+ },
628
+ props: {
629
+ modelValue: {
630
+ type: String,
631
+ default: '',
632
+ required: false
633
+ },
634
+ htmlId: {
635
+ type: String,
636
+ default: '',
637
+ required: false
638
+ },
639
+ placeholder: {
640
+ type: String,
641
+ default: '',
642
+ required: false
643
+ },
644
+ label: {
645
+ type: String,
646
+ default: '',
647
+ required: false
648
+ },
649
+ error: {
650
+ type: String,
651
+ default: '',
652
+ required: false
653
+ },
654
+ hint: {
655
+ type: String,
656
+ default: '',
657
+ required: false
658
+ },
659
+ maxLength: {
660
+ type: Number,
661
+ default: undefined,
662
+ required: false
663
+ },
664
+ isSmall: Boolean,
665
+ isRequired: Boolean,
666
+ isDisabled: Boolean,
667
+ isReadonly: Boolean,
668
+ isInvalid: Boolean
669
+ },
670
+ emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
671
+ setup(props, {
672
+ emit
673
+ }) {
674
+ const inputRef = ref();
675
+ const localValue = useVModel(props, 'modelValue', emit);
676
+ const {
677
+ isActiveToggle,
678
+ toggle
679
+ } = useToggle();
680
+ return {
681
+ inputRef,
682
+ localValue,
683
+ isActiveToggle,
684
+ toggle
685
+ };
686
+ },
687
+ computed: {
688
+ currentButtonIcon() {
689
+ return this.isActiveToggle ? 'visibility' : 'visibility_off';
690
+ },
691
+ type() {
692
+ return this.isActiveToggle ? 'text' : 'password';
693
+ },
694
+ size() {
695
+ return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
696
+ }
697
+ },
698
+ methods: {
699
+ onClick() {
700
+ var _a;
701
+ this.toggle();
702
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
703
+ }
704
+ }
705
+ });
706
+
707
+ var script = defineComponent({
708
+ name: 'OrSearch',
709
+ components: {
710
+ OrInput: __vue_component__,
711
+ OrIconButton: __vue_component__$5
712
+ },
713
+ model: {
714
+ prop: 'modelValue',
715
+ event: 'update:modelValue'
716
+ },
717
+ props: {
718
+ modelValue: {
719
+ type: String,
720
+ default: '',
721
+ required: false
722
+ },
723
+ htmlId: {
724
+ type: String,
725
+ default: '',
726
+ required: false
727
+ },
728
+ placeholder: {
729
+ type: String,
730
+ default: '',
731
+ required: false
732
+ },
733
+ label: {
734
+ type: String,
735
+ default: '',
736
+ required: false
737
+ },
738
+ error: {
739
+ type: String,
740
+ default: '',
741
+ required: false
742
+ },
743
+ hint: {
744
+ type: String,
745
+ default: '',
746
+ required: false
747
+ },
748
+ debounce: {
749
+ type: Number,
750
+ default: 500,
751
+ required: false
752
+ },
753
+ isUsingTrim: {
754
+ type: Boolean,
755
+ default: true,
756
+ required: false
757
+ },
758
+ maxLength: {
759
+ type: Number,
760
+ default: undefined,
761
+ required: false
762
+ },
763
+ isSmall: Boolean,
764
+ isRequired: Boolean,
765
+ isDisabled: Boolean,
766
+ isReadonly: Boolean,
767
+ isInvalid: Boolean
768
+ },
769
+ emits: ['focus', 'blur', 'update:modelValue', 'input', 'search', 'clear', 'keypress', 'keyup', 'keydown'],
770
+ setup(props, {
771
+ emit
772
+ }) {
773
+ var _a;
774
+ const inputRef = ref();
775
+ const localValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
776
+ debouncedWatch(localValue, () => {
777
+ emit('search', props.isUsingTrim ? localValue.value.trim() : localValue.value);
778
+ }, {
779
+ debounce: +props.debounce
780
+ });
781
+ return {
782
+ inputRef,
783
+ localValue
784
+ };
785
+ },
786
+ computed: {
787
+ hasValue() {
788
+ var _a;
789
+ return !!((_a = this.localValue) === null || _a === void 0 ? void 0 : _a.length);
790
+ },
791
+ currentButtonIcon() {
792
+ return this.hasValue ? 'close' : 'search';
793
+ },
794
+ size() {
795
+ return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
796
+ }
797
+ },
798
+ watch: {
799
+ modelValue(val) {
800
+ if (this.localValue !== val) this.localValue = val;
801
+ }
802
+ },
803
+ methods: {
804
+ onClick() {
805
+ var _a;
806
+ if (this.hasValue) {
807
+ this.localValue = '';
808
+ this.$emit('update:modelValue', '');
809
+ this.$emit('clear');
810
+ (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
811
+ }
812
+ },
813
+ onModelValueUpdate(value) {
814
+ this.localValue = value;
815
+ this.$emit('update:modelValue', value);
816
+ }
817
+ }
818
+ });
819
+
820
+ export { __vue_component__ as _, script$2 as a, script$1 as b, script as c, script$4 as s };
@@ -8,7 +8,7 @@ import { _ as __vue_component__$3 } from './OrExpansionPanel-729eb1e7.js';
8
8
  import { _ as __vue_component__$4 } from './OrHint-78b399cb.js';
9
9
  import { _ as __vue_component__$5 } from './OrIcon-f34e0e6f.js';
10
10
  import { _ as __vue_component__$7, a as InputBoxSize } from './OrInputBox-9ceb9fc4.js';
11
- import { _ as __vue_component__$6 } from './OrInput-e8fe9102.js';
11
+ import { _ as __vue_component__$6 } from './OrInput-b029d058.js';
12
12
  import { _ as __vue_component__$8 } from './OrLabel-0945a4d9.js';
13
13
  import { _ as __vue_component__$9 } from './OrMenuItem-7b7fbf8a.js';
14
14
  import { _ as __vue_component__$a } from './OrPopover-d5d4f62a.js';
@@ -36,7 +36,7 @@ export * from './or-inline-text-edit';
36
36
  export * from './or-inline-textarea-v3';
37
37
  export * from './or-input-box-v3';
38
38
  export * from './or-input-v3';
39
- export * from './or-input';
39
+ export * from './or-inputs';
40
40
  export * from './or-label';
41
41
  export * from './or-label-v3';
42
42
  export * from './or-link-v3';
@@ -50,11 +50,9 @@ export * from './or-modal';
50
50
  export * from './or-modal-v3';
51
51
  export * from './or-notification';
52
52
  export * from './or-notification-v3';
53
- export * from './or-number-input';
54
53
  export * from './or-overflow-menu';
55
54
  export * from './or-overlay';
56
55
  export * from './or-overlay-v3';
57
- export * from './or-password';
58
56
  export * from './or-pagination-v3';
59
57
  export * from './or-popover-v3';
60
58
  export * from './or-progress';
@@ -62,7 +60,6 @@ export * from './or-progress-v3';
62
60
  export * from './or-radio';
63
61
  export * from './or-radio-group';
64
62
  export * from './or-radio-v3';
65
- export * from './or-search';
66
63
  export * from './or-search-v3';
67
64
  export * from './or-segmented-control-v3';
68
65
  export * from './or-select';
@@ -86,7 +83,6 @@ export * from './or-tag-v3';
86
83
  export * from './or-teleport';
87
84
  export * from './or-teleport-v3';
88
85
  export * from './or-text-v3';
89
- export * from './or-textarea';
90
86
  export * from './or-textarea-v3';
91
87
  export * from './or-textbox';
92
88
  export * from './or-toast';