@onereach/ui-components 2.74.1-beta.2291.0 → 2.74.1-beta.2293.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 (126) hide show
  1. package/dist/bundled/v2/{OrCardCollection-1affb682.js → OrCardCollection-9bc44ec5.js} +1 -1
  2. package/dist/bundled/v2/{OrConfirm-bdf57b45.js → OrConfirm-c156d099.js} +13 -7
  3. package/dist/bundled/v2/{OrInlineInput-8fec2947.js → OrInlineInput-57fccb41.js} +2 -2
  4. package/dist/bundled/v2/{OrInlineTextarea-e7cdb4fb.js → OrInlineTextarea-f8b86cf7.js} +2 -2
  5. package/dist/bundled/v2/{OrInput-46039629.js → OrInput-57a47093.js} +3 -4
  6. package/dist/bundled/v2/{OrInputBox-9a31d211.js → OrInputBox-e54dcef9.js} +12 -2
  7. package/dist/bundled/v2/{OrSearch-05cc6c14.js → OrSearch-4072a079.js} +2 -2
  8. package/dist/bundled/v2/{OrSelect-bfe76fb7.js → OrSelect-359e891b.js} +3 -6
  9. package/dist/bundled/v2/{OrTextarea-a02951f4.js → OrTextarea-1201353b.js} +3 -4
  10. package/dist/bundled/v2/components/index.js +9 -10
  11. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -5
  12. package/dist/bundled/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +4 -2
  13. package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -4
  14. package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
  15. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -2
  17. package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
  18. package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
  19. package/dist/bundled/v2/components/or-select-v3/index.js +3 -4
  20. package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
  21. package/dist/bundled/v2/index.js +10 -11
  22. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c01a1d75.js → OrCardCollection.vue_vue_type_script_lang-62eb2543.js} +1 -1
  23. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-a131670a.js → OrConfirm.vue_vue_type_script_lang-ae30b4db.js} +14 -8
  24. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-66598185.js → OrInlineInput.vue_vue_type_script_lang-49ce3308.js} +2 -2
  25. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-85adcaf9.js → OrInlineTextarea.vue_vue_type_script_lang-8fd761d7.js} +2 -2
  26. package/dist/bundled/v3/{OrInput-37811348.js → OrInput-44a32124.js} +1 -1
  27. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-de00e237.js → OrInput.vue_vue_type_script_lang-4d9e2f4a.js} +4 -5
  28. package/dist/bundled/v3/{OrInputBox-44f37541.js → OrInputBox-358d4856.js} +1 -1
  29. package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +1 -1
  30. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-b34af2a0.js → OrSearch.vue_vue_type_script_lang-0ddeada5.js} +3 -3
  31. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-b14e4b6b.js → OrSelect.vue_vue_type_script_lang-c7a9bec2.js} +5 -8
  32. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-d0256fc2.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +4 -5
  33. package/dist/bundled/v3/components/index.js +11 -12
  34. package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -7
  35. package/dist/bundled/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +4 -2
  36. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -6
  37. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
  38. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
  39. package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
  40. package/dist/bundled/v3/components/or-input-v3/index.js +3 -4
  41. package/dist/bundled/v3/components/or-search-v3/index.js +5 -6
  42. package/dist/bundled/v3/components/or-select-v3/index.js +5 -6
  43. package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
  44. package/dist/bundled/v3/index.js +18 -19
  45. package/dist/esm/v2/{OrCardCollection-413eeef9.js → OrCardCollection-4c909f4b.js} +2 -2
  46. package/dist/esm/v2/{OrConfirm-2f8d9405.js → OrConfirm-cf65cb11.js} +13 -7
  47. package/dist/esm/v2/{OrInlineInput-c66ed0c0.js → OrInlineInput-b85b84b4.js} +2 -2
  48. package/dist/esm/v2/{OrInlineTextarea-3cc2fdc2.js → OrInlineTextarea-afd33047.js} +2 -2
  49. package/dist/esm/v2/{OrInput-cacd21a4.js → OrInput-3d8c8925.js} +3 -4
  50. package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js → esm/v2/OrInputBox-53d1f66d.js} +53 -3
  51. package/dist/esm/v2/{OrSearch-1c30f3fd.js → OrSearch-d6f1ba11.js} +2 -2
  52. package/dist/esm/v2/{OrSelect-bbba5e3a.js → OrSelect-bdb9a78a.js} +3 -6
  53. package/dist/esm/v2/{OrTextarea-e1aad345.js → OrTextarea-373d0554.js} +3 -4
  54. package/dist/esm/v2/components/index.js +9 -10
  55. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -5
  56. package/dist/esm/v2/components/or-confirm-v3/OrConfirm.vue.d.ts +4 -2
  57. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -4
  58. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  59. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  60. package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
  61. package/dist/esm/v2/components/or-input-v3/index.js +2 -3
  62. package/dist/esm/v2/components/or-search-v3/index.js +3 -4
  63. package/dist/esm/v2/components/or-select-v3/index.js +3 -4
  64. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
  65. package/dist/esm/v2/index.js +9 -10
  66. package/dist/esm/v3/{OrCardCollection-005964d2.js → OrCardCollection-803f67f7.js} +1 -1
  67. package/dist/esm/v3/{OrConfirm-c35b430f.js → OrConfirm-1ee529f1.js} +13 -7
  68. package/dist/esm/v3/{OrInlineInput-4591c44d.js → OrInlineInput-fbc35f85.js} +2 -2
  69. package/dist/esm/v3/{OrInlineTextarea-22807fd6.js → OrInlineTextarea-79da8697.js} +2 -2
  70. package/dist/esm/v3/{OrInput-4b51848c.js → OrInput-71075f51.js} +2 -2
  71. package/dist/esm/v3/{OrSearch-b6c48f3f.js → OrSearch-4e180e34.js} +1 -1
  72. package/dist/esm/v3/{OrSelect-35f70776.js → OrSelect-c64eda46.js} +2 -4
  73. package/dist/esm/v3/{OrTextarea-8b060a1b.js → OrTextarea-42d21f77.js} +2 -2
  74. package/dist/esm/v3/components/index.js +8 -8
  75. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  76. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +4 -2
  77. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  78. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  79. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  80. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  81. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  82. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  83. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  84. package/dist/esm/v3/index.js +8 -8
  85. package/package.json +2 -2
  86. package/src/components/or-confirm-v3/OrConfirm.stories3.ts +54 -56
  87. package/src/components/or-confirm-v3/OrConfirm.vue +12 -7
  88. package/src/components/or-inline-input-v3/styles.ts +2 -2
  89. package/src/components/or-inline-textarea-v3/styles.ts +2 -2
  90. package/src/components/or-input-v3/styles.ts +2 -2
  91. package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
  92. package/src/components/or-select-v3/styles.ts +1 -4
  93. package/src/components/or-textarea-v3/styles.ts +2 -2
  94. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  95. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
  96. package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
  97. package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -148
  98. package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
  99. package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
  100. package/dist/bundled/v2/props-78496a2d.js +0 -12
  101. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  102. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
  103. package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
  104. package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -130
  105. package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
  106. package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
  107. package/dist/bundled/v3/props-78496a2d.js +0 -12
  108. package/dist/esm/v2/OrInputBox-5c4b3104.js +0 -43
  109. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  110. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
  111. package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
  112. package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -145
  113. package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
  114. package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
  115. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  116. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
  117. package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
  118. package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -129
  119. package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
  120. package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
  121. package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
  122. package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
  123. package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -130
  124. package/src/components/or-combined-input-v3/index.ts +0 -2
  125. package/src/components/or-combined-input-v3/props.ts +0 -1
  126. package/src/components/or-combined-input-v3/styles.ts +0 -25
