@onereach/ui-components 4.7.3 → 4.7.4-beta.2867.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 (169) hide show
  1. package/dist/bundled/v2/components/OrInlineInputV3/styles.js +1 -1
  2. package/dist/bundled/v2/components/OrInlineTextareaV3/styles.js +1 -1
  3. package/dist/bundled/v2/components/OrInputBoxV3/styles.js +2 -0
  4. package/dist/bundled/v2/components/OrInputV3/styles.js +2 -2
  5. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +355 -0
  6. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +179 -0
  7. package/dist/bundled/v2/components/OrTagInputV3/index.d.ts +2 -0
  8. package/dist/bundled/v2/components/OrTagInputV3/index.js +55 -0
  9. package/dist/bundled/v2/components/OrTagInputV3/props.d.ts +1 -0
  10. package/dist/bundled/v2/components/OrTagInputV3/props.js +1 -0
  11. package/dist/bundled/v2/components/OrTagInputV3/styles.d.ts +3 -0
  12. package/dist/bundled/v2/components/OrTagInputV3/styles.js +17 -0
  13. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +14 -2
  14. package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +7 -3
  15. package/dist/bundled/v2/components/OrTagsV3/styles.js +2 -0
  16. package/dist/bundled/v2/components/OrTextareaV3/styles.js +1 -1
  17. package/dist/bundled/v2/components/index.d.ts +2 -1
  18. package/dist/bundled/v2/components/index.js +6 -4
  19. package/dist/bundled/v2/hooks/useTheme.js +6 -0
  20. package/dist/bundled/v2/index.js +8 -6
  21. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-48bbd13c.js → OrCardCollection.vue_vue_type_script_lang-748fb337.js} +1 -1
  22. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f1a6320.js → OrConfirm.vue_vue_type_script_lang-93458f1f.js} +1 -1
  23. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-3f8700f9.js → OrDatePicker.vue_vue_type_script_lang-8ec017e2.js} +1 -1
  24. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-ecd7cbd1.js → OrDateTimePicker.vue_vue_type_script_lang-fec947db.js} +1 -1
  25. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-a9fe34c8.js → OrInput.vue_vue_type_script_lang-66363c62.js} +1 -1
  26. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-8a82fdc6.js → OrSearch.vue_vue_type_script_lang-18dc2df8.js} +1 -1
  27. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-ba73f458.js → OrSelect.vue_vue_type_script_lang-359bac94.js} +2 -2
  28. package/dist/bundled/v3/OrTagInput.vue_vue_type_script_lang-1eb13525.js +148 -0
  29. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-c14463c4.js → OrTags.vue_vue_type_script_lang-45bbc68e.js} +2 -0
  30. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-af284089.js → OrTextarea.vue_vue_type_script_lang-0d1a7a48.js} +1 -1
  31. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-845ec78b.js → OrTimePicker.vue_vue_type_script_lang-c737eaa8.js} +1 -1
  32. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +5 -5
  33. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +4 -4
  34. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +4 -4
  35. package/dist/bundled/v3/components/OrConfirmV3/index.js +3 -3
  36. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +3 -3
  37. package/dist/bundled/v3/components/OrDatePickerV3/index.js +2 -2
  38. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
  39. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -2
  40. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
  41. package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
  42. package/dist/bundled/v3/components/OrInlineInputV3/styles.js +1 -1
  43. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  44. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
  45. package/dist/bundled/v3/components/OrInlineTextareaV3/styles.js +1 -1
  46. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +2 -2
  47. package/dist/bundled/v3/components/OrInputBoxV3/index.js +1 -1
  48. package/dist/bundled/v3/components/OrInputBoxV3/styles.js +2 -0
  49. package/dist/bundled/v3/components/OrInputV3/OrInput.js +3 -3
  50. package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
  51. package/dist/bundled/v3/components/OrInputV3/styles.js +2 -2
  52. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +4 -4
  53. package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
  54. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
  55. package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
  56. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +167 -0
  57. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +131 -0
  58. package/dist/bundled/v3/components/OrTagInputV3/index.d.ts +2 -0
  59. package/dist/bundled/v3/components/OrTagInputV3/index.js +68 -0
  60. package/dist/bundled/v3/components/OrTagInputV3/props.d.ts +1 -0
  61. package/dist/bundled/v3/components/OrTagInputV3/props.js +1 -0
  62. package/dist/bundled/v3/components/OrTagInputV3/styles.d.ts +3 -0
  63. package/dist/bundled/v3/components/OrTagInputV3/styles.js +17 -0
  64. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +8 -6
  65. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +7 -2
  66. package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
  67. package/dist/bundled/v3/components/OrTagsV3/styles.js +2 -0
  68. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
  69. package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
  70. package/dist/bundled/v3/components/OrTextareaV3/styles.js +1 -1
  71. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +3 -3
  72. package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -2
  73. package/dist/bundled/v3/components/index.d.ts +2 -1
  74. package/dist/bundled/v3/components/index.js +20 -17
  75. package/dist/bundled/v3/hooks/useTheme.js +6 -0
  76. package/dist/bundled/v3/index.js +22 -19
  77. package/dist/esm/v2/{OrCardCollection-2c9a3534.js → OrCardCollection-bd173449.js} +2 -2
  78. package/dist/esm/v2/{OrCombinedInput-9c2b15fe.js → OrCombinedInput-ed20e33b.js} +1 -1
  79. package/dist/esm/v2/{OrConfirm-fc656b7e.js → OrConfirm-0b56c11f.js} +1 -1
  80. package/dist/esm/v2/{OrDatePicker-73c19c1c.js → OrDatePicker-0989a40c.js} +2 -2
  81. package/dist/esm/v2/{OrDateTimePicker-aff87aaa.js → OrDateTimePicker-ac766f04.js} +2 -2
  82. package/dist/esm/v2/{OrInlineInput-252510d7.js → OrInlineInput-84a8398c.js} +1 -1
  83. package/dist/esm/v2/{OrInlineTextarea-8df56c4d.js → OrInlineTextarea-f2ecbd39.js} +1 -1
  84. package/dist/esm/v2/{OrInput-39feafce.js → OrInput-2eeff16a.js} +4 -4
  85. package/dist/esm/v2/{OrInputBox-7f3c0ee9.js → OrInputBox-11227ecd.js} +1 -1
  86. package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-906b3ef8.js → OrInputBox.vue_rollup-plugin-vue_script-1715021a.js} +2 -0
  87. package/dist/esm/v2/{OrSearch-cbd7fd0b.js → OrSearch-33e3b0e4.js} +2 -2
  88. package/dist/esm/v2/{OrSelect-1132c7dc.js → OrSelect-340ae8d0.js} +3 -3
  89. package/dist/esm/v2/OrTagInput-2d7a9ef2.js +332 -0
  90. package/dist/esm/v2/{OrTags-e80cd854.js → OrTags-9048733c.js} +16 -2
  91. package/dist/esm/v2/{OrTextarea-01df0715.js → OrTextarea-978fb518.js} +3 -3
  92. package/dist/esm/v2/{OrTimePicker-00b7319c.js → OrTimePicker-5fd08ad2.js} +2 -2
  93. package/dist/esm/v2/components/index.d.ts +2 -1
  94. package/dist/esm/v2/components/index.js +17 -16
  95. package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -5
  96. package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
  97. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
  98. package/dist/esm/v2/components/or-date-picker-v3/index.js +3 -3
  99. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +3 -3
  100. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  101. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  102. package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
  103. package/dist/esm/v2/components/or-input-v3/index.js +3 -3
  104. package/dist/esm/v2/components/or-search-v3/index.js +4 -4
  105. package/dist/esm/v2/components/or-select-v3/index.js +4 -4
  106. package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +179 -0
  107. package/dist/esm/v2/components/or-tag-input-v3/index.d.ts +2 -0
  108. package/dist/esm/v2/components/or-tag-input-v3/index.js +31 -0
  109. package/dist/esm/v2/components/or-tag-input-v3/props.d.ts +1 -0
  110. package/dist/esm/v2/components/or-tag-input-v3/styles.d.ts +3 -0
  111. package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +7 -3
  112. package/dist/esm/v2/components/or-tags-v3/index.js +1 -1
  113. package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
  114. package/dist/esm/v2/components/or-time-picker-v3/index.js +3 -3
  115. package/dist/esm/v2/index.js +17 -16
  116. package/dist/esm/v3/{OrCardCollection-dcfaa692.js → OrCardCollection-c5d5506c.js} +2 -2
  117. package/dist/esm/v3/{OrCombinedInput-b5ba46a1.js → OrCombinedInput-e3891038.js} +1 -1
  118. package/dist/esm/v3/{OrConfirm-e8ee0b8f.js → OrConfirm-5509c440.js} +1 -1
  119. package/dist/esm/v3/{OrDatePicker-19a07bb4.js → OrDatePicker-6ac8578a.js} +1 -1
  120. package/dist/esm/v3/{OrDateTimePicker-219fa71d.js → OrDateTimePicker-b15d4198.js} +1 -1
  121. package/dist/esm/v3/{OrInlineInput-5d452b98.js → OrInlineInput-a6c33dc0.js} +1 -1
  122. package/dist/esm/v3/{OrInlineTextarea-1a769972.js → OrInlineTextarea-f060dab5.js} +1 -1
  123. package/dist/esm/v3/{OrInput-a303f924.js → OrInput-c653aedb.js} +3 -3
  124. package/dist/esm/v3/{OrInputBox-32814878.js → OrInputBox-32b37b17.js} +2 -0
  125. package/dist/esm/v3/{OrSearch-c5ecb005.js → OrSearch-b945651d.js} +2 -2
  126. package/dist/esm/v3/{OrSelect-9432ac4d.js → OrSelect-a9be2490.js} +2 -2
  127. package/dist/esm/v3/OrTagInput-da823f11.js +257 -0
  128. package/dist/esm/v3/{OrTags-3f0ab56f.js → OrTags-1621cbb9.js} +10 -4
  129. package/dist/esm/v3/{OrTextarea-0f9a2a27.js → OrTextarea-1e19417a.js} +2 -2
  130. package/dist/esm/v3/{OrTimePicker-5cb9eb34.js → OrTimePicker-d66edf77.js} +1 -1
  131. package/dist/esm/v3/components/index.d.ts +2 -1
  132. package/dist/esm/v3/components/index.js +16 -15
  133. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  134. package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
  135. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  136. package/dist/esm/v3/components/or-date-picker-v3/index.js +2 -2
  137. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +2 -2
  138. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  139. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  140. package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
  141. package/dist/esm/v3/components/or-input-v3/index.js +2 -2
  142. package/dist/esm/v3/components/or-search-v3/index.js +3 -3
  143. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  144. package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +131 -0
  145. package/dist/esm/v3/components/or-tag-input-v3/index.d.ts +2 -0
  146. package/dist/esm/v3/components/or-tag-input-v3/index.js +29 -0
  147. package/dist/esm/v3/components/or-tag-input-v3/props.d.ts +1 -0
  148. package/dist/esm/v3/components/or-tag-input-v3/styles.d.ts +3 -0
  149. package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +7 -2
  150. package/dist/esm/v3/components/or-tags-v3/index.js +1 -1
  151. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  152. package/dist/esm/v3/components/or-time-picker-v3/index.js +2 -2
  153. package/dist/esm/v3/index.js +16 -15
  154. package/package.json +3 -4
  155. package/src/components/index.ts +2 -1
  156. package/src/components/or-inline-input-v3/styles.ts +1 -1
  157. package/src/components/or-inline-textarea-v3/styles.ts +1 -1
  158. package/src/components/or-input-box-v3/styles.ts +3 -0
  159. package/src/components/or-input-v3/styles.ts +2 -2
  160. package/src/components/or-tag-input-v3/OrTagInput.vue +291 -0
  161. package/src/components/or-tag-input-v3/index.ts +2 -0
  162. package/src/components/or-tag-input-v3/props.ts +1 -0
  163. package/src/components/or-tag-input-v3/styles.ts +24 -0
  164. package/src/components/or-tags-v3/OrTags.vue +14 -0
  165. package/src/components/or-tags-v3/styles.ts +3 -0
  166. package/src/components/or-textarea-v3/styles.ts +1 -1
  167. /package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-c4fb7c0e.js → OrInlineInput.vue_vue_type_script_lang-820cc7e9.js} +0 -0
  168. /package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-4569f111.js → OrInlineTextarea.vue_vue_type_script_lang-8e639991.js} +0 -0
  169. /package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-ede24b04.js → OrInputBox.vue_vue_type_script_lang-49fb179a.js} +0 -0
