vuetify 3.3.14 → 3.3.15

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 (60) hide show
  1. package/dist/json/importMap-labs.json +4 -4
  2. package/dist/json/web-types.json +95 -46
  3. package/dist/vuetify-labs.css +411 -391
  4. package/dist/vuetify-labs.d.ts +447 -226
  5. package/dist/vuetify-labs.esm.js +47 -17
  6. package/dist/vuetify-labs.esm.js.map +1 -1
  7. package/dist/vuetify-labs.js +47 -17
  8. package/dist/vuetify-labs.min.css +2 -2
  9. package/dist/vuetify.css +39 -19
  10. package/dist/vuetify.d.ts +448 -227
  11. package/dist/vuetify.esm.js +47 -17
  12. package/dist/vuetify.esm.js.map +1 -1
  13. package/dist/vuetify.js +47 -17
  14. package/dist/vuetify.js.map +1 -1
  15. package/dist/vuetify.min.css +2 -2
  16. package/dist/vuetify.min.js +18 -17
  17. package/dist/vuetify.min.js.map +1 -1
  18. package/lib/components/VBtnToggle/VBtnToggle.css +13 -2
  19. package/lib/components/VBtnToggle/VBtnToggle.sass +3 -3
  20. package/lib/components/VBtnToggle/_variables.scss +2 -1
  21. package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
  22. package/lib/components/VCheckbox/index.d.mts +203 -87
  23. package/lib/components/VField/VField.css +14 -11
  24. package/lib/components/VField/VField.sass +14 -7
  25. package/lib/components/VField/_variables.scss +0 -1
  26. package/lib/components/VIcon/VIcon.css +1 -0
  27. package/lib/components/VIcon/VIcon.sass +1 -0
  28. package/lib/components/VOverlay/useActivator.mjs +1 -1
  29. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  30. package/lib/components/VRadio/index.d.mts +82 -23
  31. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  32. package/lib/components/VRadioGroup/index.d.mts +75 -109
  33. package/lib/components/VSelectionControl/VSelectionControl.mjs +17 -2
  34. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  35. package/lib/components/VSelectionControl/index.d.mts +19 -5
  36. package/lib/components/VSwitch/VSwitch.css +7 -5
  37. package/lib/components/VSwitch/VSwitch.mjs +18 -8
  38. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  39. package/lib/components/VSwitch/VSwitch.sass +6 -4
  40. package/lib/components/VSwitch/_variables.scss +5 -3
  41. package/lib/components/VSwitch/index.d.mts +82 -23
  42. package/lib/components/VTable/VTable.css +3 -0
  43. package/lib/components/VTable/VTable.sass +4 -0
  44. package/lib/components/VTable/_variables.scss +3 -0
  45. package/lib/components/VTabs/VTab.mjs +2 -2
  46. package/lib/components/VTabs/VTab.mjs.map +1 -1
  47. package/lib/components/VTextarea/VTextarea.mjs +1 -0
  48. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  49. package/lib/components/index.d.mts +448 -227
  50. package/lib/composables/theme.mjs +6 -2
  51. package/lib/composables/theme.mjs.map +1 -1
  52. package/lib/entry-bundler.mjs +1 -1
  53. package/lib/framework.mjs +1 -1
  54. package/lib/index.d.mts +1 -1
  55. package/lib/locale/bg.mjs +23 -23
  56. package/lib/locale/bg.mjs.map +1 -1
  57. package/lib/locale/fa.mjs +16 -16
  58. package/lib/locale/fa.mjs.map +1 -1
  59. package/lib/styles/tools/_states.sass +5 -5
  60. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.3.14
