@rio-m3e/vue 0.7.0 → 0.8.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/app-bar/AppBar.vue.js +3 -1
- package/dist/app-bar/context.js +3 -0
- package/dist/browser/rio-vue.css +366 -78
- package/dist/browser/rio-vue.global.js +21 -21
- package/dist/browser/rio-vue.js +21 -21
- package/dist/checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/checkbox/Checkbox.vue.js +3 -0
- package/dist/chip/AssistChip.vue.d.ts +1 -0
- package/dist/chip/AssistChip.vue.js +3 -0
- package/dist/chip/ChipSet.vue.d.ts +1 -0
- package/dist/chip/ChipSet.vue.js +4 -1
- package/dist/chip/FilterChip.vue.d.ts +19 -3
- package/dist/chip/FilterChip.vue.js +54 -8
- package/dist/chip/InputChip.vue.d.ts +1 -0
- package/dist/chip/InputChip.vue.js +3 -0
- package/dist/chip/SuggestionChip.vue.d.ts +1 -0
- package/dist/chip/SuggestionChip.vue.js +3 -0
- package/dist/icon-button/IconButton.vue.d.ts +1 -0
- package/dist/icon-button/IconButton.vue.js +3 -0
- package/dist/index.d.ts +8 -6
- package/dist/index.js +8 -6
- package/dist/list/ListItem.vue.d.ts +7 -1
- package/dist/list/ListItem.vue.js +12 -3
- package/dist/radio/Radio.vue.d.ts +1 -0
- package/dist/radio/Radio.vue.js +3 -0
- package/dist/radio/RadioGroup.vue.d.ts +1 -0
- package/dist/radio/RadioGroup.vue.js +3 -0
- package/dist/rio/rio.js +2 -0
- package/dist/select/Select.vue.d.ts +1 -0
- package/dist/select/Select.vue.js +3 -0
- package/dist/switch/Switch.vue.d.ts +1 -0
- package/dist/switch/Switch.vue.js +3 -0
- package/dist/tabs/Tab.vue.d.ts +8 -1
- package/dist/tabs/Tab.vue.js +51 -26
- package/dist/tabs/Tabs.vue.d.ts +2 -0
- package/dist/tabs/Tabs.vue.js +21 -7
- package/dist/text-field/TextField.vue.d.ts +1 -0
- package/dist/text-field/TextField.vue.js +3 -0
- package/dist/theme/ThemeProvider.vue.d.ts +22 -0
- package/dist/theme/ThemeProvider.vue.js +26 -0
- package/dist/theme/context.d.ts +7 -0
- package/dist/theme/context.js +7 -0
- package/dist/tooltip/Tooltip.vue.js +10 -3
- package/package.json +4 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CheckboxProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/ripple.css";
|
|
@@ -2,6 +2,7 @@ import { useRipple } from "../ripple/ripple.js";
|
|
|
2
2
|
import { createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, unref, useTemplateRef } from "vue";
|
|
3
3
|
import { attachCheckable, createCheckbox, mergePartAttrs } from "@rio-m3e/core";
|
|
4
4
|
import "@rio-m3e/styles/base/accent.css";
|
|
5
|
+
import "@rio-m3e/styles/base/density.css";
|
|
5
6
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
7
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
7
8
|
import "@rio-m3e/styles/base/ripple.css";
|
|
@@ -15,6 +16,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
15
16
|
indeterminate: { type: Boolean },
|
|
16
17
|
error: { type: Boolean },
|
|
17
18
|
color: {},
|
|
19
|
+
density: {},
|
|
18
20
|
disabled: { type: Boolean },
|
|
19
21
|
softDisabled: { type: Boolean }
|
|
20
22
|
},
|
|
@@ -26,6 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
26
28
|
indeterminate: __props.indeterminate,
|
|
27
29
|
error: __props.error,
|
|
28
30
|
color: __props.color,
|
|
31
|
+
density: __props.density,
|
|
29
32
|
disabled: __props.disabled,
|
|
30
33
|
softDisabled: __props.softDisabled
|
|
31
34
|
}) });
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AssistChipProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
@@ -3,6 +3,7 @@ import { useChipSetItem } from "./context.js";
|
|
|
3
3
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useSlots, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import { createAssistChip } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/accent.css";
|
|
6
|
+
import "@rio-m3e/styles/base/density.css";
|
|
6
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
7
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
8
9
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
@@ -15,6 +16,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
15
16
|
elevated: { type: Boolean },
|
|
16
17
|
href: {},
|
|
17
18
|
color: {},
|
|
19
|
+
density: {},
|
|
18
20
|
disabled: { type: Boolean },
|
|
19
21
|
softDisabled: { type: Boolean }
|
|
20
22
|
},
|
|
@@ -28,6 +30,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
30
|
elevated: __props.elevated,
|
|
29
31
|
href: __props.href,
|
|
30
32
|
color: __props.color,
|
|
33
|
+
density: __props.density,
|
|
31
34
|
disabled: __props.disabled,
|
|
32
35
|
softDisabled: __props.softDisabled
|
|
33
36
|
}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChipSetProps, ChipSetSelected } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/chip.css";
|
|
4
5
|
interface Props extends Omit<ChipSetProps, 'selected'> {
|
|
5
6
|
/** The selected value (`single`) or values (`multiple`), with `v-model`. */
|
package/dist/chip/ChipSet.vue.js
CHANGED
|
@@ -2,6 +2,7 @@ import { chipSetKey } from "./context.js";
|
|
|
2
2
|
import { createElementBlock, defineComponent, mergeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, provide, ref, renderSlot, unref, useTemplateRef } from "vue";
|
|
3
3
|
import { attachChipSet, createChipSet } from "@rio-m3e/core";
|
|
4
4
|
import "@rio-m3e/styles/base/accent.css";
|
|
5
|
+
import "@rio-m3e/styles/base/density.css";
|
|
5
6
|
import "@rio-m3e/styles/chip.css";
|
|
6
7
|
// src/chip/ChipSet.vue
|
|
7
8
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -11,7 +12,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
11
12
|
selection: {},
|
|
12
13
|
required: { type: Boolean },
|
|
13
14
|
scroll: { type: Boolean },
|
|
14
|
-
color: {}
|
|
15
|
+
color: {},
|
|
16
|
+
density: {}
|
|
15
17
|
},
|
|
16
18
|
emits: ["update:modelValue"],
|
|
17
19
|
setup(__props, { emit: __emit }) {
|
|
@@ -24,6 +26,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
24
26
|
required: __props.required,
|
|
25
27
|
scroll: __props.scroll,
|
|
26
28
|
color: __props.color,
|
|
29
|
+
density: __props.density,
|
|
27
30
|
selected: __props.modelValue
|
|
28
31
|
}),
|
|
29
32
|
tabStop: () => tabStop.value,
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { FilterChipProps } from "@rio-m3e/core";
|
|
1
|
+
import { ChipMessages, FilterChipProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
6
7
|
import "@rio-m3e/styles/base/ripple.css";
|
|
7
8
|
import "@rio-m3e/styles/chip.css";
|
|
9
|
+
type __VLS_Props = FilterChipProps & {
|
|
10
|
+
/**
|
|
11
|
+
* A language tag, for the remove button's name. Without it, the one provided, or the page's.
|
|
12
|
+
*/
|
|
13
|
+
locale?: string;
|
|
14
|
+
/** Replaces the remove button's name. */
|
|
15
|
+
messages?: Partial<ChipMessages>;
|
|
16
|
+
};
|
|
8
17
|
type __VLS_Slots = {
|
|
9
18
|
/** The label. */
|
|
10
19
|
default?: () => unknown;
|
|
@@ -20,15 +29,22 @@ type __VLS_Slots = {
|
|
|
20
29
|
* one, the `dropdown` icon registered with `createRio`.
|
|
21
30
|
*/
|
|
22
31
|
'dropdown-icon'?: () => unknown;
|
|
32
|
+
/**
|
|
33
|
+
* A `removable` chip's remove icon, such as an X. Hidden from assistive technology. Without one,
|
|
34
|
+
* the `remove` icon registered with `createRio`.
|
|
35
|
+
*/
|
|
36
|
+
'remove-icon'?: () => unknown;
|
|
23
37
|
};
|
|
24
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
38
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
39
|
"update:open": (open: boolean) => any;
|
|
26
40
|
click: (event: MouseEvent) => any;
|
|
27
41
|
"update:selected": (selected: boolean) => any;
|
|
28
|
-
|
|
42
|
+
remove: () => any;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
44
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
30
45
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
31
46
|
"onUpdate:selected"?: ((selected: boolean) => any) | undefined;
|
|
47
|
+
onRemove?: (() => any) | undefined;
|
|
32
48
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
49
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
50
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { useLocale, useMessages } from "../locale/locale.js";
|
|
1
2
|
import { useRipple } from "../ripple/ripple.js";
|
|
2
3
|
import { useChipSetItem } from "./context.js";
|
|
3
4
|
import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
4
5
|
import { useIconOfAlias } from "../icon/icons.js";
|
|
5
|
-
import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, useSlots, useTemplateRef } from "vue";
|
|
6
|
-
import { createFilterChip } from "@rio-m3e/core";
|
|
6
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef } from "vue";
|
|
7
|
+
import { createFilterChip, mergePartAttrs } from "@rio-m3e/core";
|
|
7
8
|
import "@rio-m3e/styles/base/accent.css";
|
|
9
|
+
import "@rio-m3e/styles/base/density.css";
|
|
8
10
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
9
11
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
10
12
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
@@ -12,6 +14,7 @@ import "@rio-m3e/styles/base/ripple.css";
|
|
|
12
14
|
import "@rio-m3e/styles/chip.css";
|
|
13
15
|
// src/chip/FilterChip.vue
|
|
14
16
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
17
|
+
inheritAttrs: false,
|
|
15
18
|
__name: "FilterChip",
|
|
16
19
|
props: {
|
|
17
20
|
selected: { type: Boolean },
|
|
@@ -19,18 +22,31 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
19
22
|
value: {},
|
|
20
23
|
menu: { type: Boolean },
|
|
21
24
|
open: { type: Boolean },
|
|
25
|
+
removable: { type: Boolean },
|
|
22
26
|
color: {},
|
|
27
|
+
density: {},
|
|
23
28
|
disabled: { type: Boolean },
|
|
24
|
-
softDisabled: { type: Boolean }
|
|
29
|
+
softDisabled: { type: Boolean },
|
|
30
|
+
locale: {},
|
|
31
|
+
messages: {}
|
|
25
32
|
},
|
|
26
33
|
emits: [
|
|
27
34
|
"click",
|
|
28
35
|
"update:selected",
|
|
29
|
-
"update:open"
|
|
36
|
+
"update:open",
|
|
37
|
+
"remove"
|
|
30
38
|
],
|
|
31
39
|
setup(__props, { emit: __emit }) {
|
|
32
40
|
const emit = __emit;
|
|
33
41
|
const slots = useSlots();
|
|
42
|
+
const attrs = useAttrs();
|
|
43
|
+
const rest = computed(() => ({
|
|
44
|
+
...attrs,
|
|
45
|
+
class: void 0,
|
|
46
|
+
style: void 0
|
|
47
|
+
}));
|
|
48
|
+
const text = useMessages("chip", useLocale(() => __props.locale), () => __props.messages);
|
|
49
|
+
const id = useId();
|
|
34
50
|
const item = useChipSetItem();
|
|
35
51
|
const grouped = () => !!item.set && item.set.selection() !== "none" && __props.value !== void 0 && !__props.menu;
|
|
36
52
|
const checkIcon = useIconOfAlias("check");
|
|
@@ -42,7 +58,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
42
58
|
value: __props.value,
|
|
43
59
|
menu: __props.menu,
|
|
44
60
|
open: __props.open,
|
|
61
|
+
removable: __props.removable,
|
|
45
62
|
color: __props.color,
|
|
63
|
+
density: __props.density,
|
|
46
64
|
disabled: __props.disabled,
|
|
47
65
|
softDisabled: __props.softDisabled
|
|
48
66
|
}),
|
|
@@ -58,17 +76,45 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
58
76
|
if (grouped()) item.set.select(__props.value, next);
|
|
59
77
|
else emit("update:selected", next);
|
|
60
78
|
},
|
|
61
|
-
onOpenChange: (next) => emit("update:open", next)
|
|
79
|
+
onOpenChange: (next) => emit("update:open", next),
|
|
80
|
+
messages: () => text.value,
|
|
81
|
+
ids: {
|
|
82
|
+
label: `${id}-label`,
|
|
83
|
+
removeBefore: `${id}-remove-before`,
|
|
84
|
+
removeAfter: `${id}-remove-after`
|
|
85
|
+
},
|
|
86
|
+
onRemove: () => emit("remove")
|
|
62
87
|
});
|
|
63
|
-
useRipple(useTemplateRef("
|
|
88
|
+
useRipple(useTemplateRef("toggle"), useTemplateRef("state"));
|
|
64
89
|
return (_ctx, _cache) => {
|
|
65
|
-
return openBlock(), createElementBlock("
|
|
90
|
+
return unref(chip).removable() ? (openBlock(), createElementBlock("span", mergeProps({ key: 0 }, unref(chip).parts.root(), {
|
|
91
|
+
class: unref(attrs).class,
|
|
92
|
+
style: unref(attrs).style,
|
|
93
|
+
onKeydown: _cache[2] || (_cache[2] = (...args) => unref(chip).handleKeydown && unref(chip).handleKeydown(...args))
|
|
94
|
+
}), [
|
|
95
|
+
createElementVNode("span", mergeProps({ ref: "state" }, unref(chip).parts.state()), null, 16),
|
|
96
|
+
createElementVNode("button", mergeProps({ ref: "toggle" }, unref(mergePartAttrs)(rest.value, unref(chip).parts.action()), { onClick: _cache[0] || (_cache[0] = (...args) => unref(chip).handleClick && unref(chip).handleClick(...args)) }), [
|
|
97
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.touch())), null, 16),
|
|
98
|
+
unref(chip).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(chip).parts.icon())), [unref(chip).showsSelectedIcon() ? renderSlot(_ctx.$slots, "selected-icon", {}, () => [createVNode(_sfc_main$1, { alias: "check" })], void 0, 0) : renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 1)], 16)) : createCommentVNode("v-if", true),
|
|
99
|
+
createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.label())), [renderSlot(_ctx.$slots, "default")], 16)
|
|
100
|
+
], 16),
|
|
101
|
+
createElementVNode("button", mergeProps(unref(chip).parts.remove(), { onClick: _cache[1] || (_cache[1] = (...args) => unref(chip).handleRemoveClick && unref(chip).handleRemoveClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.removeTouch())), null, 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.removeIcon())), [renderSlot(_ctx.$slots, "remove-icon", {}, () => [createVNode(_sfc_main$1, { alias: "remove" })])], 16)], 16),
|
|
102
|
+
unref(chip).showsRemoveBefore() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(chip).parts.removeBefore())), toDisplayString(unref(chip).removeText().before), 17)) : createCommentVNode("v-if", true),
|
|
103
|
+
unref(chip).showsRemoveAfter() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(chip).parts.removeAfter())), toDisplayString(unref(chip).removeText().after), 17)) : createCommentVNode("v-if", true)
|
|
104
|
+
], 16)) : (openBlock(), createElementBlock("button", mergeProps({
|
|
105
|
+
key: 1,
|
|
106
|
+
ref: "toggle"
|
|
107
|
+
}, unref(mergePartAttrs)(rest.value, unref(chip).parts.root()), {
|
|
108
|
+
class: unref(attrs).class,
|
|
109
|
+
style: unref(attrs).style,
|
|
110
|
+
onClick: _cache[3] || (_cache[3] = (...args) => unref(chip).handleClick && unref(chip).handleClick(...args))
|
|
111
|
+
}), [
|
|
66
112
|
createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.touch())), null, 16),
|
|
67
113
|
createElementVNode("span", mergeProps({ ref: "state" }, unref(chip).parts.state()), null, 16),
|
|
68
114
|
unref(chip).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(chip).parts.icon())), [unref(chip).showsSelectedIcon() ? renderSlot(_ctx.$slots, "selected-icon", {}, () => [createVNode(_sfc_main$1, { alias: "check" })], void 0, 0) : renderSlot(_ctx.$slots, "icon", {}, void 0, void 0, 1)], 16)) : createCommentVNode("v-if", true),
|
|
69
115
|
createElementVNode("span", normalizeProps(guardReactiveProps(unref(chip).parts.label())), [renderSlot(_ctx.$slots, "default")], 16),
|
|
70
116
|
unref(chip).showsTrailing() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(chip).parts.trailing())), [renderSlot(_ctx.$slots, "dropdown-icon", {}, () => [createVNode(_sfc_main$1, { alias: "dropdown" })])], 16)) : createCommentVNode("v-if", true)
|
|
71
|
-
], 16);
|
|
117
|
+
], 16));
|
|
72
118
|
};
|
|
73
119
|
}
|
|
74
120
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChipMessages, InputChipProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
@@ -5,6 +5,7 @@ import _sfc_main$1 from "../icon/Icon.vue.js";
|
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, withCtx } from "vue";
|
|
6
6
|
import { createInputChip, mergePartAttrs } from "@rio-m3e/core";
|
|
7
7
|
import "@rio-m3e/styles/base/accent.css";
|
|
8
|
+
import "@rio-m3e/styles/base/density.css";
|
|
8
9
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
9
10
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
10
11
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
@@ -17,6 +18,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
17
18
|
props: {
|
|
18
19
|
removeOnly: { type: Boolean },
|
|
19
20
|
color: {},
|
|
21
|
+
density: {},
|
|
20
22
|
disabled: { type: Boolean },
|
|
21
23
|
softDisabled: { type: Boolean },
|
|
22
24
|
locale: {},
|
|
@@ -41,6 +43,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
41
43
|
props: () => ({
|
|
42
44
|
removeOnly: props.removeOnly,
|
|
43
45
|
color: props.color,
|
|
46
|
+
density: props.density,
|
|
44
47
|
disabled: props.disabled,
|
|
45
48
|
softDisabled: props.softDisabled
|
|
46
49
|
}),
|
|
@@ -3,6 +3,7 @@ import { useChipSetItem } from "./context.js";
|
|
|
3
3
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useSlots, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import { createSuggestionChip } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/accent.css";
|
|
6
|
+
import "@rio-m3e/styles/base/density.css";
|
|
6
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
7
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
8
9
|
import "@rio-m3e/styles/base/touch-target.css";
|
|
@@ -15,6 +16,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
15
16
|
elevated: { type: Boolean },
|
|
16
17
|
href: {},
|
|
17
18
|
color: {},
|
|
19
|
+
density: {},
|
|
18
20
|
disabled: { type: Boolean },
|
|
19
21
|
softDisabled: { type: Boolean }
|
|
20
22
|
},
|
|
@@ -28,6 +30,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
30
|
elevated: __props.elevated,
|
|
29
31
|
href: __props.href,
|
|
30
32
|
color: __props.color,
|
|
33
|
+
density: __props.density,
|
|
31
34
|
disabled: __props.disabled,
|
|
32
35
|
softDisabled: __props.softDisabled
|
|
33
36
|
}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IconButtonProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
@@ -5,6 +5,7 @@ import { vCornerMorph } from "../corner-morph/corner-morph.js";
|
|
|
5
5
|
import { createBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useSlots, useTemplateRef, withCtx, withDirectives } from "vue";
|
|
6
6
|
import { createIconButton } from "@rio-m3e/core";
|
|
7
7
|
import "@rio-m3e/styles/base/accent.css";
|
|
8
|
+
import "@rio-m3e/styles/base/density.css";
|
|
8
9
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
9
10
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
10
11
|
import "@rio-m3e/styles/base/state-layer.css";
|
|
@@ -21,6 +22,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
21
22
|
width: {},
|
|
22
23
|
shape: {},
|
|
23
24
|
color: {},
|
|
25
|
+
density: {},
|
|
24
26
|
toggle: { type: Boolean },
|
|
25
27
|
selected: { type: Boolean },
|
|
26
28
|
disabled: { type: Boolean },
|
|
@@ -40,6 +42,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
40
42
|
width: __props.width,
|
|
41
43
|
shape: __props.shape,
|
|
42
44
|
color: __props.color,
|
|
45
|
+
density: __props.density,
|
|
43
46
|
toggle: __props.toggle,
|
|
44
47
|
selected: __props.selected,
|
|
45
48
|
disabled: __props.disabled,
|
package/dist/index.d.ts
CHANGED
|
@@ -64,9 +64,11 @@ import _default$57 from "./tabs/TabGroup.vue.js";
|
|
|
64
64
|
import _default$58 from "./tabs/TabPanel.vue.js";
|
|
65
65
|
import _default$59 from "./tabs/Tabs.vue.js";
|
|
66
66
|
import _default$60 from "./text-field/TextField.vue.js";
|
|
67
|
-
import _default$61 from "./
|
|
68
|
-
import
|
|
69
|
-
import _default$
|
|
70
|
-
import _default$
|
|
71
|
-
import _default$
|
|
72
|
-
|
|
67
|
+
import _default$61 from "./theme/ThemeProvider.vue.js";
|
|
68
|
+
import { themeKey } from "./theme/context.js";
|
|
69
|
+
import _default$62 from "./time-picker/TimeInput.vue.js";
|
|
70
|
+
import _default$63 from "./time-picker/TimePickerDialog.vue.js";
|
|
71
|
+
import _default$64 from "./time-picker/TimeScroll.vue.js";
|
|
72
|
+
import _default$65 from "./toolbar/Toolbar.vue.js";
|
|
73
|
+
import _default$66 from "./tooltip/Tooltip.vue.js";
|
|
74
|
+
export { _default as RioAppBar, _default$1 as RioAssistChip, _default$2 as RioBadge, _default$3 as RioBottomSheet, _default$4 as RioButton, _default$5 as RioButtonGroup, _default$6 as RioCard, _default$7 as RioCardActions, _default$8 as RioCardContent, _default$9 as RioCardHeader, _default$10 as RioCardMedia, _default$11 as RioCheckbox, _default$12 as RioChipSet, _default$13 as RioCircularProgress, _default$14 as RioDatePicker, _default$15 as RioDatePickerDialog, _default$16 as RioDateRangePickerDialog, _default$17 as RioDialog, _default$18 as RioDivider, _default$19 as RioFab, _default$20 as RioFabMenu, _default$21 as RioFabMenuItem, _default$22 as RioFilterChip, _default$23 as RioIcon, _default$24 as RioIconButton, type RioIconValue, type RioIcons, _default$25 as RioInputChip, _default$26 as RioLinearProgress, _default$27 as RioList, _default$28 as RioListItem, _default$29 as RioLoadingIndicator, _default$30 as RioLocaleProvider, _default$31 as RioMenu, _default$32 as RioMenuDivider, _default$33 as RioMenuGroup, _default$34 as RioMenuItem, _default$35 as RioNavigationBar, _default$36 as RioNavigationBarItem, _default$37 as RioNavigationRail, _default$38 as RioNavigationRailItem, _default$39 as RioNavigationRailSection, type RioOptions, _default$40 as RioOverflowItem, type RioPlugin, _default$41 as RioRadio, _default$42 as RioRadioGroup, _default$43 as RioRangeSlider, _default$44 as RioScrollField, _default$45 as RioSearch, _default$46 as RioSelect, _default$47 as RioSelectOption, _default$48 as RioSideSheet, _default$49 as RioSlider, _default$50 as RioSnackbar, _default$51 as RioSnackbarHost, _default$52 as RioSplitButton, _default$53 as RioSubMenu, _default$54 as RioSuggestionChip, _default$55 as RioSwitch, _default$56 as RioTab, _default$57 as RioTabGroup, _default$58 as RioTabPanel, _default$59 as RioTabs, _default$60 as RioTextField, type RioThemeOptions, _default$61 as RioThemeProvider, _default$62 as RioTimeInput, _default$63 as RioTimePickerDialog, _default$64 as RioTimeScroll, _default$65 as RioToolbar, _default$66 as RioTooltip, type SnackbarController, createRio, iconsKey, localeKey, messagesKey, snackbarKey, themeKey, useIconOfAlias, useLocale, useMessages, useSnackbar, vRipple };
|
package/dist/index.js
CHANGED
|
@@ -64,9 +64,11 @@ import _sfc_main$57 from "./tabs/TabGroup.vue.js";
|
|
|
64
64
|
import _sfc_main$58 from "./tabs/TabPanel.vue.js";
|
|
65
65
|
import _sfc_main$59 from "./tabs/Tabs.vue.js";
|
|
66
66
|
import _sfc_main$60 from "./text-field/TextField.vue.js";
|
|
67
|
-
import _sfc_main$61 from "./
|
|
68
|
-
import
|
|
69
|
-
import _sfc_main$
|
|
70
|
-
import _sfc_main$
|
|
71
|
-
import _sfc_main$
|
|
72
|
-
|
|
67
|
+
import _sfc_main$61 from "./theme/ThemeProvider.vue.js";
|
|
68
|
+
import { themeKey } from "./theme/context.js";
|
|
69
|
+
import _sfc_main$62 from "./time-picker/TimeInput.vue.js";
|
|
70
|
+
import _sfc_main$63 from "./time-picker/TimePickerDialog.vue.js";
|
|
71
|
+
import _sfc_main$64 from "./time-picker/TimeScroll.vue.js";
|
|
72
|
+
import _sfc_main$65 from "./toolbar/Toolbar.vue.js";
|
|
73
|
+
import _sfc_main$66 from "./tooltip/Tooltip.vue.js";
|
|
74
|
+
export { _sfc_main as RioAppBar, _sfc_main$1 as RioAssistChip, _sfc_main$2 as RioBadge, _sfc_main$3 as RioBottomSheet, _sfc_main$4 as RioButton, _sfc_main$5 as RioButtonGroup, _sfc_main$6 as RioCard, _sfc_main$7 as RioCardActions, _sfc_main$8 as RioCardContent, _sfc_main$9 as RioCardHeader, _sfc_main$10 as RioCardMedia, _sfc_main$11 as RioCheckbox, _sfc_main$12 as RioChipSet, _sfc_main$13 as RioCircularProgress, _sfc_main$14 as RioDatePicker, _sfc_main$15 as RioDatePickerDialog, _sfc_main$16 as RioDateRangePickerDialog, _sfc_main$17 as RioDialog, _sfc_main$18 as RioDivider, _sfc_main$19 as RioFab, _sfc_main$20 as RioFabMenu, _sfc_main$21 as RioFabMenuItem, _sfc_main$22 as RioFilterChip, _sfc_main$23 as RioIcon, _sfc_main$24 as RioIconButton, _sfc_main$25 as RioInputChip, _sfc_main$26 as RioLinearProgress, _sfc_main$27 as RioList, _sfc_main$28 as RioListItem, _sfc_main$29 as RioLoadingIndicator, _sfc_main$30 as RioLocaleProvider, _sfc_main$31 as RioMenu, _sfc_main$32 as RioMenuDivider, _sfc_main$33 as RioMenuGroup, _sfc_main$34 as RioMenuItem, _sfc_main$35 as RioNavigationBar, _sfc_main$36 as RioNavigationBarItem, _sfc_main$37 as RioNavigationRail, _sfc_main$38 as RioNavigationRailItem, _sfc_main$39 as RioNavigationRailSection, _sfc_main$40 as RioOverflowItem, _sfc_main$41 as RioRadio, _sfc_main$42 as RioRadioGroup, _sfc_main$43 as RioRangeSlider, _sfc_main$44 as RioScrollField, _sfc_main$45 as RioSearch, _sfc_main$46 as RioSelect, _sfc_main$47 as RioSelectOption, _sfc_main$48 as RioSideSheet, _sfc_main$49 as RioSlider, _sfc_main$50 as RioSnackbar, _sfc_main$51 as RioSnackbarHost, _sfc_main$52 as RioSplitButton, _sfc_main$53 as RioSubMenu, _sfc_main$54 as RioSuggestionChip, _sfc_main$55 as RioSwitch, _sfc_main$56 as RioTab, _sfc_main$57 as RioTabGroup, _sfc_main$58 as RioTabPanel, _sfc_main$59 as RioTabs, _sfc_main$60 as RioTextField, _sfc_main$61 as RioThemeProvider, _sfc_main$62 as RioTimeInput, _sfc_main$63 as RioTimePickerDialog, _sfc_main$64 as RioTimeScroll, _sfc_main$65 as RioToolbar, _sfc_main$66 as RioTooltip, createRio, iconsKey, localeKey, messagesKey, snackbarKey, themeKey, useIconOfAlias, useLocale, useMessages, useSnackbar, vRipple };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccentColor, ListValue } from "@rio-m3e/core";
|
|
1
|
+
import { AccentColor, ListItemDivider, ListValue } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
3
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
4
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
@@ -15,6 +15,12 @@ type __VLS_Props = {
|
|
|
15
15
|
* `'error'`, or a static color of the theme. Without it, the spec's, or the list's color.
|
|
16
16
|
*/
|
|
17
17
|
color?: AccentColor;
|
|
18
|
+
/**
|
|
19
|
+
* A divider under the item: `'inset'`, or `divider` alone, 16px in from the start and 24px from
|
|
20
|
+
* the end; `'text'` from the text's start, lined up with the text after a leading icon or avatar,
|
|
21
|
+
* to the end; `'text-inset'` from the text's start to 24px from the end; or `'full'` across it
|
|
22
|
+
*/
|
|
23
|
+
divider?: boolean | ListItemDivider;
|
|
18
24
|
/** Listening for clicks makes the item a button. */
|
|
19
25
|
onClick?: (event: MouseEvent) => void;
|
|
20
26
|
};
|
|
@@ -19,6 +19,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
19
19
|
href: {},
|
|
20
20
|
disabled: { type: Boolean },
|
|
21
21
|
color: {},
|
|
22
|
+
divider: { type: Boolean },
|
|
22
23
|
onClick: { type: Function }
|
|
23
24
|
},
|
|
24
25
|
setup(__props) {
|
|
@@ -31,13 +32,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
31
32
|
});
|
|
32
33
|
const list = inject(listKey, noList);
|
|
33
34
|
const multiline = ref(false);
|
|
35
|
+
/** Where the text starts, as `attachListItem` measures it for a `'text-inset'` divider */
|
|
36
|
+
const textStart = ref();
|
|
34
37
|
const item = createListItem({
|
|
35
38
|
props: () => ({
|
|
36
39
|
value: props.value,
|
|
37
40
|
href: props.href,
|
|
38
41
|
action: !!props.onClick,
|
|
39
42
|
disabled: props.disabled,
|
|
40
|
-
color: props.color
|
|
43
|
+
color: props.color,
|
|
44
|
+
divider: props.divider
|
|
41
45
|
}),
|
|
42
46
|
list: () => list,
|
|
43
47
|
key: useId(),
|
|
@@ -47,7 +51,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
47
51
|
supporting: !!slots.supporting,
|
|
48
52
|
trailing: !!slots.trailing
|
|
49
53
|
}),
|
|
50
|
-
multiline: () => multiline.value
|
|
54
|
+
multiline: () => multiline.value,
|
|
55
|
+
textStart: () => textStart.value
|
|
51
56
|
});
|
|
52
57
|
const slotProps = computed(() => ({
|
|
53
58
|
selected: item.selected(),
|
|
@@ -69,7 +74,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
69
74
|
useRipple(pressed, root);
|
|
70
75
|
let handle;
|
|
71
76
|
onMounted(() => {
|
|
72
|
-
handle = attachListItem(root.value, {
|
|
77
|
+
handle = attachListItem(root.value, {
|
|
78
|
+
onMultilineChange: (next) => multiline.value = next,
|
|
79
|
+
measuresTextStart: item.measuresTextStart,
|
|
80
|
+
onTextStartChange: (next) => textStart.value = next
|
|
81
|
+
});
|
|
73
82
|
});
|
|
74
83
|
onUpdated(() => handle?.sync());
|
|
75
84
|
onBeforeUnmount(() => handle?.detach());
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RadioProps, RadioValue } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/ripple.css";
|
package/dist/radio/Radio.vue.js
CHANGED
|
@@ -3,6 +3,7 @@ import { radioGroupKey } from "./context.js";
|
|
|
3
3
|
import { createElementBlock, createElementVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, unref, useTemplateRef } from "vue";
|
|
4
4
|
import { attachCheckable, createRadio, mergePartAttrs } from "@rio-m3e/core";
|
|
5
5
|
import "@rio-m3e/styles/base/accent.css";
|
|
6
|
+
import "@rio-m3e/styles/base/density.css";
|
|
6
7
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
7
8
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
8
9
|
import "@rio-m3e/styles/base/ripple.css";
|
|
@@ -15,6 +16,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
15
16
|
value: {},
|
|
16
17
|
selected: { type: Boolean },
|
|
17
18
|
color: {},
|
|
19
|
+
density: {},
|
|
18
20
|
disabled: { type: Boolean },
|
|
19
21
|
softDisabled: { type: Boolean }
|
|
20
22
|
},
|
|
@@ -26,6 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
26
28
|
props: () => ({
|
|
27
29
|
selected: isSelected(),
|
|
28
30
|
color: __props.color,
|
|
31
|
+
density: __props.density,
|
|
29
32
|
disabled: __props.disabled || group?.disabled() || void 0,
|
|
30
33
|
softDisabled: __props.softDisabled
|
|
31
34
|
}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RadioGroupProps, RadioValue } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/radio.css";
|
|
4
5
|
interface Props extends RadioGroupProps {
|
|
5
6
|
/** The `name` the radio buttons submit their value under. Defaults to a unique one. */
|
|
@@ -2,6 +2,7 @@ import { radioGroupKey } from "./context.js";
|
|
|
2
2
|
import { createElementBlock, defineComponent, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useId, useModel, useTemplateRef, watch } from "vue";
|
|
3
3
|
import { attachRadioGroup, createRadioGroup } from "@rio-m3e/core";
|
|
4
4
|
import "@rio-m3e/styles/base/accent.css";
|
|
5
|
+
import "@rio-m3e/styles/base/density.css";
|
|
5
6
|
import "@rio-m3e/styles/radio.css";
|
|
6
7
|
// src/radio/RadioGroup.vue
|
|
7
8
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -10,6 +11,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
10
11
|
name: {},
|
|
11
12
|
label: {},
|
|
12
13
|
color: {},
|
|
14
|
+
density: {},
|
|
13
15
|
disabled: { type: Boolean }
|
|
14
16
|
}, {
|
|
15
17
|
"modelValue": {},
|
|
@@ -22,6 +24,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
22
24
|
const group = createRadioGroup({ props: () => ({
|
|
23
25
|
label: __props.label,
|
|
24
26
|
color: __props.color,
|
|
27
|
+
density: __props.density,
|
|
25
28
|
disabled: __props.disabled
|
|
26
29
|
}) });
|
|
27
30
|
const id = useId();
|
package/dist/rio/rio.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { iconsKey } from "../icon/icons.js";
|
|
2
2
|
import { localeKey, messagesKey } from "../locale/locale.js";
|
|
3
|
+
import { themeKey } from "../theme/context.js";
|
|
3
4
|
import { computed, effectScope, toRef, toValue, watchEffect } from "vue";
|
|
4
5
|
import { resolveLocale } from "@rio-m3e/core";
|
|
5
6
|
import { attachTheme, createThemeCss, languageHeightOf } from "@rio-m3e/tokens";
|
|
@@ -21,6 +22,7 @@ function createRio(options = {}) {
|
|
|
21
22
|
},
|
|
22
23
|
install(app) {
|
|
23
24
|
app.provide(localeKey, toRef(options.locale));
|
|
25
|
+
app.provide(themeKey, computed(() => toValue(options.theme)));
|
|
24
26
|
app.provide(iconsKey, computed(() => toValue(options.icons)));
|
|
25
27
|
app.provide(messagesKey, computed(() => ({
|
|
26
28
|
messages: toValue(options.messages),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SelectProps, SelectSelected, SelectValue } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
4
5
|
import "@rio-m3e/styles/base/direction.css";
|
|
5
6
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
@@ -5,6 +5,7 @@ import _sfc_main$2 from "../icon/Icon.vue.js";
|
|
|
5
5
|
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, provide, renderList, renderSlot, shallowReactive, toDisplayString, toHandlers, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
6
6
|
import { attachSelect, createSelect, inDocumentOrder, mergePartAttrs } from "@rio-m3e/core";
|
|
7
7
|
import "@rio-m3e/styles/base/accent.css";
|
|
8
|
+
import "@rio-m3e/styles/base/density.css";
|
|
8
9
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
9
10
|
import "@rio-m3e/styles/base/direction.css";
|
|
10
11
|
import "@rio-m3e/styles/base/anchored-position.css";
|
|
@@ -28,6 +29,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
29
|
error: { type: Boolean },
|
|
29
30
|
errorText: {},
|
|
30
31
|
color: {},
|
|
32
|
+
density: {},
|
|
31
33
|
required: { type: Boolean },
|
|
32
34
|
disabled: { type: Boolean },
|
|
33
35
|
name: {},
|
|
@@ -69,6 +71,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
69
71
|
error: __props.error,
|
|
70
72
|
errorText: __props.errorText,
|
|
71
73
|
color: __props.color,
|
|
74
|
+
density: __props.density,
|
|
72
75
|
required: __props.required,
|
|
73
76
|
disabled: __props.disabled,
|
|
74
77
|
name: __props.name,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SwitchProps } from "@rio-m3e/core";
|
|
2
2
|
import "@rio-m3e/styles/base/accent.css";
|
|
3
|
+
import "@rio-m3e/styles/base/density.css";
|
|
3
4
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
4
5
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
5
6
|
import "@rio-m3e/styles/base/ripple.css";
|
|
@@ -2,6 +2,7 @@ import { useRipple } from "../ripple/ripple.js";
|
|
|
2
2
|
import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, unref, useSlots, useTemplateRef } from "vue";
|
|
3
3
|
import { attachCheckable, attachSwitchHandle, createSwitch, mergePartAttrs } from "@rio-m3e/core";
|
|
4
4
|
import "@rio-m3e/styles/base/accent.css";
|
|
5
|
+
import "@rio-m3e/styles/base/density.css";
|
|
5
6
|
import "@rio-m3e/styles/base/focus-ring.css";
|
|
6
7
|
import "@rio-m3e/styles/base/reduced-motion.css";
|
|
7
8
|
import "@rio-m3e/styles/base/ripple.css";
|
|
@@ -13,6 +14,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
13
14
|
props: {
|
|
14
15
|
selected: { type: Boolean },
|
|
15
16
|
color: {},
|
|
17
|
+
density: {},
|
|
16
18
|
disabled: { type: Boolean },
|
|
17
19
|
softDisabled: { type: Boolean }
|
|
18
20
|
},
|
|
@@ -28,6 +30,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
28
30
|
props: () => ({
|
|
29
31
|
selected: __props.selected,
|
|
30
32
|
color: __props.color,
|
|
33
|
+
density: __props.density,
|
|
31
34
|
disabled: __props.disabled,
|
|
32
35
|
softDisabled: __props.softDisabled
|
|
33
36
|
}),
|