bfg-common 1.4.512 → 1.4.513

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.
@@ -35,7 +35,16 @@ const localization = computed<UI_I_Localization>(() => useLocal())
35
35
  overflow-y: scroll;
36
36
 
37
37
  &.new {
38
- margin: 16px;
38
+ background: var(--bottom-pannel-bg-color);
39
+ padding: 16px;
40
+ margin: 0;
41
+
42
+ & > h1 {
43
+ color: var(--home-title-color);
44
+ font-size: 22px;
45
+ font-weight: 400;
46
+ line-height: 26.63px;
47
+ }
39
48
  }
40
49
 
41
50
  & > h1 {
@@ -43,13 +52,6 @@ const localization = computed<UI_I_Localization>(() => useLocal())
43
52
  font-size: 22px;
44
53
  font-weight: 200;
45
54
  letter-spacing: normal;
46
-
47
- .new & {
48
- color: var(--home-title-color);
49
- font-size: 22px;
50
- font-weight: 400;
51
- line-height: 26.63px;
52
- }
53
55
  }
54
56
 
55
57
  &-category {
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <common-pages-shortcuts-category-new
3
+ v-if="isNewView"
4
+ :title="props.title"
5
+ :block-items="props.blockItems"
6
+ />
7
+ <common-pages-shortcuts-category-old
8
+ v-else
9
+ :title="props.title"
10
+ :block-items="props.blockItems"
11
+ />
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
16
+
17
+ const props = defineProps<{
18
+ title: string
19
+ blockItems: UI_I_BlockItem[]
20
+ }>()
21
+
22
+ const { $store }: any = useNuxtApp()
23
+
24
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
25
+ </script>
26
+ <style lang="scss" scoped>
27
+ //.category {
28
+ // &-text {
29
+ // color: var(--light-white-100);
30
+ // font-size: 18px;
31
+ // line-height: 21px;
32
+ // font-weight: 400;
33
+ // }
34
+ // &-block {
35
+ // display: flex;
36
+ // flex-direction: row;
37
+ // justify-content: flex-start;
38
+ // border-top: 1px solid var(--global-border-color);
39
+ // margin-top: -4px;
40
+ // }
41
+ //}
42
+ </style>
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <div class="category">
3
+ <span class="category__headline">
4
+ {{ props.title }}
5
+ </span>
6
+ <div class="category-block">
7
+ <common-pages-shortcuts-block
8
+ v-for="(item, key) in props.blockItems"
9
+ :key="key"
10
+ :item="item"
11
+ :test-id="item.testId"
12
+ />
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
19
+
20
+ const props = defineProps<{
21
+ title: string
22
+ blockItems: UI_I_BlockItem[]
23
+ }>()
24
+ </script>
25
+ <style lang="scss" scoped>
26
+ .category {
27
+ &__headline {
28
+ color: #9da6ad;
29
+ font-size: 16px;
30
+ font-weight: 400;
31
+ line-height: 19.36px;
32
+ }
33
+ &-block {
34
+ display: flex;
35
+ flex-direction: row;
36
+ justify-content: flex-start;
37
+ border-top: 1px solid var(--global-border-color);
38
+ margin-top: -4px;
39
+ }
40
+ }
41
+ </style>
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <div class="category">
3
+ <span class="category-text" :title="props.title">
4
+ {{ props.title }}
5
+ </span>
6
+ <div class="category-block">
7
+ <common-pages-shortcuts-block
8
+ v-for="(item, key) in props.blockItems"
9
+ :key="key"
10
+ :item="item"
11
+ :test-id="item.testId"
12
+ />
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script setup lang="ts">
18
+ import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
19
+
20
+ const props = defineProps<{
21
+ title: string
22
+ blockItems: UI_I_BlockItem[]
23
+ }>()
24
+ </script>
25
+ <style lang="scss" scoped>
26
+ .category {
27
+ &-text {
28
+ color: var(--light-white-100);
29
+ font-size: 18px;
30
+ line-height: 21px;
31
+ font-weight: 400;
32
+ }
33
+ &-block {
34
+ display: flex;
35
+ flex-direction: row;
36
+ justify-content: flex-start;
37
+ border-top: 1px solid var(--global-border-color);
38
+ margin-top: -4px;
39
+ }
40
+ }
41
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.512",
4
+ "version": "1.4.513",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",