@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
@@ -1,5 +1,8 @@
1
- import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vModelDynamic, vModelText, withDirectives } from "vue";
1
+ import { useComposingInput } from "../ime/composing.js";
2
+ import { useLocale, useMessages } from "../locale/locale.js";
3
+ import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, onUpdated, openBlock, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vModelDynamic, vModelText, withDirectives } from "vue";
2
4
  import { attachTextField, createTextField, mergePartAttrs } from "@rio-m3e/core";
5
+ import "@rio-m3e/styles/base/accent.css";
3
6
  import "@rio-m3e/styles/base/reduced-motion.css";
4
7
  import "@rio-m3e/styles/text-field.css";
5
8
  // src/text-field/TextField.vue
@@ -7,19 +10,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
7
10
  inheritAttrs: false,
8
11
  __name: "TextField",
9
12
  props: /*@__PURE__*/ mergeModels({
13
+ locale: {},
14
+ messages: {},
10
15
  variant: {},
11
16
  label: {},
12
17
  multiline: { type: Boolean },
13
18
  rows: {},
19
+ grow: { type: Boolean },
20
+ maxRows: {},
14
21
  prefix: {},
15
22
  suffix: {},
16
23
  supportingText: {},
17
24
  error: { type: Boolean },
18
25
  errorText: {},
26
+ color: {},
19
27
  maxlength: {},
20
28
  required: { type: Boolean },
21
29
  disabled: { type: Boolean },
22
- readonly: { type: Boolean }
30
+ readonly: { type: Boolean },
31
+ validationMessages: {
32
+ type: Boolean,
33
+ default: () => void 0
34
+ }
23
35
  }, {
24
36
  "modelValue": { default: "" },
25
37
  "modelModifiers": {}
@@ -34,6 +46,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
34
46
  const slots = useSlots();
35
47
  const id = useId();
36
48
  const attrs = useAttrs();
49
+ const text = useMessages("textField", useLocale(() => __props.locale), () => __props.messages);
50
+ /** A growing field's text area, fitted to its text, as `attachTextField` reports it */
51
+ const fit = shallowRef();
52
+ /** The browser's validation message, as `attachTextField` reports it */
53
+ const validation = shallowRef();
37
54
  const field = createTextField({
38
55
  props: () => ({
39
56
  variant: __props.variant,
@@ -41,15 +58,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
41
58
  value: String(model.value),
42
59
  multiline: __props.multiline,
43
60
  rows: __props.rows,
61
+ grow: __props.grow,
62
+ maxRows: __props.maxRows,
44
63
  prefix: __props.prefix,
45
64
  suffix: __props.suffix,
46
65
  supportingText: __props.supportingText,
47
66
  error: __props.error,
48
67
  errorText: __props.errorText,
68
+ color: __props.color,
49
69
  maxlength: __props.maxlength,
50
70
  required: __props.required,
51
71
  disabled: __props.disabled,
52
- readonly: __props.readonly
72
+ readonly: __props.readonly,
73
+ validationMessages: __props.validationMessages
53
74
  }),
54
75
  content: () => ({
55
76
  leadingIcon: !!slots["leading-icon"],
@@ -63,60 +84,83 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
63
84
  suffix: `${id}-suffix`,
64
85
  supportingText: `${id}-supporting`,
65
86
  counter: `${id}-counter`
66
- }
87
+ },
88
+ fit: () => fit.value,
89
+ validation: () => validation.value,
90
+ messages: () => text.value
67
91
  });
92
+ const { onComposition, onInput } = useComposingInput((next) => model.value = next);
68
93
  const container = useTemplateRef("container");
69
94
  const input = useTemplateRef("input");
70
95
  let handle;
71
- onMounted(() => handle = attachTextField(container.value, () => input.value));
96
+ onMounted(() => {
97
+ handle = attachTextField(container.value, () => input.value, {
98
+ growth: field.growth,
99
+ onFitChange: (next) => fit.value = next,
100
+ validates: field.validates,
101
+ onValidationChange: (next) => validation.value = next
102
+ });
103
+ });
104
+ onUpdated(() => handle?.update());
72
105
  onBeforeUnmount(() => handle?.detach());
73
106
  return (_ctx, _cache) => {
74
107
  return openBlock(), createElementBlock("div", mergeProps(unref(field).parts.root(), {
75
108
  class: _ctx.$attrs.class,
76
109
  style: _ctx.$attrs.style
77
- }), [createElementVNode("div", normalizeProps(guardReactiveProps(unref(field).parts.frame())), [
78
- unref(field).showsOutline() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.outline())), [
79
- createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.outlineStart())), null, 16),
80
- createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.outlineNotch())), toDisplayString(unref(field).labelText()), 17),
81
- createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.outlineEnd())), null, 16)
110
+ }), [
111
+ createElementVNode("div", normalizeProps(guardReactiveProps(unref(field).parts.frame())), [
112
+ unref(field).showsOutline() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.outline())), [
113
+ createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.outlineStart())), null, 16),
114
+ createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.outlineNotch())), toDisplayString(unref(field).labelText()), 17),
115
+ createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.outlineEnd())), null, 16)
116
+ ], 16)) : createCommentVNode("v-if", true),
117
+ unref(field).showsLabel() ? (openBlock(), createElementBlock("label", normalizeProps(mergeProps({ key: 1 }, unref(field).parts.label())), toDisplayString(unref(field).labelText()), 17)) : createCommentVNode("v-if", true),
118
+ createElementVNode("div", mergeProps({
119
+ ref_key: "container",
120
+ ref: container
121
+ }, unref(field).parts.container()), [
122
+ unref(field).showsLeadingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.leadingIcon())), [renderSlot(_ctx.$slots, "leading-icon")], 16)) : createCommentVNode("v-if", true),
123
+ createElementVNode("div", normalizeProps(guardReactiveProps(unref(field).parts.content())), [
124
+ unref(field).showsPrefix() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.prefix())), toDisplayString(__props.prefix), 17)) : createCommentVNode("v-if", true),
125
+ createCommentVNode(" v-model, which keeps the input as it is while an IME composes, and onInput "),
126
+ unref(field).singleLine() ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
127
+ key: 1,
128
+ ref_key: "input",
129
+ ref: input,
130
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
131
+ onCompositionstart: _cache[1] || (_cache[1] = (...args) => unref(onComposition) && unref(onComposition)(...args)),
132
+ onCompositionend: _cache[2] || (_cache[2] = (...args) => unref(onComposition) && unref(onComposition)(...args)),
133
+ onInput: _cache[3] || (_cache[3] = (...args) => unref(onInput) && unref(onInput)(...args))
134
+ }, unref(mergePartAttrs)({
135
+ ..._ctx.$attrs,
136
+ class: void 0,
137
+ style: void 0
138
+ }, unref(field).parts.input())), null, 16)), [[vModelDynamic, model.value]]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
139
+ key: 2,
140
+ ref_key: "input",
141
+ ref: input,
142
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value = $event),
143
+ onCompositionstart: _cache[5] || (_cache[5] = (...args) => unref(onComposition) && unref(onComposition)(...args)),
144
+ onCompositionend: _cache[6] || (_cache[6] = (...args) => unref(onComposition) && unref(onComposition)(...args)),
145
+ onInput: _cache[7] || (_cache[7] = (...args) => unref(onInput) && unref(onInput)(...args))
146
+ }, unref(mergePartAttrs)({
147
+ ..._ctx.$attrs,
148
+ class: void 0,
149
+ style: void 0
150
+ }, unref(field).parts.textarea())), null, 16)), [[vModelText, model.value]]),
151
+ unref(field).showsSuffix() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 3 }, unref(field).parts.suffix())), toDisplayString(__props.suffix), 17)) : createCommentVNode("v-if", true)
152
+ ], 16),
153
+ unref(field).showsTrailingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(field).parts.trailingIcon())), [renderSlot(_ctx.$slots, "trailing-icon")], 16)) : createCommentVNode("v-if", true)
154
+ ], 16)
155
+ ], 16),
156
+ unref(field).showsSupporting() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.supporting())), [
157
+ createCommentVNode(" A new element for the error text, so it arrives with its alert role. "),
158
+ unref(field).showsSupportingText() ? (openBlock(), createElementBlock("span", mergeProps({ key: unref(field).showsErrorText() ? "error" : "supporting" }, unref(field).parts.supportingText()), toDisplayString(unref(field).supportingTextNow()), 17)) : createCommentVNode("v-if", true),
159
+ unref(field).showsCounter() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(field).parts.counter())), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.counterText())), toDisplayString(unref(field).counterText()), 17), createElementVNode("span", normalizeProps(guardReactiveProps(unref(field).parts.counterLabel())), toDisplayString(unref(field).counterLabel()), 17)], 16)) : createCommentVNode("v-if", true)
82
160
  ], 16)) : createCommentVNode("v-if", true),
83
- unref(field).showsLabel() ? (openBlock(), createElementBlock("label", normalizeProps(mergeProps({ key: 1 }, unref(field).parts.label())), toDisplayString(unref(field).labelText()), 17)) : createCommentVNode("v-if", true),
84
- createElementVNode("div", mergeProps({
85
- ref_key: "container",
86
- ref: container
87
- }, unref(field).parts.container()), [
88
- unref(field).showsLeadingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.leadingIcon())), [renderSlot(_ctx.$slots, "leading-icon")], 16)) : createCommentVNode("v-if", true),
89
- createElementVNode("div", normalizeProps(guardReactiveProps(unref(field).parts.content())), [
90
- unref(field).showsPrefix() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.prefix())), toDisplayString(__props.prefix), 17)) : createCommentVNode("v-if", true),
91
- createCommentVNode(" v-model, not :value and @input: it waits for an IME to finish composing. "),
92
- unref(field).singleLine() ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
93
- key: 1,
94
- ref_key: "input",
95
- ref: input,
96
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
97
- }, unref(mergePartAttrs)({
98
- ..._ctx.$attrs,
99
- class: void 0,
100
- style: void 0
101
- }, unref(field).parts.input())), null, 16)), [[vModelDynamic, model.value]]) : withDirectives((openBlock(), createElementBlock("textarea", mergeProps({
102
- key: 2,
103
- ref_key: "input",
104
- ref: input,
105
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => model.value = $event)
106
- }, unref(mergePartAttrs)({
107
- ..._ctx.$attrs,
108
- class: void 0,
109
- style: void 0
110
- }, unref(field).parts.textarea())), null, 16)), [[vModelText, model.value]]),
111
- unref(field).showsSuffix() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 3 }, unref(field).parts.suffix())), toDisplayString(__props.suffix), 17)) : createCommentVNode("v-if", true)
112
- ], 16),
113
- unref(field).showsTrailingIcon() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(field).parts.trailingIcon())), [renderSlot(_ctx.$slots, "trailing-icon")], 16)) : createCommentVNode("v-if", true)
114
- ], 16)
115
- ], 16), unref(field).showsSupporting() ? (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 0 }, unref(field).parts.supporting())), [
116
- createCommentVNode(" A new element for the error text, so it arrives with its alert role. "),
117
- unref(field).showsSupportingText() ? (openBlock(), createElementBlock("span", mergeProps({ key: unref(field).showsErrorText() ? "error" : "supporting" }, unref(field).parts.supportingText()), toDisplayString(unref(field).supportingTextNow()), 17)) : createCommentVNode("v-if", true),
118
- unref(field).showsCounter() ? (openBlock(), createElementBlock("span", normalizeProps(mergeProps({ key: 1 }, unref(field).parts.counter())), toDisplayString(unref(field).counterText()), 17)) : createCommentVNode("v-if", true)
119
- ], 16)) : createCommentVNode("v-if", true)], 16);
161
+ createCommentVNode(" A new element for each announcement, so it arrives as an alert. "),
162
+ unref(field).announces() ? (openBlock(), createElementBlock("span", mergeProps({ key: unref(field).announcementKey() }, unref(field).parts.announcer()), toDisplayString(unref(field).announcementText()), 17)) : createCommentVNode("v-if", true)
163
+ ], 16);
120
164
  };