2
+ * Vuetify v3.3.15
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -2115,6 +2115,7 @@ const defaultThemeOptions = {
2115
2115
  colors: {
2116
2116
  background: '#FFFFFF',
2117
2117
  surface: '#FFFFFF',
2118
+ 'surface-bright': '#FFFFFF',
2118
2119
  'surface-variant': '#424242',
2119
2120
  'on-surface-variant': '#EEEEEE',
2120
2121
  primary: '#6200EE',
@@ -2150,7 +2151,8 @@ const defaultThemeOptions = {
2150
2151
  colors: {
2151
2152
  background: '#121212',
2152
2153
  surface: '#212121',
2153
- 'surface-variant': '#BDBDBD',
2154
+ 'surface-bright': '#ccbfd6',
2155
+ 'surface-variant': '#a3a3a3',
2154
2156
  'on-surface-variant': '#424242',
2155
2157
  primary: '#BB86FC',
2156
2158
  'primary-darken-1': '#3700B3',
@@ -2341,12 +2343,14 @@ function provideTheme(props) {
2341
2343
  const theme = inject$1(ThemeSymbol, null);
2342
2344
  if (!theme) throw new Error('Could not find Vuetify theme injection');
2343
2345
  const name = computed(() => {
2344
- return props.theme ?? theme?.name.value;
2346
+ return props.theme ?? theme.name.value;
2345
2347
  });
2348
+ const current = computed(() => theme.themes.value[name.value]);
2346
2349
  const themeClasses = computed(() => theme.isDisabled ? undefined : `v-theme--${name.value}`);
2347
2350
  const newTheme = {
2348
2351
  ...theme,
2349
2352
  name,
2353
+ current,
2350
2354
  themeClasses
2351
2355
  };
2352
2356
  provide(ThemeSymbol, newTheme);
@@ -5803,6 +5807,12 @@ function useSelectionControl(props) {
5803
5807
  } = useTextColor(computed(() => {
5804
5808
  return model.value && !props.error && !props.disabled ? props.color : undefined;
5805
5809
  }));
5810
+ const {
5811
+ backgroundColorClasses,
5812
+ backgroundColorStyles
5813
+ } = useBackgroundColor(computed(() => {
5814
+ return model.value && !props.error && !props.disabled ? props.color : undefined;
5815
+ }));
5806
5816
  const icon = computed(() => model.value ? props.trueIcon : props.falseIcon);
5807
5817
  return {
5808
5818
  group,
@@ -5812,6 +5822,8 @@ function useSelectionControl(props) {
5812
5822
  model,
5813
5823
  textColorClasses,
5814
5824
  textColorStyles,
5825
+ backgroundColorClasses,
5826
+ backgroundColorStyles,
5815
5827
  icon
5816
5828
  };
5817
5829
  }
@@ -5837,6 +5849,8 @@ const VSelectionControl = genericComponent()({
5837
5849
  model,
5838
5850
  textColorClasses,
5839
5851
  textColorStyles,
5852
+ backgroundColorClasses,
5853
+ backgroundColorStyles,
5840
5854
  trueValue
5841
5855
  } = useSelectionControl(props);
5842
5856
  const uid = getUid();
@@ -5901,12 +5915,17 @@ const VSelectionControl = genericComponent()({
5901
5915
  }), [createVNode("div", {
5902
5916
  "class": ['v-selection-control__wrapper', textColorClasses.value],
5903
5917
  "style": textColorStyles.value
5904
- }, [slots.default?.(), withDirectives(createVNode("div", {
5918
+ }, [slots.default?.({
5919
+ backgroundColorClasses,
5920
+ backgroundColorStyles
5921
+ }), withDirectives(createVNode("div", {
5905
5922
  "class": ['v-selection-control__input']
5906
5923
  }, [slots.input?.({
5907
5924
  model,
5908
5925
  textColorClasses,
5909
5926
  textColorStyles,
5927
+ backgroundColorClasses,
5928
+ backgroundColorStyles,
5910
5929
  inputNode,
5911
5930
  icon: icon.value,
5912
5931
  props: {
@@ -9117,7 +9136,7 @@ function _useActivator(props, vm, _ref2) {
9117
9136
  if (selector) {
9118
9137
  if (selector === 'parent') {
9119
9138
  let el = vm?.proxy?.$el?.parentNode;
9120
- while (el.hasAttribute('data-no-activator')) {
9139
+ while (el?.hasAttribute('data-no-activator')) {
9121
9140
  el = el.parentNode;
9122
9141
  }
9123
9142
  activator = el;
@@ -18617,19 +18636,29 @@ const VSwitch = genericComponent()({
18617
18636
  "onBlur": blur
18618
18637
  }, controlAttrs), {
18619
18638
  ...slots,
18620
- default: () => createVNode("div", {
18621
- "class": "v-switch__track",
18622
- "onClick": onTrackClick
18623
- }, null),
18624
- input: _ref3 => {
18639
+ default: _ref3 => {
18625
18640
  let {
18626
- inputNode,
18627
- icon
18641
+ backgroundColorClasses,
18642
+ backgroundColorStyles
18628
18643
  } = _ref3;
18644
+ return createVNode("div", {
18645
+ "class": ['v-switch__track', ...backgroundColorClasses.value],
18646
+ "style": backgroundColorStyles.value,
18647
+ "onClick": onTrackClick
18648
+ }, null);
18649
+ },
18650
+ input: _ref4 => {
18651
+ let {
18652
+ inputNode,
18653
+ icon,
18654
+ backgroundColorClasses,
18655
+ backgroundColorStyles
18656
+ } = _ref4;
18629
18657
  return createVNode(Fragment, null, [inputNode, createVNode("div", {
18630
18658
  "class": ['v-switch__thumb', {
18631
18659
  'v-switch__thumb--filled': icon || props.loading
18632
- }]
18660
+ }, props.inset ? undefined : backgroundColorClasses.value],
18661
+ "style": props.inset ? undefined : backgroundColorStyles.value
18633
18662
  }, [createVNode(VScaleTransition, null, {
18634
18663
  default: () => [!props.loading ? icon && createVNode(VIcon, {
18635
18664
  "key": icon,
@@ -18770,8 +18799,8 @@ const VTab = genericComponent()({
18770
18799
  const delta = prevPos > nextPos ? prevBox[rightBottom] - nextBox[rightBottom] : prevBox[xy] - nextBox[xy];
18771
18800
  const origin = Math.sign(delta) > 0 ? isHorizontal.value ? 'right' : 'bottom' : Math.sign(delta) < 0 ? isHorizontal.value ? 'left' : 'top' : 'center';
18772
18801
  const size = Math.abs(delta) + (Math.sign(delta) < 0 ? prevBox[widthHeight] : nextBox[widthHeight]);
18773
- const scale = size / Math.max(prevBox[widthHeight], nextBox[widthHeight]);
18774
- const initialScale = prevBox[widthHeight] / nextBox[widthHeight];
18802
+ const scale = size / Math.max(prevBox[widthHeight], nextBox[widthHeight]) || 0;
18803
+ const initialScale = prevBox[widthHeight] / nextBox[widthHeight] || 0;
18775
18804
  const sigma = 1.5;
18776
18805
  animate(nextEl, {
18777
18806
  backgroundColor: [color, 'currentcolor'],
@@ -19167,6 +19196,7 @@ const VTextarea = genericComponent()({
19167
19196
  once: true
19168
19197
  }]]), props.autoGrow && withDirectives(createVNode("textarea", {
19169
19198
  "class": [fieldClass, 'v-textarea__sizer'],
19199
+ "id": `${slotProps.id}-sizer`,
19170
19200
  "onUpdate:modelValue": $event => model.value = $event,
19171
19201
  "ref": sizerRef,
19172
19202
  "readonly": true,
@@ -24544,7 +24574,7 @@ function createVuetify$1() {
24544
24574
  date
24545
24575
  };
24546
24576
  }
24547
- const version$1 = "3.3.14";
24577
+ const version$1 = "3.3.15";
24548
24578
  createVuetify$1.version = version$1;
24549
24579
 
24550
24580
  // Vue's inject() can only be used in setup
@@ -24558,7 +24588,7 @@ function inject(key) {
24558
24588
 
24559
24589
  /* eslint-disable local-rules/sort-imports */
24560
24590
 
24561
- const version = "3.3.14";
24591
+ const version = "3.3.15";
24562
24592
 
24563
24593
  /* eslint-disable local-rules/sort-imports */
24564
24594