@humanonlyweb/ui 0.3.0 → 0.4.1

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 (46) hide show
  1. package/dist/components/button/Button.js +5 -2
  2. package/dist/components/checkbox/Checkbox.js +4 -2
  3. package/dist/components/checkbox-group/CheckboxGroup.js +5 -3
  4. package/dist/components/combobox/Combobox.js +6 -4
  5. package/dist/components/fieldset/Fieldset.js +3 -1
  6. package/dist/components/fieldset/Fieldset.vue.d.ts +1 -1
  7. package/dist/components/input/Input.js +3 -1
  8. package/dist/components/otp-input/OtpInput.js +4 -2
  9. package/dist/components/password-input/PasswordInput.js +4 -2
  10. package/dist/components/radio-group/RadioGroup.js +5 -3
  11. package/dist/components/segmented/Segmented.js +5 -3
  12. package/dist/components/select/Select.js +4 -2
  13. package/dist/components/slider/Slider.js +7 -5
  14. package/dist/components/spin-button/SpinButton.js +8 -6
  15. package/dist/components/split-button/SplitButton.js +6 -4
  16. package/dist/components/switch/Switch.js +3 -1
  17. package/dist/components/tag-input/TagInput.js +8 -6
  18. package/dist/components/textarea/Textarea.js +3 -1
  19. package/dist/components/toggle/Toggle.js +4 -2
  20. package/dist/components/toggle-group/ToggleGroup.js +5 -3
  21. package/dist/composables/use-disabled.d.ts +10 -0
  22. package/dist/composables/use-disabled.js +20 -0
  23. package/dist/docs/changelog.md +10 -0
  24. package/dist/docs/components/checkbox-group.md +1 -1
  25. package/dist/docs/components/checkbox.md +1 -1
  26. package/dist/docs/components/combobox.md +1 -1
  27. package/dist/docs/components/fieldset.md +13 -3
  28. package/dist/docs/components/input.md +1 -1
  29. package/dist/docs/components/otp-input.md +1 -1
  30. package/dist/docs/components/password-input.md +1 -1
  31. package/dist/docs/components/radio-group.md +1 -1
  32. package/dist/docs/components/segmented.md +1 -1
  33. package/dist/docs/components/select.md +1 -1
  34. package/dist/docs/components/slider.md +1 -1
  35. package/dist/docs/components/spin-button.md +1 -1
  36. package/dist/docs/components/split-button.md +1 -1
  37. package/dist/docs/components/switch.md +1 -1
  38. package/dist/docs/components/tag-input.md +1 -1
  39. package/dist/docs/components/textarea.md +1 -1
  40. package/dist/docs/components/toggle-group.md +1 -1
  41. package/dist/docs/components/toggle.md +1 -1
  42. package/dist/index.d.ts +2 -1
  43. package/dist/index.js +2 -1
  44. package/dist/package.js +1 -1
  45. package/dist/styles/core.css +1 -1
  46. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { useUiConfig } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, withCtx } from "vue";
3
4
  //#region src/components/button/Button.vue
4
5
  const _hoisted_1 = {
@@ -26,10 +27,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
26
27
  setup(__props) {
27
28
  const props = __props;
28
29
  const { link } = useUiConfig();
29
- const isDisabled = computed(() => Boolean(props.disabled || props.loading));
30
30
  const routerTo = computed(() => props.to != null && link ? props.to : void 0);
31
31
  const href = computed(() => props.href ?? (typeof props.to === "string" && !link ? props.to : void 0));
32
32
  const isLink = computed(() => routerTo.value != null || href.value != null);
33
+ const inherited = useDisabled(() => false);
34
+ const ownDisabled = computed(() => Boolean(props.disabled || !isLink.value && inherited.value));
35
+ const isDisabled = computed(() => ownDisabled.value || Boolean(props.loading));
33
36
  const tag = computed(() => {
34
37
  if (isLink.value && isDisabled.value) return "a";
35
38
  if (routerTo.value != null) return link;
@@ -53,7 +56,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
53
56
  }
54
57
  return {
55
58
  type: props.type ?? "button",
56
- disabled: props.disabled,
59
+ disabled: ownDisabled.value,
57
60
  "aria-disabled": props.loading || void 0
58
61
  };
59
62
  });
@@ -1,3 +1,4 @@
1
+ import { useDisabled } from "../../composables/use-disabled.js";
1
2
  import { useField } from "../../composables/use-field.js";
2
3
  import _sfc_main$1 from "../field/FieldMessage.js";
3
4
  import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, renderSlot, toDisplayString, unref, useModel, useTemplateRef, vModelCheckbox, watchEffect, withDirectives } from "vue";
@@ -41,6 +42,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
41
42
  }),
42
43
  emits: ["update:modelValue"],
