itube-specs 0.0.551 → 0.0.553

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.
@@ -17,7 +17,9 @@
17
17
  <div class="s-video-mini-card__wrapper">
18
18
  <p class="s-video-mini-card__title _truncate">{{ card.title }}</p>
19
19
  <span v-if="card.channelName" class="s-video-mini-card__channel _truncate">{{ card.channelName }}</span>
20
- <span class="s-video-mini-card__duration">{{ duration }}</span>
20
+ <span class="s-video-mini-card__duration">
21
+ <SIcon name="time" size="12" />
22
+ {{ duration }}</span>
21
23
  </div>
22
24
  </component>
23
25
  </template>
@@ -131,4 +131,6 @@ function mouseHandler(event: boolean) {
131
131
  const getMaxHeight = computed(() => {
132
132
  return props.maxHeight ? `${props.maxHeight}px` : 'none'
133
133
  })
134
+
135
+ defineExpose({ openDropdown })
134
136
  </script>
@@ -12,8 +12,8 @@
12
12
  ]"
13
13
  >
14
14
  <label
15
- v-if="isTextArea"
16
- class="s-input__label s-input__label--external"
15
+ v-if="isTextArea || label"
16
+ class="s-input__label"
17
17
  :for="name"
18
18
  >
19
19
  {{ label }}
@@ -54,11 +54,6 @@
54
54
  @blur="onBlur"
55
55
  @keyup.enter="(event) => emit('enter', event)"
56
56
  >
57
- <!-- <span-->
58
- <!-- v-if="!isTextArea && isFilled"-->
59
- <!-- class="s-input__label">-->
60
- <!-- {{ label }}-->
61
- <!-- </span>-->
62
57
  <button
63
58
  v-if="isPassword || icon"
64
59
  type="button"
@@ -3,14 +3,17 @@ import type { IVideoCard } from '../types';
3
3
  export const useReportPopup = () => {
4
4
  const isReportPopupOpen = useState('report-popup-open', () => false);
5
5
  const reportedVideoCard = useState<IVideoCard>('report-popup-card', () => ({} as IVideoCard));
6
+ const onBack = useState<(() => void) | null>('report-popup-on-back', () => null);
6
7
 
7
- const openReportPopup = (card: IVideoCard) => {
8
+ const openReportPopup = (card: IVideoCard, onBackCallback?: () => void) => {
8
9
  isReportPopupOpen.value = true;
9
10
  reportedVideoCard.value = card;
11
+ onBack.value = onBackCallback ?? null;
10
12
  };
11
13
 
12
14
  const closeReportPopup = () => {
13
15
  isReportPopupOpen.value = false;
16
+ onBack.value = null;
14
17
  };
15
18
 
16
19
  return {
@@ -18,5 +21,6 @@ export const useReportPopup = () => {
18
21
  openReportPopup,
19
22
  closeReportPopup,
20
23
  reportedVideoCard,
24
+ onBack,
21
25
  };
22
26
  };
@@ -52,6 +52,7 @@ export const reportFormsScheme: Array<IReportScheme> = [
52
52
  value: 'from',
53
53
  label: 'email',
54
54
  required: true,
55
+ wide: true,
55
56
  },
56
57
  {
57
58
  type: 'checkbox',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.551",
4
+ "version": "0.0.553",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {