@invoicebox/ui 0.1.0-alpha.75 → 0.1.0-alpha.77
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/README.md +11 -0
- package/dist/components/common/Dropdown/index.js +31 -20
- package/dist/components/common/Flag/components/ArmFlag/index.js +2 -2
- package/dist/components/common/Flag/components/AzeFlag/index.js +2 -2
- package/dist/components/common/Flag/components/BlrFlag/index.js +2 -2
- package/dist/components/common/Flag/components/ChnFlag/index.js +2 -2
- package/dist/components/common/Flag/components/EngFlag/index.js +2 -2
- package/dist/components/common/Flag/components/EspFlag/index.js +2 -2
- package/dist/components/common/Flag/components/KazFlag/index.js +2 -2
- package/dist/components/common/Flag/components/KgzFlag/index.js +2 -2
- package/dist/components/common/Flag/components/MdaFlag/index.js +2 -2
- package/dist/components/common/Flag/components/RusFlag/index.js +2 -2
- package/dist/components/common/Flag/components/TjkFlag/index.js +2 -2
- package/dist/components/common/Flag/components/UnknownFlag/index.js +2 -2
- package/dist/components/common/Flag/components/UzbFlag/index.js +2 -2
- package/dist/components/common/Flag/index.d.ts +2 -3
- package/dist/components/common/Flag/index.js +2 -4
- package/dist/components/common/Flag/index.stories.js +1 -2
- package/dist/components/common/Flag/styles.d.ts +1 -2
- package/dist/components/common/Flag/styles.js +9 -8
- package/dist/components/form/CountrySelect/components/CountryItem/index.js +1 -2
- package/dist/components/form/CountrySelect/index.js +1 -2
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,3 +15,14 @@ npm i @invoicebox/ui
|
|
|
15
15
|
```bash
|
|
16
16
|
yarn add @invoicebox/ui
|
|
17
17
|
```
|
|
18
|
+
|
|
19
|
+
# Пример использования
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import React, { FC } from 'react';
|
|
23
|
+
import { Arrow } from '@invoicebox/ui';
|
|
24
|
+
|
|
25
|
+
export const SomeComponent: FC = () => {
|
|
26
|
+
return <Arrow isOpen={false} />;
|
|
27
|
+
};
|
|
28
|
+
```
|
|
@@ -8,6 +8,8 @@ exports.Dropdown = void 0;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var S = _interopRequireWildcard(require("./styles"));
|
|
10
10
|
var _palette = require("../../../palette");
|
|
11
|
+
var _styledComponents = require("styled-components");
|
|
12
|
+
var _excluded = ["children"];
|
|
11
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -16,23 +18,32 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
16
18
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
19
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
18
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
22
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19
23
|
var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
20
24
|
var children = _ref.children,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
return /*#__PURE__*/_react["default"].createElement(_styledComponents.StyleSheetManager, {
|
|
27
|
+
disableCSSOMInjection: true
|
|
28
|
+
}, /*#__PURE__*/_react["default"].createElement(DropdownInner, props, children));
|
|
29
|
+
};
|
|
30
|
+
var DropdownInner = function DropdownInner(_ref2) {
|
|
31
|
+
var children = _ref2.children,
|
|
32
|
+
isOpen = _ref2.isOpen,
|
|
33
|
+
_ref2$isAutoPosition = _ref2.isAutoPosition,
|
|
34
|
+
isAutoPosition = _ref2$isAutoPosition === void 0 ? false : _ref2$isAutoPosition,
|
|
35
|
+
_ref2$positionVertica = _ref2.positionVertical,
|
|
36
|
+
positionVertical = _ref2$positionVertica === void 0 ? 5 : _ref2$positionVertica,
|
|
37
|
+
_ref2$positionLeft = _ref2.positionLeft,
|
|
38
|
+
positionLeft = _ref2$positionLeft === void 0 ? '0px' : _ref2$positionLeft,
|
|
39
|
+
_ref2$positionRight = _ref2.positionRight,
|
|
40
|
+
positionRight = _ref2$positionRight === void 0 ? 'auto' : _ref2$positionRight,
|
|
41
|
+
_ref2$minWidth = _ref2.minWidth,
|
|
42
|
+
minWidth = _ref2$minWidth === void 0 ? 'auto' : _ref2$minWidth,
|
|
43
|
+
_ref2$width = _ref2.width,
|
|
44
|
+
width = _ref2$width === void 0 ? 'auto' : _ref2$width,
|
|
45
|
+
zIndex = _ref2.zIndex,
|
|
46
|
+
onCloseTransitionEnd = _ref2.onCloseTransitionEnd;
|
|
36
47
|
var palette = (0, _palette.useComponentPalette)('dropdown');
|
|
37
48
|
var position = (0, _react.useRef)({
|
|
38
49
|
isAbove: true,
|
|
@@ -47,11 +58,11 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
47
58
|
if (isOpen) return;
|
|
48
59
|
if (onCloseTransitionEnd) onCloseTransitionEnd();
|
|
49
60
|
}, [isOpen, onCloseTransitionEnd]);
|
|
50
|
-
var getPosition = (0, _react.useCallback)(function (
|
|
51
|
-
var dropdownHeight =
|
|
52
|
-
belowHeight =
|
|
53
|
-
aboveHeight =
|
|
54
|
-
dropdownIndent =
|
|
61
|
+
var getPosition = (0, _react.useCallback)(function (_ref3) {
|
|
62
|
+
var dropdownHeight = _ref3.dropdownHeight,
|
|
63
|
+
belowHeight = _ref3.belowHeight,
|
|
64
|
+
aboveHeight = _ref3.aboveHeight,
|
|
65
|
+
dropdownIndent = _ref3.dropdownIndent;
|
|
55
66
|
var isEnoughSpaceBelow = belowHeight >= dropdownHeight + dropdownIndent;
|
|
56
67
|
if (isEnoughSpaceBelow) return {
|
|
57
68
|
isAbove: false,
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var ArmFlag = exports.ArmFlag = function ArmFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var AzeFlag = exports.AzeFlag = function AzeFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var BlrFlag = exports.BlrFlag = function BlrFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var ChnFlag = exports.ChnFlag = function ChnFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var EngFlag = exports.EngFlag = function EngFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var EspFlag = exports.EspFlag = function EspFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var KazFlag = exports.KazFlag = function KazFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var KgzFlag = exports.KgzFlag = function KgzFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var MdaFlag = exports.MdaFlag = function MdaFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var RusFlag = exports.RusFlag = function RusFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var TjkFlag = exports.TjkFlag = function TjkFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var UnknownFlag = exports.UnknownFlag = function UnknownFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var UzbFlag = exports.UzbFlag = function UzbFlag() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
|
-
width: "
|
|
12
|
-
height: "
|
|
11
|
+
width: "22",
|
|
12
|
+
height: "16",
|
|
13
13
|
viewBox: "0 0 22 16",
|
|
14
14
|
fill: "none",
|
|
15
15
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -2,11 +2,10 @@ declare const flagKeys: readonly ["RUS", "BLR", "KAZ", "AZE", "ARM", "KGZ", "MDA
|
|
|
2
2
|
export type TFlagKey = (typeof flagKeys)[number];
|
|
3
3
|
export type TProps = {
|
|
4
4
|
flag: TFlagKey;
|
|
5
|
-
|
|
6
|
-
height: number;
|
|
5
|
+
isSmall: boolean;
|
|
7
6
|
};
|
|
8
7
|
export declare const Flag: {
|
|
9
|
-
({ flag,
|
|
8
|
+
({ flag, isSmall }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
flags: readonly ["RUS", "BLR", "KAZ", "AZE", "ARM", "KGZ", "MDA", "TJK", "UZB", "CHN", "ENG", "ESP", "UNKNOWN"];
|
|
11
10
|
};
|
|
12
11
|
export {};
|
|
@@ -41,11 +41,9 @@ var map = {
|
|
|
41
41
|
};
|
|
42
42
|
var Flag = exports.Flag = function Flag(_ref) {
|
|
43
43
|
var flag = _ref.flag,
|
|
44
|
-
|
|
45
|
-
height = _ref.height;
|
|
44
|
+
isSmall = _ref.isSmall;
|
|
46
45
|
return /*#__PURE__*/_react["default"].createElement(S.FlagWrapper, {
|
|
47
|
-
$
|
|
48
|
-
$height: height
|
|
46
|
+
$isSmall: isSmall
|
|
49
47
|
}, map[flag]);
|
|
50
48
|
};
|
|
51
49
|
Flag.flags = flagKeys;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const FlagWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
-
$
|
|
4
|
-
$height: number;
|
|
3
|
+
$isSmall: boolean;
|
|
5
4
|
}>>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.FlagWrapper = void 0;
|
|
7
|
-
var _styledComponents =
|
|
8
|
-
function
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
11
|
+
var selectedFlagStyles = (0, _styledComponents.css)(["height:16px;width:22px;border-radius:3px;"]);
|
|
12
|
+
var listFlagStyles = (0, _styledComponents.css)(["height:12px;width:17px;border-radius:2px;img{transform:scale(0.8);transform-origin:left top;}"]);
|
|
9
13
|
var FlagWrapper = exports.FlagWrapper = _styledComponents["default"].div.withConfig({
|
|
10
14
|
displayName: "styles__FlagWrapper",
|
|
11
15
|
componentId: "sc-1te2h7u-0"
|
|
12
|
-
})(["box-shadow:0 1px 5px rgba(53,63,71,0.2);
|
|
13
|
-
var $
|
|
14
|
-
return $
|
|
15
|
-
}, function (_ref2) {
|
|
16
|
-
var $height = _ref2.$height;
|
|
17
|
-
return $height;
|
|
16
|
+
})(["box-shadow:0 1px 5px rgba(53,63,71,0.2);display:flex;justify-content:center;align-items:center;overflow:hidden;", ";"], function (_ref) {
|
|
17
|
+
var $isSmall = _ref.$isSmall;
|
|
18
|
+
return $isSmall ? listFlagStyles : selectedFlagStyles;
|
|
18
19
|
});
|
|
@@ -32,8 +32,7 @@ var CountryItem = exports.CountryItem = function CountryItem(_ref) {
|
|
|
32
32
|
$palette: palette
|
|
33
33
|
}, flag && /*#__PURE__*/_react["default"].createElement(_Flag.Flag, {
|
|
34
34
|
flag: flag,
|
|
35
|
-
|
|
36
|
-
height: 12
|
|
35
|
+
isSmall: true
|
|
37
36
|
}), /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
38
37
|
variant: 'captionRegular'
|
|
39
38
|
}, countryLabel, " ", isSelected && selectedLabel)), /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
@@ -88,8 +88,7 @@ var CountrySelect = exports.CountrySelect = function CountrySelect(_ref) {
|
|
|
88
88
|
onClick: handleDropdownTrigger,
|
|
89
89
|
disabled: disabled
|
|
90
90
|
}, selectedOption.flag && /*#__PURE__*/_react["default"].createElement(_Flag.Flag, {
|
|
91
|
-
|
|
92
|
-
width: 22,
|
|
91
|
+
isSmall: false,
|
|
93
92
|
flag: selectedOption.flag
|
|
94
93
|
}), /*#__PURE__*/_react["default"].createElement(_Arrow.Arrow, {
|
|
95
94
|
isOpen: isOpen
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,6 @@ export type { TProps as TCountrySelectProps } from './components/form/CountrySel
|
|
|
30
30
|
export { PhoneInput } from './components/form/PhoneInput';
|
|
31
31
|
export type { TProps as TPhoneInputProps } from './components/form/PhoneInput';
|
|
32
32
|
export { phoneLogic } from './components/form/PhoneInput/externalPhoneLogic';
|
|
33
|
-
export type { TSupportedCountries as TSupportedCountriesPhoneInput } from './components/form/PhoneInput/types';
|
|
34
33
|
export { PaletteProvider } from './palette';
|
|
35
34
|
export type { TAbstractPalette } from './palette';
|
|
36
35
|
export { useOutsideClick } from './hooks/useOutsideClick';
|