@rio-m3e/vue 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/README.md +99 -4
  2. package/dist/app-bar/AppBar.vue.d.ts +42 -0
  3. package/dist/app-bar/AppBar.vue.js +91 -0
  4. package/dist/badge/Badge.vue.d.ts +15 -0
  5. package/dist/badge/Badge.vue.js +28 -0
  6. package/dist/bottom-sheet/BottomSheet.vue.d.ts +34 -0
  7. package/dist/bottom-sheet/BottomSheet.vue.js +82 -0
  8. package/dist/browser/rio-vue.css +9130 -0
  9. package/dist/browser/rio-vue.global.js +600 -0
  10. package/dist/browser/rio-vue.js +600 -0
  11. package/dist/button/Button.vue.d.ts +1 -0
  12. package/dist/button/Button.vue.js +23 -2
  13. package/dist/button-group/ButtonGroup.vue.d.ts +6 -1
  14. package/dist/button-group/ButtonGroup.vue.js +27 -4
  15. package/dist/button-group/context.js +4 -2
  16. package/dist/card/Card.vue.d.ts +24 -0
  17. package/dist/card/Card.vue.js +44 -0
  18. package/dist/card/CardActions.vue.d.ts +14 -0
  19. package/dist/card/CardActions.vue.js +14 -0
  20. package/dist/card/CardContent.vue.d.ts +14 -0
  21. package/dist/card/CardContent.vue.js +14 -0
  22. package/dist/card/CardHeader.vue.d.ts +27 -0
  23. package/dist/card/CardHeader.vue.js +34 -0
  24. package/dist/card/CardMedia.vue.d.ts +14 -0
  25. package/dist/card/CardMedia.vue.js +14 -0
  26. package/dist/checkbox/Checkbox.vue.d.ts +1 -0
  27. package/dist/checkbox/Checkbox.vue.js +3 -0
  28. package/dist/chip/AssistChip.vue.d.ts +1 -0
  29. package/dist/chip/AssistChip.vue.js +3 -0
  30. package/dist/chip/ChipSet.vue.d.ts +1 -0
  31. package/dist/chip/ChipSet.vue.js +4 -1
  32. package/dist/chip/FilterChip.vue.d.ts +9 -2
  33. package/dist/chip/FilterChip.vue.js +12 -5
  34. package/dist/chip/InputChip.vue.d.ts +5 -1
  35. package/dist/chip/InputChip.vue.js +6 -2
  36. package/dist/chip/SuggestionChip.vue.d.ts +1 -0
  37. package/dist/chip/SuggestionChip.vue.js +3 -0
  38. package/dist/date-picker/DatePicker.vue.d.ts +27 -4
  39. package/dist/date-picker/DatePicker.vue.js +15 -5
  40. package/dist/date-picker/DatePickerCalendar.vue.js +11 -13
  41. package/dist/date-picker/DatePickerDialog.vue.d.ts +26 -3
  42. package/dist/date-picker/DatePickerDialog.vue.js +66 -21
  43. package/dist/date-picker/DateRangeCalendar.vue.js +17 -8
  44. package/dist/date-picker/DateRangePickerDialog.vue.d.ts +23 -3
  45. package/dist/date-picker/DateRangePickerDialog.vue.js +31 -17
  46. package/dist/dialog/Dialog.vue.d.ts +11 -2
  47. package/dist/dialog/Dialog.vue.js +35 -5
  48. package/dist/divider/Divider.vue.d.ts +5 -0
  49. package/dist/divider/Divider.vue.js +21 -0
  50. package/dist/fab/Fab.vue.d.ts +27 -0
  51. package/dist/fab/Fab.vue.js +70 -0
  52. package/dist/fab-menu/FabMenu.vue.d.ts +34 -0
  53. package/dist/fab-menu/FabMenu.vue.js +76 -0
  54. package/dist/fab-menu/FabMenuItem.vue.d.ts +22 -0
  55. package/dist/fab-menu/FabMenuItem.vue.js +29 -0
  56. package/dist/fab-menu/context.js +4 -0
  57. package/dist/icon/Icon.vue.d.ts +13 -0
  58. package/dist/icon/Icon.vue.js +30 -0
  59. package/dist/icon/icons.d.ts +12 -0
  60. package/dist/icon/icons.js +12 -0
  61. package/dist/icon-button/IconButton.vue.d.ts +1 -0
  62. package/dist/icon-button/IconButton.vue.js +23 -2
  63. package/dist/ime/composing.js +24 -0
  64. package/dist/index.d.ts +69 -39
  65. package/dist/index.js +69 -39
  66. package/dist/list/List.vue.d.ts +1 -0
  67. package/dist/list/List.vue.js +4 -1
  68. package/dist/list/ListItem.vue.d.ts +7 -1
  69. package/dist/list/ListItem.vue.js +4 -1
  70. package/dist/loading-indicator/LoadingIndicator.vue.d.ts +1 -0
  71. package/dist/loading-indicator/LoadingIndicator.vue.js +4 -1
  72. package/dist/menu/Menu.vue.d.ts +1 -0
  73. package/dist/menu/Menu.vue.js +12 -2
  74. package/dist/menu/MenuDivider.vue.d.ts +1 -0
  75. package/dist/menu/MenuDivider.vue.js +1 -0
  76. package/dist/menu/MenuGroup.vue.d.ts +1 -0
  77. package/dist/menu/MenuGroup.vue.js +1 -0
  78. package/dist/menu/MenuItem.vue.d.ts +1 -0
  79. package/dist/menu/MenuItem.vue.js +1 -0
  80. package/dist/menu/SubMenu.vue.d.ts +2 -1
  81. package/dist/menu/SubMenu.vue.js +7 -3
  82. package/dist/navigation-bar/NavigationBar.vue.d.ts +31 -0
  83. package/dist/navigation-bar/NavigationBar.vue.js +63 -0
  84. package/dist/navigation-bar/NavigationBarItem.vue.d.ts +40 -0
  85. package/dist/navigation-bar/NavigationBarItem.vue.js +84 -0
  86. package/dist/navigation-bar/context.js +3 -0
  87. package/dist/navigation-rail/NavigationRail.vue.d.ts +46 -0
  88. package/dist/navigation-rail/NavigationRail.vue.js +112 -0
  89. package/dist/navigation-rail/NavigationRailItem.vue.d.ts +41 -0
  90. package/dist/navigation-rail/NavigationRailItem.vue.js +85 -0
  91. package/dist/navigation-rail/NavigationRailSection.vue.d.ts +17 -0
  92. package/dist/navigation-rail/NavigationRailSection.vue.js +20 -0
  93. package/dist/navigation-rail/context.js +3 -0
  94. package/dist/overflow/OverflowItem.vue.d.ts +16 -0
  95. package/dist/overflow/OverflowItem.vue.js +24 -0
  96. package/dist/overflow/OverflowMenu.vue.js +94 -0
  97. package/dist/overflow/overflow.js +79 -0
  98. package/dist/progress/CircularProgress.vue.d.ts +2 -0
  99. package/dist/progress/CircularProgress.vue.js +6 -2
  100. package/dist/progress/LinearProgress.vue.d.ts +2 -0
  101. package/dist/progress/LinearProgress.vue.js +6 -2
  102. package/dist/radio/Radio.vue.d.ts +1 -0
  103. package/dist/radio/Radio.vue.js +4 -1
  104. package/dist/radio/RadioGroup.vue.d.ts +1 -0
  105. package/dist/radio/RadioGroup.vue.js +10 -2
  106. package/dist/rio/rio.d.ts +9 -1
  107. package/dist/rio/rio.js +11 -3
  108. package/dist/scroll-field/ScrollField.vue.d.ts +1 -0
  109. package/dist/scroll-field/ScrollField.vue.js +3 -0
  110. package/dist/search/Search.vue.d.ts +58 -0
  111. package/dist/search/Search.vue.js +161 -0
  112. package/dist/select/AfterOptions.vue.js +11 -0
  113. package/dist/select/Select.vue.d.ts +8 -3
  114. package/dist/select/Select.vue.js +42 -30
  115. package/dist/select/SelectOption.vue.d.ts +5 -1
  116. package/dist/select/SelectOption.vue.js +9 -5
  117. package/dist/side-sheet/SideSheet.vue.d.ts +43 -0
  118. package/dist/side-sheet/SideSheet.vue.js +103 -0
  119. package/dist/slider/RangeSlider.vue.d.ts +2 -0
  120. package/dist/slider/RangeSlider.vue.js +4 -0
  121. package/dist/slider/Slider.vue.d.ts +2 -0
  122. package/dist/slider/Slider.vue.js +4 -0
  123. package/dist/snackbar/Snackbar.vue.d.ts +31 -0
  124. package/dist/snackbar/Snackbar.vue.js +48 -0
  125. package/dist/snackbar/SnackbarHost.vue.d.ts +40 -0
  126. package/dist/snackbar/SnackbarHost.vue.js +110 -0
  127. package/dist/snackbar/snackbar.d.ts +16 -0
  128. package/dist/snackbar/snackbar.js +11 -0
  129. package/dist/split-button/SplitButton.vue.d.ts +4 -1
  130. package/dist/split-button/SplitButton.vue.js +7 -2
  131. package/dist/switch/Switch.vue.d.ts +1 -0
  132. package/dist/switch/Switch.vue.js +3 -0
  133. package/dist/tabs/Tab.vue.d.ts +19 -0
  134. package/dist/tabs/Tab.vue.js +66 -0
  135. package/dist/tabs/TabGroup.vue.d.ts +22 -0
  136. package/dist/tabs/TabGroup.vue.js +25 -0
  137. package/dist/tabs/TabPanel.vue.d.ts +15 -0
  138. package/dist/tabs/TabPanel.vue.js +20 -0
  139. package/dist/tabs/Tabs.vue.d.ts +32 -0
  140. package/dist/tabs/Tabs.vue.js +95 -0
  141. package/dist/tabs/context.js +5 -0
  142. package/dist/text-field/TextField.vue.d.ts +8 -2
  143. package/dist/text-field/TextField.vue.js +91 -47
  144. package/dist/time-picker/TimeInput.vue.d.ts +8 -1
  145. package/dist/time-picker/TimeInput.vue.js +6 -2
  146. package/dist/time-picker/TimePickerDialog.vue.d.ts +20 -4
  147. package/dist/time-picker/TimePickerDialog.vue.js +8 -3
  148. package/dist/time-picker/TimeScroll.vue.d.ts +16 -3
  149. package/dist/time-picker/TimeScroll.vue.js +8 -3
  150. package/dist/toolbar/FabPlace.vue.js +14 -0
  151. package/dist/toolbar/Toolbar.vue.d.ts +34 -0
  152. package/dist/toolbar/Toolbar.vue.js +115 -0
  153. package/dist/toolbar/context.js +3 -0
  154. package/package.json +6 -4