@@ -8,7 +8,7 @@ const InlineInputControl = [
8
8
  'w-full',
9
9
  // Typography
10
10
  'typography-inherit',
11
- // Theme
11
+ // Theme (placeholder)
12
12
  'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark'];
13
13
  const InlineInputAction = [
14
14
  // Layout
@@ -8,7 +8,7 @@ const InlineTextareaControl = [
8
8
  'w-full',
9
9
  // Typography
10
10
  'typography-inherit',
11
- // Theme
11
+ // Theme (placeholder)
12
12
  'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark'];
13
13
  const InlineTextareaAction = [
14
14
  // Layout
@@ -1,6 +1,8 @@
1
1
  const InputBoxRoot = [
2
2
  // Layout
3
3
  'layout-row',
4
+ // Overflow
5
+ 'overflow-hidden',
4
6
  // Box
5
7
  'w-full',
6
8
  // Shape
@@ -5,10 +5,10 @@ const InputRoot = [
5
5
  'gap-xs'];
6
6
  const InputControl = [
7
7
  // Box
8
- 'w-full',
8
+ 'flex-auto',
9
9
  // Typography
10
10
  'typography-inherit',
11
- // Theme
11
+ // Theme (placeholder)
12
12
  'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark'];
13
13
 
14
14
  export { InputControl, InputRoot };
@@ -0,0 +1,355 @@
1
+ import { defineComponent, ref, computed, reactive } from 'vue-demi';
2
+ import { TagInput, TagInputControl, TagInputItem } from './styles.js';
3
+ import __vue_component__$1 from '../OrErrorV3/OrError.js';
4
+ import __vue_component__$2 from '../OrHintV3/OrHint.js';
5
+ import __vue_component__$3 from '../OrIconButtonV3/OrIconButton.js';
6
+ import __vue_component__$4 from '../OrInputBoxV3/OrInputBox.js';
7
+ import __vue_component__$5 from '../OrLabelV3/OrLabel.js';
8
+ import __vue_component__$6 from '../OrTagsV3/OrTags.js';
9
+ import { useIdAttribute } from '../../hooks/useIdAttribute.js';
10
+ import { useControlAttributes } from '../../hooks/useControlAttributes.js';
11
+ import { useValidationAttributes } from '../../hooks/useValidationAttributes.js';
12
+ import { InputBoxSize } from '../OrInputBoxV3/props.js';
13
+ import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
14
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
15
+ import '../OrErrorV3/styles.js';
16
+ import '../OrHintV3/styles.js';
17
+ import '../OrIconButtonV3/props.js';
18
+ import '../OrIconV3/props.js';
19
+ import '../OrIconButtonV3/styles.js';
20
+ import '../OrIconV3/OrIcon.js';
21
+ import '../OrIconV3/styles.js';
22
+ import '../OrTooltipV3/OrTooltip.js';
23
+ import '../OrTooltipV3/styles.js';
24
+ import '../OrPopoverV3/OrPopover.js';
25
+ import '../../floating-ui.dom.esm-83eba816.js';
26
+ import '../../index-c92e2839.js';
27
+ import '../../index-ec92055d.js';
28
+ import '../OrPopoverV3/props.js';
29
+ import '../OrPopoverV3/styles.js';
30
+ import '../OrBottomSheetV3/OrBottomSheet.js';
31
+ import '../OrBottomSheetV3/props.js';
32
+ import '../OrBottomSheetV3/styles.js';
33
+ import '../OrOverlayV3/OrOverlay.js';
34
+ import '../OrOverlayV3/styles.js';
35
+ import '../OrTeleportV3/OrTeleport.js';
36
+ import 'vue';
37
+ import '../../hooks/useElevation.js';
38
+ import '../../utils/isVisible.js';
39
+ import '../../hooks/usePopoverState.js';
40
+ import '../../hooks/useResponsive/useResponsive.js';
41
+ import '../OrInputBoxV3/styles.js';
42
+ import '../OrLabelV3/props.js';
43
+ import '../OrLabelV3/styles.js';
44
+ import '../OrTagsV3/styles.js';
45
+ import '../OrButtonV3/OrButton.js';
46
+ import '../OrButtonV3/props.js';
47
+ import '../OrButtonV3/styles.js';
48
+ import '../OrLoaderV3/OrLoader.js';
49
+ import '../OrLoaderV3/props.js';
50
+ import '../OrLoaderV3/styles.js';
51
+ import '../OrTagV3/OrTag.js';
52
+ import '../OrTagV3/props.js';
53
+ import '../OrTagV3/styles.js';
54
+ import '../../hooks/useOverflow.js';
55
+
56
+ var script = defineComponent({
57
+ name: 'OrTagInput',
58
+ components: {
59
+ OrError: __vue_component__$1,
60
+ OrHint: __vue_component__$2,
61
+ OrIconButton: __vue_component__$3,
62
+ OrInputBox: __vue_component__$4,
63
+ OrLabel: __vue_component__$5,
64
+ OrTags: __vue_component__$6
65
+ },
66
+ model: {
67
+ prop: 'modelValue',
68
+ event: 'update:modelValue'
69
+ },
70
+ props: {
71
+ modelValue: {
72
+ type: Array,
73
+ default: () => []
74
+ },
75
+ size: {
76
+ type: String,
77
+ default: InputBoxSize.M
78
+ },
79
+ label: {
80
+ type: String,
81
+ default: undefined
82
+ },
83
+ placeholder: {
84
+ type: String,
85
+ default: undefined
86
+ },
87
+ hint: {
88
+ type: String,
89
+ default: undefined
90
+ },
91
+ error: {
92
+ type: [String, Boolean],
93
+ default: undefined
94
+ },
95
+ required: {
96
+ type: Boolean,
97
+ default: false
98
+ },
99
+ readonly: {
100
+ type: Boolean,
101
+ default: false
102
+ },
103
+ disabled: {
104
+ type: Boolean,
105
+ default: false
106
+ },
107
+ disableDefaultStyles: {
108
+ type: Boolean,
109
+ default: false
110
+ }
111
+ },
112
+ emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
113
+ expose: ['root', 'focus', 'blur'],
114
+ setup(props, context) {
115
+ // Refs
116
+ const root = ref();
117
+ const control = ref();
118
+ // Styles
119
+ const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
120
+ const controlStyles = computed(() => [...TagInputControl]);
121
+ const itemStyles = computed(() => [...TagInputItem]);
122
+ // State
123
+ const controlAttributes = reactive({
124
+ id: useIdAttribute(),
125
+ ...useControlAttributes(),
126
+ ...useValidationAttributes()
127
+ });
128
+ const proxyModelValue = computed({
129
+ get: () => props.modelValue,
130
+ set: value => {
131
+ context.emit('update:modelValue', value);
132
+ }
133
+ });
134
+ const draftModelValue = ref();
135
+ const currentLength = computed(() => {
136
+ var _a, _b;
137
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
138
+ });
139
+ const maxLength = computed(() => controlAttributes.maxlength);
140
+ // Methods
141
+ function focus() {
142
+ var _a;
143
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
144
+ }
145
+ function blur() {
146
+ var _a;
147
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
148
+ }
149
+ function add() {
150
+ var _a;
151
+ const value = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
152
+ if (value && !proxyModelValue.value.includes(value)) {
153
+ proxyModelValue.value = [...proxyModelValue.value, value];
154
+ draftModelValue.value = undefined;
155
+ }
156
+ }
157
+ function remove(value) {
158
+ proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
159
+ }
160
+ function reset() {
161
+ proxyModelValue.value = [];
162
+ draftModelValue.value = undefined;
163
+ }
164
+ return {
165
+ root,
166
+ control,
167
+ rootStyles,
168
+ controlStyles,
169
+ itemStyles,
170
+ controlAttributes,
171
+ proxyModelValue,
172
+ draftModelValue,
173
+ currentLength,
174
+ maxLength,
175
+ focus,
176
+ blur,
177
+ add,
178
+ remove,
179
+ reset
180
+ };
181
+ }
182
+ });
183
+
184
+ var css_248z = "input[data-v-b3092b7c]{min-width:0;background:0 0;outline:0}";
185
+ styleInject(css_248z);
186
+
187
+ /* script */
188
+ const __vue_script__ = script;
189
+ /* template */
190
+ var __vue_render__ = function () {
191
+ var _vm = this;
192
+ var _h = _vm.$createElement;
193
+ var _c = _vm._self._c || _h;
194
+ return _c('div', {
195
+ ref: "root",
196
+ class: _vm.rootStyles
197
+ }, [_vm.label ? [_c('OrLabel', {
198
+ attrs: {
199
+ "control-id": _vm.controlAttributes.id,
200
+ "variant": 'input',
201
+ "required": _vm.required,
202
+ "disabled": _vm.disabled
203
+ },
204
+ scopedSlots: _vm._u([{
205
+ key: "addon",
206
+ fn: function () {
207
+ return [_vm._t("addon")];
208
+ },
209
+ proxy: true
210
+ }], null, true)
211
+ }, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
212
+ attrs: {
213
+ "variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
214
+ "size": _vm.size,
215
+ "invalid": !!_vm.error,
216
+ "readonly": _vm.readonly,
217
+ "disabled": _vm.disabled
218
+ },
219
+ scopedSlots: _vm._u([{
220
+ key: "addon",
221
+ fn: function () {
222
+ return [_vm.proxyModelValue.length > 0 || _vm.draftModelValue ? [_c('OrIconButton', {
223
+ attrs: {
224
+ "icon": 'close',
225
+ "color": 'inherit',
226
+ "disabled": _vm.readonly || _vm.disabled
227
+ },
228
+ on: {
229
+ "click": function ($event) {
230
+ $event.stopPropagation();
231
+ return _vm.reset();
232
+ }
233
+ }
234
+ })] : _vm._e()];
235
+ },
236
+ proxy: true
237
+ }])
238
+ }, [_c('OrTags', {
239
+ attrs: {
240
+ "items": _vm.proxyModelValue,
241
+ "tag-props": {
242
+ variant: 'reset',
243
+ disabled: _vm.disabled
244
+ }
245
+ },
246
+ on: {
247
+ "reset": function ($event) {
248
+ return _vm.remove($event);
249
+ }
250
+ }
251
+ }), _vm._v(" "), _c('input', _vm._b({
252
+ directives: [{
253
+ name: "model",
254
+ rawName: "v-model",
255
+ value: _vm.draftModelValue,
256
+ expression: "draftModelValue"
257
+ }],
258
+ ref: "control",
259
+ class: _vm.controlStyles,
260
+ attrs: {
261
+ "placeholder": !_vm.proxyModelValue.length ? _vm.placeholder : undefined,
262
+ "readonly": _vm.readonly,
263
+ "disabled": _vm.disabled,
264
+ "type": 'text'
265
+ },
266
+ domProps: {
267
+ "value": _vm.draftModelValue
268
+ },
269
+ on: {
270
+ "keydown": [function ($event) {
271
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
272
+ return null;
273
+ }
274
+ return _vm.add();
275
+ }, function ($event) {
276
+ return _vm.$emit('keydown', $event);
277
+ }],
278
+ "keyup": function ($event) {
279
+ return _vm.$emit('keyup', $event);
280
+ },
281
+ "focus": function ($event) {
282
+ return _vm.$emit('focus', $event);
283
+ },
284
+ "blur": function ($event) {
285
+ return _vm.$emit('blur', $event);
286
+ },
287
+ "input": function ($event) {
288
+ if ($event.target.composing) {
289
+ return;
290
+ }
291
+ _vm.draftModelValue = $event.target.value;
292
+ }
293
+ }
294
+ }, 'input', _vm.controlAttributes, false))], 1), _vm._v(" "), _c('div', {
295
+ directives: [{
296
+ name: "show",
297
+ rawName: "v-show",
298
+ value: !_vm.error,
299
+ expression: "!error"
300
+ }],
301
+ class: ['contents']
302
+ }, [_vm.hint || _vm.maxLength ? [_c('OrHint', {
303
+ attrs: {
304
+ "disabled": _vm.disabled
305
+ },
306
+ scopedSlots: _vm._u([_vm.maxLength ? {
307
+ key: "addon",
308
+ fn: function () {
309
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
310
+ },
311
+ proxy: true
312
+ } : null], null, true)
313
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()], 2), _vm._v(" "), _c('div', {
314
+ directives: [{
315
+ name: "show",
316
+ rawName: "v-show",
317
+ value: typeof _vm.error === 'string',
318
+ expression: "typeof error === 'string'"
319
+ }],
320
+ class: ['contents']
321
+ }, [_c('OrError', {
322
+ attrs: {
323
+ "disabled": _vm.disabled
324
+ },
325
+ scopedSlots: _vm._u([_vm.maxLength ? {
326
+ key: "addon",
327
+ fn: function () {
328
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
329
+ },
330
+ proxy: true
331
+ } : null], null, true)
332
+ }, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])], 1)], 2);
333
+ };
334
+ var __vue_staticRenderFns__ = [];
335
+
336
+ /* style */
337
+ const __vue_inject_styles__ = undefined;
338
+ /* scoped */
339
+ const __vue_scope_id__ = "data-v-b3092b7c";
340
+ /* module identifier */
341
+ const __vue_module_identifier__ = undefined;
342
+ /* functional template */
343
+ const __vue_is_functional_template__ = false;
344
+ /* style inject */
345
+
346
+ /* style inject SSR */
347
+
348
+ /* style inject shadow dom */
349
+
350
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
351
+ render: __vue_render__,
352
+ staticRenderFns: __vue_staticRenderFns__
353
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
354
+
355
+ export { __vue_component__ as default };
@@ -0,0 +1,179 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { TagInputSize } from './props';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
6
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
7
+ controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
8
+ itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
+ controlAttributes: {
10
+ required: boolean | undefined;
11
+ minlength: number | undefined;
12
+ maxlength: number | undefined;
13
+ pattern: string | undefined;
14
+ min: number | undefined;
15
+ max: number | undefined;
16
+ step: number | undefined;
17
+ readonly: boolean | undefined;
18
+ disabled: boolean | undefined;
19
+ 'force-state': string | undefined;
20
+ id: string | undefined;
21
+ };
22
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]>;
23
+ draftModelValue: import("@vue/composition-api").Ref<string | undefined>;
24
+ currentLength: import("@vue/composition-api").ComputedRef<number>;
25
+ maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
26
+ focus: () => void;
27
+ blur: () => void;
28
+ add: () => void;
29
+ remove: (value: string) => void;
30
+ reset: () => void;
31
+ }> & import("@vue/composition-api").Data, {}, {}, {
32
+ modelValue: {
33
+ type: PropType<string[]>;
34
+ default: () => never[];
35
+ };
36
+ size: {
37
+ type: PropType<"m" | "s">;
38
+ default: TagInputSize;
39
+ };
40
+ label: {
41
+ type: StringConstructor;
42
+ default: undefined;
43
+ };
44
+ placeholder: {
45
+ type: StringConstructor;
46
+ default: undefined;
47
+ };
48
+ hint: {
49
+ type: StringConstructor;
50
+ default: undefined;
51
+ };
52
+ error: {
53
+ type: (BooleanConstructor | StringConstructor)[];
54
+ default: undefined;
55
+ };
56
+ required: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ readonly: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ disabled: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ disableDefaultStyles: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ }, import("@vue/composition-api").ExtractPropTypes<{
73
+ modelValue: {
74
+ type: PropType<string[]>;
75
+ default: () => never[];
76
+ };
77
+ size: {
78
+ type: PropType<"m" | "s">;
79
+ default: TagInputSize;
80
+ };
81
+ label: {
82
+ type: StringConstructor;
83
+ default: undefined;
84
+ };
85
+ placeholder: {
86
+ type: StringConstructor;
87
+ default: undefined;
88
+ };
89
+ hint: {
90
+ type: StringConstructor;
91
+ default: undefined;
92
+ };
93
+ error: {
94
+ type: (BooleanConstructor | StringConstructor)[];
95
+ default: undefined;
96
+ };
97
+ required: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ readonly: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ disabled: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ disableDefaultStyles: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
114
+ modelValue: string[];
115
+ size: "m" | "s";
116
+ label: string;
117
+ placeholder: string;
118
+ hint: string;
119
+ error: string | boolean;
120
+ required: boolean;
121
+ readonly: boolean;
122
+ disabled: boolean;
123
+ disableDefaultStyles: boolean;
124
+ } & {} & {
125
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
126
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
127
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
128
+ control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
129
+ rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
130
+ controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
131
+ itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
132
+ controlAttributes: {
133
+ required: boolean | undefined;
134
+ minlength: number | undefined;
135
+ maxlength: number | undefined;
136
+ pattern: string | undefined;
137
+ min: number | undefined;
138
+ max: number | undefined;
139
+ step: number | undefined;
140
+ readonly: boolean | undefined;
141
+ disabled: boolean | undefined;
142
+ 'force-state': string | undefined;
143
+ id: string | undefined;
144
+ };
145
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]>;
146
+ draftModelValue: import("@vue/composition-api").Ref<string | undefined>;
147
+ currentLength: import("@vue/composition-api").ComputedRef<number>;
148
+ maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
149
+ focus: () => void;
150
+ blur: () => void;
151
+ add: () => void;
152
+ remove: (value: string) => void;
153
+ reset: () => void;
154
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
155
+ modelValue: string[];
156
+ size: "m" | "s";
157
+ label: string;
158
+ placeholder: string;
159
+ hint: string;
160
+ error: string | boolean;
161
+ required: boolean;
162
+ readonly: boolean;
163
+ disabled: boolean;
164
+ disableDefaultStyles: boolean;
165
+ } & {} & {
166
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
167
+ }, {
168
+ modelValue: string[];
169
+ size: "m" | "s";
170
+ label: string;
171
+ placeholder: string;
172
+ hint: string;
173
+ error: string | boolean;
174
+ required: boolean;
175
+ readonly: boolean;
176
+ disabled: boolean;
177
+ disableDefaultStyles: boolean;
178
+ }, true>);
179
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OrTagInputV3 } from './OrTagInput.vue';
2
+ export * from './props';
@@ -0,0 +1,55 @@
1
+ export { default as OrTagInputV3 } from './OrTagInput.js';
2
+ export { InputBoxSize as TagInputSize } from '../OrInputBoxV3/props.js';
3
+ import 'vue-demi';
4
+ import './styles.js';
5
+ import '../OrErrorV3/OrError.js';
6
+ import '../OrErrorV3/styles.js';
7
+ import '../../normalize-component-6e8e3d80.js';
8
+ import '../OrHintV3/OrHint.js';
9
+ import '../OrHintV3/styles.js';
10
+ import '../OrIconButtonV3/OrIconButton.js';
11
+ import '../OrIconButtonV3/props.js';
12
+ import '../OrIconV3/props.js';
13
+ import '../OrIconButtonV3/styles.js';
14
+ import '../OrIconV3/OrIcon.js';
15
+ import '../OrIconV3/styles.js';
16
+ import '../OrTooltipV3/OrTooltip.js';
17
+ import '../OrTooltipV3/styles.js';
18
+ import '../OrPopoverV3/OrPopover.js';
19
+ import '../../floating-ui.dom.esm-83eba816.js';
20
+ import '../../index-c92e2839.js';
21
+ import '../../index-ec92055d.js';
22
+ import '../OrPopoverV3/props.js';
23
+ import '../OrPopoverV3/styles.js';
24
+ import '../OrBottomSheetV3/OrBottomSheet.js';
25
+ import '../OrBottomSheetV3/props.js';
26
+ import '../OrBottomSheetV3/styles.js';
27
+ import '../OrOverlayV3/OrOverlay.js';
28
+ import '../OrOverlayV3/styles.js';
29
+ import '../OrTeleportV3/OrTeleport.js';
30
+ import 'vue';
31
+ import '../../hooks/useElevation.js';
32
+ import '../../utils/isVisible.js';
33
+ import '../../hooks/usePopoverState.js';
34
+ import '../../hooks/useResponsive/useResponsive.js';
35
+ import '../OrInputBoxV3/OrInputBox.js';
36
+ import '../OrInputBoxV3/styles.js';
37
+ import '../OrLabelV3/OrLabel.js';
38
+ import '../OrLabelV3/props.js';
39
+ import '../OrLabelV3/styles.js';
40
+ import '../OrTagsV3/OrTags.js';
41
+ import '../OrTagsV3/styles.js';
42
+ import '../OrButtonV3/OrButton.js';
43
+ import '../OrButtonV3/props.js';
44
+ import '../OrButtonV3/styles.js';
45
+ import '../OrLoaderV3/OrLoader.js';
46
+ import '../OrLoaderV3/props.js';
47
+ import '../OrLoaderV3/styles.js';
48
+ import '../OrTagV3/OrTag.js';
49
+ import '../OrTagV3/props.js';
50
+ import '../OrTagV3/styles.js';
51
+ import '../../hooks/useOverflow.js';
52
+ import '../../hooks/useIdAttribute.js';
53
+ import '../../hooks/useControlAttributes.js';
54
+ import '../../hooks/useValidationAttributes.js';
55
+ import '../../style-inject.es-4c6f2515.js';
@@ -0,0 +1 @@
1
+ export { InputBoxSize as TagInputSize } from '../or-input-box-v3';
@@ -0,0 +1 @@
1
+ export { InputBoxSize as TagInputSize } from '../OrInputBoxV3/props.js';
@@ -0,0 +1,3 @@
1
+ export declare const TagInput: string[];
2
+ export declare const TagInputControl: string[];
3
+ export declare const TagInputItem: string[];
@@ -0,0 +1,17 @@
1
+ const TagInput = [
2
+ // Layout
3
+ 'layout-column',
4
+ // Spacing
5
+ 'gap-xs'];
6
+ const TagInputControl = [
7
+ // Layout
8
+ 'flex-auto',
9
+ // Typography
10
+ 'typography-inherit',
11
+ // Theme (placeholder)
12
+ 'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark'];
13
+ const TagInputItem = [
14
+ // Box
15
+ '!min-h-0'];
16
+
17
+ export { TagInput, TagInputControl, TagInputItem };