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