@@ -4,8 +4,10 @@ import { useLocale, useMessages } from "../locale/locale.js";
4
4
  import { keepPresses } from "../overlay/presses.js";
5
5
  import _sfc_main$3 from "../text-field/TextField.vue.js";
6
6
  import _sfc_main$4 from "./DateRangeCalendar.vue.js";
7
- import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
8
- import { attachDialog, createDateRangePickerDialog, initialDateRangePickerState } from "@rio-m3e/core";
7
+ import _sfc_main$5 from "../icon/Icon.vue.js";
8
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
9
+ import { attachDatePickerDialog, createDateRangePickerDialog, initialDateRangePickerState } from "@rio-m3e/core";
10
+ import "@rio-m3e/styles/base/accent.css";
9
11
  import "@rio-m3e/styles/base/focus-ring.css";
10
12
  import "@rio-m3e/styles/base/reduced-motion.css";
11
13
  import "@rio-m3e/styles/base/state-layer.css";
@@ -22,7 +24,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
22
24
  firstDayOfWeek: {},
23
25
  messages: {},
24
26
  initialMode: {},
25
- clearable: { type: Boolean }
27
+ clearable: { type: Boolean },
28
+ color: {},
29
+ variant: {}
26
30
  }, {
27
31
  "start": {},
28
32
  "startModifiers": {},
@@ -51,6 +55,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
51
55
  const messages = useMessages("datePicker", locale, () => props.messages);
52
56
  const state = reactive(initialDateRangePickerState(start.value, end.value, locale.value, props));
53
57
  const rendered = ref(open.value);
58
+ const compact = ref(false);
54
59
  const id = useId();
55
60
  const dialog = createDateRangePickerDialog({
56
61
  props: () => ({
@@ -61,12 +66,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
61
66
  max: props.max,
62
67
  locale: locale.value,
63
68
  clearable: props.clearable,
69
+ color: props.color,
64
70
  initialMode: props.initialMode,
71
+ variant: props.variant,
65
72
  rendered: rendered.value
66
73
  }),
67
74
  isDateDisabled: (date) => !!props.isDateDisabled?.(date),
68
75
  messages: () => messages.value,
69
76
  state: () => state,
77
+ compact: () => compact.value,
70
78
  ids: {
71
79
  title: `${id}-title`,
72
80
  headline: `${id}-headline`
@@ -85,31 +93,39 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
85
93
  rendered.value = true;
86
94
  });
87
95
  const root = useTemplateRef("root");
88
- const calendar = useTemplateRef("calendar");
89
96
  let handle;
90
97
  onMounted(() => {
91
- handle = attachDialog(root.value, {
98
+ handle = attachDatePickerDialog(root.value, {
92
99
  onOpenChange: (next) => open.value = next,
93
100
  onClosed: () => {
94
101
  if (!open.value) rendered.value = false;
95
102
  },
96
- initialFocus: () => root.value?.querySelector(state.mode === "calendar" ? "[data-date][tabindex=\"0\"]" : "input")
103
+ onCompactChange: (next) => compact.value = next
97
104
  });
98
105
  handle.sync(open.value);
99
106
  });
100
107
  watch(open, (next) => handle?.sync(next), { flush: "post" });
101
- watch(() => state.mode, async (next) => {
102
- await nextTick();
103
- if (!open.value) return;
104
- if (next === "calendar") calendar.value?.focus();
105
- else root.value?.querySelector("input")?.focus();
106
- });
108
+ onUpdated(() => handle?.update());
107
109
  onBeforeUnmount(() => handle?.detach());
108
110
  return (_ctx, _cache) => {
109
111
  return openBlock(), createElementBlock("dialog", mergeProps({
110
112
  ref_key: "root",
111
113
  ref: root
112
114
  }, unref(dialog).parts.root(), toHandlers(unref(keepPresses), true)), [rendered.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
115
+ unref(dialog).showsBar() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.bar())), [createVNode(_sfc_main$2, {
116
+ label: unref(messages).close,
117
+ variant: "standard",
118
+ onClick: unref(dialog).cancel
119
+ }, {
120
+ default: withCtx(() => [renderSlot(_ctx.$slots, "close-icon", {}, () => [createVNode(_sfc_main$5, { alias: "close" })])]),
121
+ _: 3
122
+ }, 8, ["label", "onClick"]), createVNode(_sfc_main$1, {
123
+ variant: "text",
124
+ onClick: unref(dialog).confirm
125
+ }, {
126
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).save), 1)]),
127
+ _: 1
128
+ }, 8, ["onClick"])], 16)) : createCommentVNode("v-if", true),
113
129
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.header())), [
114
130
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.title())), toDisplayString(unref(messages).rangeTitle), 17),
115
131
  createElementVNode("span", normalizeProps(guardReactiveProps(unref(dialog).parts.headline())), toDisplayString(unref(dialog).headline()), 17),
@@ -118,15 +134,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
118
134
  label: unref(dialog).modeButtonLabel(),
119
135
  onClick: unref(dialog).switchMode
120
136
  }, {
121
- default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, void 0, void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, void 0, void 0, 1)]),
137
+ default: withCtx(() => [state.mode === "calendar" ? renderSlot(_ctx.$slots, "edit-icon", {}, () => [createVNode(_sfc_main$5, { alias: "edit" })], void 0, 0) : renderSlot(_ctx.$slots, "calendar-icon", {}, () => [createVNode(_sfc_main$5, { alias: "calendar" })], void 0, 1)]),
122
138
  _: 3
123
139
  }, 8, ["label", "onClick"])
124
140
  ], 16),
125
141
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.divider())), null, 16),
126
142
  unref(dialog).calendarMode() ? (openBlock(), createBlock(_sfc_main$4, {
127
- key: 0,
128
- ref_key: "calendar",
129
- ref: calendar,
143
+ key: 1,
130
144
  focused: state.focused,
131
145
  "onUpdate:focused": _cache[0] || (_cache[0] = ($event) => state.focused = $event),
132
146
  "first-month": state.firstMonth,
@@ -154,7 +168,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
154
168
  "is-date-disabled",
155
169
  "onSelect"
156
170
  ])) : createCommentVNode("v-if", true),
