vuetify 3.2.0 → 3.2.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.
@@ -236,10 +236,7 @@ type DefaultsInstance = undefined | {
236
236
  global?: Record<string, unknown>;
237
237
  };
238
238
  type DefaultsOptions = Partial<DefaultsInstance>;
239
- declare function useDefaults(props?: Record<string, any>, name?: string, defaults?: Ref<DefaultsInstance>): {
240
- props: Record<string, any>;
241
- provideSubDefaults: () => void;
242
- };
239
+ declare function useDefaults(props?: Record<string, any>, name?: string): Record<string, any>;
243
240
 
244
241
  type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
245
242
  declare const IconValue: PropType<IconValue>;
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * Vuetify v3.2.0
2
+ * Vuetify v3.2.1
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { ref, onBeforeUnmount, watch, readonly, reactive, computed, watchEffect, toRefs, capitalize, onScopeDispose, effectScope, shallowRef, inject as inject$1, unref, provide, defineComponent as defineComponent$1, camelize, h, getCurrentInstance as getCurrentInstance$1, onDeactivated, onActivated, onMounted, toRaw, createVNode, TransitionGroup, Transition, mergeProps, onBeforeMount, nextTick, withDirectives, Fragment, resolveDirective, vShow, isRef, toRef, Text, resolveDynamicComponent, cloneVNode, warn, toHandlers, Teleport, createTextVNode, onBeforeUpdate, vModelText, onUpdated, withModifiers } from 'vue';
7
+ import { ref, onBeforeUnmount, watch, readonly, reactive, computed, watchEffect, toRefs, capitalize, onScopeDispose, effectScope, unref, provide, shallowRef, inject as inject$1, defineComponent as defineComponent$1, camelize, h, getCurrentInstance as getCurrentInstance$1, onDeactivated, onActivated, onMounted, toRaw, createVNode, TransitionGroup, Transition, mergeProps, onBeforeMount, nextTick, withDirectives, Fragment, resolveDirective, vShow, isRef, toRef, Text, resolveDynamicComponent, cloneVNode, warn, toHandlers, Teleport, createTextVNode, onBeforeUpdate, vModelText, onUpdated, withModifiers } from 'vue';
8
8
 
9
9
  const IN_BROWSER = typeof window !== 'undefined';
10
10
  const SUPPORTS_INTERSECTION = IN_BROWSER && 'IntersectionObserver' in window;
@@ -1012,7 +1012,7 @@ function provideDefaults(defaults, options) {
1012
1012
  function propIsDefined(vnode, prop) {
1013
1013
  return typeof vnode.props?.[prop] !== 'undefined' || typeof vnode.props?.[toKebabCase(prop)] !== 'undefined';
1014
1014
  }
1015
- function useDefaults() {
1015
+ function internalUseDefaults() {
1016
1016
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1017
1017
  let name = arguments.length > 1 ? arguments[1] : undefined;
1018
1018
  let defaults = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : injectDefaults();
@@ -1056,6 +1056,16 @@ function useDefaults() {
1056
1056
  provideSubDefaults
1057
1057
  };
1058
1058
  }
1059
+ function useDefaults() {
1060
+ let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1061
+ let name = arguments.length > 1 ? arguments[1] : undefined;
1062
+ const {
1063
+ props: _props,
1064
+ provideSubDefaults
1065
+ } = internalUseDefaults(props, name);
1066
+ provideSubDefaults();
1067
+ return _props;
1068
+ }
1059
1069
 
1060
1070
  // Utils
1061
1071
 
@@ -1083,7 +1093,7 @@ function defineComponent(options) {
1083
1093
  const {
1084
1094
  props: _props,
1085
1095
  provideSubDefaults
1086
- } = useDefaults(props, props._as ?? options.name, defaults);
1096
+ } = internalUseDefaults(props, props._as ?? options.name, defaults);
1087
1097
  const setupBindings = options._setup(_props, ctx);
1088
1098
  provideSubDefaults();
1089
1099
  return setupBindings;
@@ -21531,7 +21541,7 @@ function createVuetify$1() {
21531
21541
  date
21532
21542
  };
21533
21543
  }
21534
- const version$1 = "3.2.0";
21544
+ const version$1 = "3.2.1";
21535
21545
  createVuetify$1.version = version$1;
21536
21546
 
21537
21547
  // Vue's inject() can only be used in setup
@@ -21543,7 +21553,7 @@ function inject(key) {
21543
21553
  }
21544
21554
  }
21545
21555
 
21546
- const version = "3.2.0";
21556
+ const version = "3.2.1";
21547
21557
 
21548
21558
  const createVuetify = function () {
21549
21559
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};