-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1. fix styles <img width="331" alt="image" src="https://github.com/kaltura/playkit-js-navigation/assets/51074448/1b9a2754-f55e-41a7-ac22-13c33f00ab0d"> 2. upd Kaltura-player version 3. cleanup code from ts-ignores
- Loading branch information
1 parent
e44657f
commit e9dc686
Showing
16 changed files
with
219 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
import {h} from 'preact'; | ||
import * as styles from './EmptyState.scss'; | ||
import {ARROW_IMG, CURLY_LINE_IMG} from "../../constants/svgs"; | ||
import {ui} from '@playkit-js/kaltura-player-js'; | ||
const {withText, Text} = ui.preacti18n; | ||
import {ARROW_IMG, CURLY_LINE_IMG} from '../../constants/svgs'; | ||
import {preacti18n} from '@playkit-js/playkit-js-ui'; | ||
const {withText, Text} = preacti18n; | ||
|
||
interface EmptyStateProps { | ||
searchPlaceholder?: string; | ||
searchDescription?: string; | ||
searchPlaceholder?: string; | ||
searchDescription?: string; | ||
} | ||
|
||
const translates = { | ||
searchPlaceholder: <Text id="navigation.search_placeholder">Search in video</Text>, | ||
searchDescription: <Text id="navigation.search_description">You can search the video captions for specific words or phrases.</Text> | ||
searchPlaceholder: <Text id="navigation.search_placeholder">Search in video</Text>, | ||
searchDescription: <Text id="navigation.search_description">You can search the video captions for specific words or phrases.</Text> | ||
}; | ||
|
||
export const EmptyState = withText(translates)((props: EmptyStateProps) => { | ||
return ( | ||
<div class={styles.emptyState}> | ||
<div class={styles.arrow}> | ||
<svg width="109" height="51" viewBox="0 0 109 51" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d={CURLY_LINE_IMG} fill="#CCCCCC"/> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d={ARROW_IMG} fill="#CCCCCC"/> | ||
</svg> | ||
</div> | ||
<p class={styles.title}> | ||
{props.searchPlaceholder} | ||
</p> | ||
<p class={styles.description}> | ||
{props.searchDescription} | ||
|
||
</p> | ||
<div class={styles.emptyState}> | ||
<div class={styles.arrow}> | ||
<svg width="109" height="51" viewBox="0 0 109 51" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d={CURLY_LINE_IMG} fill="#CCCCCC" /> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d={ARROW_IMG} fill="#CCCCCC" /> | ||
</svg> | ||
</div> | ||
<p class={styles.title}>{props.searchPlaceholder}</p> | ||
<p class={styles.description}>{props.searchDescription}</p> | ||
</div> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.