157
- unref(dialog).inputMode() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(dialog).parts.input())), [createVNode(_sfc_main$3, mergeProps(unref(dialog).startField(), {
171
+ unref(dialog).inputMode() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 2 }, unref(dialog).parts.input())), [createVNode(_sfc_main$3, mergeProps(unref(dialog).startField(), {
158
172
  "model-value": state.startText,
159
173
  variant: "outlined",
160
174
  label: unref(messages).startDate,
@@ -1,10 +1,14 @@
1
- import { DialogCancelEvent, DialogProps } from "@rio-m3e/core";
1
+ import { DialogCancelEvent, DialogMessages, DialogProps } from "@rio-m3e/core";
2
2
  import "@rio-m3e/styles/base/focus-ring.css";
3
3
  import "@rio-m3e/styles/base/reduced-motion.css";
4
4
  import "@rio-m3e/styles/dialog.css";
5
5
  interface Props extends Omit<DialogProps, 'open'> {
6
6
  /** States what the dialog is for, and names it. Without it, give the dialog an `aria-label`. */
7
7
  headline?: string;
8
+ /** A language tag, for the close and Cancel buttons. Without it, the one provided, or the page's. */
9
+ locale?: string;
10
+ /** Replaces the close and Cancel buttons' names. */
11
+ messages?: Partial<DialogMessages>;
8
12
  }
9
13
  type __VLS_Props = Props;
10
14
  type __VLS_Slots = {
@@ -12,8 +16,13 @@ type __VLS_Slots = {
12
16
  default?: () => unknown;
13
17
  /** An icon above the headline, which centers both */
14
18
  icon?: () => unknown;
15
- /** Up to two buttons: the dismissing one first, then the confirming one. */
19
+ /**
20
+ * Up to two buttons: the dismissing one first, then the confirming one. A full-screen or adaptive
21
+ * dialog draws its own close or Cancel button, so give it only the confirming one.
22
+ */
16
23
  actions?: () => unknown;
24
+ /** The full-screen dialog's close icon, in place of the one the app registered (`close`) */
25
+ 'close-icon'?: () => unknown;
17
26
  };
18
27
  type __VLS_ModelProps = {
19
28
  /** Whether the dialog is shown, with `v-model:open`. */
@@ -1,5 +1,9 @@
1
+ import _sfc_main$1 from "../button/Button.vue.js";
2
+ import _sfc_main$2 from "../icon-button/IconButton.vue.js";
3
+ import _sfc_main$3 from "../icon/Icon.vue.js";
4
+ import { useLocale, useMessages } from "../locale/locale.js";
1
5
  import { keepPresses } from "../overlay/presses.js";
2
- import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useSlots, useTemplateRef, watch } from "vue";
6
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
3
7
  import { attachDialog, createDialog } from "@rio-m3e/core";
4
8
  import "@rio-m3e/styles/base/focus-ring.css";
5
9
  import "@rio-m3e/styles/base/reduced-motion.css";
@@ -9,6 +13,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
9
13
  __name: "Dialog",
10
14
  props: /*@__PURE__*/ mergeModels({
11
15
  headline: {},
16
+ locale: {},
17
+ messages: {},
18
+ variant: {},
12
19
  role: {}
13
20
  }, {
14
21
  "open": {
@@ -23,15 +30,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
23
30
  const open = useModel(__props, "open");
24
31
  const emit = __emit;
25
32
  const slots = useSlots();
33
+ const text = useMessages("dialog", useLocale(() => __props.locale), () => __props.messages);
26
34
  const id = useId();
27
35
  const overflow = ref({
28
36
  top: false,
29
37
  bottom: false,
30
38
  focusable: false
31
39
  });
40
+ const compact = ref(false);
32
41
  const dialog = createDialog({
33
42
  props: () => ({
34
43
  open: open.value,
44
+ variant: __props.variant,
35
45
  role: __props.role
36
46
  }),
37
47
  content: () => ({
@@ -43,7 +53,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
43
53
  ids: {
44
54
  headline: `${id}-headline`,
45
55
  content: `${id}-content`
46
- }
56
+ },
57
+ compact: () => compact.value
47
58
  });
48
59
  const rendered = ref(open.value);
49
60
  watch(open, (next) => {
@@ -56,6 +67,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
56
67
  onCancel: (event) => emit("cancel", event),
57
68
  onOpenChange: (next) => open.value = next,
58
69
  onOverflowChange: (next) => overflow.value = next,
70
+ onCompactChange: (next) => compact.value = next,
59
71
  onClosed: () => {
60
72
  if (!open.value) rendered.value = false;
61
73
  }
@@ -70,10 +82,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
70
82
  ref_key: "root",
71
83
  ref: root
72
84
  }, unref(dialog).parts.root(), toHandlers(unref(keepPresses), true)), [rendered.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
73
- unref(dialog).showsIcon() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16)) : createCommentVNode("v-if", true),
74
- unref(dialog).showsHeadline() ? (openBlock(), createElementBlock("h2", normalizeProps(mergeProps({ key: 1 }, unref(dialog).parts.headline())), toDisplayString(__props.headline), 17)) : createCommentVNode("v-if", true),
85
+ unref(dialog).fullScreen() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.header())), [
86
+ createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.dismiss())), [createVNode(_sfc_main$2, {
87
+ label: unref(text).close,
88
+ variant: "standard",
89
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(handle)?.dismiss())
90
+ }, {
91
+ default: withCtx(() => [renderSlot(_ctx.$slots, "close-icon", {}, () => [createVNode(_sfc_main$3, { alias: "close" })])]),
92
+ _: 3
93
+ }, 8, ["label"])], 16),
94
+ unref(dialog).showsHeadline() ? (openBlock(), createElementBlock("h2", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.headline())), toDisplayString(__props.headline), 17)) : createCommentVNode("v-if", true),
95
+ unref(dialog).showsActions() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(dialog).parts.actions())), [renderSlot(_ctx.$slots, "actions")], 16)) : createCommentVNode("v-if", true)
96
+ ], 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [unref(dialog).showsIcon() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(dialog).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16)) : createCommentVNode("v-if", true), unref(dialog).showsHeadline() ? (openBlock(), createElementBlock("h2", normalizeProps(mergeProps({ key: 1 }, unref(dialog).parts.headline())), toDisplayString(__props.headline), 17)) : createCommentVNode("v-if", true)], 64)),
97
+ createCommentVNode(" In one place either way, so it stays mounted, with its focus, as an adaptive dialog switches "),
75
98
  createElementVNode("div", normalizeProps(guardReactiveProps(unref(dialog).parts.content())), [renderSlot(_ctx.$slots, "default")], 16),