121
165
  }
122
166
  });
@@ -1,8 +1,10 @@
1
- import { HourCycle, TimePickerMessages } from "@rio-m3e/core";
1
+ import { AccentColor, HourCycle, TimePickerMessages } 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";
5
6
  import "@rio-m3e/styles/base/touch-target.css";
7
+ import "@rio-m3e/styles/base/direction.css";
6
8
  import "@rio-m3e/styles/time-picker.css";
7
9
  type __VLS_Props = {
8
10
  /** A language tag. Without it, the one provided, or the document's, or the browser's. */
@@ -11,6 +13,11 @@ type __VLS_Props = {
11
13
  hourCycle?: HourCycle;
12
14
  /** Replaces any of the text the picker shows. */
13
15
  messages?: Partial<TimePickerMessages>;
16
+ /**
17
+ * The theme color it takes in place of the spec's accents: `'secondary'`, `'tertiary'`,
18
+ * `'error'`, or a static color of the theme. Its buttons take it too.
19
+ */
20
+ color?: AccentColor;
14
21
  };
15
22
  type __VLS_ModelProps = {
16
23
  /** The time, `HH:MM` on a 24-hour clock, with `v-model`. */
@@ -2,10 +2,12 @@ import { useLocale, useMessages } from "../locale/locale.js";
2
2
  import _sfc_main$1 from "./TimePickerBody.vue.js";
3
3
  import { createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, toDisplayString, unref, useId, useModel, useTemplateRef, watch } from "vue";
4
4
  import { attachTimePicker, createTimePicker, initialTimePickerState } from "@rio-m3e/core";
5
+ import "@rio-m3e/styles/base/accent.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/state-layer.css";
8
9
  import "@rio-m3e/styles/base/touch-target.css";
10
+ import "@rio-m3e/styles/base/direction.css";
9
11
  import "@rio-m3e/styles/time-picker.css";
10
12
  // src/time-picker/TimeInput.vue
11
13
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -13,7 +15,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
13
15
  props: /*@__PURE__*/ mergeModels({
14
16
  locale: {},
15
17
  hourCycle: {},
16
- messages: {}
18
+ messages: {},
19
+ color: {}
17
20
  }, {
18
21
  "modelValue": {},
19
22
  "modelModifiers": {}
@@ -35,7 +38,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
35
38
  props: () => ({
36
39
  value: model.value,
37
40
  locale: locale.value,
38
- hourCycle: props.hourCycle
41
+ hourCycle: props.hourCycle,
42
+ color: props.color
39
43
  }),
40
44
  messages: () => messages.value,
41
45
  state: () => state,
@@ -1,8 +1,10 @@
1
- import { HourCycle, TimePickerKind, TimePickerLayout, TimePickerMessages, TimePickerMode } from "@rio-m3e/core";
1
+ import { AccentColor, HourCycle, TimePickerKind, TimePickerLayout, TimePickerMessages, TimePickerMode } 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";
5
6
  import "@rio-m3e/styles/base/touch-target.css";
7
+ import "@rio-m3e/styles/base/direction.css";
6
8
  import "@rio-m3e/styles/dialog.css";
7
9
  import "@rio-m3e/styles/time-picker.css";
8
10
  type __VLS_Props = {
@@ -18,13 +20,27 @@ type __VLS_Props = {
18
20
  initialMode?: TimePickerMode;
19
21
  /** Replaces any of the text the dialog shows. */
20
22
  messages?: Partial<TimePickerMessages>;
23
+ /**
24
+ * The theme color it takes in place of the spec's accents: `'secondary'`, `'tertiary'`,
25
+ * `'error'`, or a static color of the theme. Its buttons take it too.
26
+ */
27
+ color?: AccentColor;
21
28
  };
22
29
  type __VLS_Slots = {
23
- /** The mode button's icon on the dial or the scroll fields, which switches to the text input */
30
+ /**
31
+ * The mode button's icon on the dial or the scroll fields, which switches to the text input.
32
+ * Without one, the `keyboard` icon registered with `createRio`.
33
+ */
24
34
  'keyboard-icon'?: () => unknown;
25
- /** The mode button's icon in the text input, which switches back to the dial */
35
+ /**
36
+ * The mode button's icon in the text input, which switches back to the dial. Without one, the
37
+ * `clock` icon registered with `createRio`.
38
+ */
26
39
  'clock-icon'?: () => unknown;
27
- /** The mode button's icon in the text input, which switches back to the scroll fields */
40
+ /**
41
+ * The mode button's icon in the text input, which switches back to the scroll fields. Without
42
+ * one, the `swipe` icon registered with `createRio`.
43
+ */
28
44
  'swipe-icon'?: () => unknown;
29
45
  };
30
46
  type __VLS_ModelProps = {
@@ -3,12 +3,15 @@ import _sfc_main$2 from "../icon-button/IconButton.vue.js";
3
3
  import { useLocale, useMessages } from "../locale/locale.js";
4
4
  import { keepPresses } from "../overlay/presses.js";
5
5
  import _sfc_main$3 from "./TimePickerBody.vue.js";
6
+ import _sfc_main$4 from "../icon/Icon.vue.js";
6
7
  import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, toDisplayString, toHandlers, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
7
8
  import { attachDialog, attachTimePicker, createTimePicker, initialTimePickerState } from "@rio-m3e/core";
9
+ import "@rio-m3e/styles/base/accent.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/state-layer.css";
11
13
  import "@rio-m3e/styles/base/touch-target.css";
14
+ import "@rio-m3e/styles/base/direction.css";
12
15
  import "@rio-m3e/styles/dialog.css";
13
16
  import "@rio-m3e/styles/time-picker.css";
14
17
  // src/time-picker/TimePickerDialog.vue
@@ -20,7 +23,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
20
23
  layout: {},
21
24
  picker: {},
22
25
  initialMode: {},
23
- messages: {}
26
+ messages: {},
27
+ color: {}
24
28
  }, {
25
29
  "modelValue": {},
26
30
  "modelModifiers": {},
@@ -52,7 +56,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
52
56
  layout: props.layout,
53
57
  picker: props.picker,
54
58
  initialMode: props.initialMode,
55
- rendered: rendered.value
59
+ rendered: rendered.value,
60
+ color: props.color
56
61
  }),
57
62
  messages: () => messages.value,
58
63
  state: () => state,
@@ -112,7 +117,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
112
117
  label: unref(picker).modeButtonLabel(),
113
118
  onClick: _cache[0] || (_cache[0] = ($event) => unref(picker).switchMode())
114
119
  }, {
115
- default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, void 0, void 0, 0) : unref(picker).modeButtonIcon() === "clock" ? renderSlot(_ctx.$slots, "clock-icon", {}, void 0, void 0, 1) : renderSlot(_ctx.$slots, "swipe-icon", {}, void 0, void 0, 2)]),
120
+ default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, () => [createVNode(_sfc_main$4, { alias: "keyboard" })], void 0, 0) : unref(picker).modeButtonIcon() === "clock" ? renderSlot(_ctx.$slots, "clock-icon", {}, () => [createVNode(_sfc_main$4, { alias: "clock" })], void 0, 1) : renderSlot(_ctx.$slots, "swipe-icon", {}, () => [createVNode(_sfc_main$4, { alias: "swipe" })], void 0, 2)]),
116
121
  _: 3