@@ -1,201 +0,0 @@
1
- import { Meta, StoryFn } from '@storybook/vue3';
2
- import { ref, watch } from 'vue-demi';
3
- import { OrIconV3 as OrIcon } from '../or-icon-v3';
4
- import { OrInputV3 as OrInput } from '../or-input-v3';
5
- import { OrSelectV3 as OrSelect, SelectOption } from '../or-select-v3';
6
- import OrCombinedInputDocs from './OrCombinedInput.docs.mdx';
7
- import OrCombinedInput from './OrCombinedInput.vue';
8
- import { CombinedInputSize } from './props';
9
-
10
- export default {
11
- title: 'Components/Forms/Combined Input',
12
- component: OrCombinedInput,
13
-
14
- argTypes: {
15
- // Slots
16
- default: {
17
- type: {
18
- name: 'string',
19
- required: true,
20
- },
21
-
22
- control: { type: 'text' },
23
- },
24
-
25
- addon: {
26
- type: {
27
- name: 'string',
28
- required: false,
29
- },
30
-
31
- control: { type: 'text' },
32
- },
33
-
34
- // Props
35
- size: {
36
- control: { type: 'select' },
37
- options: Object.values(CombinedInputSize),
38
- },
39
-
40
- label: {
41
- control: { type: 'text' },
42
- },
43
-
44
- hint: {
45
- control: { type: 'text' },
46
- },
47
-
48
- error: {
49
- control: { type: 'text' },
50
- },
51
-
52
- required: {
53
- control: { type: 'boolean' },
54
- },
55
-
56
- readonly: {
57
- control: { type: 'boolean' },
58
- },
59
-
60
- disabled: {
61
- control: { type: 'boolean' },
62
- },
63
-
64
- disableDefaultStyles: {
65
- control: { type: 'boolean' },
66
- },
67
- },
68
-
69
- parameters: {
70
- docs: {
71
- page: OrCombinedInputDocs,
72
- },
73
-
74
- design: {
75
- type: 'figma',
76
- url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
77
- },
78
- },
79
- } as Meta<typeof OrCombinedInput>;
80
-
81
- const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
82
- components: {
83
- OrCombinedInput,
84
- OrIcon,
85
- OrInput,
86
- OrSelect,
87
- },
88
-
89
- setup() {
90
- // State
91
- const options = Array.from<string, SelectOption>([
92
- 'Alfa',
93
- 'Bravo',
94
- 'Charlie',
95
- 'Delta',
96
- 'Echo',
97
- 'Foxtrot',
98
- 'Golf',
99
- 'Hotel',
100
- 'India',
101
- 'Juliett',
102
- 'Kilo',
103
- 'Lima',
104
- 'Mike',
105
- 'November',
106
- 'Oscar',
107
- 'Papa',
108
- 'Quebec',
109
- 'Romeo',
110
- 'Sierra',
111
- 'Tango',
112
- 'Uniform',
113
- 'Victor',
114
- 'Whiskey',
115
- 'X-Ray',
116
- 'Yankee',
117
- 'Zulu',
118
- ], (item) => ({
119
- value: item.toLowerCase(),
120
- label: item,
121
- }));
122
-
123
- const selectModel = ref<string>();
124
- const inputModel = ref<string>();
125
-
126
- // Effects
127
- watch([selectModel, inputModel], (values) => {
128
- console.debug(values);
129
- });
130
-
131
- return {
132
- args,
133
- options,
134
- selectModel,
135
- inputModel,
136
- };
137
- },
138
-
139
- template: `
140
- <OrCombinedInput v-bind="args">
141
- ${args.default}
142
- ${args.addon}
143
- </OrCombinedInput>
144
- `,
145
- });
146
-
147
- export const Default = Template.bind({});
148
-
149
- Default.args = {
150
- // Slots
151
- default: `
152
- <template v-slot="props">
153
- <OrSelect
154
- class="basis-1/4"
155
- v-model="selectModel"
156
- v-bind="props"
157
- :options="options"
158
- />
159
-
160
- <OrInput
161
- class="basis-3/4"
162
- v-model="inputModel"
163
- v-bind="props"
164
- />
165
- </template>
166
- `,
167
-
168
- // Props
169
- label: 'Combined Input',
170
- };
171
-
172
- export const Addon = Template.bind({});
173
-
174
- Addon.args = {
175
- ...Default.args,
176
-
177
- // Slots
178
- addon: `
179
- <template v-slot:addon>
180
- <OrIcon icon="info" />
181
- </template>
182
- `,
183
- };
184
-
185
- export const Hint = Template.bind({});
186
-
187
- Hint.args = {
188
- ...Default.args,
189
-
190
- // Props
191
- hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
192
- };
193
-
194
- export const Error = Template.bind({});
195
-
196
- Error.args = {
197
- ...Default.args,
198
-
199
- // Props
200
- error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
201
- };
@@ -1,130 +0,0 @@
1
- <template>
2
- <div
3
- ref="root"
4
- :class="rootStyles"
5
- >
6
- <template v-if="label">
7
- <OrLabel
8
- :variant="'input'"
9
- :required="required"
10
- :disabled="disabled"
11
- >
12
- {{ label }}
13
-
14
- <template v-slot:addon>
15
- <slot name="addon" />
16
- </template>
17
- </OrLabel>
18
- </template>
19
-
20
- <div :class="controlGroup">
21
- <slot
22
- :size="size"
23
- :required="required"
24
- :readonly="readonly"
25
- :disabled="disabled"
26
- :disable-default-styles="disableDefaultStyles"
27
- />
28
- </div>
29
-
30
- <template v-if="!invalid">
31
- <template v-if="hint">
32
- <OrHint :disabled="disabled">
33
- {{ hint }}
34
- </OrHint>
35
- </template>
36
- </template>
37
-
38
- <template v-else>
39
- <OrError :disabled="disabled">
40
- {{ error }}
41
- </OrError>
42
- </template>
43
- </div>
44
- </template>
45
-
46
- <script lang="ts">
47
- import { computed, defineComponent, PropType, ref } from 'vue-demi';
48
- import { OrErrorV3 as OrError } from '../or-error-v3';
49
- import { OrHintV3 as OrHint } from '../or-hint-v3';
50
- import { OrLabelV3 as OrLabel } from '../or-label-v3';
51
- import { CombinedInputSize } from './props';
52
- import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
53
-
54
- export default defineComponent({
55
- name: 'OrCombinedInput',
56
-
57
- components: {
58
- OrError,
59
- OrHint,
60
- OrLabel,
61
- },
62
-
63
- props: {
64
- size: {
65
- type: String as PropType<CombinedInputSize>,
66
- default: CombinedInputSize.M,
67
- },
68
-
69
- label: {
70
- type: String,
71
- default: undefined,
72
- },
73
-
74
- hint: {
75
- type: String,
76
- default: undefined,
77
- },
78
-
79
- error: {
80
- type: String,
81
- default: undefined,
82
- },
83
-
84
- required: {
85
- type: Boolean,
86
- default: false,
87
- },
88
-
89
- readonly: {
90
- type: Boolean,
91
- default: false,
92
- },
93
-
94
- disabled: {
95
- type: Boolean,
96
- default: false,
97
- },
98
-
99
- disableDefaultStyles: {
100
- type: Boolean,
101
- default: false,
102
- },
103
- },
104
-
105
- setup(props, context) {
106
- // Refs
107
- const root = ref<HTMLElement>();
108
-
109
- // Styles
110
- const rootStyles = computed(() => [
111
- 'or-combined-input',
112
- ...CombinedInputRoot,
113
- ]);
114
-
115
- const controlGroup = computed(() => [
116
- ...CombinedInputControlGroup,
117
- ]);
118
-
119
- // State
120
- const invalid = computed(() => !!props.error);
121
-
122
- return {
123
- root,
124
- rootStyles,
125
- controlGroup,
126
- invalid,
127
- };
128
- },
129
- });
130
- </script>
@@ -1,2 +0,0 @@
1
- export { default as OrCombinedInputV3 } from './OrCombinedInput.vue';
2
- export * from './props';
@@ -1 +0,0 @@
1
- export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
@@ -1,25 +0,0 @@
1
- export const CombinedInputRoot: string[] = [
2
- // Layout
3
- 'layout-column',
4
-
5
- // Spacing
6
- 'gap-xs',
7
- ];
8
-
9
- export const CombinedInputControlGroup: string[] = [
10
- // Layout
11
- 'layout-row',
12
-
13
- // Box
14
- 'w-full',
15
-
16
- // Shape (.or-input-box)
17
- '[&_.or-input-box]:first-child:rounded-r-0',
18
- '[&_.or-input-box]:intermediate-child:rounded-0',
19
- '[&_.or-input-box]:last-child:rounded-l-0',
20
-
21
- // Spacing (.or-input-box)
22
- '[&_.or-input-box]:first-child:mr-[-1px]',
23
- '[&_.or-input-box]:intermediate-child:border-x-0',
24
- '[&_.or-input-box]:last-child:ml-[-1px]',
25
- ];