@onereach/ui-components 20.3.0-beta.5250.0 → 20.3.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/esm/components/index.js +1 -1
- package/dist/esm/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +11 -1
- package/dist/esm/components/or-checkbox-group-v3/index.js +16 -6
- package/dist/esm/components/or-checkbox-tree-v3/index.js +1 -1
- package/dist/esm/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/components/or-data-grid-v3/index.js +3 -1
- package/dist/esm/components/or-form-group-v3/OrFormGroup.vue.d.ts +10 -0
- package/dist/esm/components/or-form-group-v3/index.d.ts +1 -0
- package/dist/esm/components/or-form-group-v3/index.js +24 -6
- package/dist/esm/components/or-form-group-v3/props.d.ts +5 -0
- package/dist/esm/components/or-form-group-v3/styles.d.ts +2 -0
- package/dist/esm/components/or-input-v3/index.js +4 -1
- package/dist/esm/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +11 -1
- package/dist/esm/components/or-radio-group-v3/index.js +16 -6
- package/dist/esm/components/or-radio-v3/index.js +1 -1
- package/dist/esm/components/or-select-v3/index.js +11 -2
- package/dist/esm/components/or-select-v3/styles.d.ts +3 -0
- package/dist/esm/components/or-tag-input-v3/index.js +3 -1
- package/dist/esm/index.js +1 -1
- package/package.json +5 -4
|
@@ -35,7 +35,7 @@ export { FabColor, OrFabV3 } from './or-fab-v3/index.js';
|
|
|
35
35
|
export { OrFilterPopoverV3 } from './or-filter-popover-v3/index.js';
|
|
36
36
|
export { OrFilterTriggerV3 } from './or-filter-trigger-v3/index.js';
|
|
37
37
|
export { OrFilterV3 } from './or-filter-v3/index.js';
|
|
38
|
-
export { FormGroupDirection, OrFormGroupV3 } from './or-form-group-v3/index.js';
|
|
38
|
+
export { FormGroupDirection, FormGroupSpacing, OrFormGroupV3 } from './or-form-group-v3/index.js';
|
|
39
39
|
export { OrHintV3 } from './or-hint-v3/index.js';
|
|
40
40
|
export { IconButtonColor, OrIconButtonV3 } from './or-icon-button-v3/index.js';
|
|
41
41
|
export { IconSize, IconVariant, OrIconV3 } from './or-icon-v3/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CheckboxTreeNode } from '@onereach/ui-components.or-checkbox-tree-v3';
|
|
3
|
-
import { FormGroupDirection } from '@onereach/ui-components.or-form-group-v3';
|
|
3
|
+
import { FormGroupDirection, FormGroupSpacing } from '@onereach/ui-components.or-form-group-v3';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: PropType<string[]>;
|
|
@@ -34,8 +34,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: BooleanConstructor;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
+
spacing: {
|
|
38
|
+
type: PropType<"none" | "sm" | "md">;
|
|
39
|
+
default: FormGroupSpacing;
|
|
40
|
+
};
|
|
37
41
|
}, {
|
|
38
42
|
proxyModelValue: import("@onereach/ui-components-common/hooks").UseProxyModelValueReturn<string[]>;
|
|
43
|
+
localSpacing: import("vue").ComputedRef<FormGroupSpacing.NONE | "none" | "sm" | "md">;
|
|
39
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
45
|
modelValue: {
|
|
41
46
|
type: PropType<string[]>;
|
|
@@ -69,6 +74,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
74
|
type: BooleanConstructor;
|
|
70
75
|
default: boolean;
|
|
71
76
|
};
|
|
77
|
+
spacing: {
|
|
78
|
+
type: PropType<"none" | "sm" | "md">;
|
|
79
|
+
default: FormGroupSpacing;
|
|
80
|
+
};
|
|
72
81
|
}>>, {
|
|
73
82
|
modelValue: string[];
|
|
74
83
|
label: string;
|
|
@@ -78,5 +87,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
87
|
options: CheckboxTreeNode[];
|
|
79
88
|
disabled: boolean;
|
|
80
89
|
readonly: boolean;
|
|
90
|
+
spacing: "none" | "sm" | "md";
|
|
81
91
|
}, {}>;
|
|
82
92
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, toRef, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
-
import { r as re } from '../OrAutocompleteV3-fd7065f1.js';
|
|
1
|
+
import { defineComponent, toRef, computed, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
+
import { r as re, n as ne } from '../OrAutocompleteV3-fd7065f1.js';
|
|
3
3
|
import { OrCheckboxTreeV3 as script$1 } from '../or-checkbox-tree-v3/index.js';
|
|
4
|
-
import { OrFormGroupV3 as script$2, FormGroupDirection } from '../or-form-group-v3/index.js';
|
|
4
|
+
import { OrFormGroupV3 as script$2, FormGroupDirection, FormGroupSpacing } from '../or-form-group-v3/index.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '@onereach/styles/screens.json';
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -73,12 +73,21 @@ var script = defineComponent({
|
|
|
73
73
|
readonly: {
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: false
|
|
76
|
+
},
|
|
77
|
+
spacing: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: FormGroupSpacing.SM
|
|
76
80
|
}
|
|
77
81
|
},
|
|
78
82
|
setup(props, context) {
|
|
79
83
|
const proxyModelValue = re(toRef(props, 'modelValue'), context.emit);
|
|
84
|
+
const {
|
|
85
|
+
isMobile
|
|
86
|
+
} = ne();
|
|
87
|
+
const localSpacing = computed(() => isMobile.value ? FormGroupSpacing.NONE : props.spacing);
|
|
80
88
|
return {
|
|
81
|
-
proxyModelValue
|
|
89
|
+
proxyModelValue,
|
|
90
|
+
localSpacing
|
|
82
91
|
};
|
|
83
92
|
}
|
|
84
93
|
});
|
|
@@ -91,7 +100,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
91
100
|
error: _ctx.error,
|
|
92
101
|
hint: _ctx.hint,
|
|
93
102
|
disabled: _ctx.disabled,
|
|
94
|
-
direction: _ctx.direction
|
|
103
|
+
direction: _ctx.direction,
|
|
104
|
+
spacing: _ctx.localSpacing
|
|
95
105
|
}, {
|
|
96
106
|
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
97
107
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
|
|
@@ -107,7 +117,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
117
|
}, null, 8 /* PROPS */, ["modelValue", "item", "disabled", "readonly", "collapsible", "expanded"]);
|
|
108
118
|
}), 128 /* KEYED_FRAGMENT */))]),
|
|
109
119
|
_: 3 /* FORWARDED */
|
|
110
|
-
}, 8 /* PROPS */, ["label", "error", "hint", "disabled", "direction"]);
|
|
120
|
+
}, 8 /* PROPS */, ["label", "error", "hint", "disabled", "direction", "spacing"]);
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
script.render = render;
|
|
@@ -32,7 +32,7 @@ const Checkbox = [
|
|
|
32
32
|
// Layout
|
|
33
33
|
'layout-row',
|
|
34
34
|
// Spacing
|
|
35
|
-
'
|
|
35
|
+
'md:gap-sm'];
|
|
36
36
|
const CheckboxControl = [
|
|
37
37
|
// Layout
|
|
38
38
|
'layout-inline-row justify-center',
|
|
@@ -41,7 +41,7 @@ const CheckboxControl = [
|
|
|
41
41
|
// Shape
|
|
42
42
|
'rounded-sm leading-[0]',
|
|
43
43
|
// Box
|
|
44
|
-
'w-md+ md:w-md', 'h-md+ md:h-md',
|
|
44
|
+
'w-md+ md:w-md', 'h-md+ md:h-md', 'm-[10px] md:m-none',
|
|
45
45
|
// Iconography
|
|
46
46
|
'iconography-outlined',
|
|
47
47
|
// Theme
|
|
@@ -1204,6 +1204,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1204
1204
|
column: {
|
|
1205
1205
|
stickiness: 'start'
|
|
1206
1206
|
},
|
|
1207
|
+
class: "!py-xs !px-xs md:!py-none md:!px-sm+",
|
|
1207
1208
|
"onUpdate:scrollOffset": _ctx.updateScrollOffset,
|
|
1208
1209
|
"onRemove:scrollOffset": _ctx.removeScrollOffset
|
|
1209
1210
|
}, {
|
|
@@ -1282,7 +1283,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1282
1283
|
column: {
|
|
1283
1284
|
stickiness: 'start'
|
|
1284
1285
|
},
|
|
1285
|
-
"force-state": 'none'
|
|
1286
|
+
"force-state": 'none',
|
|
1287
|
+
class: "!py-xs !px-xs md:!py-none md:!px-sm+"
|
|
1286
1288
|
}, {
|
|
1287
1289
|
default: withCtx(() => [createVNode(_component_OrCheckbox, {
|
|
1288
1290
|
modelValue: _ctx.selectingModel,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { FormGroupDirection } from './types';
|
|
3
|
+
import { FormGroupSpacing } from './props';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
direction: {
|
|
5
6
|
type: PropType<"vertical" | "horizontal">;
|
|
@@ -25,6 +26,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
type: BooleanConstructor;
|
|
26
27
|
default: boolean;
|
|
27
28
|
};
|
|
29
|
+
spacing: {
|
|
30
|
+
type: PropType<"none" | "sm" | "md">;
|
|
31
|
+
default: FormGroupSpacing;
|
|
32
|
+
};
|
|
28
33
|
}, {
|
|
29
34
|
root: import("vue").Ref<HTMLElement | undefined>;
|
|
30
35
|
rootStyles: import("vue").ComputedRef<string[]>;
|
|
@@ -54,6 +59,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
59
|
type: BooleanConstructor;
|
|
55
60
|
default: boolean;
|
|
56
61
|
};
|
|
62
|
+
spacing: {
|
|
63
|
+
type: PropType<"none" | "sm" | "md">;
|
|
64
|
+
default: FormGroupSpacing;
|
|
65
|
+
};
|
|
57
66
|
}>>, {
|
|
58
67
|
direction: "vertical" | "horizontal";
|
|
59
68
|
label: string;
|
|
@@ -61,5 +70,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
70
|
error: string | boolean;
|
|
62
71
|
required: boolean;
|
|
63
72
|
disabled: boolean;
|
|
73
|
+
spacing: "none" | "sm" | "md";
|
|
64
74
|
}, {}>;
|
|
65
75
|
export default _default;
|
|
@@ -9,14 +9,19 @@ var FormGroupDirection;
|
|
|
9
9
|
FormGroupDirection["Horizontal"] = "horizontal";
|
|
10
10
|
})(FormGroupDirection || (FormGroupDirection = {}));
|
|
11
11
|
|
|
12
|
+
var FormGroupSpacing;
|
|
13
|
+
(function (FormGroupSpacing) {
|
|
14
|
+
FormGroupSpacing["NONE"] = "none";
|
|
15
|
+
FormGroupSpacing["SM"] = "sm";
|
|
16
|
+
FormGroupSpacing["MD"] = "md";
|
|
17
|
+
})(FormGroupSpacing || (FormGroupSpacing = {}));
|
|
18
|
+
|
|
12
19
|
const FormGroup = [
|
|
13
20
|
// Layout
|
|
14
21
|
'layout-column',
|
|
15
22
|
// Spacing
|
|
16
|
-
'gap-
|
|
17
|
-
const FormGroupContent = [
|
|
18
|
-
// Spacing
|
|
19
|
-
'gap-md md:gap-sm'];
|
|
23
|
+
'gap-sm'];
|
|
24
|
+
const FormGroupContent = [];
|
|
20
25
|
const FormGroupContentDirections = {
|
|
21
26
|
[FormGroupDirection.Vertical]: [
|
|
22
27
|
// Layout
|
|
@@ -25,6 +30,15 @@ const FormGroupContentDirections = {
|
|
|
25
30
|
// Layout
|
|
26
31
|
'layout-row']
|
|
27
32
|
};
|
|
33
|
+
const FormGroupContentSpacing = {
|
|
34
|
+
[FormGroupSpacing.NONE]: [],
|
|
35
|
+
[FormGroupSpacing.SM]: [
|
|
36
|
+
// Spacing
|
|
37
|
+
'gap-sm'],
|
|
38
|
+
[FormGroupSpacing.MD]: [
|
|
39
|
+
// Spacing
|
|
40
|
+
'gap-md']
|
|
41
|
+
};
|
|
28
42
|
|
|
29
43
|
var script = defineComponent({
|
|
30
44
|
name: 'OrFormGroup',
|
|
@@ -57,13 +71,17 @@ var script = defineComponent({
|
|
|
57
71
|
disabled: {
|
|
58
72
|
type: Boolean,
|
|
59
73
|
default: false
|
|
74
|
+
},
|
|
75
|
+
spacing: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: FormGroupSpacing.SM
|
|
60
78
|
}
|
|
61
79
|
},
|
|
62
80
|
setup(props) {
|
|
63
81
|
// Refs & Styles
|
|
64
82
|
const root = ref();
|
|
65
83
|
const rootStyles = computed(() => ['or-form-group-v3', ...FormGroup]);
|
|
66
|
-
const contentStyles = computed(() => [...FormGroupContent, ...FormGroupContentDirections[props.direction]]);
|
|
84
|
+
const contentStyles = computed(() => [...FormGroupContent, ...FormGroupContentDirections[props.direction], ...FormGroupContentSpacing[props.spacing]]);
|
|
67
85
|
return {
|
|
68
86
|
root,
|
|
69
87
|
rootStyles,
|
|
@@ -108,4 +126,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
126
|
script.render = render;
|
|
109
127
|
script.__file = "src/components/or-form-group-v3/OrFormGroup.vue";
|
|
110
128
|
|
|
111
|
-
export { FormGroupDirection, script as OrFormGroupV3 };
|
|
129
|
+
export { FormGroupDirection, FormGroupSpacing, script as OrFormGroupV3 };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { FormGroupDirection } from './types';
|
|
2
|
+
import { FormGroupSpacing } from './props';
|
|
2
3
|
export declare const FormGroup: string[];
|
|
3
4
|
export declare const FormGroupContent: string[];
|
|
4
5
|
export declare const FormGroupContentDirections: Record<FormGroupDirection, string[]>;
|
|
6
|
+
export declare const FormGroupContentSpacing: Record<FormGroupSpacing, string[]>;
|
|
@@ -200,7 +200,7 @@ var script = defineComponent({
|
|
|
200
200
|
});
|
|
201
201
|
|
|
202
202
|
const _hoisted_1 = {
|
|
203
|
-
class: "layout-row gap-
|
|
203
|
+
class: "layout-row gap-md md:gap-md"
|
|
204
204
|
};
|
|
205
205
|
const _hoisted_2 = ["name", "type", "inputmode", "autocomplete", "placeholder", "required", "readonly", "disabled"];
|
|
206
206
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -272,6 +272,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
272
272
|
icon: _ctx.disclosed ? 'visibility' : 'visibility_off',
|
|
273
273
|
variant: 'filled'
|
|
274
274
|
},
|
|
275
|
+
size: 'l',
|
|
275
276
|
color: 'inherit',
|
|
276
277
|
disabled: _ctx.disabled,
|
|
277
278
|
onClick: _cache[6] || (_cache[6] = withModifiers($event => _ctx.disclosed = !_ctx.disclosed, ["stop"]))
|
|
@@ -281,11 +282,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
281
282
|
key: 0,
|
|
282
283
|
icon: 'close',
|
|
283
284
|
color: 'inherit',
|
|
285
|
+
size: 'l',
|
|
284
286
|
disabled: _ctx.disabled,
|
|
285
287
|
onClick: _cache[7] || (_cache[7] = withModifiers($event => _ctx.clear(), ["stop"]))
|
|
286
288
|
}, null, 8 /* PROPS */, ["disabled"])) : (openBlock(), createBlock(_component_OrIcon, {
|
|
287
289
|
key: 1,
|
|
288
290
|
icon: 'search',
|
|
291
|
+
size: 'l',
|
|
289
292
|
variant: 'outlined'
|
|
290
293
|
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */))])]),
|
|
291
294
|
key: "1"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { FormGroupDirection } from '@onereach/ui-components.or-form-group-v3';
|
|
2
|
+
import { FormGroupDirection, FormGroupSpacing } from '@onereach/ui-components.or-form-group-v3';
|
|
3
3
|
import { RadioModelValue } from '@onereach/ui-components.or-radio-v3';
|
|
4
4
|
import { RadioGroupOption } from './types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -35,8 +35,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
+
spacing: {
|
|
39
|
+
type: PropType<"none" | "sm" | "md">;
|
|
40
|
+
default: FormGroupSpacing;
|
|
41
|
+
};
|
|
38
42
|
}, {
|
|
39
43
|
proxyModelValue: import("@onereach/ui-components-common/hooks").UseProxyModelValueReturn<RadioModelValue>;
|
|
44
|
+
localSpacing: import("vue").ComputedRef<FormGroupSpacing.NONE | "none" | "sm" | "md">;
|
|
40
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
46
|
modelValue: {
|
|
42
47
|
type: PropType<RadioModelValue>;
|
|
@@ -70,6 +75,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
75
|
type: BooleanConstructor;
|
|
71
76
|
default: boolean;
|
|
72
77
|
};
|
|
78
|
+
spacing: {
|
|
79
|
+
type: PropType<"none" | "sm" | "md">;
|
|
80
|
+
default: FormGroupSpacing;
|
|
81
|
+
};
|
|
73
82
|
}>> & {
|
|
74
83
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
75
84
|
}, {
|
|
@@ -81,5 +90,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
90
|
error: string;
|
|
82
91
|
disabled: boolean;
|
|
83
92
|
readonly: boolean;
|
|
93
|
+
spacing: "none" | "sm" | "md";
|
|
84
94
|
}, {}>;
|
|
85
95
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, toRef, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
-
import { r as re } from '../OrAutocompleteV3-fd7065f1.js';
|
|
3
|
-
import { OrFormGroupV3 as script$1, FormGroupDirection } from '../or-form-group-v3/index.js';
|
|
1
|
+
import { defineComponent, toRef, computed, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
+
import { r as re, n as ne } from '../OrAutocompleteV3-fd7065f1.js';
|
|
3
|
+
import { OrFormGroupV3 as script$1, FormGroupDirection, FormGroupSpacing } from '../or-form-group-v3/index.js';
|
|
4
4
|
import { OrRadioV3 as script$2 } from '../or-radio-v3/index.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '@onereach/styles/screens.json';
|
|
@@ -72,14 +72,23 @@ var script = defineComponent({
|
|
|
72
72
|
readonly: {
|
|
73
73
|
type: Boolean,
|
|
74
74
|
default: false
|
|
75
|
+
},
|
|
76
|
+
spacing: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: FormGroupSpacing.SM
|
|
75
79
|
}
|
|
76
80
|
},
|
|
77
81
|
emits: ['update:modelValue'],
|
|
78
82
|
setup(props, context) {
|
|
79
83
|
// State
|
|
80
84
|
const proxyModelValue = re(toRef(props, 'modelValue'), context.emit);
|
|
85
|
+
const {
|
|
86
|
+
isMobile
|
|
87
|
+
} = ne();
|
|
88
|
+
const localSpacing = computed(() => isMobile.value ? FormGroupSpacing.NONE : props.spacing);
|
|
81
89
|
return {
|
|
82
|
-
proxyModelValue
|
|
90
|
+
proxyModelValue,
|
|
91
|
+
localSpacing
|
|
83
92
|
};
|
|
84
93
|
}
|
|
85
94
|
});
|
|
@@ -92,7 +101,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
92
101
|
label: _ctx.label,
|
|
93
102
|
hint: _ctx.hint,
|
|
94
103
|
error: _ctx.error,
|
|
95
|
-
disabled: _ctx.disabled
|
|
104
|
+
disabled: _ctx.disabled,
|
|
105
|
+
spacing: _ctx.localSpacing
|
|
96
106
|
}, {
|
|
97
107
|
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
98
108
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
|
|
@@ -107,7 +117,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
117
|
}, null, 8 /* PROPS */, ["modelValue", "value", "label", "disabled", "readonly"]);
|
|
108
118
|
}), 128 /* KEYED_FRAGMENT */))]),
|
|
109
119
|
_: 3 /* FORWARDED */
|
|
110
|
-
}, 8 /* PROPS */, ["direction", "label", "hint", "error", "disabled"]);
|
|
120
|
+
}, 8 /* PROPS */, ["direction", "label", "hint", "error", "disabled", "spacing"]);
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
script.render = render;
|
|
@@ -529,11 +529,20 @@ const SelectDropdownItem = [
|
|
|
529
529
|
// Typography
|
|
530
530
|
'!typography-body-2-regular',
|
|
531
531
|
// Padding Override todo: check design
|
|
532
|
-
'
|
|
532
|
+
'md:!pt-[6px] md:!pb-[7px]',
|
|
533
533
|
// Typography (selected)
|
|
534
534
|
'selected:!typography-body-2-semibold',
|
|
535
535
|
// Theme
|
|
536
536
|
'!theme-foreground-default dark:!theme-foreground-default-dark'];
|
|
537
|
+
const SelectDropdownItemPaddingSingle = [
|
|
538
|
+
// Padding Override
|
|
539
|
+
'!py-md md:!pt-[6px] md:!pb-[7px]'];
|
|
540
|
+
const SelectDropdownItemPaddingMultiple = [
|
|
541
|
+
// Padding Override
|
|
542
|
+
'md:!pt-[6px] md:!pb-[7px]'];
|
|
543
|
+
const SelectDropdownItemPaddingMultipleMobile = [
|
|
544
|
+
// Padding Override
|
|
545
|
+
'px-md'];
|
|
537
546
|
const SelectNoSearchResults = [
|
|
538
547
|
// Layout
|
|
539
548
|
'layout-row justify-center',
|
|
@@ -756,7 +765,7 @@ var script = defineComponent({
|
|
|
756
765
|
return ['or-select-popover-v3', ...SelectDropdown, ...(((_a = popover.value) === null || _a === void 0 ? void 0 : _a.isFlipped) ? SelectDropdownFlipped : SelectDropdownDefault)];
|
|
757
766
|
});
|
|
758
767
|
const dropdownContainerStyles = computed(() => [isMobile.value ? 'layout-column' : 'contains', bottomSheetFullscreen.value ? 'overflow-y-auto' : 'overflow-hidden']);
|
|
759
|
-
const dropdownItemStyles = computed(() => [...SelectDropdownItem]);
|
|
768
|
+
const dropdownItemStyles = computed(() => [...SelectDropdownItem, ...(props.multiple ? SelectDropdownItemPaddingMultiple : SelectDropdownItemPaddingSingle), ...(isMobile.value ? SelectDropdownItemPaddingMultipleMobile : [])]);
|
|
760
769
|
const noSearchResultsStyles = computed(() => [...SelectNoSearchResults]);
|
|
761
770
|
const loaderStyles = computed(() => [...SelectLoader]);
|
|
762
771
|
// Methods
|
|
@@ -5,5 +5,8 @@ export declare const SelectDropdown: string[];
|
|
|
5
5
|
export declare const SelectDropdownDefault: string[];
|
|
6
6
|
export declare const SelectDropdownFlipped: string[];
|
|
7
7
|
export declare const SelectDropdownItem: string[];
|
|
8
|
+
export declare const SelectDropdownItemPaddingSingle: string[];
|
|
9
|
+
export declare const SelectDropdownItemPaddingMultiple: string[];
|
|
10
|
+
export declare const SelectDropdownItemPaddingMultipleMobile: string[];
|
|
8
11
|
export declare const SelectNoSearchResults: string[];
|
|
9
12
|
export declare const SelectLoader: string[];
|
|
@@ -210,6 +210,7 @@ var script = defineComponent({
|
|
|
210
210
|
if (maxLength.value && currentLength.value >= maxLength.value) return;
|
|
211
211
|
proxyModelValue.value = $s(newItem, (_b = proxyModelValue.value) !== null && _b !== void 0 ? _b : []);
|
|
212
212
|
draftModelValue.value = '';
|
|
213
|
+
nextTick(() => focus());
|
|
213
214
|
}
|
|
214
215
|
function remove(value) {
|
|
215
216
|
var _a;
|
|
@@ -232,7 +233,8 @@ var script = defineComponent({
|
|
|
232
233
|
});
|
|
233
234
|
watch(proxyModelValue, (items, prevItems) => {
|
|
234
235
|
var _a;
|
|
235
|
-
if (
|
|
236
|
+
if (overflow.value !== TagsOverflow.Scroll) return;
|
|
237
|
+
if ((items === null || items === void 0 ? void 0 : items.length) !== (prevItems === null || prevItems === void 0 ? void 0 : prevItems.length)) {
|
|
236
238
|
((_a = tags.value) === null || _a === void 0 ? void 0 : _a.scrollToEnd)();
|
|
237
239
|
}
|
|
238
240
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export { EditorState } from '@codemirror/state';
|
|
|
58
58
|
export { OrDatePickerV3 } from './components/or-date-picker-v3/index.js';
|
|
59
59
|
export { OrErrorV3 } from './components/or-error-v3/index.js';
|
|
60
60
|
export { ExpansionPanelBackgroundColor, ExpansionPanelColor, ExpansionPanelVariant, OrExpansionPanelV3 } from './components/or-expansion-panel-v3/index.js';
|
|
61
|
-
export { FormGroupDirection, OrFormGroupV3 } from './components/or-form-group-v3/index.js';
|
|
61
|
+
export { FormGroupDirection, FormGroupSpacing, OrFormGroupV3 } from './components/or-form-group-v3/index.js';
|
|
62
62
|
export { OrHintV3 } from './components/or-hint-v3/index.js';
|
|
63
63
|
export { IconButtonColor, OrIconButtonV3 } from './components/or-icon-button-v3/index.js';
|
|
64
64
|
export { IconSize, IconVariant, OrIconV3 } from './components/or-icon-v3/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "20.3.0
|
|
3
|
+
"version": "20.3.0",
|
|
4
4
|
"description": "Vue components library for v3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@codemirror/view": "^6",
|
|
45
45
|
"@floating-ui/dom": "1.5.3",
|
|
46
46
|
"@lezer/highlight": "*",
|
|
47
|
-
"@onereach/styles": "^20.
|
|
48
|
-
"@onereach/ui-components-common": "^20.
|
|
47
|
+
"@onereach/styles": "^20.3.0",
|
|
48
|
+
"@onereach/ui-components-common": "^20.3.0",
|
|
49
49
|
"@splidejs/splide": "4.0.6",
|
|
50
50
|
"@tiptap/core": "2.0.3",
|
|
51
51
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -104,5 +104,6 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"npmUnpacked": "4.15.2"
|
|
107
|
+
"npmUnpacked": "4.15.2",
|
|
108
|
+
"gitHead": "da62f7d2af0507ea35abbe990f2c03918721e4f6"
|
|
108
109
|
}
|