117
122
  }, 8, ["label"]),
118
123
  createVNode(_sfc_main$1, {
@@ -1,8 +1,10 @@
1
- import { HourCycle, TimePickerMessages } from "@rio-m3e/core";
1
+ import { AccentColor, HourCycle, TimePickerMessages } 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";
5
6
  import "@rio-m3e/styles/base/touch-target.css";
7
+ import "@rio-m3e/styles/base/direction.css";
6
8
  import "@rio-m3e/styles/time-picker.css";
7
9
  type __VLS_Props = {
8
10
  /** A language tag. Without it, the one provided, or the document's, or the browser's. */
@@ -11,11 +13,22 @@ type __VLS_Props = {
11
13
  hourCycle?: HourCycle;
12
14
  /** Replaces any of the text the picker shows. */
13
15
  messages?: Partial<TimePickerMessages>;
16
+ /**
17
+ * The theme color it takes in place of the spec's accents: `'secondary'`, `'tertiary'`,
18
+ * `'error'`, or a static color of the theme. Its buttons take it too.
19
+ */
20
+ color?: AccentColor;
14
21
  };
15
22
  type __VLS_Slots = {
16
- /** The mode button's icon on the scroll fields, which switches to the text input */
23
+ /**
24
+ * The mode button's icon on the scroll fields, which switches to the text input. Without one, the
25
+ * `keyboard` icon registered with `createRio`.
26
+ */
17
27
  'keyboard-icon'?: () => unknown;
18
- /** The mode button's icon in the text input, which switches back to the scroll fields */
28
+ /**
29
+ * The mode button's icon in the text input, which switches back to the scroll fields. Without
30
+ * one, the `swipe` icon registered with `createRio`.
31
+ */
19
32
  'swipe-icon'?: () => unknown;
20
33
  };
21
34
  type __VLS_ModelProps = {
@@ -1,12 +1,15 @@
1
1
  import _sfc_main$1 from "../icon-button/IconButton.vue.js";
2
2
  import { useLocale, useMessages } from "../locale/locale.js";
3
3
  import _sfc_main$2 from "./TimePickerBody.vue.js";
4
+ import _sfc_main$3 from "../icon/Icon.vue.js";
4
5
  import { createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, reactive, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
5
6
  import { attachTimePicker, createTimePicker, initialTimePickerState } from "@rio-m3e/core";
7
+ import "@rio-m3e/styles/base/accent.css";
6
8
  import "@rio-m3e/styles/base/focus-ring.css";
7
9
  import "@rio-m3e/styles/base/reduced-motion.css";
8
10
  import "@rio-m3e/styles/base/state-layer.css";
9
11
  import "@rio-m3e/styles/base/touch-target.css";
12
+ import "@rio-m3e/styles/base/direction.css";
10
13
  import "@rio-m3e/styles/time-picker.css";
11
14
  // src/time-picker/TimeScroll.vue
12
15
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -14,7 +17,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
14
17
  props: /*@__PURE__*/ mergeModels({
15
18
  locale: {},
16
19
  hourCycle: {},
17
- messages: {}
20
+ messages: {},
21
+ color: {}
18
22
  }, {
19
23
  "modelValue": {},
20
24
  "modelModifiers": {}
@@ -33,7 +37,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
33
37
  props: () => ({
34
38
  value: model.value,
35
39
  locale: locale.value,
36
- hourCycle: props.hourCycle
40
+ hourCycle: props.hourCycle,
41
+ color: props.color
37
42
  }),
38
43
  messages: () => messages.value,
39
44
  state: () => state,
@@ -70,7 +75,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
70
75
  label: unref(picker).modeButtonLabel(),
71
76
  onClick: _cache[0] || (_cache[0] = ($event) => unref(picker).switchMode())
72
77
  }, {
73
- default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, void 0, void 0, 0) : renderSlot(_ctx.$slots, "swipe-icon", {}, void 0, void 0, 1)]),
78
+ default: withCtx(() => [unref(picker).modeButtonIcon() === "keyboard" ? renderSlot(_ctx.$slots, "keyboard-icon", {}, () => [createVNode(_sfc_main$3, { alias: "keyboard" })], void 0, 0) : renderSlot(_ctx.$slots, "swipe-icon", {}, () => [createVNode(_sfc_main$3, { alias: "swipe" })], void 0, 1)]),
74
79
  _: 3
75
80
  }, 8, ["label"])]),
