kmcom-nuxt-layers 1.1.6 → 1.1.7
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/layers/ui/app/components/Links/Named.vue +2 -2
- package/layers/ui/app/components/Media/Picture.vue +2 -2
- package/layers/ui/app/components/Site/Title.vue +1 -1
- package/layers/ui/app/components/Typography/CodeBlock.vue +3 -3
- package/layers/ui/app/components/Typography/Headline.vue +4 -4
- package/layers/ui/app/components/Typography/QuoteBlock.vue +3 -3
- package/layers/ui/app/components/Typography/index.vue +4 -4
- package/layers/ui/app/composables/color.ts +1 -1
- package/layers/ui/app/composables/picture.ts +2 -2
- package/layers/ui/app/composables/typography.ts +1 -1
- package/layers/ui/app/types/media.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useColor } from '
|
|
3
|
-
import type { UiColors } from '
|
|
2
|
+
import { useColor } from '../../composables/color'
|
|
3
|
+
import type { UiColors } from '../../types/colors'
|
|
4
4
|
|
|
5
5
|
const props = withDefaults(
|
|
6
6
|
defineProps<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- eslint-disable vue/define-macros-order -->
|
|
2
2
|
<script lang="ts" setup>
|
|
3
|
-
import { usePicture } from '
|
|
4
|
-
import type { PictureProps } from '
|
|
3
|
+
import { usePicture } from '../../composables/picture'
|
|
4
|
+
import type { PictureProps } from '../../types/media'
|
|
5
5
|
|
|
6
6
|
const props = withDefaults(defineProps<PictureProps>(), {
|
|
7
7
|
loading: 'lazy',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
defineOptions({ inheritAttrs: false })
|
|
3
|
-
import { useColor } from '
|
|
4
|
-
import type { UiColors } from '
|
|
5
|
-
import type { FontSize } from '
|
|
3
|
+
import { useColor } from '../../composables/color'
|
|
4
|
+
import type { UiColors } from '../../types/colors'
|
|
5
|
+
import type { FontSize } from '../../types/typography'
|
|
6
6
|
|
|
7
7
|
const props = withDefaults(
|
|
8
8
|
defineProps<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
defineOptions({ inheritAttrs: false })
|
|
3
|
-
import { useColor } from '
|
|
4
|
-
import { useTypography } from '
|
|
5
|
-
import type { UiColors } from '
|
|
3
|
+
import { useColor } from '../../composables/color'
|
|
4
|
+
import { useTypography } from '../../composables/typography'
|
|
5
|
+
import type { UiColors } from '../../types/colors'
|
|
6
6
|
import type {
|
|
7
7
|
FontLeading,
|
|
8
8
|
FontSize,
|
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
FontWidth,
|
|
13
13
|
TextAlign,
|
|
14
14
|
TextTransform,
|
|
15
|
-
} from '
|
|
15
|
+
} from '../../types/typography'
|
|
16
16
|
|
|
17
17
|
const props = withDefaults(
|
|
18
18
|
defineProps<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
defineOptions({ inheritAttrs: false })
|
|
3
|
-
import { useColor } from '
|
|
4
|
-
import type { UiColors } from '
|
|
5
|
-
import type { FontSize } from '
|
|
3
|
+
import { useColor } from '../../composables/color'
|
|
4
|
+
import type { UiColors } from '../../types/colors'
|
|
5
|
+
import type { FontSize } from '../../types/typography'
|
|
6
6
|
|
|
7
7
|
const props = defineProps<{ color?: UiColors; size?: FontSize }>()
|
|
8
8
|
const colorClass = useColor(props.color, 'text')
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!-- eslint-disable vue/require-default-prop -->
|
|
2
2
|
<!-- eslint-disable vue/no-unused-properties -->
|
|
3
3
|
<script lang="ts" setup>
|
|
4
|
-
import { useColor } from '
|
|
5
|
-
import { useTypography } from '
|
|
6
|
-
import type { UiColors } from '
|
|
4
|
+
import { useColor } from '../../composables/color'
|
|
5
|
+
import { useTypography } from '../../composables/typography'
|
|
6
|
+
import type { UiColors } from '../../types/colors'
|
|
7
7
|
import type {
|
|
8
8
|
FontLeading,
|
|
9
9
|
FontSize,
|
|
@@ -14,7 +14,7 @@ import type {
|
|
|
14
14
|
TextAlign,
|
|
15
15
|
TextTransform,
|
|
16
16
|
TypographyTag,
|
|
17
|
-
} from '
|
|
17
|
+
} from '../../types/typography'
|
|
18
18
|
|
|
19
19
|
const props = withDefaults(
|
|
20
20
|
defineProps<{
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
DEVICE_BREAKPOINT_VALUES,
|
|
4
4
|
PHONE_BREAKPOINT_VALUES,
|
|
5
5
|
TABLET_BREAKPOINT_VALUES,
|
|
6
|
-
} from '
|
|
7
|
-
import type { PictureProps, ResponsiveSizes, UsePictureReturn } from '
|
|
6
|
+
} from '../types/breakpoints'
|
|
7
|
+
import type { PictureProps, ResponsiveSizes, UsePictureReturn } from '../types/media'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Convert ResponsiveSizes object to CSS sizes attribute string
|