@openreachtech/furo-vue 1.3.2 → 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.
- package/lib/assets/css/furo/0035.variables-semantic-dimension.css +4 -1
- package/lib/components/atoms/FuroButton/FuroButton.vue +9 -2
- package/lib/components/atoms/FuroButton/FuroButtonContext.js +1 -1
- package/lib/components/atoms/FuroCheckbox/FuroCheckboxContext.js +3 -3
- package/lib/components/atoms/FuroFileField/FuroFileFieldContext.js +1 -1
- package/lib/components/atoms/FuroRadio/FuroRadio.vue +1 -1
- package/lib/components/atoms/FuroRadio/FuroRadioContext.js +2 -2
- package/lib/components/atoms/FuroSwitch/FuroSwitch.vue +1 -1
- package/lib/components/atoms/FuroSwitch/FuroSwitchContext.js +2 -2
- package/lib/components/atoms/FuroTextarea/FuroTextareaContext.js +3 -3
- package/lib/components/atoms/FuroToggle/FuroToggle.vue +1 -1
- package/lib/components/atoms/FuroToggle/FuroToggleContext.js +2 -2
- package/lib/components/molecules/FuroAccordion/FuroAccordion.vue +1 -1
- package/lib/components/molecules/FuroAccordion/FuroAccordionContext.js +2 -2
- package/lib/components/molecules/FuroAttachment/FuroAttachmentContext.js +2 -2
- package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue +9 -0
- package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.js +34 -7
- package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue +1 -1
- package/lib/components/molecules/FuroCollapsible/FuroCollapsible.vue +1 -1
- package/lib/components/molecules/FuroCollapsible/FuroCollapsibleContext.js +2 -2
- package/lib/components/molecules/FuroDatePicker/FuroDatePicker.vue +6 -6
- package/lib/components/molecules/FuroDatePicker/FuroDatePickerContext.js +3 -3
- package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.js +3 -3
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue +1 -1
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.js +3 -3
- package/lib/components/molecules/FuroEditableField/FuroEditableField.vue +2 -0
- package/lib/components/molecules/FuroEditableField/FuroEditableFieldContext.js +2 -2
- package/lib/components/molecules/FuroPagination/FuroPagination.vue +2 -2
- package/lib/components/molecules/FuroPagination/FuroPaginationContext.js +2 -2
- package/lib/components/molecules/FuroPopover/FuroPopover.vue +3 -2
- package/lib/components/molecules/FuroPopover/FuroPopoverContext.js +1 -1
- package/lib/components/molecules/FuroSelect/FuroSelectContext.js +3 -3
- package/lib/components/molecules/FuroSkeleton/FuroSkeleton.vue +17 -7
- package/lib/components/molecules/FuroSkeleton/FuroSkeletonContext.js +2 -2
- package/lib/components/molecules/FuroSplitter/FuroSplitter.vue +1 -1
- package/lib/components/molecules/FuroSplitter/FuroSplitterContext.js +2 -2
- package/lib/components/molecules/FuroTimeField/FuroTimeField.vue +1 -1
- package/lib/components/molecules/FuroTimeField/FuroTimeFieldContext.js +3 -3
- package/lib/components/molecules/FuroToggleGroup/FuroToggleGroup.vue +2 -2
- package/lib/components/molecules/FuroToggleGroup/FuroToggleGroupContext.js +2 -2
- package/lib/components/molecules/FuroTooltip/FuroTooltip.vue +1 -1
- package/lib/components/molecules/FuroTooltip/FuroTooltipContext.js +1 -1
- package/lib/components/organisms/FuroAlertDialog/FuroAlertDialog.vue +2 -1
- package/lib/components/organisms/FuroAlertDialog/FuroAlertDialogContext.js +17 -4
- package/lib/components/organisms/FuroDialog/FuroDialog.vue +3 -2
- package/lib/components/organisms/FuroDialog/FuroDialogContext.js +15 -2
- package/lib/components/organisms/FuroDrawer/FuroDrawer.vue +2 -2
- package/lib/components/organisms/FuroDrawer/FuroDrawerContext.js +4 -4
- package/lib/components/organisms/FuroEditor/FuroEditor.vue +1 -1
- package/lib/components/organisms/FuroSidebar/FuroSidebar.vue +2 -2
- package/lib/components/organisms/FuroStepper/FuroStepper.vue +1 -1
- package/lib/components/organisms/FuroStepper/FuroStepperContext.js +2 -2
- package/lib/components/organisms/FuroTable/FuroTable.vue +6 -5
- package/lib/components/organisms/FuroTable/FuroTableContext.js +6 -6
- package/lib/components/organisms/FuroTabs/FuroTabs.vue +3 -3
- package/lib/components/organisms/FuroTabs/FuroTabsContext.js +2 -2
- package/lib/components/organisms/FuroToast/FuroToast.vue +2 -2
- package/lib/components/organisms/FuroToast/FuroToastContext.js +2 -2
- package/package.json +12 -11
- package/public/furo-vue/components.json +11 -4
- package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue.d.ts +3 -0
- package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.d.ts +18 -0
- package/types/generated/components/molecules/FuroSkeleton/FuroSkeletonContext.d.ts +2 -2
- package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialogContext.d.ts +6 -0
- package/types/generated/components/organisms/FuroDialog/FuroDialogContext.d.ts +6 -0
|
@@ -141,7 +141,7 @@ export default defineComponent({
|
|
|
141
141
|
|
|
142
142
|
.unit-toggle-group-item:focus-visible {
|
|
143
143
|
outline: none;
|
|
144
|
-
box-shadow: 0 0 0
|
|
144
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.unit-toggle-group-item.disabled {
|
|
@@ -180,7 +180,7 @@ export default defineComponent({
|
|
|
180
180
|
.unit-toggle-group-item.outline[data-state="on"]:focus-visible {
|
|
181
181
|
box-shadow:
|
|
182
182
|
inset 0 0 0 0.0625rem var(--color-border),
|
|
183
|
-
0 0 0
|
|
183
|
+
0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.unit-toggle-group-item.default[data-state="on"]:hover,
|
|
@@ -106,8 +106,8 @@ export default class FuroToggleGroupContext extends BaseFuroContext {
|
|
|
106
106
|
*/
|
|
107
107
|
static get EMIT_EVENT_HASH () {
|
|
108
108
|
return {
|
|
109
|
-
[this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload =>
|
|
110
|
-
[this.EMIT_EVENT_NAME.UPDATE_VALUE]: value =>
|
|
109
|
+
[this.EMIT_EVENT_NAME.CHANGE_VALUE]: payload => true,
|
|
110
|
+
[this.EMIT_EVENT_NAME.UPDATE_VALUE]: value => true,
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -116,7 +116,7 @@ export default defineComponent({
|
|
|
116
116
|
|
|
117
117
|
.unit-tooltip-trigger:focus-visible {
|
|
118
118
|
outline: none;
|
|
119
|
-
box-shadow: 0 0 0
|
|
119
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.unit-tooltip-content {
|
|
@@ -87,6 +87,7 @@ export default defineComponent({
|
|
|
87
87
|
<AlertDialogOverlay class="unit-alert-dialog-overlay" />
|
|
88
88
|
|
|
89
89
|
<AlertDialogContent
|
|
90
|
+
v-bind="context.extractContentAttributes()"
|
|
90
91
|
:class="context.extractContentClassNames()"
|
|
91
92
|
@interact-outside="context.onInteractOutside({
|
|
92
93
|
rawEvent: $event,
|
|
@@ -229,7 +230,7 @@ export default defineComponent({
|
|
|
229
230
|
|
|
230
231
|
.unit-alert-dialog-content:focus-visible {
|
|
231
232
|
outline: none;
|
|
232
|
-
box-shadow: 0 0 0
|
|
233
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
.unit-alert-dialog-content > .header {
|
|
@@ -120,10 +120,10 @@ export default class FuroAlertDialogContext extends BaseFuroContext {
|
|
|
120
120
|
*/
|
|
121
121
|
static get EMIT_EVENT_HASH () {
|
|
122
122
|
return {
|
|
123
|
-
[this.EMIT_EVENT_NAME.CONFIRM]: () =>
|
|
124
|
-
[this.EMIT_EVENT_NAME.CANCEL]: () =>
|
|
125
|
-
[this.EMIT_EVENT_NAME.OPEN_CHANGE]: payload =>
|
|
126
|
-
[this.EMIT_EVENT_NAME.UPDATE_OPEN]: payload =>
|
|
123
|
+
[this.EMIT_EVENT_NAME.CONFIRM]: () => true,
|
|
124
|
+
[this.EMIT_EVENT_NAME.CANCEL]: () => true,
|
|
125
|
+
[this.EMIT_EVENT_NAME.OPEN_CHANGE]: payload => true,
|
|
126
|
+
[this.EMIT_EVENT_NAME.UPDATE_OPEN]: payload => true,
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -268,6 +268,19 @@ export default class FuroAlertDialogContext extends BaseFuroContext {
|
|
|
268
268
|
])
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Extract attributes forwarded to the content element.
|
|
273
|
+
*
|
|
274
|
+
* @returns {Record<string, undefined>} `aria-describedby` cleared when no description renders.
|
|
275
|
+
*/
|
|
276
|
+
extractContentAttributes () {
|
|
277
|
+
return this.hasDescription()
|
|
278
|
+
? {}
|
|
279
|
+
: {
|
|
280
|
+
'aria-describedby': undefined,
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
271
284
|
/**
|
|
272
285
|
* CSS selector (scoped to dialog content) for the element to focus on open.
|
|
273
286
|
*
|
|
@@ -86,6 +86,7 @@ export default defineComponent({
|
|
|
86
86
|
/>
|
|
87
87
|
|
|
88
88
|
<DialogContent
|
|
89
|
+
v-bind="context.extractContentAttributes()"
|
|
89
90
|
:class="context.extractContentClassNames()"
|
|
90
91
|
@interact-outside="context.onInteractOutside({
|
|
91
92
|
rawEvent: $event,
|
|
@@ -225,7 +226,7 @@ export default defineComponent({
|
|
|
225
226
|
|
|
226
227
|
.unit-dialog-content:focus-visible {
|
|
227
228
|
outline: none;
|
|
228
|
-
box-shadow: 0 0 0
|
|
229
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
229
230
|
}
|
|
230
231
|
|
|
231
232
|
.unit-dialog-content > .header {
|
|
@@ -301,7 +302,7 @@ export default defineComponent({
|
|
|
301
302
|
|
|
302
303
|
.unit-dialog-content > .built-in-close:focus-visible {
|
|
303
304
|
outline: none;
|
|
304
|
-
box-shadow: 0 0 0
|
|
305
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
.unit-dialog-content > .built-in-close:disabled {
|
|
@@ -112,8 +112,8 @@ export default class FuroDialogContext extends BaseFuroContext {
|
|
|
112
112
|
*/
|
|
113
113
|
static get EMIT_EVENT_HASH () {
|
|
114
114
|
return {
|
|
115
|
-
[this.EMIT_EVENT_NAME.OPEN_CHANGE]: payload =>
|
|
116
|
-
[this.EMIT_EVENT_NAME.UPDATE_OPEN]: payload =>
|
|
115
|
+
[this.EMIT_EVENT_NAME.OPEN_CHANGE]: payload => true,
|
|
116
|
+
[this.EMIT_EVENT_NAME.UPDATE_OPEN]: payload => true,
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -267,6 +267,19 @@ export default class FuroDialogContext extends BaseFuroContext {
|
|
|
267
267
|
])
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
/**
|
|
271
|
+
* Extract attributes forwarded to the content element.
|
|
272
|
+
*
|
|
273
|
+
* @returns {Record<string, undefined>} `aria-describedby` cleared when no description renders.
|
|
274
|
+
*/
|
|
275
|
+
extractContentAttributes () {
|
|
276
|
+
return this.hasDescription()
|
|
277
|
+
? {}
|
|
278
|
+
: {
|
|
279
|
+
'aria-describedby': undefined,
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
270
283
|
/**
|
|
271
284
|
* CSS selector (scoped to dialog content) for the element to focus on open.
|
|
272
285
|
*
|
|
@@ -378,7 +378,7 @@ export default defineComponent({
|
|
|
378
378
|
|
|
379
379
|
.unit-drawer-content:focus-visible {
|
|
380
380
|
outline: none;
|
|
381
|
-
box-shadow: 0 0 0
|
|
381
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
/* Grab handle — a short bar centered on the docked edge. */
|
|
@@ -503,7 +503,7 @@ export default defineComponent({
|
|
|
503
503
|
|
|
504
504
|
.unit-drawer-content > .built-in-close:focus-visible {
|
|
505
505
|
outline: none;
|
|
506
|
-
box-shadow: 0 0 0
|
|
506
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.unit-drawer-content > .built-in-close:disabled {
|
|
@@ -114,10 +114,10 @@ export default class FuroDrawerContext extends BaseFuroContext {
|
|
|
114
114
|
*/
|
|
115
115
|
static get EMIT_EVENT_HASH () {
|
|
116
116
|
return {
|
|
117
|
-
[this.EMIT_EVENT_NAME.OPEN_CHANGE]: payload =>
|
|
118
|
-
[this.EMIT_EVENT_NAME.UPDATE_OPEN]: payload =>
|
|
119
|
-
[this.EMIT_EVENT_NAME.SNAP_CHANGE]: payload =>
|
|
120
|
-
[this.EMIT_EVENT_NAME.UPDATE_ACTIVE_SNAP_POINT]: payload =>
|
|
117
|
+
[this.EMIT_EVENT_NAME.OPEN_CHANGE]: payload => true,
|
|
118
|
+
[this.EMIT_EVENT_NAME.UPDATE_OPEN]: payload => true,
|
|
119
|
+
[this.EMIT_EVENT_NAME.SNAP_CHANGE]: payload => true,
|
|
120
|
+
[this.EMIT_EVENT_NAME.UPDATE_ACTIVE_SNAP_POINT]: payload => true,
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -556,7 +556,7 @@ export default defineComponent({
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
.unit-editor > .content .tiptap img.ProseMirror-selectednode {
|
|
559
|
-
outline:
|
|
559
|
+
outline: var(--size-focus-ring-spread) solid var(--color-ring);
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
/* .furo-mention chip styling is shared (lib/assets/css/furo/0050.furo-editor-content.css)
|
|
@@ -325,7 +325,7 @@ export default defineComponent({
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.unit-sidebar .row:focus-visible {
|
|
328
|
-
box-shadow: 0 0 0
|
|
328
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
329
329
|
|
|
330
330
|
outline: none;
|
|
331
331
|
}
|
|
@@ -458,7 +458,7 @@ export default defineComponent({
|
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
.unit-sidebar .sub-row:focus-visible {
|
|
461
|
-
box-shadow: 0 0 0
|
|
461
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
462
462
|
|
|
463
463
|
outline: none;
|
|
464
464
|
}
|
|
@@ -252,7 +252,7 @@ export default defineComponent({
|
|
|
252
252
|
|
|
253
253
|
.unit-stepper .trigger:focus-visible > .indicator {
|
|
254
254
|
outline: none;
|
|
255
|
-
box-shadow: 0 0 0
|
|
255
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.unit-stepper [data-state="active"] .indicator {
|
|
@@ -97,8 +97,8 @@ export default class FuroStepperContext extends BaseFuroContext {
|
|
|
97
97
|
*/
|
|
98
98
|
static get EMIT_EVENT_HASH () {
|
|
99
99
|
return {
|
|
100
|
-
[this.EMIT_EVENT_NAME.STEP_CHANGE]: payload =>
|
|
101
|
-
[this.EMIT_EVENT_NAME.UPDATE_VALUE]: payload =>
|
|
100
|
+
[this.EMIT_EVENT_NAME.STEP_CHANGE]: payload => true,
|
|
101
|
+
[this.EMIT_EVENT_NAME.UPDATE_VALUE]: payload => true,
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -471,7 +471,8 @@ export default defineComponent({
|
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
.unit-table :where(.header-cell, .data-cell, .selection-cell, .placeholder-cell, .actions-cell) {
|
|
474
|
-
padding-
|
|
474
|
+
padding-block: var(--size-table-cell-block);
|
|
475
|
+
padding-inline: var(--size-table-cell-inline);
|
|
475
476
|
|
|
476
477
|
vertical-align: middle;
|
|
477
478
|
}
|
|
@@ -484,7 +485,7 @@ export default defineComponent({
|
|
|
484
485
|
.unit-table .selection-cell {
|
|
485
486
|
width: 2.75rem;
|
|
486
487
|
|
|
487
|
-
padding-inline:
|
|
488
|
+
padding-inline: calc(var(--size-table-cell-inline) / 2);
|
|
488
489
|
|
|
489
490
|
text-align: center;
|
|
490
491
|
}
|
|
@@ -522,7 +523,7 @@ export default defineComponent({
|
|
|
522
523
|
.unit-table .header-cell > .header-label:focus-visible {
|
|
523
524
|
outline: none;
|
|
524
525
|
|
|
525
|
-
box-shadow: 0 0 0
|
|
526
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
526
527
|
}
|
|
527
528
|
|
|
528
529
|
.unit-table .label-text {
|
|
@@ -619,11 +620,11 @@ export default defineComponent({
|
|
|
619
620
|
}
|
|
620
621
|
|
|
621
622
|
.unit-table.compact :where(.header-cell, .data-cell, .placeholder-cell, .actions-cell) {
|
|
622
|
-
padding-inline:
|
|
623
|
+
padding-inline: calc(var(--size-table-cell-inline) / 2);
|
|
623
624
|
}
|
|
624
625
|
|
|
625
626
|
.unit-table.compact .selection-cell {
|
|
626
|
-
padding-inline: 0.
|
|
627
|
+
padding-inline: calc(var(--size-table-cell-inline) * 0.375);
|
|
627
628
|
}
|
|
628
629
|
|
|
629
630
|
.unit-table.grid-lines :where(.header-cell, .data-cell, .selection-cell, .actions-cell):not(:last-child) {
|
|
@@ -203,12 +203,12 @@ export default class FuroTableContext extends BaseFuroContext {
|
|
|
203
203
|
*/
|
|
204
204
|
static get EMIT_EVENT_HASH () {
|
|
205
205
|
return {
|
|
206
|
-
[this.EMIT_EVENT_NAME.SORT_CHANGE]: payload =>
|
|
207
|
-
[this.EMIT_EVENT_NAME.SELECTION_CHANGE]: payload =>
|
|
208
|
-
[this.EMIT_EVENT_NAME.UPDATE_SELECTED_ROW_KEYS]: selectedRowKeys =>
|
|
209
|
-
[this.EMIT_EVENT_NAME.RANGE_CHANGE]: payload =>
|
|
210
|
-
[this.EMIT_EVENT_NAME.REACH_END]: payload =>
|
|
211
|
-
[this.EMIT_EVENT_NAME.ROW_CLICK]: payload =>
|
|
206
|
+
[this.EMIT_EVENT_NAME.SORT_CHANGE]: payload => true,
|
|
207
|
+
[this.EMIT_EVENT_NAME.SELECTION_CHANGE]: payload => true,
|
|
208
|
+
[this.EMIT_EVENT_NAME.UPDATE_SELECTED_ROW_KEYS]: selectedRowKeys => true,
|
|
209
|
+
[this.EMIT_EVENT_NAME.RANGE_CHANGE]: payload => true,
|
|
210
|
+
[this.EMIT_EVENT_NAME.REACH_END]: payload => true,
|
|
211
|
+
[this.EMIT_EVENT_NAME.ROW_CLICK]: payload => true,
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|
|
@@ -234,7 +234,7 @@ export default defineComponent({
|
|
|
234
234
|
|
|
235
235
|
.unit-tabs > .scroll > .scroll-button:focus-visible {
|
|
236
236
|
outline: none;
|
|
237
|
-
box-shadow: 0 0 0
|
|
237
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
.unit-tabs > .scroll > .scroll-button:disabled {
|
|
@@ -298,7 +298,7 @@ export default defineComponent({
|
|
|
298
298
|
|
|
299
299
|
.unit-tabs .tab:focus-visible {
|
|
300
300
|
outline: none;
|
|
301
|
-
box-shadow: 0 0 0
|
|
301
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
.unit-tabs .tab:disabled {
|
|
@@ -397,7 +397,7 @@ export default defineComponent({
|
|
|
397
397
|
|
|
398
398
|
.unit-tabs > .content:focus-visible {
|
|
399
399
|
outline: none;
|
|
400
|
-
box-shadow: 0 0 0
|
|
400
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
</style>
|
|
@@ -145,8 +145,8 @@ export default class FuroTabsContext extends BaseFuroContext {
|
|
|
145
145
|
*/
|
|
146
146
|
static get EMIT_EVENT_HASH () {
|
|
147
147
|
return {
|
|
148
|
-
[this.EMIT_EVENT_NAME.TAB_CHANGE]: payload =>
|
|
149
|
-
[this.EMIT_EVENT_NAME.UPDATE_VALUE]: payload =>
|
|
148
|
+
[this.EMIT_EVENT_NAME.TAB_CHANGE]: payload => true,
|
|
149
|
+
[this.EMIT_EVENT_NAME.UPDATE_VALUE]: payload => true,
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -502,7 +502,7 @@ export default defineComponent({
|
|
|
502
502
|
|
|
503
503
|
.unit-toast > .inner > .actions > .action:focus-visible {
|
|
504
504
|
outline: none;
|
|
505
|
-
box-shadow: 0 0 0
|
|
505
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
.unit-toast > .inner > .actions > .action:disabled {
|
|
@@ -563,7 +563,7 @@ export default defineComponent({
|
|
|
563
563
|
outline: none;
|
|
564
564
|
opacity: 1;
|
|
565
565
|
|
|
566
|
-
box-shadow: 0 0 0
|
|
566
|
+
box-shadow: 0 0 0 var(--size-focus-ring-spread) var(--color-ring);
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
.unit-toast-viewport .unit-toast[data-mounted="true"][data-swipe="move"] {
|
|
@@ -171,8 +171,8 @@ export default class FuroToastContext extends BaseFuroContext {
|
|
|
171
171
|
*/
|
|
172
172
|
static get EMIT_EVENT_HASH () {
|
|
173
173
|
return {
|
|
174
|
-
[this.EMIT_EVENT_NAME.DISMISS]: payload =>
|
|
175
|
-
[this.EMIT_EVENT_NAME.ACTION]: payload =>
|
|
174
|
+
[this.EMIT_EVENT_NAME.DISMISS]: payload => true,
|
|
175
|
+
[this.EMIT_EVENT_NAME.ACTION]: payload => true,
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openreachtech/furo-vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "furo for Vue",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -79,16 +79,17 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@iconify/vue": "^5.0.1",
|
|
81
81
|
"@openreachtech/furo": "^1.10.1",
|
|
82
|
-
"@tiptap/core": "^3.30.
|
|
83
|
-
"@tiptap/extension-highlight": "^3.30.
|
|
84
|
-
"@tiptap/extension-image": "^3.30.
|
|
85
|
-
"@tiptap/extension-mention": "^3.30.
|
|
86
|
-
"@tiptap/extension-text-align": "^3.30.
|
|
87
|
-
"@tiptap/extension-text-style": "^3.30.
|
|
88
|
-
"@tiptap/extension-typography": "^3.30.
|
|
89
|
-
"@tiptap/
|
|
90
|
-
"@tiptap/
|
|
91
|
-
"@tiptap/
|
|
82
|
+
"@tiptap/core": "^3.30.5",
|
|
83
|
+
"@tiptap/extension-highlight": "^3.30.5",
|
|
84
|
+
"@tiptap/extension-image": "^3.30.5",
|
|
85
|
+
"@tiptap/extension-mention": "^3.30.5",
|
|
86
|
+
"@tiptap/extension-text-align": "^3.30.5",
|
|
87
|
+
"@tiptap/extension-text-style": "^3.30.5",
|
|
88
|
+
"@tiptap/extension-typography": "^3.30.5",
|
|
89
|
+
"@tiptap/extensions": "^3.30.5",
|
|
90
|
+
"@tiptap/pm": "^3.30.5",
|
|
91
|
+
"@tiptap/starter-kit": "^3.30.5",
|
|
92
|
+
"@tiptap/vue-3": "^3.30.5",
|
|
92
93
|
"marked": "^18.0.9",
|
|
93
94
|
"reka-ui": "^2.10.3",
|
|
94
95
|
"vue": "^3.5.41"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"library": "@openreachtech/furo-vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"generatedFrom": "app/docs/component-registry.js",
|
|
5
5
|
"layers": [
|
|
6
6
|
"foundation",
|
|
@@ -1097,7 +1097,13 @@
|
|
|
1097
1097
|
"name": "parcel",
|
|
1098
1098
|
"type": "FuroAutocompleteFieldParcel | null",
|
|
1099
1099
|
"default": "null",
|
|
1100
|
-
"description": "Furo behavior.
|
|
1100
|
+
"description": "Furo behavior. HTML attributes such as class and style pass through to the root wrapper."
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "inputParcel",
|
|
1104
|
+
"type": "FuroAutocompleteFieldInputParcel | null",
|
|
1105
|
+
"default": "null",
|
|
1106
|
+
"description": "Attributes bound onto the inner combobox input (id, name, aria-label, aria-labelledby, aria-describedby, required). Use it to give the combobox an accessible name and to target it from a label."
|
|
1101
1107
|
}
|
|
1102
1108
|
],
|
|
1103
1109
|
"parcel": [
|
|
@@ -1322,6 +1328,7 @@
|
|
|
1322
1328
|
"Debounced search-keyword emit (default 300ms) using TimerClerk, fired only while the popover is open.",
|
|
1323
1329
|
"Loading, invalid, disabled, and multiple states drive the trigger UI and visible list.",
|
|
1324
1330
|
"Creatable rows surface a create option when the trimmed keyword has no exact match; the parent owns appending it.",
|
|
1331
|
+
"inputParcel binds id, name and aria-* onto the inner combobox input, so a label or an aria attribute can name the real control.",
|
|
1325
1332
|
"Rich slot surface for trigger, group, option, indicator, separator, empty, loading, and create-option states."
|
|
1326
1333
|
]
|
|
1327
1334
|
},
|
|
@@ -2775,7 +2782,7 @@
|
|
|
2775
2782
|
"name": "animated",
|
|
2776
2783
|
"type": "boolean",
|
|
2777
2784
|
"default": "true",
|
|
2778
|
-
"description": "When true, the placeholder
|
|
2785
|
+
"description": "When true, the placeholder shimmers. Reduced-motion users always see a static placeholder."
|
|
2779
2786
|
}
|
|
2780
2787
|
],
|
|
2781
2788
|
"events": [],
|
|
@@ -2784,7 +2791,7 @@
|
|
|
2784
2791
|
"Presentational loading placeholder shown while real content is fetching.",
|
|
2785
2792
|
"Three shape variants — text (default), circle, and rectangle — mapped without JS branching.",
|
|
2786
2793
|
"Optional width and height overrides accept any CSS length via custom properties.",
|
|
2787
|
-
"
|
|
2794
|
+
"Shimmer animation signals the loading state and pauses for reduced-motion users.",
|
|
2788
2795
|
"Carries no value, emits nothing, and is hidden from assistive tech."
|
|
2789
2796
|
]
|
|
2790
2797
|
},
|
package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue.d.ts
CHANGED
|
@@ -189,6 +189,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
189
189
|
onTransitionrun?: (payload: TransitionEvent) => void;
|
|
190
190
|
onTransitionstart?: (payload: TransitionEvent) => void;
|
|
191
191
|
parcel?: import("./FuroAutocompleteFieldContext.js").FuroAutocompleteFieldParcel | null;
|
|
192
|
+
inputParcel?: import("./FuroAutocompleteFieldContext.js").FuroAutocompleteFieldInputParcel | null;
|
|
192
193
|
}, {
|
|
193
194
|
context: FuroAutocompleteFieldContext;
|
|
194
195
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -390,6 +391,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
390
391
|
onTransitionrun?: (payload: TransitionEvent) => void;
|
|
391
392
|
onTransitionstart?: (payload: TransitionEvent) => void;
|
|
392
393
|
parcel?: import("./FuroAutocompleteFieldContext.js").FuroAutocompleteFieldParcel | null;
|
|
394
|
+
inputParcel?: import("./FuroAutocompleteFieldContext.js").FuroAutocompleteFieldInputParcel | null;
|
|
393
395
|
}> & Readonly<{
|
|
394
396
|
"onChange-value"?: (payload: import("./AutocompleteEmitPayload.js").default) => any;
|
|
395
397
|
"onUpdate:value"?: (value: import("./AutocompleteEmitPayload.js").FuroAutocompleteOption) => any;
|
|
@@ -402,6 +404,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
402
404
|
"onUpdate:open"?: (isOpen: boolean) => any;
|
|
403
405
|
}>, {
|
|
404
406
|
parcel: import("./FuroAutocompleteFieldContext.js").FuroAutocompleteFieldParcel;
|
|
407
|
+
inputParcel: import("./FuroAutocompleteFieldContext.js").FuroAutocompleteFieldInputParcel;
|
|
405
408
|
}, FuroAutocompleteFieldSlots, {
|
|
406
409
|
ComboboxRoot: <T extends import("reka-ui").AcceptableValue = import("reka-ui").AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
407
410
|
attrs: any;
|
package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.d.ts
CHANGED
|
@@ -131,6 +131,12 @@ export default class FuroAutocompleteFieldContext extends BaseFuroContext<null,
|
|
|
131
131
|
* @returns {import('vue').Ref<boolean>}
|
|
132
132
|
*/
|
|
133
133
|
get internalOpenPopoverRef(): import("vue").Ref<boolean>;
|
|
134
|
+
/**
|
|
135
|
+
* get: attributes bound onto the inner combobox input.
|
|
136
|
+
*
|
|
137
|
+
* @returns {Props['inputParcel']}
|
|
138
|
+
*/
|
|
139
|
+
get inputParcel(): Props["inputParcel"];
|
|
134
140
|
/**
|
|
135
141
|
* Get loading.
|
|
136
142
|
*
|
|
@@ -609,6 +615,12 @@ export default class FuroAutocompleteFieldContext extends BaseFuroContext<null,
|
|
|
609
615
|
* @returns {string}
|
|
610
616
|
*/
|
|
611
617
|
extractPlaceholderText(): string;
|
|
618
|
+
/**
|
|
619
|
+
* Extract the attributes bound onto the inner combobox input.
|
|
620
|
+
*
|
|
621
|
+
* @returns {Props['inputParcel']}
|
|
622
|
+
*/
|
|
623
|
+
extractInputAttributes(): Props["inputParcel"];
|
|
612
624
|
}
|
|
613
625
|
export type FuroAutocompleteFieldContextParams = import("../../../contexts/BaseFuroContext.js").BaseFuroContextParams & {
|
|
614
626
|
props: Props;
|
|
@@ -629,7 +641,13 @@ export type EmitEventName = keyof typeof FuroAutocompleteFieldContext.EMIT_EVENT
|
|
|
629
641
|
export type FuroAcceptableValue = string | number | bigint | Record<string, unknown> | null;
|
|
630
642
|
export type Props = import("vue").HTMLAttributes & {
|
|
631
643
|
parcel?: FuroAutocompleteFieldParcel | null;
|
|
644
|
+
inputParcel?: FuroAutocompleteFieldInputParcel | null;
|
|
632
645
|
};
|
|
646
|
+
/**
|
|
647
|
+
* Attributes for the inner `<input role="combobox">` (`id`, `name`, `aria-*`, `required`, …).
|
|
648
|
+
* The component keeps `placeholder`, the display text and the search keyword for itself.
|
|
649
|
+
*/
|
|
650
|
+
export type FuroAutocompleteFieldInputParcel = Omit<import("vue").InputHTMLAttributes, "placeholder" | "value">;
|
|
633
651
|
/**
|
|
634
652
|
* Closed-set Furo behavior for `<FuroAutocompleteField>`.
|
|
635
653
|
* JSON-serializable only. Not an open passthrough to the internal combobox library.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Presentational loading placeholder shown while real content is fetching.
|
|
5
5
|
* Carries no value and emits nothing — shape comes from the variant, size from
|
|
6
|
-
* optional width / height, and a
|
|
6
|
+
* optional width / height, and a shimmer animation signals the loading state.
|
|
7
7
|
*
|
|
8
8
|
* @extends {BaseFuroContext<null, Props, null>}
|
|
9
9
|
*/
|
|
@@ -43,7 +43,7 @@ export default class FuroSkeletonContext extends BaseFuroContext<null, Props, nu
|
|
|
43
43
|
"--furo-skeleton-height": string | null;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* Whether the
|
|
46
|
+
* Whether the shimmer animation runs. Reduced-motion users still get a static
|
|
47
47
|
* placeholder via the CSS media query.
|
|
48
48
|
*
|
|
49
49
|
* @returns {boolean} true when animated; defaults to true.
|
|
@@ -126,6 +126,12 @@ export default class FuroAlertDialogContext extends BaseFuroContext<null, Props,
|
|
|
126
126
|
* @returns {Record<string, boolean>}
|
|
127
127
|
*/
|
|
128
128
|
extractContentClassNames(): Record<string, boolean>;
|
|
129
|
+
/**
|
|
130
|
+
* Extract attributes forwarded to the content element.
|
|
131
|
+
*
|
|
132
|
+
* @returns {Record<string, undefined>} `aria-describedby` cleared when no description renders.
|
|
133
|
+
*/
|
|
134
|
+
extractContentAttributes(): Record<string, undefined>;
|
|
129
135
|
/**
|
|
130
136
|
* CSS selector (scoped to dialog content) for the element to focus on open.
|
|
131
137
|
*
|
|
@@ -124,6 +124,12 @@ export default class FuroDialogContext extends BaseFuroContext<null, Props, "UPD
|
|
|
124
124
|
* @returns {Record<string, boolean>}
|
|
125
125
|
*/
|
|
126
126
|
extractContentClassNames(): Record<string, boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* Extract attributes forwarded to the content element.
|
|
129
|
+
*
|
|
130
|
+
* @returns {Record<string, undefined>} `aria-describedby` cleared when no description renders.
|
|
131
|
+
*/
|
|
132
|
+
extractContentAttributes(): Record<string, undefined>;
|
|
127
133
|
/**
|
|
128
134
|
* CSS selector (scoped to dialog content) for the element to focus on open.
|
|
129
135
|
*
|