@vuetify/nightly 3.6.5-master.2024-05-13 → 3.6.5-master.2024-05-14

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.6.5-master.2024-05-13
2
+ * Vuetify v3.6.5-master.2024-05-14
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -11138,6 +11138,7 @@ const VMenu = genericComponent()({
11138
11138
  function onKeydown(e) {
11139
11139
  if (props.disabled) return;
11140
11140
  if (e.key === 'Tab' || e.key === 'Enter' && !props.closeOnContentClick) {
11141
+ if (e.key === 'Enter' && e.target instanceof HTMLTextAreaElement) return;
11141
11142
  if (e.key === 'Enter') e.preventDefault();
11142
11143
  const nextElement = getNextElement(focusableChildren(overlay.value?.contentEl, false), e.shiftKey ? 'prev' : 'next', el => el.tabIndex >= 0);
11143
11144
  if (!nextElement) {
@@ -26172,6 +26173,7 @@ const VSwitch = genericComponent()({
26172
26173
  blur
26173
26174
  } = useFocus(props);
26174
26175
  const control = ref();
26176
+ const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches;
26175
26177
  const loaderColor = computed(() => {
26176
26178
  return typeof props.loading === 'string' && props.loading !== '' ? props.loading : props.color;
26177
26179
  });
@@ -26240,7 +26242,7 @@ const VSwitch = genericComponent()({
26240
26242
  backgroundColorStyles
26241
26243
  } = _ref3;
26242
26244
  return createVNode("div", {
26243
- "class": ['v-switch__track', ...backgroundColorClasses.value],
26245
+ "class": ['v-switch__track', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
26244
26246
  "style": backgroundColorStyles.value,
26245
26247
  "onClick": onTrackClick
26246
26248
  }, [slots['track-true'] && createVNode("div", {
@@ -26261,7 +26263,7 @@ const VSwitch = genericComponent()({
26261
26263
  return createVNode(Fragment, null, [inputNode, createVNode("div", {
26262
26264
  "class": ['v-switch__thumb', {
26263
26265
  'v-switch__thumb--filled': icon || props.loading
26264
- }, props.inset ? undefined : backgroundColorClasses.value],
26266
+ }, props.inset || isForcedColorsModeActive ? undefined : backgroundColorClasses.value],
26265
26267
  "style": props.inset ? undefined : backgroundColorStyles.value
26266
26268
  }, [slots.thumb ? createVNode(VDefaultsProvider, {
26267
26269
  "defaults": {
@@ -30082,7 +30084,7 @@ function createVuetify$1() {
30082
30084
  goTo
30083
30085
  };
30084
30086
  }
30085
- const version$1 = "3.6.5-master.2024-05-13";
30087
+ const version$1 = "3.6.5-master.2024-05-14";
30086
30088
  createVuetify$1.version = version$1;
30087
30089
 
30088
30090
  // Vue's inject() can only be used in setup
@@ -30335,7 +30337,7 @@ var index = /*#__PURE__*/Object.freeze({
30335
30337
 
30336
30338
  /* eslint-disable local-rules/sort-imports */
30337
30339
 
30338
- const version = "3.6.5-master.2024-05-13";
30340
+ const version = "3.6.5-master.2024-05-14";
30339
30341
 
30340
30342
  /* eslint-disable local-rules/sort-imports */
30341
30343