76
81
  _: 3
@@ -0,0 +1,14 @@
1
+ import { toolbarFabKey } from "./context.js";
2
+ import { defineComponent, provide, renderSlot } from "vue";
3
+ // src/toolbar/FabPlace.vue
4
+ const _sfc_main = /*@__PURE__*/ defineComponent({
5
+ __name: "FabPlace",
6
+ props: { context: {} },
7
+ setup(__props) {
8
+ provide(toolbarFabKey, __props.context);
9
+ return (_ctx, _cache) => {
10
+ return renderSlot(_ctx.$slots, "default");
11
+ };
12
+ }
13
+ });
14
+ export { _sfc_main as default };
@@ -0,0 +1,34 @@
1
+ import { ToolbarProps } from "@rio-m3e/core";
2
+ import "@rio-m3e/styles/base/reduced-motion.css";
3
+ import "@rio-m3e/styles/base/direction.css";
4
+ import "@rio-m3e/styles/toolbar.css";
5
+ interface Props extends ToolbarProps {
6
+ /**
7
+ * The element whose scrolling hides the toolbar, with `hideOnScroll`, or collapses it, with
8
+ * `collapseOnScroll`. Defaults to the window.
9
+ */
10
+ scrollTarget?: HTMLElement | null;
11
+ }
12
+ type __VLS_Slots = {
13
+ /**
14
+ * The items: buttons, icon buttons, text fields, or anything else. With `overflow`, the buttons
15
+ * that don't fit go into the menu, last first; `RioOverflowItem` takes content of the app's own.
16
+ */
17
+ default?: () => unknown;
18
+ /** The "More options" button's icon, in place of the one the app registered (`more`) */
19
+ 'more-icon'?: () => unknown;
20
+ /**
21
+ * A `RioFab` beside a floating toolbar, at its end, or under a vertical one: it takes its size,
22
+ * variant, and color from the toolbar unless it sets its own. A docked toolbar shows none.
23
+ */
24
+ fab?: () => unknown;
25
+ };
26
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, 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,115 @@
1
+ import _sfc_main$1 from "../overflow/OverflowMenu.vue.js";
2
+ import { useOverflowHost } from "../overflow/overflow.js";
3
+ import _sfc_main$2 from "./FabPlace.vue.js";
4
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onBeforeUnmount, onUpdated, openBlock, ref, renderSlot, shallowRef, unref, useSlots, useTemplateRef, watch, withCtx } from "vue";
5
+ import { attachToolbar, createToolbar, mergePartAttrs } from "@rio-m3e/core";
6
+ import "@rio-m3e/styles/base/reduced-motion.css";
7
+ import "@rio-m3e/styles/base/direction.css";
8
+ import "@rio-m3e/styles/toolbar.css";
9
+ // src/toolbar/Toolbar.vue
10
+ const _sfc_main = /*@__PURE__*/ defineComponent({
11
+ inheritAttrs: false,
12
+ __name: "Toolbar",
13
+ props: {
14
+ scrollTarget: {},
15
+ type: {},
16
+ variant: {},
17
+ orientation: {},
18
+ flat: { type: Boolean },
19
+ hideOnScroll: { type: Boolean },
20
+ expanded: {
21
+ type: Boolean,
22
+ default: () => void 0
23
+ },
24
+ collapseOnScroll: { type: Boolean },
25
+ overflow: { type: Boolean },
26
+ maxItems: {}
27
+ },
28
+ setup(__props) {
29
+ const slots = useSlots();
30
+ /** Whether the content has scrolled the toolbar into its FAB, as `attachToolbar` reports it */
31
+ const collapsedByScroll = ref(false);
32
+ /** The lengths it holds as it collapses into its FAB or expands, as `attachToolbar` reports them */
33
+ const lengths = shallowRef();
34
+ const toolbar = createToolbar({
35
+ props: () => ({
36
+ type: __props.type,
37
+ variant: __props.variant,
38
+ orientation: __props.orientation,
39
+ flat: __props.flat,
40
+ hideOnScroll: __props.hideOnScroll,
41
+ overflow: __props.overflow,
42
+ maxItems: __props.maxItems,
43
+ expanded: __props.expanded,
44
+ collapseOnScroll: __props.collapseOnScroll
45
+ }),
46
+ content: () => ({ fab: !!slots.fab }),
47
+ collapsedByScroll: () => collapsedByScroll.value,
48
+ overflowing: () => more.overflowing(),
49
+ lengths: () => lengths.value
50
+ });
51
+ /** What the FAB in the `fab` slot takes from the toolbar */
52
+ const fabContext = { fab: () => toolbar.showsFab() ? toolbar.fab() : void 0 };
53
+ const root = useTemplateRef("root");
54
+ const more = useOverflowHost({
55
+ overflow: toolbar.overflow,
56
+ container: root,
57
+ axis: toolbar.orientation
58
+ });
59
+ const group = useTemplateRef("group");
60
+ let handle;
61
+ watch([root, group], ([element, around]) => {
62
+ handle?.detach();
63
+ handle = element ? attachToolbar(element, {
64
+ hidesToward: toolbar.hidesToward,
65
+ target: () => __props.scrollTarget ?? void 0,
66
+ group: around,
67
+ collapsesOnScroll: toolbar.collapsesOnScroll,
68
+ onCollapsedByScrollChange: (next) => collapsedByScroll.value = next,
69
+ collapsed: toolbar.collapsed,
70
+ onLengthsChange: (next) => lengths.value = next
71
+ }) : void 0;
72
+ }, { flush: "post" });
73
+ onUpdated(() => handle?.update());
74
+ onBeforeUnmount(() => handle?.detach());
75
+ return (_ctx, _cache) => {
76
+ return unref(toolbar).showsFab() ? (openBlock(), createElementBlock("div", mergeProps({
77
+ key: 0,
78
+ ref_key: "group",
79
+ ref: group
80
+ }, unref(toolbar).parts.group(), {
81
+ class: _ctx.$attrs.class,
82
+ style: _ctx.$attrs.style
83
+ }), [createElementVNode("div", mergeProps({
84
+ ref_key: "root",
85
+ ref: root
86
+ }, unref(mergePartAttrs)({
87
+ ..._ctx.$attrs,
88
+ class: void 0,
89
+ style: void 0
90
+ }, unref(toolbar).parts.root())), [renderSlot(_ctx.$slots, "default"), unref(more).enabled() ? (openBlock(), createBlock(_sfc_main$1, {
91
+ key: 0,
92
+ host: unref(more)
93
+ }, createSlots({ _: 2 }, [_ctx.$slots["more-icon"] ? {
94
+ name: "icon",
95
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "more-icon")]),
96
+ key: "0"
97
+ } : void 0]), 1032, ["host"])) : createCommentVNode("v-if", true)], 16), createElementVNode("div", normalizeProps(guardReactiveProps(unref(toolbar).parts.fab())), [createVNode(_sfc_main$2, { context: fabContext }, {
98
+ default: withCtx(() => [renderSlot(_ctx.$slots, "fab")]),
99
+ _: 3
100
+ })], 16)], 16)) : (openBlock(), createElementBlock("div", mergeProps({
101
+ key: 1,
102
+ ref_key: "root",
103
+ ref: root
104
+ }, mergeProps(unref(toolbar).parts.root(), _ctx.$attrs)), [renderSlot(_ctx.$slots, "default"), unref(more).enabled() ? (openBlock(), createBlock(_sfc_main$1, {
105
+ key: 0,
106
+ host: unref(more)
107
+ }, createSlots({ _: 2 }, [_ctx.$slots["more-icon"] ? {
108
+ name: "icon",
109
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "more-icon")]),
110
+ key: "0"
111
+ } : void 0]), 1032, ["host"])) : createCommentVNode("v-if", true)], 16));
112
+ };
113
+ }
114
+ });
115
+ export { _sfc_main as default };
@@ -0,0 +1,3 @@
1
+ // src/toolbar/context.ts
2
+ const toolbarFabKey = Symbol("RioToolbarFab");
3
+ export { toolbarFabKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-m3e/vue",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "Vue components for Rio, a Material 3 Expressive implementation",
5
5
  "license": "Apache-2.0",
6
6
  "author": "LegenLee",
@@ -15,6 +15,8 @@
15
15
  ],
16
16
  "type": "module",
17
17
  "sideEffects": false,
18
+ "unpkg": "dist/browser/rio-vue.global.js",
19
+ "jsdelivr": "dist/browser/rio-vue.global.js",
18
20
  "exports": {
19
21
  ".": {
20
22
  "@rio-m3e/source": "./src/index.ts",
@@ -27,9 +29,9 @@
27
29
  "access": "public"
28
30
  },
29
31
  "dependencies": {
30
- "@rio-m3e/core": "^0.6.2",
31
- "@rio-m3e/styles": "^0.6.2",
32
- "@rio-m3e/tokens": "^0.6.2"
32
+ "@rio-m3e/core": "^0.7.0",
33
+ "@rio-m3e/styles": "^0.7.0",
34
+ "@rio-m3e/tokens": "^0.7.0"
33
35
  },
34
36
  "devDependencies": {
35
37
  "@fontsource/roboto": "^5.3.0",