@openreachtech/furo-vue 1.3.1 → 1.4.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 (68) hide show
  1. package/LICENSE +197 -5
  2. package/README.ja.md +1 -1
  3. package/README.md +1 -1
  4. package/lib/assets/css/furo/0035.variables-semantic-dimension.css +4 -1
  5. package/lib/components/atoms/FuroButton/FuroButton.vue +9 -2
  6. package/lib/components/atoms/FuroButton/FuroButtonContext.js +1 -1
  7. package/lib/components/atoms/FuroCheckbox/FuroCheckboxContext.js +3 -3
  8. package/lib/components/atoms/FuroFileField/FuroFileFieldContext.js +1 -1
  9. package/lib/components/atoms/FuroRadio/FuroRadio.vue +1 -1
  10. package/lib/components/atoms/FuroRadio/FuroRadioContext.js +2 -2
  11. package/lib/components/atoms/FuroSwitch/FuroSwitch.vue +1 -1
  12. package/lib/components/atoms/FuroSwitch/FuroSwitchContext.js +2 -2
  13. package/lib/components/atoms/FuroTextarea/FuroTextareaContext.js +3 -3
  14. package/lib/components/atoms/FuroToggle/FuroToggle.vue +1 -1
  15. package/lib/components/atoms/FuroToggle/FuroToggleContext.js +2 -2
  16. package/lib/components/molecules/FuroAccordion/FuroAccordion.vue +1 -1
  17. package/lib/components/molecules/FuroAccordion/FuroAccordionContext.js +2 -2
  18. package/lib/components/molecules/FuroAttachment/FuroAttachmentContext.js +2 -2
  19. package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue +9 -0
  20. package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.js +34 -7
  21. package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue +1 -1
  22. package/lib/components/molecules/FuroCollapsible/FuroCollapsible.vue +1 -1
  23. package/lib/components/molecules/FuroCollapsible/FuroCollapsibleContext.js +2 -2
  24. package/lib/components/molecules/FuroDatePicker/FuroDatePicker.vue +6 -6
  25. package/lib/components/molecules/FuroDatePicker/FuroDatePickerContext.js +3 -3
  26. package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.js +3 -3
  27. package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue +1 -1
  28. package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.js +3 -3
  29. package/lib/components/molecules/FuroEditableField/FuroEditableField.vue +2 -0
  30. package/lib/components/molecules/FuroEditableField/FuroEditableFieldContext.js +2 -2
  31. package/lib/components/molecules/FuroPagination/FuroPagination.vue +2 -2
  32. package/lib/components/molecules/FuroPagination/FuroPaginationContext.js +2 -2
  33. package/lib/components/molecules/FuroPopover/FuroPopover.vue +3 -2
  34. package/lib/components/molecules/FuroPopover/FuroPopoverContext.js +1 -1
  35. package/lib/components/molecules/FuroSelect/FuroSelectContext.js +3 -3
  36. package/lib/components/molecules/FuroSkeleton/FuroSkeleton.vue +17 -7
  37. package/lib/components/molecules/FuroSkeleton/FuroSkeletonContext.js +2 -2
  38. package/lib/components/molecules/FuroSplitter/FuroSplitter.vue +1 -1
  39. package/lib/components/molecules/FuroSplitter/FuroSplitterContext.js +2 -2
  40. package/lib/components/molecules/FuroTimeField/FuroTimeField.vue +1 -1
  41. package/lib/components/molecules/FuroTimeField/FuroTimeFieldContext.js +3 -3
  42. package/lib/components/molecules/FuroToggleGroup/FuroToggleGroup.vue +2 -2
  43. package/lib/components/molecules/FuroToggleGroup/FuroToggleGroupContext.js +2 -2
  44. package/lib/components/molecules/FuroTooltip/FuroTooltip.vue +1 -1
  45. package/lib/components/molecules/FuroTooltip/FuroTooltipContext.js +1 -1
  46. package/lib/components/organisms/FuroAlertDialog/FuroAlertDialog.vue +2 -1
  47. package/lib/components/organisms/FuroAlertDialog/FuroAlertDialogContext.js +17 -4
  48. package/lib/components/organisms/FuroDialog/FuroDialog.vue +3 -2
  49. package/lib/components/organisms/FuroDialog/FuroDialogContext.js +15 -2
  50. package/lib/components/organisms/FuroDrawer/FuroDrawer.vue +2 -2
  51. package/lib/components/organisms/FuroDrawer/FuroDrawerContext.js +4 -4
  52. package/lib/components/organisms/FuroEditor/FuroEditor.vue +1 -1
  53. package/lib/components/organisms/FuroSidebar/FuroSidebar.vue +2 -2
  54. package/lib/components/organisms/FuroStepper/FuroStepper.vue +1 -1
  55. package/lib/components/organisms/FuroStepper/FuroStepperContext.js +2 -2
  56. package/lib/components/organisms/FuroTable/FuroTable.vue +6 -5
  57. package/lib/components/organisms/FuroTable/FuroTableContext.js +6 -6
  58. package/lib/components/organisms/FuroTabs/FuroTabs.vue +3 -3
  59. package/lib/components/organisms/FuroTabs/FuroTabsContext.js +2 -2
  60. package/lib/components/organisms/FuroToast/FuroToast.vue +2 -2
  61. package/lib/components/organisms/FuroToast/FuroToastContext.js +2 -2
  62. package/package.json +13 -12
  63. package/public/furo-vue/components.json +11 -4
  64. package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue.d.ts +3 -0
  65. package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.d.ts +18 -0
  66. package/types/generated/components/molecules/FuroSkeleton/FuroSkeletonContext.d.ts +2 -2
  67. package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialogContext.d.ts +6 -0
  68. package/types/generated/components/organisms/FuroDialog/FuroDialogContext.d.ts +6 -0
