@data-fair/lib-vuetify 2.0.3 → 2.0.5

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.
package/default.scss CHANGED
@@ -1,3 +1,5 @@
1
+ // @deprecated Use style/global.scss instead.
2
+
1
3
  @use 'vuetify' with (
2
4
  $color-pack: false,
3
5
  $body-font-family: 'Nunito'
package/index.js CHANGED
@@ -15,7 +15,7 @@ const baseDarkColors = {
15
15
  };
16
16
  export function vuetifySessionOptions(session, cspNonce) {
17
17
  if (!session.site.value)
18
- throw new Error('vuetifySessionOptions requires fething site info in session util');
18
+ throw new Error('vuetifySessionOptions requires fetching site info in session util');
19
19
  const colors = { ...baseColors, ...session.site.value?.colors };
20
20
  return {
21
21
  ssr: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vuetify",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Components based on the Vuetify 3 UI lib for the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [
package/style/global.scss CHANGED
@@ -1,9 +1,23 @@
1
+ // This @use is ignored by vuetify-nuxt-module (used by @data-fair/portals)
1
2
  @use 'vuetify' with (
2
3
  $color-pack: false,
3
4
  $body-font-family: var(--d-body-font-family),
4
5
  $heading-font-family: var(--d-heading-font-family)
5
6
  );
6
7
 
8
+ // CSS reset removed from Vuetify 4
9
+ // cf https://vuetifyjs.com/en/getting-started/upgrade-guide/
10
+ @layer vuetify-core.reset {
11
+ ul, ol, figure, details, summary {
12
+ padding: 0;
13
+ margin: 0;
14
+ }
15
+
16
+ h1, h2, h3, h4, h5, h6, p {
17
+ margin: 0;
18
+ }
19
+ }
20
+
7
21
  // v-icon has an opacity when it is prepended in a list of items.
8
22
  // ref: https://github.com/vuetifyjs/vuetify/issues/18760
9
23
  .v-icon {
@@ -1,5 +1,9 @@
1
1
  @use 'vuetify/settings' with (
2
2
  // make disabled button style less dependant on theme colors
3
3
  $button-colored-disabled: false,
4
- $button-disabled-opacity: 0.8
4
+ $button-disabled-opacity: 0.8,
5
+
6
+ // Because @use 'vuetify' is ignored by vuetify-nuxt-module (used by @data-fair/portals)
7
+ $body-font-family: var(--d-body-font-family),
8
+ $heading-font-family: var(--d-heading-font-family)
5
9
  );