@onereach/ui-components 2.69.7-beta.2178.0 → 2.69.7-beta.2182.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.
- package/dist/bundled/v2/{OrCardCollection-c4209a92.js → OrCardCollection-aa6b8553.js} +1 -1
- package/dist/bundled/v2/{OrCheckbox-dbef9f9a.js → OrCheckbox-4f665252.js} +3 -3
- package/dist/bundled/v2/{OrConfirm-cab6535b.js → OrConfirm-dc704484.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-9add2e1e.js → OrInlineInput-6af4fe07.js} +2 -2
- package/dist/bundled/v2/{OrInlineTextarea-9c6f9044.js → OrInlineTextarea-ddf84267.js} +2 -2
- package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-e7b864c1.js} +20 -13
- package/dist/bundled/v2/{OrInputBox-79ec54ad.js → OrInputBox-de8ce3ac.js} +2 -12
- package/dist/bundled/v2/{OrRadio-cd39b20b.js → OrRadio-a60fc5c0.js} +3 -3
- package/dist/bundled/v2/{OrSearch-76b002cf.js → OrSearch-ad84b460.js} +2 -2
- package/dist/bundled/v2/{OrSelect-4ccfe085.js → OrSelect-b393f564.js} +13 -5
- package/dist/bundled/v2/{OrSwitch-237a2081.js → OrSwitch-fe9b7de7.js} +3 -3
- package/dist/bundled/v2/{OrTag-6e081da1.js → OrTag-6440aa89.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-5593fbe9.js → OrTextarea-59fba95c.js} +14 -11
- package/dist/bundled/v2/components/index.js +14 -13
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -4
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +149 -0
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +6 -5
- package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tag-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/bundled/v2/index.js +15 -14
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js → OrCardCollection.vue_vue_type_script_lang-ece2eab6.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f57ffa1a.js → OrConfirm.vue_vue_type_script_lang-fcbdf2c6.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-84c521f9.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js} +2 -2
- package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-4ccc2c7b.js} +17 -14
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f6d793d3.js → OrInput.vue_vue_type_script_lang-96ce8121.js} +5 -4
- package/dist/bundled/v3/{OrInputBox-eb54d73d.js → OrInputBox-27aa1cec.js} +1 -1
- package/dist/{esm/v2/OrInputBox-4d5a318d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-28353c10.js} +4 -55
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-014ad470.js → OrSearch.vue_vue_type_script_lang-71fbb2fc.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-bfdb053f.js → OrSelect.vue_vue_type_script_lang-363605c5.js} +16 -8
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-d9a039f9.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-8e3531cd.js → OrTextarea.vue_vue_type_script_lang-9f2a0234.js} +5 -4
- package/dist/bundled/v3/components/index.js +13 -12
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +7 -6
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +132 -0
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-input-v3/index.js +4 -3
- package/dist/bundled/v3/components/or-search-v3/index.js +6 -5
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +7 -6
- package/dist/bundled/v3/components/or-tag-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -3
- package/dist/bundled/v3/index.js +41 -36
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/esm/v2/{OrCardCollection-57d11adf.js → OrCardCollection-fe34fef3.js} +2 -2
- package/dist/esm/v2/{OrCheckbox-567e387c.js → OrCheckbox-ea48d156.js} +3 -3
- package/dist/esm/v2/{OrConfirm-ec7aef0e.js → OrConfirm-3bead0be.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-cfeeea33.js → OrInlineInput-e32f322f.js} +2 -2
- package/dist/esm/v2/{OrInlineTextarea-897b5377.js → OrInlineTextarea-7296fbdb.js} +2 -2
- package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-db0e2368.js} +20 -13
- package/dist/esm/v2/OrInputBox-9d1193b5.js +43 -0
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-328ae841.js} +3 -2
- package/dist/esm/v2/{OrRadio-848ce55d.js → OrRadio-6e10f071.js} +3 -3
- package/dist/esm/v2/{OrSearch-2f260b09.js → OrSearch-9d9459f5.js} +2 -2
- package/dist/esm/v2/{OrSelect-7f41b973.js → OrSelect-e6aa1b2a.js} +13 -5
- package/dist/esm/v2/{OrSwitch-13b6a7ee.js → OrSwitch-c628d2c5.js} +3 -3
- package/dist/esm/v2/{OrTag-c3868001.js → OrTag-cf9c6195.js} +1 -1
- package/dist/esm/v2/{OrTextarea-6712a150.js → OrTextarea-52354386.js} +14 -11
- package/dist/esm/v2/components/index.js +14 -13
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -4
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.js +147 -0
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -3
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
- package/dist/esm/v2/components/or-input-v3/index.js +3 -2
- package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +4 -3
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-select-v3/index.js +6 -5
- package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tag-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -2
- package/dist/esm/v2/index.js +14 -13
- package/dist/esm/v3/{OrCardCollection-2a6514f3.js → OrCardCollection-8a84f69c.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-3e139eac.js → OrCheckbox-d1b516c8.js} +3 -2
- package/dist/esm/v3/{OrConfirm-5d56cbd3.js → OrConfirm-5bd1f4db.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-31026cd0.js → OrInlineInput-00f0d1b8.js} +2 -2
- package/dist/esm/v3/{OrInlineTextarea-b28c3d8c.js → OrInlineTextarea-c1babfda.js} +2 -2
- package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-2b447f81.js} +18 -15
- package/dist/esm/v3/{OrRadio-54b6d0de.js → OrRadio-ef9d4c6e.js} +3 -2
- package/dist/esm/v3/{OrSearch-e5a2e93e.js → OrSearch-d72cfc74.js} +1 -1
- package/dist/esm/v3/{OrSelect-085eba28.js → OrSelect-e6e006d5.js} +12 -5
- package/dist/esm/v3/{OrSwitch-cca30aa0.js → OrSwitch-cc797a48.js} +3 -3
- package/dist/esm/v3/{OrTag-c81c1869.js → OrTag-c0bbaa58.js} +1 -1
- package/dist/esm/v3/{OrTextarea-bb9ef3f2.js → OrTextarea-ed35cd0b.js} +16 -14
- package/dist/esm/v3/components/index.js +12 -12
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +27 -0
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +98 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.js +132 -0
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +11 -0
- package/dist/esm/v3/components/or-select-v3/index.js +4 -4
- package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tag-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
- package/dist/esm/v3/index.js +12 -12
- package/package.json +2 -2
- package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +202 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +134 -0
- package/src/components/or-combined-input-v3/index.ts +2 -0
- package/src/components/or-combined-input-v3/props.ts +1 -0
- package/src/components/or-combined-input-v3/styles.ts +25 -0
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/OrInput.vue +28 -22
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-radio-v3/OrRadio.vue +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +6 -0
- package/src/components/or-select-v3/styles.ts +4 -1
- package/src/components/or-switch-v3/OrSwitch.vue +1 -1
- package/src/components/or-tag-v3/styles.ts +0 -3
- package/src/components/or-textarea-v3/OrTextarea.vue +5 -1
- package/src/components/or-textarea-v3/styles.ts +2 -2
|
@@ -7,7 +7,7 @@ import { s as script$4 } from './OrIconButton-1eebcafc.js';
|
|
|
7
7
|
import { s as script$3 } from './OrIcon-b195169c.js';
|
|
8
8
|
import { s as script$5, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
9
9
|
import { s as script$6 } from './OrLabel-bdaec602.js';
|
|
10
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
10
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, normalizeClass, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
|
|
11
11
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
12
12
|
|
|
13
13
|
var InputType;
|
|
@@ -24,8 +24,8 @@ const InputRoot = [
|
|
|
24
24
|
// Spacing
|
|
25
25
|
'gap-xs'];
|
|
26
26
|
const InputControl = [
|
|
27
|
-
//
|
|
28
|
-
'
|
|
27
|
+
// Box
|
|
28
|
+
'w-full',
|
|
29
29
|
// Typography
|
|
30
30
|
'typography-inherit',
|
|
31
31
|
// Theme
|
|
@@ -143,8 +143,9 @@ var script = defineComponent({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
|
|
146
|
+
const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled", "readonly", "maxlength"];
|
|
147
147
|
const _hoisted_2 = {
|
|
148
|
+
key: 0,
|
|
148
149
|
class: /*#__PURE__*/normalizeClass(['layout-row'])
|
|
149
150
|
};
|
|
150
151
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -154,10 +155,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
155
156
|
const _component_OrHint = resolveComponent("OrHint");
|
|
156
157
|
const _component_OrError = resolveComponent("OrError");
|
|
157
|
-
return openBlock(), createElementBlock("div", {
|
|
158
|
-
ref: "root"
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
159
|
+
ref: "root"
|
|
160
|
+
}, _ctx.$attrs, {
|
|
161
|
+
class: _ctx.rootStyles
|
|
162
|
+
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
161
163
|
key: 0,
|
|
162
164
|
"control-id": _ctx.controlId,
|
|
163
165
|
variant: 'input',
|
|
@@ -175,21 +177,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
175
177
|
readonly: _ctx.readonly,
|
|
176
178
|
disabled: _ctx.disabled
|
|
177
179
|
}, {
|
|
178
|
-
default: withCtx(() => [withDirectives(createElementVNode("input",
|
|
180
|
+
default: withCtx(() => [withDirectives(createElementVNode("input", {
|
|
179
181
|
id: _ctx.controlId,
|
|
180
182
|
ref: "input",
|
|
181
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
182
|
-
|
|
183
|
-
class: _ctx.controlStyles,
|
|
183
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
184
|
+
class: normalizeClass(_ctx.controlStyles),
|
|
184
185
|
type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
|
|
185
186
|
placeholder: _ctx.placeholder,
|
|
186
187
|
required: _ctx.required,
|
|
187
188
|
disabled: _ctx.disabled,
|
|
189
|
+
readonly: _ctx.readonly,
|
|
190
|
+
maxlength: _ctx.maxLength,
|
|
188
191
|
onKeydown: _cache[1] || (_cache[1] = $event => _ctx.$emit('keydown', $event)),
|
|
189
192
|
onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
|
|
190
193
|
onFocus: _cache[3] || (_cache[3] = $event => _ctx.$emit('focus', $event)),
|
|
191
194
|
onBlur: _cache[4] || (_cache[4] = $event => _ctx.$emit('blur', $event))
|
|
192
|
-
}
|
|
195
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), _ctx.type !== 'text' ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
193
196
|
key: 0,
|
|
194
197
|
icon: {
|
|
195
198
|
icon: _ctx.disclosed ? 'visibility_off' : 'visibility',
|
|
@@ -210,7 +213,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210
213
|
key: 1,
|
|
211
214
|
icon: 'search',
|
|
212
215
|
variant: 'outlined'
|
|
213
|
-
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)])]),
|
|
216
|
+
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)]),
|
|
214
217
|
_: 1 /* STABLE */
|
|
215
218
|
}, 8 /* PROPS */, ["variant", "size", "invalid", "readonly", "disabled"]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
216
219
|
key: 1
|
|
@@ -238,7 +241,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
238
241
|
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
239
242
|
|
|
240
243
|
key: "0"
|
|
241
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))],
|
|
244
|
+
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 16 /* FULL_PROPS */);
|
|
242
245
|
}
|
|
243
246
|
|
|
244
247
|
var css_248z = "\ninput[data-v-78975fa2] {\n min-width: 0;\n background: none;\n outline: none;\n}\ninput[type=\"number\"][data-v-78975fa2]::-webkit-inner-spin-button {\n display: none;\n}\ninput[type=\"search\"][data-v-78975fa2]::-webkit-search-cancel-button {\n display: none;\n}\n";
|
|
@@ -111,9 +111,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
111
111
|
return openBlock(), createElementBlock("div", {
|
|
112
112
|
ref: "root",
|
|
113
113
|
class: normalizeClass(_ctx.rootStyles)
|
|
114
|
-
}, [withDirectives(createElementVNode("input", mergeProps(
|
|
114
|
+
}, [withDirectives(createElementVNode("input", mergeProps({
|
|
115
115
|
id: _ctx.controlId,
|
|
116
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
116
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
117
|
+
}, _ctx.$attrs, {
|
|
117
118
|
class: _ctx.controlStyles,
|
|
118
119
|
type: "radio",
|
|
119
120
|
value: _ctx.inputValue,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { s as script$1 } from './OrInput-
|
|
4
|
+
import { s as script$1 } from './OrInput-2b447f81.js';
|
|
5
5
|
import { a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
6
6
|
import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
|
|
7
7
|
|
|
@@ -3,17 +3,17 @@ import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.
|
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
4
|
import { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
|
-
import { s as script$1 } from './OrCheckbox-
|
|
6
|
+
import { s as script$1 } from './OrCheckbox-d1b516c8.js';
|
|
7
7
|
import { s as script$2 } from './OrError-ec8c709d.js';
|
|
8
8
|
import { s as script$3 } from './OrExpansionPanel-311e64cf.js';
|
|
9
9
|
import { s as script$4 } from './OrHint-74bb732d.js';
|
|
10
10
|
import { s as script$5 } from './OrIcon-b195169c.js';
|
|
11
11
|
import { s as script$7, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
12
|
-
import { s as script$6 } from './OrInput-
|
|
12
|
+
import { s as script$6 } from './OrInput-2b447f81.js';
|
|
13
13
|
import { s as script$8 } from './OrLabel-bdaec602.js';
|
|
14
14
|
import { s as script$9 } from './OrMenuItem-9da279f6.js';
|
|
15
15
|
import { s as script$a } from './OrPopover-1075dd38.js';
|
|
16
|
-
import { s as script$b } from './OrTag-
|
|
16
|
+
import { s as script$b } from './OrTag-c0bbaa58.js';
|
|
17
17
|
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeClass, createElementVNode, Fragment, renderList, createVNode, withModifiers } from 'vue';
|
|
18
18
|
|
|
19
19
|
const SelectRoot = [
|
|
@@ -23,7 +23,9 @@ const SelectRoot = [
|
|
|
23
23
|
'gap-xs'];
|
|
24
24
|
const SelectControl = [
|
|
25
25
|
// Layout
|
|
26
|
-
'layout-row
|
|
26
|
+
'layout-row',
|
|
27
|
+
// Box
|
|
28
|
+
'w-full',
|
|
27
29
|
// Overflow
|
|
28
30
|
'overflow-hidden',
|
|
29
31
|
// Spacing
|
|
@@ -121,6 +123,10 @@ var script = defineComponent({
|
|
|
121
123
|
type: Boolean,
|
|
122
124
|
default: false
|
|
123
125
|
},
|
|
126
|
+
disableDefaultStyles: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false
|
|
129
|
+
},
|
|
124
130
|
enableSearch: {
|
|
125
131
|
type: Boolean,
|
|
126
132
|
default: false
|
|
@@ -322,6 +328,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
322
328
|
}, 8 /* PROPS */, ["control-id", "required", "disabled"])) : createCommentVNode("v-if", true), withDirectives((openBlock(), createBlock(_component_OrInputBox, {
|
|
323
329
|
ref: "inputBox",
|
|
324
330
|
class: normalizeClass([_ctx.popoverState === 'open' && 'rounded-b-0']),
|
|
331
|
+
variant: _ctx.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
325
332
|
size: _ctx.size,
|
|
326
333
|
invalid: _ctx.invalid,
|
|
327
334
|
readonly: _ctx.readonly,
|
|
@@ -471,7 +478,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
471
478
|
_: 3 /* FORWARDED */
|
|
472
479
|
}, 8 /* PROPS */, ["class", "trigger"])]),
|
|
473
480
|
_: 3 /* FORWARDED */
|
|
474
|
-
}, 8 /* PROPS */, ["class", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.toggle], [_directive_dropdown_close, _ctx.close]]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
481
|
+
}, 8 /* PROPS */, ["class", "variant", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.toggle], [_directive_dropdown_close, _ctx.close]]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
475
482
|
key: 1
|
|
476
483
|
}, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
|
|
477
484
|
key: 0,
|
|
@@ -142,10 +142,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
142
|
ref: "root",
|
|
143
143
|
class: normalizeClass(_ctx.rootStyles)
|
|
144
144
|
}, [!_ctx.loading ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
|
|
145
|
-
key: 0
|
|
146
|
-
}, _ctx.$attrs, {
|
|
145
|
+
key: 0,
|
|
147
146
|
id: _ctx.controlId,
|
|
148
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
147
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
148
|
+
}, _ctx.$attrs, {
|
|
149
149
|
class: _ctx.controlStyles,
|
|
150
150
|
type: "checkbox",
|
|
151
151
|
value: _ctx.inputValue,
|
|
@@ -43,7 +43,7 @@ const TagRootVariants = {
|
|
|
43
43
|
const TagRootColors = {
|
|
44
44
|
'primary': [
|
|
45
45
|
// Theme
|
|
46
|
-
'theme-preset-2-primary', 'dark:theme-preset-2-primary-dark'
|
|
46
|
+
'theme-preset-2-primary', 'dark:theme-preset-2-primary-dark'],
|
|
47
47
|
'danger': [
|
|
48
48
|
// Theme
|
|
49
49
|
'theme-preset-2-error', 'dark:theme-preset-2-error-dark']
|
|
@@ -5,7 +5,7 @@ import { s as script$1 } from './OrError-ec8c709d.js';
|
|
|
5
5
|
import { s as script$2 } from './OrHint-74bb732d.js';
|
|
6
6
|
import { s as script$3, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
|
|
7
7
|
import { s as script$4 } from './OrLabel-bdaec602.js';
|
|
8
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
8
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, normalizeClass, vModelText, Fragment, createSlots } from 'vue';
|
|
9
9
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
10
10
|
|
|
11
11
|
const TextareaRoot = [
|
|
@@ -14,8 +14,8 @@ const TextareaRoot = [
|
|
|
14
14
|
// Spacing
|
|
15
15
|
'gap-xs'];
|
|
16
16
|
const TextareaControl = [
|
|
17
|
-
//
|
|
18
|
-
'
|
|
17
|
+
// Box
|
|
18
|
+
'w-full',
|
|
19
19
|
// Typography
|
|
20
20
|
'typography-inherit',
|
|
21
21
|
// Theme
|
|
@@ -113,16 +113,17 @@ var script = defineComponent({
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
const _hoisted_1 = ["id", "placeholder", "required", "disabled"];
|
|
116
|
+
const _hoisted_1 = ["id", "placeholder", "required", "disabled", "readonly", "maxlength"];
|
|
117
117
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
118
118
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
119
119
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
120
120
|
const _component_OrHint = resolveComponent("OrHint");
|
|
121
121
|
const _component_OrError = resolveComponent("OrError");
|
|
122
|
-
return openBlock(), createElementBlock("div", {
|
|
123
|
-
ref: "root"
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
123
|
+
ref: "root"
|
|
124
|
+
}, _ctx.$attrs, {
|
|
125
|
+
class: _ctx.rootStyles
|
|
126
|
+
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
126
127
|
key: 0,
|
|
127
128
|
"control-id": _ctx.controlId,
|
|
128
129
|
variant: 'input',
|
|
@@ -139,19 +140,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
140
|
readonly: _ctx.readonly,
|
|
140
141
|
disabled: _ctx.disabled
|
|
141
142
|
}, {
|
|
142
|
-
default: withCtx(() => [withDirectives(createElementVNode("textarea",
|
|
143
|
+
default: withCtx(() => [withDirectives(createElementVNode("textarea", {
|
|
143
144
|
id: _ctx.controlId,
|
|
144
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
|
|
145
|
-
|
|
146
|
-
class: _ctx.controlStyles,
|
|
145
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
146
|
+
class: normalizeClass(_ctx.controlStyles),
|
|
147
147
|
placeholder: _ctx.placeholder,
|
|
148
148
|
required: _ctx.required,
|
|
149
149
|
disabled: _ctx.disabled,
|
|
150
|
+
readonly: _ctx.readonly,
|
|
151
|
+
maxlength: _ctx.maxLength,
|
|
150
152
|
onKeydown: _cache[1] || (_cache[1] = $event => _ctx.$emit('keydown', $event)),
|
|
151
153
|
onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
|
|
152
154
|
onFocus: _cache[3] || (_cache[3] = $event => _ctx.$emit('focus', $event)),
|
|
153
155
|
onBlur: _cache[4] || (_cache[4] = $event => _ctx.$emit('blur', $event))
|
|
154
|
-
}
|
|
156
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1), [[vModelText, _ctx.proxyModelValue]])]),
|
|
155
157
|
_: 1 /* STABLE */
|
|
156
158
|
}, 8 /* PROPS */, ["size", "invalid", "readonly", "disabled"]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
157
159
|
key: 1
|
|
@@ -179,7 +181,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
181
|
fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
|
|
180
182
|
|
|
181
183
|
key: "0"
|
|
182
|
-
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))],
|
|
184
|
+
} : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 16 /* FULL_PROPS */);
|
|
183
185
|
}
|
|
184
186
|
|
|
185
187
|
var css_248z = "\ntextarea[data-v-10a22fb4] {\n min-width: 0;\n background: none;\n outline: none;\n}\n";
|
|
@@ -6,17 +6,17 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-bb6bf8a9.js';
|
|
7
7
|
export { s as OrCard } from '../OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-a5e326ef.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-8a84f69c.js';
|
|
10
10
|
export { s as OrCardV3 } from '../OrCard-fd92f7c8.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from '../OrCheckbox-ed4a19cf.js';
|
|
13
|
-
export { s as OrCheckboxV3 } from '../OrCheckbox-
|
|
13
|
+
export { s as OrCheckboxV3 } from '../OrCheckbox-d1b516c8.js';
|
|
14
14
|
export { s as OrChip, a as OrChips } from '../OrChips-9afba42f.js';
|
|
15
15
|
export { s as OrCode, O as OrCodeLanguages } from '../OrCode-5ed69c23.js';
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-5bd1f4db.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from '../OrErrorTag-98252eef.js';
|
|
@@ -31,11 +31,11 @@ export { s as OrIcon, O as OrIconColors, a as OrIconType } from '../OrIcon-66950
|
|
|
31
31
|
export { I as IconButtonColor, s as OrIconButtonV3 } from '../OrIconButton-1eebcafc.js';
|
|
32
32
|
export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from '../OrIcon-b195169c.js';
|
|
33
33
|
export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from '../OrInlineInputBox-8049f95a.js';
|
|
34
|
-
export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-
|
|
34
|
+
export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-00f0d1b8.js';
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
|
|
36
|
-
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-
|
|
36
|
+
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-c1babfda.js';
|
|
37
37
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-6d1b6059.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from '../OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from '../OrInput-2b447f81.js';
|
|
39
39
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from '../OrSearch-7cb2c91c.js';
|
|
40
40
|
export { s as OrLabel } from '../OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from '../OrLabel-bdaec602.js';
|
|
@@ -58,11 +58,11 @@ export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '..
|
|
|
58
58
|
export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-407002e0.js';
|
|
59
59
|
export { s as OrRadio } from '../OrRadio-c3ab11f2.js';
|
|
60
60
|
export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
|
|
61
|
-
export { s as OrRadioV3 } from '../OrRadio-
|
|
62
|
-
export { s as OrSearchV3 } from '../OrSearch-
|
|
61
|
+
export { s as OrRadioV3 } from '../OrRadio-ef9d4c6e.js';
|
|
62
|
+
export { s as OrSearchV3 } from '../OrSearch-d72cfc74.js';
|
|
63
63
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-171cad78.js';
|
|
64
64
|
export { s as OrSelect } from '../OrSelect-0821b907.js';
|
|
65
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
65
|
+
export { s as OrSelectV3 } from '../OrSelect-e6e006d5.js';
|
|
66
66
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
67
67
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
|
|
68
68
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
|
|
@@ -71,18 +71,18 @@ export { s as OrSlider } from '../OrSlider-87e2da8c.js';
|
|
|
71
71
|
export { s as OrSortHeaderV3 } from '../OrSortHeader-fe1a9cf8.js';
|
|
72
72
|
export { s as OrStepper } from '../OrStepper-f19b4eac.js';
|
|
73
73
|
export { s as OrSwitch } from '../OrSwitch-c333ee32.js';
|
|
74
|
-
export { s as OrSwitchV3 } from '../OrSwitch-
|
|
74
|
+
export { s as OrSwitchV3 } from '../OrSwitch-cc797a48.js';
|
|
75
75
|
export { s as OrTab } from '../OrTab-bc98be02.js';
|
|
76
76
|
export { s as OrTabHeaderItem } from '../OrTabHeaderItem-d668cc59.js';
|
|
77
77
|
export { s as OrTabV3 } from '../OrTab-c131cf60.js';
|
|
78
78
|
export { s as OrTabs } from '../OrTabs-d3812c11.js';
|
|
79
79
|
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-d0ee6cef.js';
|
|
80
80
|
export { s as OrTag } from '../OrTag-1b5e43fa.js';
|
|
81
|
-
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-
|
|
81
|
+
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-c0bbaa58.js';
|
|
82
82
|
export { s as OrTeleport } from '../OrTeleportVue3-ad639f12.js';
|
|
83
83
|
export { s as OrTeleportV3 } from '../OrTeleport.vue3-8099178c.js';
|
|
84
84
|
export { s as OrTextV3 } from '../OrText-ecb46923.js';
|
|
85
|
-
export { s as OrTextareaV3 } from '../OrTextarea-
|
|
85
|
+
export { s as OrTextareaV3 } from '../OrTextarea-ed35cd0b.js';
|
|
86
86
|
export { s as OrTextbox, T as TextboxTypes } from '../OrTextbox-2f33e9c3.js';
|
|
87
87
|
export { s as OrToast, a as OrToastContainer } from '../OrToastContainer-40c4c1c8.js';
|
|
88
88
|
export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-4fbe0e5a.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-
|
|
1
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-8a84f69c.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
@@ -17,8 +17,8 @@ import '../../OrMenu-840038cd.js';
|
|
|
17
17
|
import '../../OrMenuItem-9da279f6.js';
|
|
18
18
|
import '../../OrButton-bb6bf8a9.js';
|
|
19
19
|
import '../../OrLoader-b3cf4231.js';
|
|
20
|
-
import '../../OrSearch-
|
|
21
|
-
import '../../OrInput-
|
|
20
|
+
import '../../OrSearch-d72cfc74.js';
|
|
21
|
+
import '../../OrInput-2b447f81.js';
|
|
22
22
|
import '../../OrError-ec8c709d.js';
|
|
23
23
|
import '../../OrHint-74bb732d.js';
|
|
24
24
|
import '../../OrInputBox-6d1b6059.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
3
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
4
|
+
} | string[], {} & {}, {
|
|
5
|
+
[x: number]: string;
|
|
6
|
+
} | {}, true>)>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
10
|
+
} | string[], {} & {}, {
|
|
11
|
+
[x: number]: string;
|
|
12
|
+
} | {}, true>)>;
|
|
13
|
+
export declare const Addon: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
14
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
15
|
+
} | string[], {} & {}, {
|
|
16
|
+
[x: number]: string;
|
|
17
|
+
} | {}, true>)>;
|
|
18
|
+
export declare const Hint: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
19
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
+
} | string[], {} & {}, {
|
|
21
|
+
[x: number]: string;
|
|
22
|
+
} | {}, true>)>;
|
|
23
|
+
export declare const Error: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
24
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
25
|
+
} | string[], {} & {}, {
|
|
26
|
+
[x: number]: string;
|
|
27
|
+
} | {}, true>)>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { CombinedInputSize } 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
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
6
|
+
controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
8
|
+
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
9
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
10
|
+
size: {
|
|
11
|
+
type: PropType<CombinedInputSize>;
|
|
12
|
+
default: CombinedInputSize;
|
|
13
|
+
};
|
|
14
|
+
label: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
hint: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
error: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
required: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
disableDefaultStyles: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
39
|
+
size: {
|
|
40
|
+
type: PropType<CombinedInputSize>;
|
|
41
|
+
default: CombinedInputSize;
|
|
42
|
+
};
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
hint: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
error: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
required: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
disabled: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
disableDefaultStyles: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
68
|
+
size: CombinedInputSize;
|
|
69
|
+
label: string;
|
|
70
|
+
hint: string;
|
|
71
|
+
error: string;
|
|
72
|
+
required: boolean;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
disableDefaultStyles: boolean;
|
|
75
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
76
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
77
|
+
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
78
|
+
controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
|
|
79
|
+
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
80
|
+
readonly: import("@vue/composition-api").ComputedRef<boolean>;
|
|
81
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
82
|
+
size: CombinedInputSize;
|
|
83
|
+
label: string;
|
|
84
|
+
hint: string;
|
|
85
|
+
error: string;
|
|
86
|
+
required: boolean;
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
disableDefaultStyles: boolean;
|
|
89
|
+
} & {}, {
|
|
90
|
+
size: CombinedInputSize;
|
|
91
|
+
label: string;
|
|
92
|
+
hint: string;
|
|
93
|
+
error: string;
|
|
94
|
+
required: boolean;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
disableDefaultStyles: boolean;
|
|
97
|
+
}, true>);
|
|
98
|
+
export default _default;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from '../../useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { s as script$1 } from '../../OrError-ec8c709d.js';
|
|
5
|
+
import { s as script$2 } from '../../OrHint-74bb732d.js';
|
|
6
|
+
import { s as script$3 } from '../../OrLabel-bdaec602.js';
|
|
7
|
+
import { a as InputBoxSize } from '../../OrInputBox-6d1b6059.js';
|
|
8
|
+
export { a as CombinedInputSize } from '../../OrInputBox-6d1b6059.js';
|
|
9
|
+
import { resolveComponent, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, Fragment } from 'vue';
|
|
10
|
+
|
|
11
|
+
const CombinedInputRoot = [
|
|
12
|
+
// Layout
|
|
13
|
+
'layout-column',
|
|
14
|
+
// Spacing
|
|
15
|
+
'gap-xs'];
|
|
16
|
+
const CombinedInputControlGroup = [
|
|
17
|
+
// Layout
|
|
18
|
+
'layout-row',
|
|
19
|
+
// Box
|
|
20
|
+
'w-full',
|
|
21
|
+
// Shape (.or-input-box)
|
|
22
|
+
'[&_.or-input-box]:first-child:rounded-r-0', '[&_.or-input-box]:intermediate-child:rounded-0', '[&_.or-input-box]:last-child:rounded-l-0',
|
|
23
|
+
// Spacing (.or-input-box)
|
|
24
|
+
'[&_.or-input-box]:first-child:mr-[-1px]', '[&_.or-input-box]:intermediate-child:border-x-0', '[&_.or-input-box]:last-child:ml-[-1px]'];
|
|
25
|
+
|
|
26
|
+
var script = defineComponent({
|
|
27
|
+
name: 'OrCombinedInput',
|
|
28
|
+
components: {
|
|
29
|
+
OrError: script$1,
|
|
30
|
+
OrHint: script$2,
|
|
31
|
+
OrLabel: script$3
|
|
32
|
+
},
|
|
33
|
+
inheritAttrs: false,
|
|
34
|
+
props: {
|
|
35
|
+
size: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: InputBoxSize.M
|
|
38
|
+
},
|
|
39
|
+
label: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: undefined
|
|
42
|
+
},
|
|
43
|
+
hint: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: undefined
|
|
46
|
+
},
|
|
47
|
+
error: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: undefined
|
|
50
|
+
},
|
|
51
|
+
required: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
disableDefaultStyles: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
setup(props, context) {
|
|
65
|
+
// Refs
|
|
66
|
+
const root = ref();
|
|
67
|
+
// Styles
|
|
68
|
+
const classAttribute = useClassAttribute();
|
|
69
|
+
const rootStyles = computed(() => ['or-combined-input', ...CombinedInputRoot, classAttribute.value]);
|
|
70
|
+
const controlGroup = computed(() => [...CombinedInputControlGroup]);
|
|
71
|
+
// State
|
|
72
|
+
const invalid = computed(() => !!props.error);
|
|
73
|
+
const readonly = computed(() => context.attrs.readonly);
|
|
74
|
+
return {
|
|
75
|
+
root,
|
|
76
|
+
rootStyles,
|
|
77
|
+
controlGroup,
|
|
78
|
+
invalid,
|
|
79
|
+
readonly
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
+
const _component_OrLabel = resolveComponent("OrLabel");
|
|
86
|
+
const _component_OrHint = resolveComponent("OrHint");
|
|
87
|
+
const _component_OrError = resolveComponent("OrError");
|
|
88
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
89
|
+
ref: "root"
|
|
90
|
+
}, _ctx.$attrs, {
|
|
91
|
+
class: _ctx.rootStyles
|
|
92
|
+
}), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
93
|
+
key: 0,
|
|
94
|
+
variant: 'input',
|
|
95
|
+
required: _ctx.required,
|
|
96
|
+
disabled: _ctx.disabled
|
|
97
|
+
}, {
|
|
98
|
+
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
99
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label) + " ", 1 /* TEXT */)]),
|
|
100
|
+
|
|
101
|
+
_: 3 /* FORWARDED */
|
|
102
|
+
}, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
103
|
+
class: normalizeClass(_ctx.controlGroup)
|
|
104
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
105
|
+
size: _ctx.size,
|
|
106
|
+
required: _ctx.required,
|
|
107
|
+
readonly: _ctx.readonly,
|
|
108
|
+
disabled: _ctx.disabled,
|
|
109
|
+
disableDefaultStyles: _ctx.disableDefaultStyles
|
|
110
|
+
})], 2 /* CLASS */), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
111
|
+
key: 1
|
|
112
|
+
}, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
|
|
113
|
+
key: 0,
|
|
114
|
+
disabled: _ctx.disabled
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
|
|
117
|
+
|
|
118
|
+
_: 1 /* STABLE */
|
|
119
|
+
}, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createBlock(_component_OrError, {
|
|
120
|
+
key: 2,
|
|
121
|
+
disabled: _ctx.disabled
|
|
122
|
+
}, {
|
|
123
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
|
|
124
|
+
|
|
125
|
+
_: 1 /* STABLE */
|
|
126
|
+
}, 8 /* PROPS */, ["disabled"]))], 16 /* FULL_PROPS */);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
script.render = render;
|
|
130
|
+
script.__file = "src/components/or-combined-input-v3/OrCombinedInput.vue";
|
|
131
|
+
|
|
132
|
+
export { script as OrCombinedInputV3 };
|