@vuetify/nightly 3.7.4-dev.2024-11-06 → 3.7.4-dev.2024-12-02

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.
@@ -16230,6 +16230,7 @@ declare const VChip: {
16230
16230
  href?: string | undefined;
16231
16231
  elevation?: string | number | undefined;
16232
16232
  rounded?: string | number | boolean | undefined;
16233
+ baseColor?: string | undefined;
16233
16234
  selectedClass?: string | undefined;
16234
16235
  prependIcon?: IconValue | undefined;
16235
16236
  appendIcon?: IconValue | undefined;
@@ -16383,6 +16384,7 @@ declare const VChip: {
16383
16384
  href?: string | undefined;
16384
16385
  elevation?: string | number | undefined;
16385
16386
  rounded?: string | number | boolean | undefined;
16387
+ baseColor?: string | undefined;
16386
16388
  selectedClass?: string | undefined;
16387
16389
  prependIcon?: IconValue | undefined;
16388
16390
  appendIcon?: IconValue | undefined;
@@ -16512,6 +16514,7 @@ declare const VChip: {
16512
16514
  href?: string | undefined;
16513
16515
  elevation?: string | number | undefined;
16514
16516
  rounded?: string | number | boolean | undefined;
16517
+ baseColor?: string | undefined;
16515
16518
  selectedClass?: string | undefined;
16516
16519
  prependIcon?: IconValue | undefined;
16517
16520
  appendIcon?: IconValue | undefined;
@@ -16674,6 +16677,7 @@ declare const VChip: {
16674
16677
  activeClass: StringConstructor;
16675
16678
  appendAvatar: StringConstructor;
16676
16679
  appendIcon: PropType<IconValue>;
16680
+ baseColor: StringConstructor;
16677
16681
  closable: BooleanConstructor;
16678
16682
  closeIcon: {
16679
16683
  type: PropType<IconValue>;
@@ -16760,6 +16764,7 @@ declare const VChip: {
16760
16764
  activeClass: StringConstructor;
16761
16765
  appendAvatar: StringConstructor;
16762
16766
  appendIcon: PropType<IconValue>;
16767
+ baseColor: StringConstructor;
16763
16768
  closable: BooleanConstructor;
16764
16769
  closeIcon: {
16765
16770
  type: PropType<IconValue>;
@@ -16830,6 +16835,7 @@ declare const VChipGroup: {
16830
16835
  theme?: string | undefined;
16831
16836
  mandatory?: boolean | "force" | undefined;
16832
16837
  mobileBreakpoint?: number | DisplayBreakpoint | undefined;
16838
+ baseColor?: string | undefined;
16833
16839
  showArrows?: string | boolean | undefined;
16834
16840
  } & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
16835
16841
  'update:modelValue': (value: any) => true;
@@ -16887,6 +16893,7 @@ declare const VChipGroup: {
16887
16893
  theme?: string | undefined;
16888
16894
  mandatory?: boolean | "force" | undefined;
16889
16895
  mobileBreakpoint?: number | DisplayBreakpoint | undefined;
16896
+ baseColor?: string | undefined;
16890
16897
  showArrows?: string | boolean | undefined;
16891
16898
  } & {}, {}, {}, {}, {}, {
16892
16899
  symbol: any;
@@ -16931,6 +16938,7 @@ declare const VChipGroup: {
16931
16938
  theme?: string | undefined;
16932
16939
  mandatory?: boolean | "force" | undefined;
16933
16940
  mobileBreakpoint?: number | DisplayBreakpoint | undefined;
16941
+ baseColor?: string | undefined;
16934
16942
  showArrows?: string | boolean | undefined;
16935
16943
  } & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
16936
16944
  'update:modelValue': (value: any) => true;
@@ -17022,6 +17030,7 @@ declare const VChipGroup: {
17022
17030
  type: (StringConstructor | BooleanConstructor)[];
17023
17031
  validator: (v: any) => boolean;
17024
17032
  };
17033
+ baseColor: StringConstructor;
17025
17034
  column: BooleanConstructor;
17026
17035
  filter: BooleanConstructor;
17027
17036
  valueComparator: {
@@ -17089,6 +17098,7 @@ declare const VChipGroup: {
17089
17098
  type: (StringConstructor | BooleanConstructor)[];
17090
17099
  validator: (v: any) => boolean;
17091
17100
  };
17101
+ baseColor: StringConstructor;
17092
17102
  column: BooleanConstructor;
17093
17103
  filter: BooleanConstructor;
17094
17104
  valueComparator: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.4-dev.2024-11-06
2
+ * Vuetify v3.7.4-dev.2024-12-02
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -7751,6 +7751,7 @@ const VSlideGroup = genericComponent()({
7751
7751
 
7752
7752
  const VChipGroupSymbol = Symbol.for('vuetify:v-chip-group');
7753
7753
  const makeVChipGroupProps = propsFactory({
7754
+ baseColor: String,
7754
7755
  column: Boolean,
7755
7756
  filter: Boolean,
7756
7757
  valueComparator: {
@@ -7790,6 +7791,7 @@ const VChipGroup = genericComponent()({
7790
7791
  } = useGroup(props, VChipGroupSymbol);
7791
7792
  provideDefaults({
7792
7793
  VChip: {
7794
+ baseColor: toRef(props, 'baseColor'),
7793
7795
  color: toRef(props, 'color'),
7794
7796
  disabled: toRef(props, 'disabled'),
7795
7797
  filter: toRef(props, 'filter'),
@@ -7823,6 +7825,7 @@ const makeVChipProps = propsFactory({
7823
7825
  activeClass: String,
7824
7826
  appendAvatar: String,
7825
7827
  appendIcon: IconValue,
7828
+ baseColor: String,
7826
7829
  closable: Boolean,
7827
7830
  closeIcon: {
7828
7831
  type: IconValue,
@@ -7897,11 +7900,6 @@ const VChip = genericComponent()({
7897
7900
  const {
7898
7901
  borderClasses
7899
7902
  } = useBorder(props);
7900
- const {
7901
- colorClasses,
7902
- colorStyles,
7903
- variantClasses
7904
- } = useVariant(props);
7905
7903
  const {
7906
7904
  densityClasses
7907
7905
  } = useDensity(props);
@@ -7931,6 +7929,18 @@ const VChip = genericComponent()({
7931
7929
  emit('click:close', e);
7932
7930
  }
7933
7931
  }));
7932
+ const variantProps = computed(() => {
7933
+ const showColor = !group || group.isSelected.value;
7934
+ return {
7935
+ color: showColor ? props.color ?? props.baseColor : props.baseColor,
7936
+ variant: props.variant
7937
+ };
7938
+ });
7939
+ const {
7940
+ colorClasses,
7941
+ colorStyles,
7942
+ variantClasses
7943
+ } = useVariant(variantProps);
7934
7944
  function onClick(e) {
7935
7945
  emit('click', e);
7936
7946
  if (!isClickable.value) return;
@@ -7951,7 +7961,6 @@ const VChip = genericComponent()({
7951
7961
  const hasFilter = !!(slots.filter || props.filter) && group;
7952
7962
  const hasPrependMedia = !!(props.prependIcon || props.prependAvatar);
7953
7963
  const hasPrepend = !!(hasPrependMedia || slots.prepend);
7954
- const hasColor = !group || group.isSelected.value;
7955
7964
  return isActive.value && withDirectives(createVNode(Tag, mergeProps({
7956
7965
  "class": ['v-chip', {
7957
7966
  'v-chip--disabled': props.disabled,
@@ -7959,8 +7968,8 @@ const VChip = genericComponent()({
7959
7968
  'v-chip--link': isClickable.value,
7960
7969
  'v-chip--filter': hasFilter,
7961
7970
  'v-chip--pill': props.pill
7962
- }, themeClasses.value, borderClasses.value, hasColor ? colorClasses.value : undefined, densityClasses.value, elevationClasses.value, roundedClasses.value, sizeClasses.value, variantClasses.value, group?.selectedClass.value, props.class],
7963
- "style": [hasColor ? colorStyles.value : undefined, props.style],
7971
+ }, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, roundedClasses.value, sizeClasses.value, variantClasses.value, group?.selectedClass.value, props.class],
7972
+ "style": [colorStyles.value, props.style],
7964
7973
  "disabled": props.disabled || undefined,
7965
7974
  "draggable": props.draggable,
7966
7975
  "tabindex": isClickable.value ? 0 : undefined,
@@ -30403,7 +30412,7 @@ function createVuetify$1() {
30403
30412
  goTo
30404
30413
  };
30405
30414
  }
30406
- const version$1 = "3.7.4-dev.2024-11-06";
30415
+ const version$1 = "3.7.4-dev.2024-12-02";
30407
30416
  createVuetify$1.version = version$1;
30408
30417
 
30409
30418
  // Vue's inject() can only be used in setup
@@ -30656,7 +30665,7 @@ var index = /*#__PURE__*/Object.freeze({
30656
30665
 
30657
30666
  /* eslint-disable local-rules/sort-imports */
30658
30667
 
30659
- const version = "3.7.4-dev.2024-11-06";
30668
+ const version = "3.7.4-dev.2024-12-02";
30660
30669
 
30661
30670
  /* eslint-disable local-rules/sort-imports */
30662
30671