package/LICENSE CHANGED
@@ -1,9 +1,201 @@
1
- MIT License
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
2
4
 
3
- Copyright (c) 2026 Open Reach Tech Inc.
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4
6
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
+ 1. Definitions.
6
8
 
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
8
11
 
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or Derivative
95
+ Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Open Reach Tech Inc.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.ja.md CHANGED
@@ -321,7 +321,7 @@ npm test
321
321
 
322
322
  ## ライセンス
323
323
 
324
- 本プロジェクトは MIT ライセンスで公開されています。
324
+ 本プロジェクトは Apache License 2.0 で公開されています。
325
325
 
326
326
  詳細は [LICENSE ファイル](./LICENSE) を参照してください。
327
327
 
package/README.md CHANGED
@@ -320,7 +320,7 @@ npm test
320
320
 
321
321
  ## License
322
322
 
323
- This project is released under the MIT License.
323
+ This project is released under the Apache License 2.0.
324
324
 
325
325
  For more details, please see [in the LICENSE file](./LICENSE).
326
326
 
@@ -43,12 +43,14 @@
43
43
  --size-screen-height: 100dvh;
44
44
  --size-header-height: 4.5rem;
45
45
  --size-footer-height: 6rem;
46
+ --size-table-cell-inline: 1rem;
47
+ --size-table-cell-block: 0;
46
48
  --size-sidebar-width: 16rem;
47
49
  --size-sidebar-width-collapsed: 4rem;
48
50
  /* Deprecated, removed in the next minor. Read --size-sidebar-width, which
49
51
  carries the width the rail actually renders. */
50
52
  --size-nav-width: var(--size-sidebar-width);
51
- --size-focus-ring-spread: 0.1875rem;
53
+ --size-focus-ring-spread: 0.125rem;
52
54
 
53
55
  /* Typography */
54
56
  --font-family: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', roboto, helvetica, arial, sans-serif;
@@ -93,6 +95,7 @@
93
95
 
94
96
  /* Motion */
95
97
  --transition-timer: 0.2s;
