emoji-picker-react 4.6.3 → 4.6.4-rc.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.6.3",
2
+ "version": "4.6.4-rc.2",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -23,10 +23,11 @@
23
23
  },
24
24
  "scripts": {
25
25
  "start": "tsdx watch",
26
- "build": "node ./scripts/prepare.js && tsdx build && node ./scripts/copyData.js",
26
+ "build": "node ./scripts/prepare.js && yarn type-check && tsdx build --transpileOnly && node ./scripts/copyData.js",
27
+ "type-check": "tsc --noEmit --incremental --pretty --project tsconfig.json",
27
28
  "test": "tsdx test --passWithNoTests",
28
29
  "lint": "eslint ./src --ext .ts,.tsx",
29
- "prepare": "tsdx build",
30
+ "prepare": "yarn type-check && tsdx build --transpileOnly",
30
31
  "size": "size-limit",
31
32
  "analyze": "size-limit --why",
32
33
  "storybook": "start-storybook -p 6006",
@@ -98,6 +99,6 @@
98
99
  "typescript": "^4.7.4"
99
100
  },
100
101
  "dependencies": {
101
- "flairup": "0.0.12"
102
+ "flairup": "0.0.15"
102
103
  }
103
104
  }
@@ -3,7 +3,6 @@ import * as React from 'react';
3
3
  import Relative from '../Layout/Relative';
4
4
  import { CategoryNavigation } from '../navigation/CategoryNavigation';
5
5
 
6
- import './Header.css';
7
6
  import { SearchContainer } from './Search';
8
7
 
9
8
  export function Header() {
@@ -2,6 +2,7 @@ import { cx } from 'flairup';
2
2
  import * as React from 'react';
3
3
  import { useState } from 'react';
4
4
 
5
+ import { stylesheet } from '../../Stylesheet/stylesheet';
5
6
  import {
6
7
  useAutoFocusSearchConfig,
7
8
  useSearchDisabledConfig,
@@ -29,7 +30,7 @@ export function SearchContainer() {
29
30
  }
30
31
 
31
32
  return (
32
- <Flex className="epr-header-overlay">
33
+ <Flex className={cx(styles.overlay)}>
33
34
  <Search />
34
35
 
35
36
  {isSkinToneInSearch ? <SkinTonePicker /> : null}
@@ -37,6 +38,13 @@ export function SearchContainer() {
37
38
  );
38
39
  }
39
40
 
41
+ const styles = stylesheet.create({
42
+ overlay: {
43
+ padding: 'var(--epr-header-padding)',
44
+ zIndex: 'var(--epr-header-overlay-z-index)'
45
+ }
46
+ });
47
+
40
48
  export function Search() {
41
49
  const [inc, setInc] = useState(0);
42
50
  const closeAllOpenToggles = useCloseAllOpenToggles();
@@ -1,4 +0,0 @@
1
- .EmojiPickerReact .epr-header .epr-header-overlay {
2
- padding: var(--epr-header-padding);
3
- z-index: var(--epr-header-overlay-z-index);
4
- }