76
- unref(dialog).showsActions() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 2 }, unref(dialog).parts.actions())), [renderSlot(_ctx.$slots, "actions")], 16)) : createCommentVNode("v-if", true)
99
+ !unref(dialog).fullScreen() && unref(dialog).showsActions() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 2 }, unref(dialog).parts.actions())), [unref(dialog).showsDismiss() ? (openBlock(), createBlock(_sfc_main$1, {
100
+ key: 0,
101
+ variant: "text",
102
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(handle)?.dismiss())
103
+ }, {
104
+ default: withCtx(() => [createTextVNode(toDisplayString(unref(text).cancel), 1)]),
105
+ _: 1
106
+ })) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "actions")], 16)) : createCommentVNode("v-if", true)
77
107
  ], 64)) : createCommentVNode("v-if", true)], 16);
78
108
  };
79
109
  }
@@ -0,0 +1,5 @@
1
+ import { DividerProps } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/divider.css";
3
+ declare const __VLS_export: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const _default: typeof __VLS_export;
5
+ export { _default as default };
@@ -0,0 +1,21 @@
1
+ import { createElementBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, unref } from "vue";
2
+ import { createDivider } from "@rio-m3e/core";
3
+ import "@rio-m3e/styles/divider.css";
4
+ // src/divider/Divider.vue
5
+ const _sfc_main = /*@__PURE__*/ defineComponent({
6
+ __name: "Divider",
7
+ props: {
8
+ orientation: {},
9
+ inset: {}
10
+ },
11
+ setup(__props) {
12
+ const divider = createDivider({ props: () => ({
13
+ orientation: __props.orientation,
14
+ inset: __props.inset
15
+ }) });
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(unref(divider).parts.root())), null, 16);
18
+ };
19
+ }
20
+ });
21
+ export { _sfc_main as default };
@@ -0,0 +1,27 @@
1
+ import { FabProps } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
3
+ import "@rio-m3e/styles/base/focus-ring.css";
4
+ import "@rio-m3e/styles/base/reduced-motion.css";
5
+ import "@rio-m3e/styles/base/state-layer.css";
6
+ import "@rio-m3e/styles/fab.css";
7
+ interface Props extends FabProps {
8
+ /** The element whose scrolling shrinks the FAB, with `shrinkOnScroll`. Defaults to the window. */
9
+ scrollTarget?: HTMLElement | null;
10
+ }
11
+ type __VLS_Slots = {
12
+ /** The icon. Hidden from assistive technology; `label` names the FAB. */
13
+ default?: () => unknown;
14
+ };
15
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ click: (event: MouseEvent) => any;
17
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
18
+ onClick?: ((event: MouseEvent) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ export { _default as default };
@@ -0,0 +1,70 @@
1
+ import { vRipple } from "../ripple/ripple.js";
2
+ import { toolbarFabKey } from "../toolbar/context.js";
3
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, onBeforeUnmount, onUpdated, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, useTemplateRef, watch, withCtx, withDirectives } from "vue";
4
+ import { attachFab, createFab } from "@rio-m3e/core";
5
+ import "@rio-m3e/styles/base/accent.css";
6
+ import "@rio-m3e/styles/base/focus-ring.css";
7
+ import "@rio-m3e/styles/base/reduced-motion.css";
8
+ import "@rio-m3e/styles/base/state-layer.css";
9
+ import "@rio-m3e/styles/fab.css";
10
+ // src/fab/Fab.vue
11
+ const _sfc_main = /*@__PURE__*/ defineComponent({
12
+ __name: "Fab",
13
+ props: {
14
+ scrollTarget: {},
15
+ label: {},
16
+ size: {},
17
+ variant: {},
18
+ color: {},
19
+ extended: { type: Boolean },
20
+ shrinkOnScroll: { type: Boolean },
21
+ type: {},
22
+ href: {}
23
+ },
24
+ emits: ["click"],
25
+ setup(__props, { emit: __emit }) {
26
+ const emit = __emit;
27
+ const slots = useSlots();
28
+ /** Whether the content has scrolled down, as `attachFab` reports it */
29
+ const shrunk = ref(false);
30
+ const paired = inject(toolbarFabKey, null);
31
+ const fab = createFab({
32
+ props: () => ({
33
+ label: __props.label,
34
+ size: __props.size,
35
+ variant: __props.variant,
36
+ color: __props.color,
37
+ extended: __props.extended,
38
+ shrinkOnScroll: __props.shrinkOnScroll,
39
+ type: __props.type,
40
+ href: __props.href
41
+ }),
42
+ content: () => ({ icon: !!slots.default }),
43
+ onClick: (event) => emit("click", event),
44
+ shrunk: () => shrunk.value,
45
+ inherited: () => paired?.fab()
46
+ });
47
+ const root = useTemplateRef("root");
48
+ let handle;
49
+ watch(root, (element) => {
50
+ handle?.detach();
51
+ handle = element ? attachFab(element, {
52
+ shrinksOnScroll: fab.shrinksOnScroll,
53
+ target: () => __props.scrollTarget ?? void 0,
54
+ onShrunkChange: (next) => shrunk.value = next
55
+ }) : void 0;
56
+ }, { flush: "post" });
57
+ onUpdated(() => handle?.update());
58
+ onBeforeUnmount(() => handle?.detach());
59
+ return (_ctx, _cache) => {
60
+ return withDirectives((openBlock(), createBlock(resolveDynamicComponent(unref(fab).isLink() ? "a" : "button"), mergeProps({
61
+ ref_key: "root",
62
+ ref: root
63
+ }, unref(fab).parts.root(), { onClick: unref(fab).handleClick }), {
64
+ default: withCtx(() => [unref(fab).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(fab).parts.icon())), [renderSlot(_ctx.$slots, "default")], 16)) : createCommentVNode("v-if", true), createElementVNode("span", normalizeProps(guardReactiveProps(unref(fab).parts.label())), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(fab).parts.text())), toDisplayString(__props.label), 17)], 16)]),
65
+ _: 3
66
+ }, 16, ["onClick"])), [[unref(vRipple)]]);
67
+ };
68
+ }
69
+ });
70
+ export { _sfc_main as default };
@@ -0,0 +1,34 @@
1
+ import { FabMenuProps } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
3
+ import "@rio-m3e/styles/base/focus-ring.css";
4
+ import "@rio-m3e/styles/base/reduced-motion.css";
5
+ import "@rio-m3e/styles/base/state-layer.css";
6
+ import "@rio-m3e/styles/fab-menu.css";
7
+ type Props = Omit<FabMenuProps, 'open'>;
8
+ type __VLS_Props = Props;
9
+ type __VLS_Slots = {
10
+ /** `RioFabMenuItem`s, two to six */
11
+ default?: () => unknown;
12
+ /** The FAB's icon. Hidden from assistive technology; `label` names the menu. */
13
+ icon?: () => unknown;
14
+ /** The close button's icon, in place of the one the app registered (`close`) */
15
+ 'close-icon'?: () => unknown;
16
+ };
17
+ type __VLS_ModelProps = {
18
+ /** Whether the items show, with `v-model:open` */
19
+ 'open'?: boolean;
20
+ };
21
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:open": (value: boolean) => any;
24
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
34
+ export { _default as default };
@@ -0,0 +1,76 @@
1
+ import _sfc_main$1 from "../icon/Icon.vue.js";
2
+ import { vRipple } from "../ripple/ripple.js";
3
+ import { fabMenuKey } from "./context.js";
4
+ import { createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, shallowRef, unref, useId, useModel, useTemplateRef, watch, withDirectives } from "vue";
5
+ import { attachFabMenu, createFabMenu } from "@rio-m3e/core";
6
+ import "@rio-m3e/styles/base/accent.css";
7
+ import "@rio-m3e/styles/base/focus-ring.css";
8
+ import "@rio-m3e/styles/base/reduced-motion.css";
9
+ import "@rio-m3e/styles/base/state-layer.css";
10
+ import "@rio-m3e/styles/fab-menu.css";
11
+ // src/fab-menu/FabMenu.vue
12
+ const _sfc_main = /*@__PURE__*/ defineComponent({
13
+ __name: "FabMenu",
14
+ props: /*@__PURE__*/ mergeModels({
15
+ label: {},
16
+ size: {},
17
+ variant: {},
18
+ color: {}
19
+ }, {
20
+ "open": {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ "openModifiers": {}
25
+ }),
26
+ emits: ["update:open"],
27
+ setup(__props) {
28
+ /** Whether the items show, with `v-model:open` */
29
+ const open = useModel(__props, "open");
30
+ /** The items' room, as `attachFabMenu` reports it */
31
+ const room = shallowRef();
32
+ const menu = createFabMenu({
33
+ props: () => ({
34
+ label: __props.label,
35
+ open: open.value,
36
+ size: __props.size,
37
+ variant: __props.variant,
38
+ color: __props.color
39
+ }),
40
+ onOpenChange: (next) => open.value = next,
41
+ id: `${useId()}-items`,
42
+ room: () => room.value
43
+ });
44
+ provide(fabMenuKey, { close: menu.close });
45
+ const root = useTemplateRef("root");
46
+ const button = useTemplateRef("button");
47
+ const list = useTemplateRef("list");
48
+ let handle;
49
+ onMounted(() => {
50
+ handle = attachFabMenu({
51
+ root: root.value,
52
+ button: button.value,
53
+ list: list.value
54
+ }, {
55
+ onClose: () => open.value = false,
56
+ onRoomChange: (next) => room.value = next
57
+ });
58
+ handle.sync(open.value);
59
+ });
60
+ watch(open, (next) => handle?.sync(next), { flush: "post" });
61
+ onBeforeUnmount(() => handle?.detach());
62
+ return (_ctx, _cache) => {
63
+ return openBlock(), createElementBlock("div", mergeProps({
64
+ ref_key: "root",
65
+ ref: root
66
+ }, unref(menu).parts.root()), [withDirectives((openBlock(), createElementBlock("button", mergeProps({
67
+ ref_key: "button",
68
+ ref: button
69
+ }, unref(menu).parts.button(), { onClick: _cache[0] || (_cache[0] = (...args) => unref(menu).handleButtonClick && unref(menu).handleButtonClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(menu).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16), createElementVNode("span", normalizeProps(guardReactiveProps(unref(menu).parts.closeIcon())), [renderSlot(_ctx.$slots, "close-icon", {}, () => [createVNode(_sfc_main$1, { alias: "close" })])], 16)], 16)), [[unref(vRipple)]]), createElementVNode("div", mergeProps({
70
+ ref_key: "list",
71
+ ref: list
72
+ }, unref(menu).parts.list()), [renderSlot(_ctx.$slots, "default")], 16)], 16);
73
+ };
74
+ }
75
+ });
76
+ export { _sfc_main as default };
@@ -0,0 +1,22 @@
1
+ import { FabMenuItemProps } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
3
+ import "@rio-m3e/styles/base/focus-ring.css";
4
+ import "@rio-m3e/styles/base/state-layer.css";
5
+ import "@rio-m3e/styles/fab-menu.css";
6
+ type __VLS_Slots = {
7
+ /** The icon, before the label. Hidden from assistive technology; `label` names the item. */
8
+ icon?: () => unknown;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<FabMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ click: (event: MouseEvent) => any;
12
+ }, string, import("vue").PublicProps, Readonly<FabMenuItemProps> & Readonly<{
13
+ onClick?: ((event: MouseEvent) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
22
+ export { _default as default };
@@ -0,0 +1,29 @@
1
+ import { vRipple } from "../ripple/ripple.js";
2
+ import { fabMenuKey } from "./context.js";
3
+ import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, unref, useSlots, withDirectives } from "vue";
4
+ import { createFabMenuItem } from "@rio-m3e/core";
5
+ import "@rio-m3e/styles/base/accent.css";
6
+ import "@rio-m3e/styles/base/focus-ring.css";
7
+ import "@rio-m3e/styles/base/state-layer.css";
8
+ import "@rio-m3e/styles/fab-menu.css";
9
+ // src/fab-menu/FabMenuItem.vue
10
+ const _sfc_main = /*@__PURE__*/ defineComponent({
11
+ __name: "FabMenuItem",
12
+ props: { label: {} },
13
+ emits: ["click"],
14
+ setup(__props, { emit: __emit }) {
15
+ const emit = __emit;
16
+ const slots = useSlots();
17
+ const menu = inject(fabMenuKey, void 0);
18
+ const item = createFabMenuItem({
19
+ props: () => ({ label: __props.label }),
20
+ content: () => ({ icon: !!slots.icon }),
21
+ menu: () => menu,
22
+ onClick: (event) => emit("click", event)
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return withDirectives((openBlock(), createElementBlock("button", mergeProps(unref(item).parts.root(), { onClick: _cache[0] || (_cache[0] = (...args) => unref(item).handleClick && unref(item).handleClick(...args)) }), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(item).parts.content())), [unref(item).showsIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(item).parts.icon())), [renderSlot(_ctx.$slots, "icon")], 16)) : createCommentVNode("v-if", true), createElementVNode("span", normalizeProps(guardReactiveProps(unref(item).parts.label())), toDisplayString(__props.label), 17)], 16)], 16)), [[unref(vRipple)]]);
26
+ };
27
+ }
28
+ });
29
+ export { _sfc_main as default };
@@ -0,0 +1,4 @@
1
+ // src/fab-menu/context.ts
2
+ /** What `RioFabMenu` provides to its items: closing it, as choosing one does */
3
+ const fabMenuKey = Symbol("RioFabMenu");
4
+ export { fabMenuKey };
@@ -0,0 +1,13 @@
1
+ import { RioIconValue } from "./icons.js";
2
+ import { IconAlias } from "@rio-m3e/core";
3
+ import "@rio-m3e/styles/base/direction.css";
4
+ import "@rio-m3e/styles/icon.css";
5
+ type __VLS_Props = {
6
+ /** The icon, or a name the app's `resolve` turns into one (`createRio`'s `icons`) */
7
+ icon?: RioIconValue | string;
8
+ /** One of the icons the app gave for what Rio's components draw on their own, in its place */
9
+ alias?: IconAlias;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export { _default as default };
@@ -0,0 +1,30 @@
1
+ import { useIcons } from "./icons.js";
2
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, resolveDynamicComponent, unref } from "vue";
3
+ import { createIcon, iconOf, isIconSource } from "@rio-m3e/core";
4
+ import "@rio-m3e/styles/base/direction.css";
5
+ import "@rio-m3e/styles/icon.css";
6
+ // src/icon/Icon.vue
7
+ const _sfc_main = /*@__PURE__*/ defineComponent({
8
+ __name: "Icon",
9
+ props: {
10
+ icon: {},
11
+ alias: {}
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const icons = useIcons();
16
+ const value = computed(() => iconOf(icons?.value, {
17
+ icon: props.icon,
18
+ alias: props.alias
19
+ }));
20
+ const source = computed(() => isIconSource(value.value) ? value.value : void 0);
21
+ const drawn = createIcon({
22
+ source: () => source.value,
23
+ alias: () => props.alias
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return source.value?.type === "svg" ? (openBlock(), createElementBlock("svg", normalizeProps(mergeProps({ key: 0 }, unref(drawn).parts.root())), [createElementVNode("path", normalizeProps(guardReactiveProps(unref(drawn).parts.path())), null, 16)], 16)) : source.value ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(drawn).parts.root())), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(drawn).parts.glyph())), null, 16)], 16)) : value.value ? (openBlock(), createBlock(resolveDynamicComponent(value.value), normalizeProps(mergeProps({ key: 2 }, unref(drawn).parts.root())), null, 16)) : createCommentVNode("v-if", true);
27
+ };
28
+ }
29
+ });
30
+ export { _sfc_main as default };
@@ -0,0 +1,12 @@
1
+ import { Component, ComputedRef, InjectionKey, Ref } from "vue";
2
+ import { IconAlias, IconRegistry, IconSource } from "@rio-m3e/core";
3
+ /** An icon: SVG paths, an icon font's ligature or class (`IconSource`), or a Vue component */
4
+ export type RioIconValue = IconSource | Component;
5
+ /**
6
+ * The app's icons, given to `createRio`: the icons for what Rio's components draw on their own
7
+ * (`aliases`), and `resolve`, which turns a name into an icon.
8
+ */
9
+ export type RioIcons = IconRegistry<RioIconValue>;
10
+ export declare const iconsKey: InjectionKey<Ref<RioIcons | undefined>>;
11
+ /** The icon the app gave for an alias, or none */
12
+ export declare function useIconOfAlias(alias: IconAlias): ComputedRef<RioIconValue | undefined>;
@@ -0,0 +1,12 @@
1
+ import { computed, inject } from "vue";
2
+ import { iconOfAlias } from "@rio-m3e/core";
3
+ // src/icon/icons.ts
4
+ const iconsKey = Symbol("RioIcons");
5
+ /** The app's icons, as `createRio` provides them */
6
+ const useIcons = () => inject(iconsKey, void 0);
7
+ /** The icon the app gave for an alias, or none */
8
+ function useIconOfAlias(alias) {
9
+ const icons = useIcons();
10
+ return computed(() => iconOfAlias(icons?.value, alias));
11
+ }
12
+ export { iconsKey, useIconOfAlias, useIcons };
@@ -1,4 +1,5 @@
1
1
  import { IconButtonProps } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/accent.css";
2
3
  import "@rio-m3e/styles/base/focus-ring.css";
3
4
  import "@rio-m3e/styles/base/reduced-motion.css";
4
5
  import "@rio-m3e/styles/base/state-layer.css";