98
+ --transition-timer-spin: 0.75s;
96
99
 
97
100
  /* Constants */
98
101
  --value-golden-ratio: 1.618;
@@ -138,7 +138,7 @@ export default defineComponent({
138
138
 
139
139
  .unit-button:focus-visible {
140
140
  outline: none;
141
- box-shadow: 0 0 0 0.125rem var(--color-ring);
141
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
142
142
  }
143
143
 
144
144
  .unit-button:active:not(.disabled):not(.loading) {
@@ -191,7 +191,7 @@ export default defineComponent({
191
191
 
192
192
  .unit-button > .content-root > .loading-overlay > .loading-icon,
193
193
  .unit-button > .content-root > .loading-overlay > :deep(.loading-icon) {
194
- animation: furo-button-spin var(--transition-timer) linear infinite;
194
+ animation: furo-button-spin var(--transition-timer-spin) linear infinite;
195
195
  }
196
196
 
197
197
  .unit-button.default {
@@ -297,5 +297,12 @@ export default defineComponent({
297
297
  transform: rotate(360deg);
298
298
  }
299
299
  }
300
+
301
+ @media (prefers-reduced-motion: reduce) {
302
+ .unit-button > .content-root > .loading-overlay > .loading-icon,
303
+ .unit-button > .content-root > .loading-overlay > :deep(.loading-icon) {
304
+ animation: none;
305
+ }
306
+ }
300
307
  }
301
308
  </style>
@@ -79,7 +79,7 @@ export default class FuroButtonContext extends BaseFuroContext {
79
79
  */
80
80
  static get EMIT_EVENT_HASH () {
81
81
  return {
82
- [this.EMIT_EVENT_NAME.CLICK]: payload => {},
82
+ [this.EMIT_EVENT_NAME.CLICK]: payload => true,
83
83
  }
84
84
  }
85
85
 
@@ -108,9 +108,9 @@ export default class FuroCheckboxContext extends BaseFuroContext {
108
108
  */
109
109
  static get EMIT_EVENT_HASH () {
110
110
  return {
111
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
112
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
113
- [this.EMIT_EVENT_NAME.UPDATE_INDETERMINATE]: indeterminate => {},
111
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
112
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
113
+ [this.EMIT_EVENT_NAME.UPDATE_INDETERMINATE]: indeterminate => true,
114
114
  }
115
115
  }
116
116
 
@@ -67,7 +67,7 @@ export default class FuroFileFieldContext extends BaseFuroContext {
67
67
  */
68
68
  static get EMIT_EVENT_HASH () {
69
69
  return {
70
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
70
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
71
71
  }
72
72
  }
73
73
 
@@ -156,7 +156,7 @@ export default defineComponent({
156
156
 
157
157
  .unit-form-control.radio-group > .option > .radio:focus-visible {
158
158
  outline: none;
159
- box-shadow: 0 0 0 0.125rem var(--color-ring);
159
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
160
160
  }
161
161
 
162
162
  .unit-form-control.radio-group.invalid > .option > .radio {
@@ -105,8 +105,8 @@ export default class FuroRadioContext extends BaseFuroContext {
105
105
  */
106
106
  static get EMIT_EVENT_HASH () {
107
107
  return {
108
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
109
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
108
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
109
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
110
110
  }
111
111
  }
112
112
 
@@ -131,7 +131,7 @@ export default defineComponent({
131
131
  .unit-form-control.switch:focus-visible {
132
132
  outline: none;
133
133
 
134
- box-shadow: 0 0 0 0.125rem var(--color-ring);
134
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
135
135
  }
136
136
 
137
137
  /* The design gives the disabled track a colour of its own rather than dimming
@@ -107,8 +107,8 @@ export default class FuroSwitchContext extends BaseFuroContext {
107
107
  */
108
108
  static get EMIT_EVENT_HASH () {
109
109
  return {
110
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
111
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
110
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
111
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
112
112
  }
113
113
  }
114
114
 
@@ -84,9 +84,9 @@ export default class FuroTextareaContext extends BaseFuroContext {
84
84
  */
85
85
  static get EMIT_EVENT_HASH () {
86
86
  return {
87
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
88
- [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => {},
89
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: payload => {},
87
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
88
+ [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => true,
89
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: payload => true,
90
90
  }
91
91
  }
92
92
 
@@ -110,7 +110,7 @@ export default defineComponent({
110
110
 
111
111
  .unit-toggle:focus-visible {
112
112
  outline: none;
113
- box-shadow: 0 0 0 0.125rem var(--color-ring);
113
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
114
114
  }
115
115
 
116
116
  .unit-toggle.disabled {
@@ -103,8 +103,8 @@ export default class FuroToggleContext extends BaseFuroContext {
103
103
  */
104
104
  static get EMIT_EVENT_HASH () {
105
105
  return {
106
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
107
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
106
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
107
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
108
108
  }
109
109
  }
110
110
 
@@ -165,7 +165,7 @@ export default defineComponent({
165
165
 
166
166
  .unit-accordion > .unit-accordion-item > .header > .trigger:focus-visible {
167
167
  outline: none;
168
- box-shadow: inset 0 0 0 0.125rem var(--color-ring);
168
+ box-shadow: inset 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
169
169
  }
170
170
 
171
171
  .unit-accordion > .unit-accordion-item.disabled > .header > .trigger {
@@ -110,8 +110,8 @@ export default class FuroAccordionContext extends BaseFuroContext {
110
110
  */
111
111
  static get EMIT_EVENT_HASH () {
112
112
  return {
113
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
114
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
113
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
114
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
115
115
  }
116
116
  }
117
117
 
@@ -115,8 +115,8 @@ export default class FuroAttachmentContext extends BaseFuroContext {
115
115
  */
116
116
  static get EMIT_EVENT_HASH () {
117
117
  return {
118
- [this.EMIT_EVENT_NAME.DOWNLOAD]: payload => {},
119
- [this.EMIT_EVENT_NAME.REMOVE]: payload => {},
118
+ [this.EMIT_EVENT_NAME.DOWNLOAD]: payload => true,
119
+ [this.EMIT_EVENT_NAME.REMOVE]: payload => true,
120
120
  }
121
121
  }
122
122
 
@@ -43,6 +43,14 @@ export default defineComponent({
43
43
  ],
44
44
  default: null,
45
45
  },
46
+ inputParcel: {
47
+ /** @type {PropType<FuroAutocompleteFieldContext['inputParcel']>} */
48
+ type: [
49
+ Object,
50
+ null,
51
+ ],
52
+ default: null,
53
+ },
46
54
  },
47
55
 
48
56
  slots: /** @type {FuroAutocompleteFieldSlots} */ (Object),
@@ -139,6 +147,7 @@ export default defineComponent({
139
147
  </template>
140
148
 
141
149
  <ComboboxInput
150
+ v-bind="context.extractInputAttributes()"
142
151
  class="input"
143
152
  :placeholder="context.extractPlaceholderText()"
144
153
  :display-value="(value) => context.extractDisplayValue({ option: value })"
@@ -134,13 +134,13 @@ export default class FuroAutocompleteFieldContext extends BaseFuroContext {
134
134
  */
135
135
  static get EMIT_EVENT_HASH () {
136
136
  return {
137
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
138
- [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => {},
139
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
140
- [this.EMIT_EVENT_NAME.UPDATE_SEARCH_KEYWORD]: searchKeyword => {},
141
- [this.EMIT_EVENT_NAME.SEARCH_KEYWORD]: payload => {},
142
- [this.EMIT_EVENT_NAME.UPDATE_OPEN]: isOpen => {},
143
- [this.EMIT_EVENT_NAME.CREATE_OPTION]: payload => {},
137
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
138
+ [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => true,
139
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
140
+ [this.EMIT_EVENT_NAME.UPDATE_SEARCH_KEYWORD]: searchKeyword => true,
141
+ [this.EMIT_EVENT_NAME.SEARCH_KEYWORD]: payload => true,
142
+ [this.EMIT_EVENT_NAME.UPDATE_OPEN]: isOpen => true,
143
+ [this.EMIT_EVENT_NAME.CREATE_OPTION]: payload => true,
144
144
  }
145
145
  }
146
146
 
@@ -225,6 +225,16 @@ export default class FuroAutocompleteFieldContext extends BaseFuroContext {
225
225
  }
226
226
  }
227
227
 
228
+ /**
229
+ * get: attributes bound onto the inner combobox input.
230
+ *
231
+ * @returns {Props['inputParcel']}
232
+ */
233
+ get inputParcel () {
234
+ return this.props.inputParcel
235
+ ?? null
236
+ }
237
+
228
238
  /**
229
239
  * Get loading.
230
240
  *
@@ -1373,6 +1383,15 @@ export default class FuroAutocompleteFieldContext extends BaseFuroContext {
1373
1383
  return this.parcel?.placeholder
1374
1384
  ?? 'Select an option'
1375
1385
  }
1386
+
1387
+ /**
1388
+ * Extract the attributes bound onto the inner combobox input.
1389
+ *
1390
+ * @returns {Props['inputParcel']}
1391
+ */
1392
+ extractInputAttributes () {
1393
+ return this.inputParcel
1394
+ }
1376
1395
  }
1377
1396
 
1378
1397
  /**
@@ -1407,9 +1426,17 @@ export default class FuroAutocompleteFieldContext extends BaseFuroContext {
1407
1426
  /**
1408
1427
  * @typedef {import('vue').HTMLAttributes & {
1409
1428
  * parcel?: FuroAutocompleteFieldParcel | null
1429
+ * inputParcel?: FuroAutocompleteFieldInputParcel | null
1410
1430
  * }} Props
1411
1431
  */
1412
1432
 
1433
+ /**
1434
+ * Attributes for the inner `<input role="combobox">` (`id`, `name`, `aria-*`, `required`, …).
1435
+ * The component keeps `placeholder`, the display text and the search keyword for itself.
1436
+ *
1437
+ * @typedef {Omit<import('vue').InputHTMLAttributes, 'placeholder' | 'value'>} FuroAutocompleteFieldInputParcel
1438
+ */
1439
+
1413
1440
  /**
1414
1441
  * Closed-set Furo behavior for `<FuroAutocompleteField>`.
1415
1442
  * JSON-serializable only. Not an open passthrough to the internal combobox library.
@@ -194,7 +194,7 @@ export default defineComponent({
194
194
  .unit-breadcrumb > .trail > .entry > a.crumb:focus-visible {
195
195
  outline: none;
196
196
  border-radius: var(--size-border-radius-2x-small);
197
- box-shadow: 0 0 0 0.125rem var(--color-ring);
197
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
198
198
  }
199
199
 
200
200
  .unit-breadcrumb > .trail > .entry > .crumb.disabled {
@@ -124,7 +124,7 @@ export default defineComponent({
124
124
  .unit-collapsible > .trigger:focus-visible {
125
125
  outline: none;
126
126
  border-radius: var(--size-border-radius-medium);
127
- box-shadow: 0 0 0 0.125rem var(--color-ring);
127
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
128
128
  }
129
129
 
130
130
  .unit-collapsible.disabled > .trigger {
@@ -105,8 +105,8 @@ export default class FuroCollapsibleContext extends BaseFuroContext {
105
105
  */
106
106
  static get EMIT_EVENT_HASH () {
107
107
  return {
108
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
109
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
108
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
109
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
110
110
  }
111
111
  }
112
112
 
@@ -363,7 +363,7 @@ export default defineComponent({
363
363
 
364
364
  .unit-form-control.date-picker > .field > .field-input:focus-visible {
365
365
  outline: none;
366
- box-shadow: 0 0 0 0.125rem var(--color-ring);
366
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
367
367
  }
368
368
 
369
369
  .unit-form-control.date-picker > .field > .trigger {
@@ -390,7 +390,7 @@ export default defineComponent({
390
390
  }
391
391
 
392
392
  .unit-form-control.date-picker > .field > .trigger:focus-visible {
393
- outline: 0.125rem solid var(--color-ring);
393
+ outline: var(--size-focus-ring-spread) solid var(--color-ring);
394
394
  outline-offset: 0.0625rem;
395
395
  border-radius: var(--size-border-radius-small);
396
396
  }
@@ -525,7 +525,7 @@ export default defineComponent({
525
525
  }
526
526
 
527
527
  .unit-date-picker-content > .calendar > .calendar-header > .calendar-nav-button:focus-visible {
528
- outline: 0.125rem solid var(--color-ring);
528
+ outline: var(--size-focus-ring-spread) solid var(--color-ring);
529
529
  outline-offset: 0.0625rem;
530
530
  }
531
531
 
@@ -564,7 +564,7 @@ export default defineComponent({
564
564
  }
565
565
 
566
566
  .unit-date-picker-content > .calendar > .calendar-header > .calendar-caption > .caption-select:focus-visible {
567
- outline: 0.125rem solid var(--color-ring);
567
+ outline: var(--size-focus-ring-spread) solid var(--color-ring);
568
568
  outline-offset: 0.0625rem;
569
569
  border-color: var(--color-ring);
570
570
  }
@@ -618,7 +618,7 @@ export default defineComponent({
618
618
  .unit-date-picker-content > .calendar > .calendar-grids > .calendar-grid > tbody > .calendar-row > .calendar-cell > .calendar-cell-trigger[data-focused]:not([data-selected]) {
619
619
  background-color: var(--color-accent);
620
620
  color: var(--color-accent-foreground);
621
- outline: 0.125rem solid var(--color-ring);
621
+ outline: var(--size-focus-ring-spread) solid var(--color-ring);
622
622
  outline-offset: 0.0625rem;
623
623
  }
624
624
 
@@ -628,7 +628,7 @@ export default defineComponent({
628
628
  }
629
629
 
630
630
  .unit-date-picker-content > .calendar > .calendar-grids > .calendar-grid > tbody > .calendar-row > .calendar-cell > .calendar-cell-trigger[data-selected][data-focused] {
631
- outline: 0.125rem solid var(--color-primary-foreground);
631
+ outline: var(--size-focus-ring-spread) solid var(--color-primary-foreground);
632
632
  outline-offset: -0.1875rem;
633
633
  }
634
634
 
@@ -143,9 +143,9 @@ export default class FuroDatePickerContext extends BaseFuroContext {
143
143
  */
144
144
  static get EMIT_EVENT_HASH () {
145
145
  return {
146
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
147
- [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => {},
148
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
146
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
147
+ [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => true,
148
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
149
149
  }
150
150
  }
151
151
 
@@ -131,9 +131,9 @@ export default class FuroDateTimePickerContext extends BaseFuroContext {
131
131
  */
132
132
  static get EMIT_EVENT_HASH () {
133
133
  return {
134
- [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => {},
135
- [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => {},
136
- [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => {},
134
+ [this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
135
+ [this.EMIT_EVENT_NAME.COMMIT_VALUE]: payload => true,
136
+ [this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
137
137
  }
138
138
  }
139
139
 
@@ -168,7 +168,7 @@ export default defineComponent({
168
168
 
169
169
  .unit-dropdown-menu > .unit-button:focus-visible {
170
170
  outline: none;
171
- box-shadow: 0 0 0 0.125rem var(--color-ring);
171
+ box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
172
172
  }
173
173
 
174
174
  .unit-dropdown-menu > .unit-button:active:not(.disabled):not(.loading):not([data-disabled]) {