@semcore/flags 4.40.4-prerelease.0 → 4.41.0-prerelease.0
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/CHANGELOG.md +6 -0
- package/lib/cjs/Flags.js +19 -24
- package/lib/cjs/Flags.js.map +1 -1
- package/lib/cjs/countries.json +1 -0
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/flags.shadow.css +3 -3
- package/lib/es6/Flags.js +14 -14
- package/lib/es6/Flags.js.map +1 -1
- package/lib/es6/countries.json +1 -0
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/flags.shadow.css +3 -3
- package/lib/sprites/sprite@1x.css +256 -256
- package/lib/sprites/sprite@1x.png +0 -0
- package/lib/sprites/sprite@2x.css +257 -257
- package/lib/sprites/sprite@2x.png +0 -0
- package/lib/types/index.d.ts +4 -7
- package/package.json +4 -4
|
Binary file
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BoxProps } from '@semcore/
|
|
2
|
-
import { UnknownProperties, Intergalactic } from '@semcore/core';
|
|
1
|
+
import type { BoxProps } from '@semcore/base-components';
|
|
2
|
+
import type { UnknownProperties, Intergalactic } from '@semcore/core';
|
|
3
3
|
|
|
4
4
|
export declare const iso2Name: Record<FlagsIso2, string>;
|
|
5
5
|
|
|
@@ -285,7 +285,6 @@ export declare const nameWithoutIso: {
|
|
|
285
285
|
canary_islands: string;
|
|
286
286
|
common_wealth: string;
|
|
287
287
|
england: string;
|
|
288
|
-
european_union: string;
|
|
289
288
|
mars: string;
|
|
290
289
|
nagorno_karabakh: string;
|
|
291
290
|
nato: string;
|
|
@@ -302,7 +301,6 @@ export declare const nameWithoutIso: {
|
|
|
302
301
|
CANARY_ISLANDS: string;
|
|
303
302
|
COMMON_WEALTH: string;
|
|
304
303
|
ENGLAND: string;
|
|
305
|
-
EUROPEAN_UNION: string;
|
|
306
304
|
MARS: string;
|
|
307
305
|
NAGORNO_KARABAKH: string;
|
|
308
306
|
NATO: string;
|
|
@@ -315,11 +313,9 @@ export declare const nameWithoutIso: {
|
|
|
315
313
|
WALES: string;
|
|
316
314
|
};
|
|
317
315
|
|
|
318
|
-
/** @deprecated */
|
|
319
|
-
export interface IFlagsProps extends FlagsProps, UnknownProperties {}
|
|
320
316
|
export type FlagsProps = BoxProps & {
|
|
321
317
|
/** URL before css file with a sprite
|
|
322
|
-
* @default `//static.semrush.com/
|
|
318
|
+
* @default `//static.semrush.com/intergalactic/flags/${version package}`
|
|
323
319
|
*/
|
|
324
320
|
staticPath?: string;
|
|
325
321
|
/** Country code in two-letter format */
|
|
@@ -408,6 +404,7 @@ export type FlagsIso2 =
|
|
|
408
404
|
| 'ER'
|
|
409
405
|
| 'EE'
|
|
410
406
|
| 'ET'
|
|
407
|
+
| 'EU'
|
|
411
408
|
| 'FK'
|
|
412
409
|
| 'FO'
|
|
413
410
|
| 'FJ'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/flags",
|
|
3
3
|
"description": "Semrush Flags Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.41.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "5.
|
|
13
|
-
"@semcore/utils": "4.
|
|
12
|
+
"@semcore/flex-box": "5.42.0-prerelease.0",
|
|
13
|
+
"@semcore/utils": "4.49.0-prerelease.0",
|
|
14
14
|
"classnames": "2.2.6"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "^2.
|
|
17
|
+
"@semcore/core": "^2.40.0-prerelease.0",
|
|
18
18
|
"react": "16.8 - 18",
|
|
19
19
|
"react-dom": "16.8 - 18"
|
|
20
20
|
},
|