43
44
  setup(__props) {
45
+ const disabled = useDisabled(() => __props.disabled);
44
46
  /** Checked state, or with an array, the checked `value`s. */
45
47
  const model = useModel(__props, "modelValue");
46
48
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -56,7 +58,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
56
58
  return openBlock(), createElementBlock(Fragment, null, [
57
59
  createElementVNode("label", {
58
60
  "data-part": "checkbox",
59
- "data-checkbox-disabled": __props.disabled || void 0,
61
+ "data-checkbox-disabled": unref(disabled) || void 0,
60
62
  "data-checkbox-error": unref(isError) || void 0
61
63
  }, [
62
64
  withDirectives(createElementVNode("input", mergeProps({
@@ -66,7 +68,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
66
68
  type: "checkbox",
67
69
  "data-part": "checkbox-input",
68
70
  value: __props.value,
69
- disabled: __props.disabled,
71
+ disabled: unref(disabled),
70
72
  "aria-invalid": unref(isError) || void 0,
71
73
  "aria-describedby": unref(describedBy)
72
74
  }, _ctx.$attrs), null, 16, _hoisted_2), [[vModelCheckbox, model.value]]),
@@ -1,6 +1,7 @@
1
+ import { useDisabled } from "../../composables/use-disabled.js";
1
2
  import _sfc_main$1 from "../checkbox/Checkbox.js";
2
3
  import _sfc_main$2 from "../fieldset/Fieldset.js";
3
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, openBlock, renderList, renderSlot, toDisplayString, useModel, withCtx } from "vue";
4
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, withCtx } from "vue";
4
5
  //#region src/components/checkbox-group/CheckboxGroup.vue
5
6
  const _hoisted_1 = ["data-orientation", "data-field-name"];
6
7
  const _hoisted_2 = ["name", "value"];
@@ -23,6 +24,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
23
24
  }),
24
25
  emits: ["update:modelValue"],
25
26
  setup(__props) {
27
+ const disabled = useDisabled(() => __props.disabled);
26
28
  /** The checked values. */
27
29
  const model = useModel(__props, "modelValue");
28
30
  const checked = computed(() => new Set(model.value ?? []));
@@ -38,7 +40,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
38
40
  legend: __props.label,
39
41
  hint: __props.hint,
40
42
  error: __props.error,
41
- disabled: __props.disabled
43
+ disabled: unref(disabled)
42
44
  }, {
43
45
  default: withCtx(() => [createElementVNode("div", {
44
46
  "data-part": "checkbox-group",
@@ -50,7 +52,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
50
52
  key: option.value,
51
53
  label: option.label,
52
54
  "model-value": isChecked(option.value),
53
- disabled: __props.disabled || option.disabled,
55
+ disabled: unref(disabled) || option.disabled,
54
56
  "onUpdate:modelValue": (on) => toggle(option.value, on === true)
55
57
  }, {
56
58
  default: withCtx(() => [renderSlot(_ctx.$slots, "option", {
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { useCombobox } from "../../composables/use-combobox.js";
@@ -101,6 +102,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
101
102
  }),
102
103
  emits: /*@__PURE__*/ mergeModels(["create"], ["update:modelValue", "update:query"]),
103
104
  setup(__props, { expose: __expose, emit: __emit }) {
105
+ const disabled = useDisabled(() => __props.disabled);
104
106
  const emit = __emit;
105
107
  /** The selected value, or values with `multiple`. */
106
108
  const model = useModel(__props, "modelValue");
@@ -126,7 +128,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
126
128
  model,
127
129
  query,
128
130
  multiple: () => __props.multiple,
129
- disabled: () => __props.disabled,
131
+ disabled: () => disabled.value,
130
132
  filter: () => __props.filter,
131
133
  ignoreFilter: () => __props.ignoreFilter,
132
134
  creatable: () => __props.creatable,
@@ -171,7 +173,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
171
173
  ref: "control",
172
174
  "data-part": "combobox-control",
173
175
  "data-combobox-open": unref(isOpen) || void 0,
174
- "data-combobox-disabled": __props.disabled || void 0,
176
+ "data-combobox-disabled": unref(disabled) || void 0,
175
177
  style: normalizeStyle(unref(anchorStyle)),
176
178
  onClick: _cache[4] || (_cache[4] = ($event) => inputRef.value?.focus())
177
179
  }, [__props.multiple ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(selectedOptions), (option) => {
@@ -189,7 +191,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
189
191
  tabindex: "-1",
190
192
  "data-part": "combobox-chip-remove",
191
193
  "aria-label": unref(translations).removeItem(option.label),
192
- disabled: __props.disabled,
194
+ disabled: unref(disabled),
193
195
  onClick: withModifiers(($event) => unref(remove)(option.value), ["stop"])
194
196
  }, [..._cache[6] || (_cache[6] = [createElementVNode("svg", {
195
197
  viewBox: "0 0 16 16",
@@ -219,7 +221,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
219
221
  "aria-invalid": unref(isError) || void 0,
220
222
  "aria-describedby": describedByAll.value,
221
223
  placeholder: __props.multiple && unref(selectedOptions).length ? void 0 : __props.placeholder,
222
- disabled: __props.disabled,
224
+ disabled: unref(disabled),
223
225
  "data-part": "combobox-input"
224
226
  }, _ctx.$attrs, {
225
227
  onInput: _cache[1] || (_cache[1] = (...args) => unref(onInput) && unref(onInput)(...args)),
@@ -1,3 +1,4 @@
1
+ import { provideDisabled } from "../../composables/use-disabled.js";
1
2
  import { useField } from "../../composables/use-field.js";
2
3
  import _sfc_main$1 from "../field/FieldMessage.js";
3
4
  import { createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, unref } from "vue";
@@ -25,6 +26,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
25
26
  id: {}
26
27
  },
27
28
  setup(__props) {
29
+ const disabled = provideDisabled(() => __props.disabled);
28
30
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
29
31
  id: () => __props.id,
30
32
  hint: () => __props.hint,
@@ -34,7 +36,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
34
36
  return openBlock(), createElementBlock("fieldset", {
35
37
  id: unref(id),
36
38
  "data-part": "fieldset",
37
- disabled: __props.disabled || void 0,
39
+ disabled: unref(disabled) || void 0,
38
40
  "data-field-error": unref(isError) || void 0,
39
41
  "aria-describedby": unref(describedBy)
40
42
  }, [
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  hint?: string;
7
7
  /** `true` marks the group invalid; a string also shows it as the message, replacing the hint. */
8
8
  error?: string | boolean;
9
- /** Disables the group: native controls inside it too. */
9
+ /** Disables the group and every control inside it, the library's own included. An outer disabled fieldset disables it too. */
10
10
  disabled?: boolean;
11
11
  /** Id for the `<fieldset>`; generated with `useId()` when omitted. */
12
12
  id?: string;
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, renderSlot, toDisplayString, unref, useModel, useSlots, useTemplateRef, vModelDynamic, withDirectives } from "vue";
@@ -52,6 +53,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
52
53
  }),
53
54
  emits: ["update:modelValue"],
54
55
  setup(__props, { expose: __expose }) {
56
+ const disabled = useDisabled(() => __props.disabled);
55
57
  const slots = useSlots();
56
58
  /** The value. */
57
59
  const model = useModel(__props, "modelValue");
@@ -85,7 +87,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
85
87
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
86
88
  }, _ctx.$attrs, {
87
89
  type: __props.type,
88
- disabled: __props.disabled,
90
+ disabled: unref(disabled),
89
91
  "aria-invalid": unref(isError) || void 0,
90
92
  "aria-describedby": unref(describedBy),
91
93
  "data-part": "input"
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef } from "vue";
@@ -55,6 +56,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
55
56
  }),
56
57
  emits: /*@__PURE__*/ mergeModels(["complete"], ["update:modelValue"]),
57
58
  setup(__props, { expose: __expose, emit: __emit }) {
59
+ const disabled = useDisabled(() => __props.disabled);
58
60
  const emit = __emit;
59
61
  /** The code typed so far. */
60
62
  const model = useModel(__props, "modelValue");
@@ -128,7 +130,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
128
130
  createElementVNode("div", {
129
131
  "data-part": "otp",
130
132
  "data-otp-focused": focused.value || void 0,
131
- "data-otp-disabled": __props.disabled || void 0
133
+ "data-otp-disabled": unref(disabled) || void 0
132
134
  }, [createElementVNode("input", mergeProps({
133
135
  id: unref(id),
134
136
  ref: "input",
@@ -142,7 +144,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
142
144
  pattern: pattern.value
143
145
  }, _ctx.$attrs, {
144
146
  value: model.value,
145
- disabled: __props.disabled,
147
+ disabled: unref(disabled),
146
148
  "aria-invalid": unref(isError) || void 0,
147
149
  "aria-describedby": unref(describedBy),
148
150
  "data-part": "otp-input",
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, ref, toDisplayString, unref, useModel, useTemplateRef, vModelDynamic, withDirectives, withModifiers } from "vue";
@@ -71,6 +72,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
71
72
  }),
72
73
  emits: ["update:modelValue"],
73
74
  setup(__props, { expose: __expose }) {
75
+ const disabled = useDisabled(() => __props.disabled);
74
76
  /** The password. */
75
77
  const model = useModel(__props, "modelValue");
76
78
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -107,7 +109,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
107
109
  }, _ctx.$attrs, {
108
110
  type: type.value,
109
111
  autocomplete: __props.autocomplete,
110
- disabled: __props.disabled,
112
+ disabled: unref(disabled),
111
113
  "aria-invalid": unref(isError) || void 0,
112
114
  "aria-describedby": unref(describedBy),
113
115
  "data-part": "input"
@@ -116,7 +118,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
116
118
  "data-part": "password-toggle",
117
119
  "aria-label": revealed.value ? unref(translations).hidePassword : unref(translations).showPassword,
118
120
  "aria-pressed": revealed.value,
119
- disabled: __props.disabled,
121
+ disabled: unref(disabled),
120
122
  onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {}, ["prevent"])),
121
123
  onClick: toggle
122
124
  }, [revealed.value ? (openBlock(), createElementBlock("svg", _hoisted_6, [..._cache[3] || (_cache[3] = [
@@ -1,3 +1,4 @@
1
+ import { useDisabled } from "../../composables/use-disabled.js";
1
2
  import { useField } from "../../composables/use-field.js";
2
3
  import _sfc_main$1 from "../field/FieldMessage.js";
3
4
  import { useRovingSelection } from "../../composables/use-roving-selection.js";
@@ -42,6 +43,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
42
43
  }),
43
44
  emits: ["update:modelValue"],
44
45
  setup(__props) {
46
+ const disabled = useDisabled(() => __props.disabled);
45
47
  /** The selected value. */
46
48
  const model = useModel(__props, "modelValue");
47
49
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -54,7 +56,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
54
56
  const { isTabStop, select, onKeydown } = useRovingSelection({
55
57
  items: () => __props.options,
56
58
  elements: () => radioRefs.value,
57
- disabled: () => __props.disabled,
59
+ disabled: () => disabled.value,
58
60
  model
59
61
  });
60
62
  return (_ctx, _cache) => {
@@ -76,7 +78,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
76
78
  "aria-labelledby": __props.label ? labelId.value : void 0,
77
79
  "aria-describedby": unref(describedBy),
78
80
  "aria-invalid": unref(isError) || void 0,
79
- "aria-disabled": __props.disabled || void 0,
81
+ "aria-disabled": unref(disabled) || void 0,
80
82
  onKeydown: _cache[0] || (_cache[0] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
81
83
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (opt, i) => {
82
84
  return openBlock(), createElementBlock("button", {
@@ -88,7 +90,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
88
90
  "data-part": "radio",
89
91
  "aria-checked": opt.value === model.value,
90
92
  tabindex: unref(isTabStop)(opt, i) ? 0 : -1,
91
- disabled: __props.disabled || opt.disabled,
93
+ disabled: unref(disabled) || opt.disabled,
92
94
  "data-radio-checked": opt.value === model.value || void 0,
93
95
  onClick: ($event) => unref(select)(opt)
94
96
  }, [renderSlot(_ctx.$slots, "option", {
@@ -1,3 +1,4 @@
1
+ import { useDisabled } from "../../composables/use-disabled.js";
1
2
  import { useRovingSelection } from "../../composables/use-roving-selection.js";
2
3
  import { useSlideIndicator } from "../../composables/use-slide-indicator.js";
3
4
  import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeModels, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef } from "vue";
@@ -41,6 +42,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
41
42
  }),
42
43
  emits: ["update:modelValue"],
43
44
  setup(__props) {
45
+ const disabled = useDisabled(() => __props.disabled);
44
46
  /** The selected value. */
45
47
  const model = useModel(__props, "modelValue");
46
48
  const rootRef = useTemplateRef("root");
@@ -48,7 +50,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
48
50
  const { isTabStop, select, onKeydown } = useRovingSelection({
49
51
  items: () => __props.options,
50
52
  elements: () => segmentRefs.value,
51
- disabled: () => __props.disabled,
53
+ disabled: () => disabled.value,
52
54
  model
53
55
  });
54
56
  const { style, isMeasured, canAnimate } = useSlideIndicator({
@@ -67,7 +69,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
67
69
  "data-segmented-sliding": unref(isMeasured) || void 0,
68
70
  "data-segmented-animate": unref(canAnimate) || void 0,
69
71
  "aria-label": __props.label,
70
- "aria-disabled": __props.disabled || void 0,
72
+ "aria-disabled": unref(disabled) || void 0,
71
73
  onKeydown: _cache[0] || (_cache[0] = (...args) => unref(onKeydown) && unref(onKeydown)(...args))
72
74
  }, [
73
75
  createCommentVNode(" Until measured (e.g. before hydration) style the checked segment itself,\n via [data-segment-checked], so the selection is never invisible. Hiding the\n indicator with a style binding, not v-show, keeps that in the server HTML:\n directives' SSR props don't reach prebuilt render functions. "),
@@ -87,7 +89,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
87
89
  "aria-checked": option.value === model.value,
88
90
  "aria-label": __props.iconOnly ? option.label : void 0,
89
91
  tabindex: unref(isTabStop)(option, i) ? 0 : -1,
90
- disabled: __props.disabled || option.disabled,
92
+ disabled: unref(disabled) || option.disabled,
91
93
  "data-segment-checked": option.value === model.value || void 0,
92
94
  onClick: ($event) => unref(select)(option)
93
95
  }, [renderSlot(_ctx.$slots, "option", {
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { useAnchor } from "../../composables/use-popover.js";
@@ -76,6 +77,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
76
77
  }),
77
78
  emits: ["update:modelValue"],
78
79
  setup(__props) {
80
+ const disabled = useDisabled(() => __props.disabled);
79
81
  /** The selected value, or values with `multiple`. */
80
82
  const model = useModel(__props, "modelValue");
81
83
  const submittedValues = computed(() => {
@@ -97,7 +99,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
97
99
  const { isOpen, activeId, optionId, activeIndex, isSelected, selectedOptions, selectAt, setActive, onTriggerKeydown, onTriggerPointerdown } = useSelect({
98
100
  options: () => __props.options,
99
101
  multiple: () => __props.multiple,
100
- disabled: () => __props.disabled,
102
+ disabled: () => disabled.value,
101
103
  baseId: () => id.value,
102
104
  model,
103
105
  trigger: triggerRef,
@@ -140,7 +142,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
140
142
  "aria-labelledby": __props.label ? `${labelId.value} ${unref(id)}` : void 0,
141
143
  "aria-invalid": unref(isError) || void 0,
142
144
  "aria-describedby": unref(describedBy),
143
- disabled: __props.disabled,
145
+ disabled: unref(disabled),
144
146
  "data-select-open": unref(isOpen) || void 0,
145
147
  "data-select-error": unref(isError) || void 0
146
148
  }, _ctx.$attrs, {
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef } from "vue";
3
4
  //#region src/components/slider/Slider.vue
4
5
  const _hoisted_1 = ["data-orientation", "data-slider-disabled"];
@@ -39,6 +40,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
39
40
  }),
40
41
  emits: /*@__PURE__*/ mergeModels(["commit"], ["update:modelValue"]),
41
42
  setup(__props, { emit: __emit }) {
43
+ const disabled = useDisabled(() => __props.disabled);
42
44
  const emit = __emit;
43
45
  /** A number, or `[start, end]` for a range. Empty starts at `min`. */
44
46
  const model = useModel(__props, "modelValue");
@@ -86,7 +88,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
86
88
  return rootRef.value ? getComputedStyle(rootRef.value).direction === "rtl" : false;
87
89
  }
88
90
  function onKeydown(event, index) {
89
- if (__props.disabled) return;
91
+ if (disabled.value) return;
90
92
  const value = values.value[index];
91
93
  const big = __props.largeStep ?? __props.step * 10;
92
94
  const forward = isRtl() && __props.orientation === "horizontal" ? -1 : 1;
@@ -112,7 +114,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
112
114
  }
113
115
  let dragging = -1;
114
116
  function onPointerdown(event) {
115
- if (__props.disabled || event.button !== 0) return;
117
+ if (disabled.value || event.button !== 0) return;
116
118
  event.preventDefault();
117
119
  const value = valueAt(event);
118
120
  const distances = values.value.map((v) => Math.abs(v - value));
@@ -141,7 +143,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
141
143
  ref: "root",
142
144
  "data-part": "slider",
143
145
  "data-orientation": __props.orientation,
144
- "data-slider-disabled": __props.disabled || void 0,
146
+ "data-slider-disabled": unref(disabled) || void 0,
145
147
  style: normalizeStyle(rootStyle.value)
146
148
  }, [
147
149
  __props.label ? (openBlock(), createElementBlock("span", {
@@ -164,13 +166,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
164
166
  role: "slider",
165
167
  "data-part": "slider-thumb",
166
168
  "data-slider-thumb": index === 0 ? "start" : "end",
167
- tabindex: __props.disabled ? void 0 : 0,
169
+ tabindex: unref(disabled) ? void 0 : 0,
168
170
  "aria-valuemin": __props.min,
169
171
  "aria-valuemax": __props.max,
170
172
  "aria-valuenow": value,
171
173
  "aria-valuetext": __props.formatValue?.(value),
172
174
  "aria-orientation": __props.orientation,
173
- "aria-disabled": __props.disabled || void 0,
175
+ "aria-disabled": unref(disabled) || void 0,
174
176
  "aria-labelledby": __props.label && !thumbName(index) ? unref(labelId) : void 0,
175
177
  "aria-label": thumbName(index) && __props.label ? `${__props.label}, ${thumbName(index)}` : thumbName(index),
176
178
  style: normalizeStyle({ "--ui-slider-value": `${percent(value)}%` }),
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { useEventListener } from "../../composables/internal/use-event-listener.js";
@@ -52,6 +53,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
52
53
  }),
53
54
  emits: ["update:modelValue"],
54
55
  setup(__props, { expose: __expose }) {
56
+ const disabled = useDisabled(() => __props.disabled);
55
57
  /** The value. `undefined` while the input is empty. */
56
58
  const model = useModel(__props, "modelValue");
57
59
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -83,7 +85,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
83
85
  if (model.value != null) model.value = clamp(model.value);
84
86
  }
85
87
  function commit(value) {
86
- if (__props.disabled) return;
88
+ if (disabled.value) return;
87
89
  model.value = clamp(value);
88
90
  draft.value = null;
89
91
  }
@@ -123,7 +125,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
123
125
  "blur"
124
126
  ]) useEventListener(() => window, type, stopRepeat);
125
127
  function onPointerdown(event, direction) {
126
- if (event.button !== 0) return;
128
+ if (event.button !== 0 || disabled.value) return;
127
129
  if (event.currentTarget instanceof HTMLElement) event.currentTarget.setPointerCapture(event.pointerId);
128
130
  heldDirection = direction;
129
131
  nudge(direction);
@@ -147,7 +149,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
147
149
  createElementVNode("div", {
148
150
  "data-part": "spinbutton",
149
151
  "data-spinbutton-error": unref(isError) || void 0,
150
- "data-spinbutton-disabled": __props.disabled || void 0
152
+ "data-spinbutton-disabled": unref(disabled) || void 0
151
153
  }, [
152
154
  createCommentVNode(" Out of the tab order: the arrow keys on the input do the same, and the\n buttons are a pointer convenience. "),
153
155
  createElementVNode("button", {
@@ -155,7 +157,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
155
157
  tabindex: "-1",
156
158
  "aria-label": unref(translations).decrease,
157
159
  "data-part": "spinbutton-decrement",
158
- disabled: __props.disabled || atMin.value,
160
+ disabled: unref(disabled) || atMin.value,
159
161
  onPointerdown: _cache[0] || (_cache[0] = ($event) => onPointerdown($event, -1)),
160
162
  onClick: _cache[1] || (_cache[1] = ($event) => onClick($event, -1))
161
163
  }, [renderSlot(_ctx.$slots, "decrement", {}, () => [_cache[4] || (_cache[4] = createElementVNode("svg", {
@@ -180,7 +182,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
180
182
  spellcheck: "false"
181
183
  }, _ctx.$attrs, {
182
184
  value: inputValue.value,
183
- disabled: __props.disabled,
185
+ disabled: unref(disabled),
184
186
  "aria-valuenow": model.value,
185
187
  "aria-valuemin": Number.isFinite(__props.min) ? __props.min : void 0,
186
188
  "aria-valuemax": Number.isFinite(__props.max) ? __props.max : void 0,
@@ -196,7 +198,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
196
198
  tabindex: "-1",
197
199
  "aria-label": unref(translations).increase,
198
200
  "data-part": "spinbutton-increment",
199
- disabled: __props.disabled || atMax.value,
201
+ disabled: unref(disabled) || atMax.value,
200
202
  onPointerdown: _cache[2] || (_cache[2] = ($event) => onPointerdown($event, 1)),
201
203
  onClick: _cache[3] || (_cache[3] = ($event) => onClick($event, 1))
202
204
  }, [renderSlot(_ctx.$slots, "increment", {}, () => [_cache[5] || (_cache[5] = createElementVNode("svg", {
@@ -1,4 +1,5 @@
1
- import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot } from "vue";
1
+ import { useDisabled } from "../../composables/use-disabled.js";
2
+ import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, unref } from "vue";
2
3
  //#region src/components/split-button/SplitButton.vue
3
4
  const _hoisted_1 = ["data-split-variant"];
4
5
  const _hoisted_2 = ["disabled"];
@@ -19,13 +20,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
19
20
  },
20
21
  emits: ["action", "toggle"],
21
22
  setup(__props, { emit: __emit }) {
23
+ const disabled = useDisabled(() => __props.disabled);
22
24
  const emit = __emit;
23
25
  const isOpen = computed(() => __props.triggerAttrs?.["aria-expanded"] === true);
24
26
  const sharedAttrs = computed(() => ({
25
27
  "data-part": "button",
26
28
  "data-button-variant": __props.variant,
27
29
  "data-button-size": __props.size,
28
- "data-button-disabled": __props.disabled || void 0
30
+ "data-button-disabled": disabled.value || void 0
29
31
  }));
30
32
  return (_ctx, _cache) => {
31
33
  return openBlock(), createElementBlock("div", {
@@ -34,7 +36,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
34
36
  }, [createElementVNode("button", mergeProps(sharedAttrs.value, {
35
37
  type: "button",
36
38
  "data-split-part": "action",
37
- disabled: __props.disabled,
39
+ disabled: unref(disabled),
38
40
  onClick: _cache[0] || (_cache[0] = ($event) => emit("action"))
39
41
  }), [createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "default")])], 16, _hoisted_2), createElementVNode("button", mergeProps({
40
42
  ...sharedAttrs.value,
@@ -42,7 +44,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
42
44
  }, {
43
45
  type: "button",
44
46
  "data-split-part": "toggle",
45
- disabled: __props.disabled,
47
+ disabled: unref(disabled),
46
48
  "aria-label": __props.menuLabel,
47
49
  onClick: _cache[1] || (_cache[1] = ($event) => emit("toggle"))
48
50
  }), [createElementVNode("span", {
@@ -1,3 +1,4 @@
1
+ import { useDisabled } from "../../composables/use-disabled.js";
1
2
  import { useField } from "../../composables/use-field.js";
2
3
  import _sfc_main$1 from "../field/FieldMessage.js";
3
4
  import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, renderSlot, toDisplayString, unref, useModel } from "vue";
@@ -42,6 +43,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
42
43
  }),
43
44
  emits: ["update:modelValue"],
44
45
  setup(__props) {
46
+ const disabled = useDisabled(() => __props.disabled);
45
47
  /** On or off. */
46
48
  const model = useModel(__props, "modelValue");
47
49
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -59,7 +61,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
59
61
  "aria-checked": model.value,
60
62
  "aria-invalid": unref(isError) || void 0,
61
63
  "aria-describedby": unref(describedBy),
62
- disabled: __props.disabled,
64
+ disabled: unref(disabled),
63
65
  "data-switch-size": __props.size,
64
66
  "data-switch-checked": model.value || void 0,
65
67
  "data-switch-error": unref(isError) || void 0,
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, ref, renderList, toDisplayString, unref, useModel, useTemplateRef, vModelText, withDirectives, withModifiers } from "vue";
@@ -49,6 +50,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
49
50
  }),
50
51
  emits: ["update:modelValue"],
51
52
  setup(__props, { expose: __expose }) {
53
+ const disabled = useDisabled(() => __props.disabled);
52
54
  /** The tags. */
53
55
  const model = useModel(__props, "modelValue");
54
56
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -63,7 +65,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
63
65
  const isFull = computed(() => __props.max != null && tags.value.length >= __props.max);
64
66
  /** Adds every non-empty part until `max` is reached. Duplicates are kept. */
65
67
  function add(parts) {
66
- if (__props.disabled) return;
68
+ if (disabled.value) return;
67
69
  const fresh = parts.map((part) => part.trim()).filter(Boolean);
68
70
  if (!fresh.length) return;
69
71
  const room = __props.max == null ? fresh.length : Math.max(__props.max - tags.value.length, 0);
@@ -77,7 +79,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
77
79
  add([value]);
78
80
  }
79
81
  function removeAt(index) {
80
- if (__props.disabled || index < 0) return;
82
+ if (disabled.value || index < 0) return;
81
83
  model.value = tags.value.filter((_, i) => i !== index);
82
84
  inputRef.value?.focus();
83
85
  }
@@ -85,7 +87,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
85
87
  removeAt(tags.value.indexOf(tag));
86
88
  }
87
89
  function onKeydown(event) {
88
- if (__props.disabled) return;
90
+ if (disabled.value) return;
89
91
  if (event.key === "Enter" || event.key === ",") {
90
92
  event.preventDefault();
91
93
  commit();
@@ -117,7 +119,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
117
119
  }, [createTextVNode(toDisplayString(__props.label), 1), __props.optional ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(` ${unref(translations).optional}`), 1)) : createCommentVNode("v-if", true)], 8, _hoisted_2)) : createCommentVNode("v-if", true),
118
120
  createElementVNode("div", {
119
121
  "data-part": "tag-input-control",
120
- "data-tag-input-disabled": __props.disabled || void 0,
122
+ "data-tag-input-disabled": unref(disabled) || void 0,
121
123
  "data-tag-input-full": isFull.value || void 0,
122
124
  onClick: _cache[1] || (_cache[1] = ($event) => inputRef.value?.focus())
123
125
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(tags.value, (tag, index) => {
@@ -128,7 +130,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
128
130
  type: "button",
129
131
  "data-part": "tag-input-chip-remove",
130
132
  "aria-label": unref(translations).removeItem(tag),
131
- disabled: __props.disabled,
133
+ disabled: unref(disabled),
132
134
  onClick: withModifiers(($event) => remove(tag), ["stop"])
133
135
  }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
134
136
  viewBox: "0 0 16 16",
@@ -150,7 +152,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
150
152
  type: "text",
151
153
  autocomplete: "off",
152
154
  placeholder: __props.placeholder,
153
- disabled: __props.disabled,
155
+ disabled: unref(disabled),
154
156
  "aria-invalid": unref(isError) || void 0,
155
157
  "aria-describedby": unref(describedBy),
156
158
  "data-part": "tag-input",
@@ -1,4 +1,5 @@
1
1
  import { useTranslations } from "../../config.js";
2
+ import { useDisabled } from "../../composables/use-disabled.js";
2
3
  import { useField } from "../../composables/use-field.js";
3
4
  import _sfc_main$1 from "../field/FieldMessage.js";
4
5
  import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, openBlock, toDisplayString, unref, useModel, useTemplateRef, vModelText, withDirectives } from "vue";
@@ -47,6 +48,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
47
48
  }),
48
49
  emits: ["update:modelValue"],
49
50
  setup(__props, { expose: __expose }) {
51
+ const disabled = useDisabled(() => __props.disabled);
50
52
  /** The value. */
51
53
  const model = useModel(__props, "modelValue");
52
54
  const { id, hintId, errorId, isError, errorMessage, describedBy } = useField({
@@ -88,7 +90,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
88
90
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
89
91
  rows: __props.rows
90
92
  }, _ctx.$attrs, {
91
- disabled: __props.disabled,
93
+ disabled: unref(disabled),
92
94
  maxlength: __props.maxLength,
93
95
  "aria-invalid": unref(isError) || isOverLimit.value || void 0,
94
96
  "aria-describedby": describedByAll.value,
@@ -1,4 +1,5 @@
1
- import { createElementBlock, defineComponent, mergeModels, openBlock, renderSlot, useModel } from "vue";
1
+ import { useDisabled } from "../../composables/use-disabled.js";
2
+ import { createElementBlock, defineComponent, mergeModels, openBlock, renderSlot, unref, useModel } from "vue";
2
3
  //#region src/components/toggle/Toggle.vue
3
4
  const _hoisted_1 = [
4
5
  "data-toggle-pressed",
@@ -23,6 +24,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
23
24
  }),
24
25
  emits: ["update:modelValue"],
25
26
  setup(__props) {
27
+ const disabled = useDisabled(() => __props.disabled);
26
28
  /** Whether the button is pressed. */
27
29
  const model = useModel(__props, "modelValue");
28
30
  return (_ctx, _cache) => {
@@ -31,7 +33,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
31
33
  "data-part": "toggle",
32
34
  "data-toggle-pressed": model.value || void 0,
33
35
  "aria-pressed": model.value,
34
- disabled: __props.disabled,
36
+ disabled: unref(disabled),
35
37
  "aria-label": __props.label,
36
38
  onClick: _cache[0] || (_cache[0] = ($event) => model.value = !model.value)
37
39
  }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1);
@@ -1,5 +1,6 @@
1
+ import { useDisabled } from "../../composables/use-disabled.js";
1
2
  import _sfc_main$1 from "../toggle/Toggle.js";
2
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, mergeModels, openBlock, renderList, renderSlot, toDisplayString, useModel, withCtx } from "vue";
3
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, mergeModels, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, withCtx } from "vue";
3
4
  //#region src/components/toggle-group/ToggleGroup.vue
4
5
  const _hoisted_1 = [
5
6
  "aria-label",
@@ -30,6 +31,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
30
31
  }),
31
32
  emits: ["update:modelValue"],
32
33
  setup(__props) {
34
+ const disabled = useDisabled(() => __props.disabled);
33
35
  /** The pressed value; with `multiple`, an array of pressed values. */
34
36
  const model = useModel(__props, "modelValue");
35
37
  const singleValue = computed(() => Array.isArray(model.value) ? void 0 : model.value);
@@ -56,13 +58,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
56
58
  "aria-label": __props.label,
57
59
  "data-orientation": __props.orientation,
58
60
  "data-field-name": __props.name,
59
- "data-toggle-group-disabled": __props.disabled || void 0
61
+ "data-toggle-group-disabled": unref(disabled) || void 0
60
62
  }, [
61
63
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
62
64
  return openBlock(), createBlock(_sfc_main$1, {
63
65
  key: option.value,
64
66
  "model-value": isPressed(option.value),
65
- disabled: __props.disabled || option.disabled,
67
+ disabled: unref(disabled) || option.disabled,
66
68
  "onUpdate:modelValue": (on) => toggle(option.value, on)
67
69
  }, {
68
70
  default: withCtx(() => [renderSlot(_ctx.$slots, "option", {
@@ -0,0 +1,10 @@
1
+ import { ComputedRef, InjectionKey } from "vue";
2
+ //#region src/composables/use-disabled.d.ts
3
+ /**
4
+ * Whether the nearest `Fieldset` is disabled. A native `<fieldset disabled>` only reaches native controls; the library's
5
+ * controls built on buttons and pointer handlers read this instead. Custom controls can too: `useDisabled`.
6
+ */
7
+ export declare const FieldsetDisabledKey: InjectionKey<ComputedRef<boolean>>;
8
+ /** A control's own `disabled`, or a disabled fieldset around it: either locks it, and its own `false` can't unlock it. */
9
+ export declare function useDisabled(own: () => boolean | undefined): ComputedRef<boolean>;
10
+ //#endregion
@@ -0,0 +1,20 @@
1
+ import { computed, inject, provide } from "vue";
2
+ //#region src/composables/use-disabled.ts
3
+ /**
4
+ * Whether the nearest `Fieldset` is disabled. A native `<fieldset disabled>` only reaches native controls; the library's
5
+ * controls built on buttons and pointer handlers read this instead. Custom controls can too: `useDisabled`.
6
+ */
7
+ const FieldsetDisabledKey = Symbol("ui-fieldset-disabled");
8
+ /** A control's own `disabled`, or a disabled fieldset around it: either locks it, and its own `false` can't unlock it. */
9
+ function useDisabled(own) {
10
+ const inherited = inject(FieldsetDisabledKey, null);
11
+ return computed(() => Boolean(own()) || Boolean(inherited?.value));
12
+ }
13
+ /** For `Fieldset`: its own `disabled`, or an outer fieldset's, passed on to everything inside it. */
14
+ function provideDisabled(own) {
15
+ const disabled = useDisabled(own);
16
+ provide(FieldsetDisabledKey, disabled);
17
+ return disabled;
18
+ }
19
+ //#endregion
20
+ export { FieldsetDisabledKey, provideDisabled, useDisabled };
@@ -2,6 +2,16 @@
2
2
 
3
3
  > What changed in each release.
4
4
 
5
+ ## 0.4.1 (2026-11-24)
6
+
7
+ - chore: bump version to 0.4.1 in package.json
8
+ - fix: popovers and menus hide with their anchor through position-visibility: anchor-visible, the singular spelling; Chrome deprecated anchors-visible and warned on every page
9
+
10
+ ## 0.4.0 (2026-11-20)
11
+
12
+ - chore: bump version to 0.4.0 in package.json
13
+ - feat: a disabled Fieldset locks every control inside it, the library's own too. Spin buttons, selects, comboboxes, radio and toggle groups, checkboxes, switches, sliders, tag and OTP inputs, segmented controls and buttons take on their disabled state and ignore pointer and keys; before, only native controls were locked, and the spin button and select still acted on a press. A control's own disabled: false can't unlock it, fieldsets nest, and links inside still work. Custom controls can follow it with useDisabled (FieldsetDisabledKey is exported)
14
+
5
15
  ## 0.3.0 (2026-11-12)
6
16
 
7
17
  - Feat/command palette (#4)
@@ -81,7 +81,7 @@ const options = [
81
81
  | `label` | `string` | — | Visible group label, which names the fieldset. |
82
82
  | `hint` | `string` | — | Help text under the legend, announced as the group's description. |
83
83
  | `error` | `string \| boolean` | — | `true` marks the group invalid; a string also shows it as the message, replacing the hint. |
84
- | `disabled` | `boolean` | `false` | Disables every checkbox. |
84
+ | `disabled` | `boolean` | — | Disables every checkbox. |
85
85
  | `orientation` | `"horizontal" \| "vertical"` | `"vertical"` | Layout hook, exposed as `data-orientation`. |
86
86
  | `name` | `string` | — | Form field name: submits the checked values with a native form, via hidden inputs. |
87
87
  | `modelValue` | `T[]` | — | The checked values. |
@@ -90,7 +90,7 @@ const tried = ref(false);
90
90
  | Prop | Type | Default | Description |
91
91
  | --- | --- | --- | --- |
92
92
  | `label` | `string` | — | Text next to the box. The default slot overrides it. |
93
- | `disabled` | `boolean` | `false` | Disables the checkbox. |
93
+ | `disabled` | `boolean` | — | Disables the checkbox. |
94
94
  | `indeterminate` | `boolean` | `false` | Shows the mixed state, e.g. for a "select all" with some rows picked. |
95
95
  | `value` | `string \| number` | — | With an array `v-model`, this value is added/removed when toggled. |
96
96
  | `hint` | `string` | — | Help text under the checkbox, announced as its description. |
@@ -143,7 +143,7 @@ const { data: results, pending } = useAsyncData(
143
143
  | `multiple` | `boolean` | `false` | Pick several; `v-model` becomes an array, shown as chips. Backspace removes the last one. |
144
144
  | `creatable` | `boolean` | `false` | Enter on text matching no option emits `create` with it. |
145
145
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
146
- | `disabled` | `boolean` | `false` | Disables the control. |
146
+ | `disabled` | `boolean` | — | Disables the control. |
147
147
  | `filter` | `ComboboxFilter<T>` | — | Custom match for each option against the lower-cased query. By default, labels are ranked exact, then prefix, then substring. |
148
148
  | `ignoreFilter` | `boolean` | `false` | Show `options` as given, without filtering, e.g. results from a search request. |
149
149
  | `loading` | `boolean` | `false` | Options are being fetched: shows the `loading` translation and marks the list busy. |
@@ -22,18 +22,27 @@ const city = ref("");
22
22
 
23
23
  ### Disabled
24
24
 
25
- A disabled `<fieldset>` disables the native controls inside it.
25
+ A disabled fieldset locks every control inside it: native ones, and the library's own (spin buttons, selects, radio and toggle groups, buttons…), which take on their disabled look and ignore pointer and keys. Links inside it still work, as in a native fieldset.
26
26
 
27
27
  ```vue
28
28
  <script setup lang="ts">
29
29
  const street = ref("12 Baker Street");
30
30
  const city = ref("London");
31
+ const parcels = ref(2);
32
+ const speed = ref("standard");
33
+ const speeds = [
34
+ { label: "Standard", value: "standard" },
35
+ { label: "Express", value: "express" },
36
+ ];
31
37
  </script>
32
38
 
33
39
  <template>
34
40
  <UiFieldset class="demo-form" legend="Shipping address" disabled>
35
41
  <UiInput v-model="street" label="Street" />
36
42
  <UiInput v-model="city" label="City" />
43
+ <UiSpinButton v-model="parcels" label="Parcels" :min="1" />
44
+ <UiRadioGroup v-model="speed" label="Speed" :options="speeds" />
45
+ <UiButton>Save address</UiButton>
37
46
  </UiFieldset>
38
47
  </template>
39
48
  ```
@@ -45,7 +54,7 @@ const city = ref("London");
45
54
  | `legend` | `string` | — | Text inside the `<legend>`, naming the group. |
46
55
  | `hint` | `string` | — | Help text under the legend, announced as the group's description. |
47
56
  | `error` | `string \| boolean` | — | `true` marks the group invalid; a string also shows it as the message, replacing the hint. |
48
- | `disabled` | `boolean` | `false` | Disables the group: native controls inside it too. |
57
+ | `disabled` | `boolean` | — | Disables the group and every control inside it, the library's own included. An outer disabled fieldset disables it too. |
49
58
  | `id` | `string` | — | Id for the `<fieldset>`; generated with `useId()` when omitted. |
50
59
 
51
60
  | Slot | Props | Description |
@@ -62,4 +71,5 @@ const city = ref("London");
62
71
 
63
72
  - It's a native `<fieldset>` with a `<legend>`, so assistive tech announces the group's name with every control inside it.
64
73
  - `hint` and `error` are the fieldset's description: `aria-describedby` points at the message.
65
- - Native `<fieldset disabled>` only disables native controls. Components built on buttons (e.g. a segmented control) need their own `disabled`.
74
+ - `disabled` is the native attribute, so native controls inside are disabled by the browser. The library's controls read it too (an injected `FieldsetDisabledKey`), so components built on buttons are locked without a `disabled` of their own. A control's own `disabled: false` can't unlock it, and an outer disabled fieldset disables the ones inside it.
75
+ - A custom control can follow it: `const disabled = useDisabled(() => props.disabled)` is its own `disabled` or the fieldset's.
@@ -63,7 +63,7 @@ const error = computed(() =>
63
63
  | `prefix` | `string` | — | Text shown before the input, e.g. a currency sign. Hidden from assistive tech. |
64
64
  | `suffix` | `string` | — | Text shown after the input, e.g. a unit. Hidden from assistive tech. |
65
65
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
66
- | `disabled` | `boolean` | `false` | Disables the control. |
66
+ | `disabled` | `boolean` | — | Disables the control. |
67
67
  | `type` | `"date" \| "datetime-local" \| "email" \| "month" \| "number" \| "password" \| "search" \| "tel" \| "text" \| "time" \| "url" \| "week"` | `"text"` | Native input type. |
68
68
  | `size` | `"medium" \| "small"` | `"medium"` | Size hook, exposed as `data-field-size`. |
69
69
  | `id` | `string` | — | Id for the control; generated with `useId()` when omitted. |
@@ -67,7 +67,7 @@ function verify(value: string) {
67
67
  | `type` | `"alphanumeric" \| "numeric"` | `"numeric"` | `"numeric"` takes digits and shows the number pad; `"alphanumeric"` takes letters too. |
68
68
  | `groupSize` | `number` | — | Puts a separator after every this many slots, e.g. `3` for `123–456`. |
69
69
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
70
- | `disabled` | `boolean` | `false` | Disables the control. |
70
+ | `disabled` | `boolean` | — | Disables the control. |
71
71
  | `id` | `string` | — | Id for the control; generated with `useId()` when omitted. |
72
72
  | `modelValue` | `string` | `""` | The code typed so far. |
73
73
 
@@ -31,7 +31,7 @@ const password = ref("");
31
31
  | `hint` | `string` | — | Help text under the control, announced as its description. |
32
32
  | `error` | `string \| boolean` | — | `true` marks the control invalid; a string also shows it as the message, replacing the hint. |
33
33
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
34
- | `disabled` | `boolean` | `false` | Disables the control and its reveal button. |
34
+ | `disabled` | `boolean` | — | Disables the control and its reveal button. |
35
35
  | `autocomplete` | `string` | `"current-password"` | Value of the native `autocomplete` attribute, e.g. `new-password` on a sign-up form. |
36
36
  | `id` | `string` | — | Id for the control; generated with `useId()` when omitted. |
37
37
  | `modelValue` | `string` | — | The password. |
@@ -70,7 +70,7 @@ const plans = [
70
70
  | `label` | `string` | — | Visible group label, which names the radiogroup. |
71
71
  | `hint` | `string` | — | Help text under the control, announced as its description. |
72
72
  | `error` | `string \| boolean` | — | `true` marks the control invalid; a string also shows it as the message, replacing the hint. |
73
- | `disabled` | `boolean` | `false` | Disables the control. |
73
+ | `disabled` | `boolean` | — | Disables the control. |
74
74
  | `orientation` | `"horizontal" \| "vertical"` | `"vertical"` | Layout hook, exposed as `data-orientation` and `aria-orientation`. |
75
75
  | `name` | `string` | — | Form field name: submits the value with a native form, via hidden inputs. |
76
76
  | `id` | `string` | — | Id for the control; generated with `useId()` when omitted. |
@@ -51,7 +51,7 @@ const styles = [
51
51
  | `label` | `string` | — | Accessible name for the group. |
52
52
  | `size` | `"medium" \| "small"` | `"medium"` | Size hook, exposed as `data-segmented-size`. |
53
53
  | `iconOnly` | `boolean` | `false` | Segments render only the `option` slot (e.g. an icon); labels become their accessible names. |
54
- | `disabled` | `boolean` | `false` | Disables every segment. |
54
+ | `disabled` | `boolean` | — | Disables every segment. |
55
55
  | `name` | `string` | — | Form field name: submits the value with a native form, via hidden inputs. |
56
56
  | `modelValue` | `T` | — | The selected value. |
57
57
 
@@ -78,7 +78,7 @@ const colorOf = (value: string | number) => options.find((o) => o.value === valu
78
78
  | `placeholder` | `string` | `"Select an option"` | Shown when nothing is selected. |
79
79
  | `multiple` | `boolean` | `false` | Allow several selections; `v-model` becomes an array and the list stays open while picking. |
80
80
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
81
- | `disabled` | `boolean` | `false` | Disables the control. |
81
+ | `disabled` | `boolean` | — | Disables the control. |
82
82
  | `label` | `string` | — | Visible label, linked to the control. |
83
83
  | `hint` | `string` | — | Help text under the control, announced as its description. |
84
84
  | `name` | `string` | — | Form field name: submits the value with a native form, via hidden inputs. |
@@ -67,7 +67,7 @@ const treble = ref(-2);
67
67
  | `step` | `number` | `1` | Arrow-key increment. Values snap to it. |
68
68
  | `largeStep` | `number` | — | PageUp/PageDown increment. Defaults to ten steps. |
69
69
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Layout hook, exposed as `data-orientation` and `aria-orientation`. |
70
- | `disabled` | `boolean` | `false` | Disables the slider. |
70
+ | `disabled` | `boolean` | — | Disables the slider. |
71
71
  | `label` | `string` | — | Visible label, which names the thumb(s). |
72
72
  | `thumbLabels` | `[string, string]` | — | Accessible names for the two thumbs of a range. Default to `rangeStart` / `rangeEnd`. |
73
73
  | `formatValue` | `((value: number) => string)` | — | Text for `aria-valuetext`, e.g. `(v) => \`${v}%\``. |
@@ -41,7 +41,7 @@ const opacity = ref(0.8);
41
41
  | `hint` | `string` | — | Help text under the control, announced as its description. |
42
42
  | `label` | `string` | — | Visible label, linked to the control. |
43
43
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
44
- | `disabled` | `boolean` | `false` | Disables the control. |
44
+ | `disabled` | `boolean` | — | Disables the control. |
45
45
  | `error` | `string \| boolean` | — | `true` marks the control invalid; a string also shows it as the message, replacing the hint. |
46
46
  | `modelValue` | `number` | — | The value. `undefined` while the input is empty. |
47
47
 
@@ -42,7 +42,7 @@ const options = [
42
42
  | `triggerAttrs` | `Record<string, unknown>` | — | The `attrs` from a `<Menu>` or `<Popover>` trigger slot, bound to the toggle half. |
43
43
  | `variant` | `"danger" \| "ghost" \| "primary" \| "secondary" \| "solid"` | `"secondary"` | Style hook, exposed as `data-button-variant` on both halves. |
44
44
  | `size` | `"medium" \| "small"` | `"medium"` | Size hook, exposed as `data-button-size` on both halves. |
45
- | `disabled` | `boolean` | `false` | Disables both halves. |
45
+ | `disabled` | `boolean` | — | Disables both halves. |
46
46
 
47
47
  | Event | Payload | Description |
48
48
  | --- | --- | --- |
@@ -41,7 +41,7 @@ const digest = ref(true);
41
41
 
42
42
  | Prop | Type | Default | Description |
43
43
  | --- | --- | --- | --- |
44
- | `disabled` | `boolean` | `false` | Disables the switch. |
44
+ | `disabled` | `boolean` | — | Disables the switch. |
45
45
  | `label` | `string` | — | Text next to the switch. The default slot overrides it. |
46
46
  | `size` | `"medium" \| "small"` | `"medium"` | Size hook, exposed as `data-switch-size`. |
47
47
  | `hint` | `string` | — | Help text under the switch, announced as its description. |
@@ -56,7 +56,7 @@ const topics = ref(["vue", "css"]);
56
56
  | `hint` | `string` | — | Help text under the control, announced as its description. |
57
57
  | `error` | `string \| boolean` | — | `true` marks the control invalid; a string also shows it as the message, replacing the hint. |
58
58
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
59
- | `disabled` | `boolean` | `false` | Disables the control and its remove buttons. |
59
+ | `disabled` | `boolean` | — | Disables the control and its remove buttons. |
60
60
  | `placeholder` | `string` | — | Placeholder for the text field. |
61
61
  | `max` | `number` | — | Most tags allowed; unlimited when omitted. |
62
62
  | `name` | `string` | — | Form field name: submits one hidden input per tag. |
@@ -27,7 +27,7 @@ const bio = ref("Building the web for humans.");
27
27
  | `error` | `string \| boolean` | — | `true` marks the control invalid; a string also shows it as the message, replacing the hint. |
28
28
  | `maxLength` | `number` | — | Character limit. Shows a live counter and flags values already over it. |
29
29
  | `optional` | `boolean` | `false` | Appends the `optional` translation to the label. |
30
- | `disabled` | `boolean` | `false` | Disables the control. |
30
+ | `disabled` | `boolean` | — | Disables the control. |
31
31
  | `rows` | `number` | `4` | Visible text lines. |
32
32
  | `id` | `string` | — | Id for the control; generated with `useId()` when omitted. |
33
33
  | `modelValue` | `string` | — | The value. |
@@ -80,7 +80,7 @@ const someDisabled = [
80
80
  | `label` | `string` | — | Accessible name for the group. |
81
81
  | `multiple` | `boolean` | `false` | Allow several options pressed at once; the model is then an array. |
82
82
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Layout hook, exposed as `data-orientation`. |
83
- | `disabled` | `boolean` | `false` | Disables every toggle. |
83
+ | `disabled` | `boolean` | — | Disables every toggle. |
84
84
  | `name` | `string` | — | Form field name: submits the pressed value with a native form, via hidden inputs. |
85
85
  | `modelValue` | `T \| T[]` | — | The pressed value; with `multiple`, an array of pressed values. |
86
86
 
@@ -52,7 +52,7 @@ const italic = ref(true);
52
52
 
53
53
  | Prop | Type | Default | Description |
54
54
  | --- | --- | --- | --- |
55
- | `disabled` | `boolean` | `false` | Disables the toggle. |
55
+ | `disabled` | `boolean` | — | Disables the toggle. |
56
56
  | `label` | `string` | — | Accessible name when the content is only an icon; otherwise the slot content names it. |
57
57
  | `modelValue` | `boolean` | `false` | Whether the button is pressed. |
58
58
 
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ import { UiTranslations, UiTranslationsInput, defaultTranslations } from "./tran
45
45
  import { UI_CONFIG_KEY, UiConfig, UiOptions, createUi, useTranslations, useUiConfig } from "./config.js";
46
46
  import { ACCORDION_KEY, AccordionContext, useAccordionItem } from "./composables/use-accordion.js";
47
47
  import { CommandSection, useCommandPalette } from "./composables/use-command-palette.js";
48
+ import { FieldsetDisabledKey, useDisabled } from "./composables/use-disabled.js";
48
49
  import { FieldSource, useField } from "./composables/use-field.js";
49
50
  import { StandardSchemaV1 } from "./composables/internal/standard-schema.js";
50
51
  import { FormErrors, FormValues, UseFormOptions, useForm } from "./composables/use-form.js";
@@ -61,4 +62,4 @@ declare module "vue" {
61
62
  function initDirectivesForSSR(): void;
62
63
  }
63
64
  //#endregion
64
- export { ACCORDION_KEY, _default as Accordion, type AccordionContext, _default$1 as AccordionItem, _default$2 as Avatar, _default$3 as AvatarGroup, type AvatarItem, type AvatarSize, type BreadcrumbItem, _default$4 as Breadcrumbs, _default$5 as Button, type ButtonSize, type ButtonType, type ButtonVariant, _default$6 as Checkbox, _default$7 as CheckboxGroup, _default$8 as Combobox, type ComboboxFilter, type CommandItem, _default$9 as CommandPalette, type CommandSection, _default$10 as ConfirmDialog, _default$11 as ContextMenu, _default$12 as Dialog, type FieldSource, _default$13 as Fieldset, type FormErrors, type FormValues, _default$14 as IconButton, _default$15 as Input, _default$16 as Kbd, type KeyCap, type LinkTarget, type LinkTo, _default$17 as Menu, type MenuEntry, type MenuItem, type MenuSeparator, _default$18 as OtpInput, _default$19 as Pagination, _default$20 as PasswordInput, type Platform, _default$21 as Popover, _default$22 as Progress, _default$23 as RadioGroup, _default$24 as Segmented, _default$25 as Select, type SelectOption, type SelectValue, _default$26 as Slider, _default$27 as SpinButton, _default$28 as SplitButton, type StandardSchemaV1, _default$29 as Switch, TOASTER_KEY, _default$30 as Table, type TableColumn, type TableSort, _default$31 as Tabs, _default$32 as TagInput, _default$33 as Textarea, type Toast, type ToastAction, _default$34 as ToastItem, type ToastOptions, type ToastTone, _default$35 as ToastViewport, type Toaster, _default$36 as Toggle, _default$37 as ToggleGroup, _default$38 as Toolbar, _default$39 as Tooltip, UI_CONFIG_KEY, type UiConfig, type UiOptions, type UiTranslations, type UiTranslationsInput, type UseFormOptions, _default$40 as VisuallyHidden, createToaster, createUi, defaultTranslations, firstFocusable, isMenuSeparator, matchesChord, parseChord, platformFrom, useAccordionItem, useAnchor, useCombobox, useCommandPalette, useField, useForm, useMenu, usePlatform, usePopoverState, useRovingSelection, useSelect, useSlideIndicator, useToast, useTranslations, useUiConfig };
65
+ export { ACCORDION_KEY, _default as Accordion, type AccordionContext, _default$1 as AccordionItem, _default$2 as Avatar, _default$3 as AvatarGroup, type AvatarItem, type AvatarSize, type BreadcrumbItem, _default$4 as Breadcrumbs, _default$5 as Button, type ButtonSize, type ButtonType, type ButtonVariant, _default$6 as Checkbox, _default$7 as CheckboxGroup, _default$8 as Combobox, type ComboboxFilter, type CommandItem, _default$9 as CommandPalette, type CommandSection, _default$10 as ConfirmDialog, _default$11 as ContextMenu, _default$12 as Dialog, type FieldSource, _default$13 as Fieldset, FieldsetDisabledKey, type FormErrors, type FormValues, _default$14 as IconButton, _default$15 as Input, _default$16 as Kbd, type KeyCap, type LinkTarget, type LinkTo, _default$17 as Menu, type MenuEntry, type MenuItem, type MenuSeparator, _default$18 as OtpInput, _default$19 as Pagination, _default$20 as PasswordInput, type Platform, _default$21 as Popover, _default$22 as Progress, _default$23 as RadioGroup, _default$24 as Segmented, _default$25 as Select, type SelectOption, type SelectValue, _default$26 as Slider, _default$27 as SpinButton, _default$28 as SplitButton, type StandardSchemaV1, _default$29 as Switch, TOASTER_KEY, _default$30 as Table, type TableColumn, type TableSort, _default$31 as Tabs, _default$32 as TagInput, _default$33 as Textarea, type Toast, type ToastAction, _default$34 as ToastItem, type ToastOptions, type ToastTone, _default$35 as ToastViewport, type Toaster, _default$36 as Toggle, _default$37 as ToggleGroup, _default$38 as Toolbar, _default$39 as Tooltip, UI_CONFIG_KEY, type UiConfig, type UiOptions, type UiTranslations, type UiTranslationsInput, type UseFormOptions, _default$40 as VisuallyHidden, createToaster, createUi, defaultTranslations, firstFocusable, isMenuSeparator, matchesChord, parseChord, platformFrom, useAccordionItem, useAnchor, useCombobox, useCommandPalette, useDisabled, useField, useForm, useMenu, usePlatform, usePopoverState, useRovingSelection, useSelect, useSlideIndicator, useToast, useTranslations, useUiConfig };
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ import { defaultTranslations } from "./translations.js";
7
7
  import { UI_CONFIG_KEY, createUi, useTranslations, useUiConfig } from "./config.js";
8
8
  import _sfc_main$3 from "./components/avatar/AvatarGroup.js";
9
9
  import _sfc_main$4 from "./components/breadcrumbs/Breadcrumbs.js";
10
+ import { FieldsetDisabledKey, useDisabled } from "./composables/use-disabled.js";
10
11
  import _sfc_main$5 from "./components/button/Button.js";
11
12
  import _sfc_main$14 from "./components/button/IconButton.js";
12
13
  import { useField } from "./composables/use-field.js";
@@ -57,4 +58,4 @@ import { initDirectivesForSSR } from "vue";
57
58
  //#region src/index.ts
58
59
  initDirectivesForSSR();
59
60
  //#endregion
60
- export { ACCORDION_KEY, _sfc_main as Accordion, _sfc_main$1 as AccordionItem, _sfc_main$2 as Avatar, _sfc_main$3 as AvatarGroup, _sfc_main$4 as Breadcrumbs, _sfc_main$5 as Button, _sfc_main$6 as Checkbox, _sfc_main$7 as CheckboxGroup, _sfc_main$8 as Combobox, _sfc_main$9 as CommandPalette, _sfc_main$10 as ConfirmDialog, _sfc_main$11 as ContextMenu, _sfc_main$12 as Dialog, _sfc_main$13 as Fieldset, _sfc_main$14 as IconButton, _sfc_main$15 as Input, _sfc_main$16 as Kbd, _sfc_main$17 as Menu, _sfc_main$18 as OtpInput, _sfc_main$19 as Pagination, _sfc_main$20 as PasswordInput, _sfc_main$21 as Popover, _sfc_main$22 as Progress, _sfc_main$23 as RadioGroup, _sfc_main$24 as Segmented, _sfc_main$25 as Select, _sfc_main$26 as Slider, _sfc_main$27 as SpinButton, _sfc_main$28 as SplitButton, _sfc_main$29 as Switch, TOASTER_KEY, _sfc_main$30 as Table, _sfc_main$31 as Tabs, _sfc_main$32 as TagInput, _sfc_main$33 as Textarea, _sfc_main$34 as ToastItem, _sfc_main$35 as ToastViewport, _sfc_main$36 as Toggle, _sfc_main$37 as ToggleGroup, _sfc_main$38 as Toolbar, _sfc_main$39 as Tooltip, UI_CONFIG_KEY, _sfc_main$40 as VisuallyHidden, createToaster, createUi, defaultTranslations, firstFocusable, isMenuSeparator, matchesChord, parseChord, platformFrom, useAccordionItem, useAnchor, useCombobox, useCommandPalette, useField, useForm, useMenu, usePlatform, usePopoverState, useRovingSelection, useSelect, useSlideIndicator, useToast, useTranslations, useUiConfig };
61
+ export { ACCORDION_KEY, _sfc_main as Accordion, _sfc_main$1 as AccordionItem, _sfc_main$2 as Avatar, _sfc_main$3 as AvatarGroup, _sfc_main$4 as Breadcrumbs, _sfc_main$5 as Button, _sfc_main$6 as Checkbox, _sfc_main$7 as CheckboxGroup, _sfc_main$8 as Combobox, _sfc_main$9 as CommandPalette, _sfc_main$10 as ConfirmDialog, _sfc_main$11 as ContextMenu, _sfc_main$12 as Dialog, _sfc_main$13 as Fieldset, FieldsetDisabledKey, _sfc_main$14 as IconButton, _sfc_main$15 as Input, _sfc_main$16 as Kbd, _sfc_main$17 as Menu, _sfc_main$18 as OtpInput, _sfc_main$19 as Pagination, _sfc_main$20 as PasswordInput, _sfc_main$21 as Popover, _sfc_main$22 as Progress, _sfc_main$23 as RadioGroup, _sfc_main$24 as Segmented, _sfc_main$25 as Select, _sfc_main$26 as Slider, _sfc_main$27 as SpinButton, _sfc_main$28 as SplitButton, _sfc_main$29 as Switch, TOASTER_KEY, _sfc_main$30 as Table, _sfc_main$31 as Tabs, _sfc_main$32 as TagInput, _sfc_main$33 as Textarea, _sfc_main$34 as ToastItem, _sfc_main$35 as ToastViewport, _sfc_main$36 as Toggle, _sfc_main$37 as ToggleGroup, _sfc_main$38 as Toolbar, _sfc_main$39 as Tooltip, UI_CONFIG_KEY, _sfc_main$40 as VisuallyHidden, createToaster, createUi, defaultTranslations, firstFocusable, isMenuSeparator, matchesChord, parseChord, platformFrom, useAccordionItem, useAnchor, useCombobox, useCommandPalette, useDisabled, useField, useForm, useMenu, usePlatform, usePopoverState, useRovingSelection, useSelect, useSlideIndicator, useToast, useTranslations, useUiConfig };
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.3.0";
2
+ var version = "0.4.1";
3
3
  //#endregion
4
4
  export { version };
@@ -19,7 +19,7 @@
19
19
  flip-block,
20
20
  flip-inline,
21
21
  flip-block flip-inline;
22
- position-visibility: anchors-visible;
22
+ position-visibility: anchor-visible;
23
23
  }
24
24
 
25
25
  [data-part="popover"][data-popover-align="end"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanonlyweb/ui",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Headless, accessible, SSR-safe Vue components.",
5
5
  "keywords": [
6
6
  "a11y",