bfg-common 1.3.132 → 1.3.134

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.
@@ -6,45 +6,47 @@
6
6
  class="select-option__inner radio"
7
7
  :class="radio.disabled && 'disabled'"
8
8
  >
9
- <div class="select-option__wrapper">
10
- <input
11
- :id="radio.label"
12
- v-model="selectedType"
13
- type="radio"
14
- :value="radio.value"
15
- :disabled="radio.disabled"
16
- />
17
- <label :for="radio.label">{{ radio.label }}</label>
18
-
19
- <div
20
- v-if="'isTooltip' in radio"
21
- :id="`${radio.value}-select-tooltip-icon`"
22
- class="signpost-container relative"
23
- >
24
- <atoms-the-icon
25
- fill="#0072a3"
26
- width="24px"
27
- height="24px"
28
- name="info-circle"
29
- @click="radio.isTooltip = !radio.isTooltip"
9
+ <div :class="['select-option__container', radio.value]">
10
+ <div class="select-option__wrapper">
11
+ <input
12
+ :id="radio.label"
13
+ v-model="selectedType"
14
+ type="radio"
15
+ :value="radio.value"
16
+ :disabled="radio.disabled"
30
17
  />
31
- <atoms-tooltip-signpost
32
- v-if="radio.isTooltip"
33
- :elem-id="`${radio.value}-select-tooltip-icon`"
34
- @hide="radio.isTooltip = false"
18
+ <label :for="radio.label">{{ radio.label }}</label>
19
+
20
+ <div
21
+ v-if="'isTooltip' in radio"
22
+ :id="`${radio.value}-select-tooltip-icon`"
23
+ class="signpost-container relative"
35
24
  >
36
- <div class="tooltip-content-container">
37
- <p>{{ radio.tooltipContent }}</p>
38
- </div>
39
- </atoms-tooltip-signpost>
25
+ <atoms-the-icon
26
+ fill="#0072a3"
27
+ width="24px"
28
+ height="24px"
29
+ name="info-circle"
30
+ @click="radio.isTooltip = !radio.isTooltip"
31
+ />
32
+ <atoms-tooltip-signpost
33
+ v-if="radio.isTooltip"
34
+ :elem-id="`${radio.value}-select-tooltip-icon`"
35
+ @hide="radio.isTooltip = false"
36
+ >
37
+ <div class="tooltip-content-container">
38
+ <p>{{ radio.tooltipContent }}</p>
39
+ </div>
40
+ </atoms-tooltip-signpost>
41
+ </div>
40
42
  </div>
41
- </div>
42
43
 
43
- <slot
44
- v-if="$slots.beforeDescription"
45
- name="beforeDescription"
46
- :value="selectedType"
47
- ></slot>
44
+ <slot
45
+ v-if="$slots.beforeDescription"
46
+ name="beforeDescription"
47
+ :data="radio"
48
+ ></slot>
49
+ </div>
48
50
 
49
51
  <div v-if="radio.description" class="select-option__description">
50
52
  {{ radio.description }}
@@ -53,7 +55,7 @@
53
55
  <slot
54
56
  v-if="$slots.afterDescription"
55
57
  name="afterDescription"
56
- :value="selectedType"
58
+ :data="radio"
57
59
  ></slot>
58
60
  </div>
59
61
  </div>
@@ -85,6 +87,9 @@ const selectedType = computed<string | number>({
85
87
  <style lang="scss" scoped>
86
88
  @import 'assets/scss/common/mixins.scss';
87
89
  .select-option {
90
+ &__container {
91
+ @include flex($dir: column);
92
+ }
88
93
  &__wrapper {
89
94
  @include flex($align: center);
90
95
  gap: 10px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.132",
4
+ "version": "1.3.134",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -16,7 +16,7 @@
16
16
  "@vueuse/core": "^10.1.2",
17
17
  "@vueuse/nuxt": "^10.1.2",
18
18
  "eslint-config-prettier": "^8.5.0",
19
- "nuxt": "^3.1.2",
19
+ "nuxt": "^3.11.2",
20
20
  "prettier": "2.7.1",
21
21
  "sass": "^1.54.9",
22
22
  "sass-loader": "^10.3.1",