@orfium/ictinus 4.32.2 → 4.34.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/dist/components/Avatar/Avatar.d.ts +2 -20
- package/dist/components/Avatar/Avatar.js +9 -17
- package/dist/components/Avatar/Avatar.types.d.ts +20 -0
- package/dist/components/Avatar/Avatar.types.js +3 -0
- package/dist/components/Avatar/AvatarStack/AvatarStack.d.ts +3 -13
- package/dist/components/Avatar/AvatarStack/AvatarStack.js +11 -5
- package/dist/components/Avatar/AvatarStack/AvatarStack.types.d.ts +9 -0
- package/dist/components/Avatar/AvatarStack/AvatarStack.types.js +3 -0
- package/dist/components/Avatar/AvatarStack/utils.d.ts +6 -0
- package/dist/components/Avatar/AvatarStack/utils.js +16 -0
- package/dist/components/Avatar/utils.d.ts +2 -0
- package/dist/components/Avatar/utils.js +22 -0
- package/dist/components/Button/utils.d.ts +1 -1
- package/dist/components/ButtonBase/utils.d.ts +1 -1
- package/dist/components/Chip/Chip.d.ts +1 -34
- package/dist/components/Chip/Chip.js +27 -22
- package/dist/components/Chip/Chip.style.d.ts +2 -2
- package/dist/components/Chip/Chip.style.js +2 -2
- package/dist/components/Chip/Chip.types.d.ts +34 -0
- package/dist/components/Chip/Chip.types.js +10 -0
- package/dist/components/Chip/components/Badge/Badge.d.ts +3 -2
- package/dist/components/Chip/components/Badge/Badge.style.d.ts +2 -2
- package/dist/components/Chip/components/Badge/Badge.style.js +1 -1
- package/dist/components/Chip/utils.d.ts +11 -0
- package/dist/components/Chip/utils.js +34 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +3 -50
- package/dist/components/ExpandCollapse/ExpandCollapse.js +19 -59
- package/dist/components/ExpandCollapse/ExpandCollapse.types.d.ts +64 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.types.js +3 -0
- package/dist/components/ExpandCollapse/useManageContentRef.d.ts +2 -0
- package/dist/components/ExpandCollapse/useManageContentRef.js +56 -0
- package/dist/components/ExpandCollapse/utils.d.ts +6 -0
- package/dist/components/ExpandCollapse/utils.js +23 -0
- package/dist/components/Filter/Filter.js +3 -9
- package/dist/components/Filter/utils.d.ts +10 -1
- package/dist/components/Filter/utils.js +17 -2
- package/dist/components/Select/Select.style.js +2 -2
- package/dist/components/TextArea/TextArea.js +3 -2
- package/dist/components/TextArea/TextArea.style.js +1 -1
- package/dist/components/TextInputBase/TextInputBase.style.d.ts +1 -1
- package/dist/components/TextInputBase/TextInputBase.style.js +6 -6
- package/dist/components/TextInputBase/config.d.ts +1 -1
- package/dist/components/TextInputBase/config.js +1 -1
- package/dist/theme/palette.js +5 -5
- package/dist/theme/utils.d.ts +5 -0
- package/dist/theme/utils.js +11 -2
- package/dist/utils/errors.d.ts +6 -0
- package/dist/utils/errors.js +50 -0
- package/dist/utils/helpers.d.ts +8 -0
- package/dist/utils/helpers.js +24 -2
- package/dist/utils/themeFunctions.d.ts +10 -0
- package/dist/utils/themeFunctions.js +40 -16
- package/package.json +1 -1
|
@@ -1,51 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { TestProps } from '../../utils/types';
|
|
4
|
-
export declare type Props = {
|
|
5
|
-
/**
|
|
6
|
-
* A function accepting a click handler and a boolean representing the current expansion state. Returns the elements containing the text and the
|
|
7
|
-
* expand/collapse button
|
|
8
|
-
* */
|
|
9
|
-
textAndControl: (x: React.ReactEventHandler, y: boolean) => React.ReactElement;
|
|
10
|
-
/**
|
|
11
|
-
* The type of the component that wraps the action and content. Must be able to hold a
|
|
12
|
-
* `data-testid` prop
|
|
13
|
-
*
|
|
14
|
-
* @default div
|
|
15
|
-
*/
|
|
16
|
-
component?: ReactComponentLike;
|
|
17
|
-
/**
|
|
18
|
-
* Initial expansion state.
|
|
19
|
-
*
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
initiallyExpanded?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Defining this prop means that the component is controlled
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
expanded?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Change handler for the case when the component is controlled
|
|
31
|
-
*/
|
|
32
|
-
onChange?: React.ReactEventHandler;
|
|
33
|
-
/**
|
|
34
|
-
* The duration for the appear transition
|
|
35
|
-
*
|
|
36
|
-
* @default 200
|
|
37
|
-
*/
|
|
38
|
-
transitionDuration?: number;
|
|
39
|
-
/**
|
|
40
|
-
* A function accepting a boolean representing the current expansion state. Returns the
|
|
41
|
-
* collapsible/expandable content. Mutually exclusive with children.
|
|
42
|
-
*/
|
|
43
|
-
content?: (x: boolean) => React.ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* A function accepting a boolean representing the current expansion state. Returns the
|
|
46
|
-
* collapsible/expandable content. Mutually exclusive with content.
|
|
47
|
-
*/
|
|
48
|
-
children?: (x: boolean) => React.ReactNode;
|
|
49
|
-
} & TestProps;
|
|
50
|
-
declare function ExpandCollapse(props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { Props } from './ExpandCollapse.types';
|
|
2
|
+
declare const ExpandCollapse: (props: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
51
3
|
export default ExpandCollapse;
|
|
4
|
+
export { Props };
|
|
@@ -9,13 +9,21 @@ var _helpers = require("../../utils/helpers");
|
|
|
9
9
|
|
|
10
10
|
var _ExpandCollapse = require("./ExpandCollapse.style");
|
|
11
11
|
|
|
12
|
+
var _ExpandCollapse2 = require("./ExpandCollapse.types");
|
|
13
|
+
|
|
14
|
+
exports.Props = _ExpandCollapse2.Props;
|
|
15
|
+
|
|
16
|
+
var _useManageContentRef = require("./useManageContentRef");
|
|
17
|
+
|
|
18
|
+
var _utils = require("./utils");
|
|
19
|
+
|
|
12
20
|
var _react2 = require("@emotion/react");
|
|
13
21
|
|
|
14
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
23
|
|
|
16
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
25
|
|
|
18
|
-
function ExpandCollapse(props) {
|
|
26
|
+
var ExpandCollapse = function ExpandCollapse(props) {
|
|
19
27
|
var textAndControl = props.textAndControl,
|
|
20
28
|
_props$component = props.component,
|
|
21
29
|
component = _props$component === void 0 ? 'div' : _props$component,
|
|
@@ -28,84 +36,36 @@ function ExpandCollapse(props) {
|
|
|
28
36
|
externallyControlledExpanded = props.expanded,
|
|
29
37
|
onChange = props.onChange,
|
|
30
38
|
dataTestId = props.dataTestId;
|
|
31
|
-
|
|
32
|
-
if (externallyControlledExpanded === undefined && onChange || onChange === undefined && typeof externallyControlledExpanded === 'boolean') {
|
|
33
|
-
throw new Error('If expanded is defined onChange must be defined too and vice versa');
|
|
34
|
-
}
|
|
39
|
+
(0, _helpers.errorHandler)(_utils.errors, props);
|
|
35
40
|
|
|
36
41
|
var _React$useState = React.useState(initiallyExpanded),
|
|
37
42
|
internallyControlledExpanded = _React$useState[0],
|
|
38
43
|
setInternallyControlledExpanded = _React$useState[1];
|
|
39
44
|
|
|
40
|
-
var
|
|
41
|
-
var Component = component;
|
|
42
|
-
var renderFunction = content != null ? content : children;
|
|
43
|
-
|
|
44
|
-
if (renderFunction === undefined) {
|
|
45
|
-
throw new Error('Either content or children must be defined');
|
|
46
|
-
}
|
|
45
|
+
var Component = component; //Case of renderFunction being undefined is handled in error cases.
|
|
47
46
|
|
|
47
|
+
var renderFunction = content != null ? content : children;
|
|
48
48
|
var expanded = externallyControlledExpanded != null ? externallyControlledExpanded : internallyControlledExpanded;
|
|
49
|
+
var contentRef = (0, _useManageContentRef.useManageContentRef)(expanded, transitionDuration);
|
|
49
50
|
|
|
50
|
-
function handleStateChange(e) {
|
|
51
|
+
var handleStateChange = function handleStateChange(e) {
|
|
51
52
|
if (typeof externallyControlledExpanded !== 'boolean') {
|
|
52
53
|
setInternallyControlledExpanded(function (state) {
|
|
53
54
|
return !state;
|
|
54
55
|
});
|
|
55
|
-
} else {
|
|
56
|
-
if (!onChange) {
|
|
57
|
-
throw new Error('onChange function must be defined');
|
|
58
|
-
}
|
|
59
|
-
|
|
56
|
+
} else if (onChange) {
|
|
60
57
|
onChange(e);
|
|
61
58
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function manageContentHeight() {
|
|
65
|
-
if (contentRef.current === null) {
|
|
66
|
-
throw new Error('Uninitialised element ref');
|
|
67
|
-
}
|
|
59
|
+
};
|
|
68
60
|
|
|
69
|
-
if (expanded) {
|
|
70
|
-
contentRef.current.style.height = "";
|
|
71
|
-
} else {
|
|
72
|
-
contentRef.current.style.height = "0";
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function manageContentVisibility() {
|
|
77
|
-
if (contentRef.current === null) {
|
|
78
|
-
throw new Error('Uninitialised element ref');
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
var timeout;
|
|
82
|
-
|
|
83
|
-
if (expanded) {
|
|
84
|
-
contentRef.current.style.visibility = '';
|
|
85
|
-
} else {
|
|
86
|
-
timeout = window.setTimeout(function () {
|
|
87
|
-
if (contentRef.current === null) {
|
|
88
|
-
throw new Error('Uninitialised element ref');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
contentRef.current.style.visibility = 'hidden';
|
|
92
|
-
}, transitionDuration);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return function () {
|
|
96
|
-
clearTimeout(timeout);
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
React.useLayoutEffect(manageContentHeight, [expanded]);
|
|
101
|
-
React.useLayoutEffect(manageContentVisibility, [expanded, transitionDuration]);
|
|
102
61
|
return (0, _react2.jsx)(Component, {
|
|
103
62
|
"data-testid": (0, _helpers.generateTestDataId)('expand-collapse', dataTestId)
|
|
104
63
|
}, textAndControl(handleStateChange, expanded), (0, _react2.jsx)("div", {
|
|
105
64
|
css: (0, _ExpandCollapse.contentStyles)(expanded, transitionDuration),
|
|
106
65
|
ref: contentRef
|
|
107
66
|
}, renderFunction(expanded)));
|
|
108
|
-
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
var _default = ExpandCollapse; //TODO: Remove on v5 and change import where necessary
|
|
109
70
|
|
|
110
|
-
var _default = ExpandCollapse;
|
|
111
71
|
exports["default"] = _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ReactComponentLike } from 'prop-types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { TestProps } from '../../utils/types';
|
|
4
|
+
export declare type SharedProps = {
|
|
5
|
+
/**
|
|
6
|
+
* A function accepting a click handler and a boolean representing the current expansion state. Returns the elements containing the text and the
|
|
7
|
+
* expand/collapse button
|
|
8
|
+
* */
|
|
9
|
+
textAndControl: (x: React.ReactEventHandler, y: boolean) => React.ReactElement;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the component that wraps the action and content. Must be able to hold a
|
|
12
|
+
* `data-testid` prop
|
|
13
|
+
*
|
|
14
|
+
* @default div
|
|
15
|
+
*/
|
|
16
|
+
component?: ReactComponentLike;
|
|
17
|
+
/**
|
|
18
|
+
* Initial expansion state.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
initiallyExpanded?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The duration for the appear transition
|
|
25
|
+
*
|
|
26
|
+
* @default 200
|
|
27
|
+
*/
|
|
28
|
+
transitionDuration?: number;
|
|
29
|
+
/**
|
|
30
|
+
* A function accepting a boolean representing the current expansion state. Returns the
|
|
31
|
+
* collapsible/expandable content. Mutually exclusive with children.
|
|
32
|
+
*/
|
|
33
|
+
content?: (x: boolean) => React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* A function accepting a boolean representing the current expansion state. Returns the
|
|
36
|
+
* collapsible/expandable content. Mutually exclusive with content.
|
|
37
|
+
*/
|
|
38
|
+
children?: (x: boolean) => React.ReactNode;
|
|
39
|
+
} & TestProps;
|
|
40
|
+
export declare type ExternalProps = {
|
|
41
|
+
/**
|
|
42
|
+
* Defining this prop means that the component is controlled
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
expanded: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Change handler for the case when the component is controlled
|
|
49
|
+
*/
|
|
50
|
+
onChange: React.ReactEventHandler;
|
|
51
|
+
};
|
|
52
|
+
export declare type InternalProps = {
|
|
53
|
+
/**
|
|
54
|
+
* Defining this prop means that the component is controlled
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
expanded: undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Change handler for the case when the component is controlled
|
|
61
|
+
*/
|
|
62
|
+
onChange: undefined;
|
|
63
|
+
};
|
|
64
|
+
export declare type Props = SharedProps & (InternalProps | ExternalProps);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.useManageContentRef = void 0;
|
|
5
|
+
|
|
6
|
+
var React = _interopRequireWildcard(require("react"));
|
|
7
|
+
|
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
|
+
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
|
|
12
|
+
var useManageContentRef = function useManageContentRef(expanded, transitionDuration) {
|
|
13
|
+
var contentRef = React.useRef(null);
|
|
14
|
+
|
|
15
|
+
var manageContentHeight = function manageContentHeight() {
|
|
16
|
+
if (contentRef.current === null) {
|
|
17
|
+
throw new Error('Uninitialised element ref');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (expanded) {
|
|
21
|
+
contentRef.current.style.height = "";
|
|
22
|
+
} else {
|
|
23
|
+
contentRef.current.style.height = "0";
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var manageContentVisibility = function manageContentVisibility() {
|
|
28
|
+
if (contentRef.current === null) {
|
|
29
|
+
throw new Error('Uninitialised element ref');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var timeout;
|
|
33
|
+
|
|
34
|
+
if (expanded) {
|
|
35
|
+
contentRef.current.style.visibility = '';
|
|
36
|
+
} else {
|
|
37
|
+
timeout = window.setTimeout(function () {
|
|
38
|
+
if (contentRef.current === null) {
|
|
39
|
+
throw new Error('Uninitialised element ref');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
contentRef.current.style.visibility = 'hidden';
|
|
43
|
+
}, transitionDuration);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return function () {
|
|
47
|
+
clearTimeout(timeout);
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
React.useLayoutEffect(manageContentHeight, [expanded]);
|
|
52
|
+
React.useLayoutEffect(manageContentVisibility, [expanded, transitionDuration]);
|
|
53
|
+
return contentRef;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.useManageContentRef = useManageContentRef;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.errors = void 0;
|
|
5
|
+
|
|
6
|
+
var _errors = require("../../utils/errors");
|
|
7
|
+
|
|
8
|
+
var errors = [{
|
|
9
|
+
condition: function condition(_ref) {
|
|
10
|
+
var expanded = _ref.expanded,
|
|
11
|
+
onChange = _ref.onChange;
|
|
12
|
+
return Boolean(expanded === undefined && onChange || onChange === undefined && typeof expanded === 'boolean');
|
|
13
|
+
},
|
|
14
|
+
error: new _errors.PropsValidationError('If expanded is defined onChange must be defined too and vice versa')
|
|
15
|
+
}, {
|
|
16
|
+
condition: function condition(_ref2) {
|
|
17
|
+
var content = _ref2.content,
|
|
18
|
+
children = _ref2.children;
|
|
19
|
+
return Boolean(content === undefined && children === undefined);
|
|
20
|
+
},
|
|
21
|
+
error: new _errors.PropsValidationError('Either content or children must be defined')
|
|
22
|
+
}];
|
|
23
|
+
exports.errors = errors;
|
|
@@ -19,6 +19,8 @@ var _SearchInput = _interopRequireDefault(require("./components/SearchInput/Sear
|
|
|
19
19
|
|
|
20
20
|
var _Filter = require("./Filter.style");
|
|
21
21
|
|
|
22
|
+
var _utils = require("./utils");
|
|
23
|
+
|
|
22
24
|
var _handleSearch = _interopRequireDefault(require("../utils/handleSearch"));
|
|
23
25
|
|
|
24
26
|
var _react2 = require("@emotion/react");
|
|
@@ -57,6 +59,7 @@ var Filter = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
57
59
|
isVirtualized = _props$isVirtualized === void 0 ? false : _props$isVirtualized,
|
|
58
60
|
_props$onClear = props.onClear,
|
|
59
61
|
onClear = _props$onClear === void 0 ? function () {} : _props$onClear;
|
|
62
|
+
(0, _helpers.errorHandler)(_utils.errors, props);
|
|
60
63
|
|
|
61
64
|
var _React$useState = _react["default"].useState(false),
|
|
62
65
|
isOpen = _React$useState[0],
|
|
@@ -105,15 +108,6 @@ var Filter = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
105
108
|
var debouncedOnChange = _react["default"].useCallback((0, _lodash.debounce)(function (value) {
|
|
106
109
|
onAsyncSearch == null ? void 0 : onAsyncSearch(value);
|
|
107
110
|
}, 400), []);
|
|
108
|
-
/**
|
|
109
|
-
* for 'added' type design team decided that is not needed therefore in order not having to maintain
|
|
110
|
-
* one more special case we dont render it
|
|
111
|
-
**/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (filterType === 'added' && styleType === 'transparent') {
|
|
115
|
-
throw new Error('This filterType and styleType is not supported');
|
|
116
|
-
}
|
|
117
111
|
|
|
118
112
|
return (0, _react2.jsx)(_ClickAwayListener["default"], {
|
|
119
113
|
onClick: function onClick() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BackgroundColorProps, BaseColorProps, BorderProps } from './types';
|
|
1
|
+
import { BackgroundColorProps, BaseColorProps, BorderProps, Props } from './types';
|
|
2
|
+
import { PropsValidationError } from '../../utils/errors';
|
|
2
3
|
export declare const FILTER_OPTIONS_MAX_HEIGHT = 253;
|
|
3
4
|
export declare const HAS_SELECTED_VALUE_COLOR_SHADE = 50;
|
|
4
5
|
export declare const borderStyleParams: string;
|
|
@@ -7,3 +8,11 @@ export declare const transparentFocusBorderWidth = 0;
|
|
|
7
8
|
export declare const getBackgroundColor: ({ open, theme, hasSelectedValue, calculatedColor, styleType, }: BackgroundColorProps) => string;
|
|
8
9
|
export declare const getTextColor: ({ open, theme, hasSelectedValue, calculatedColor, }: BaseColorProps) => string;
|
|
9
10
|
export declare const getBorder: ({ styleType, theme, hasSelectedValue, calculatedColor, open, isDivider, state, }: BorderProps) => string;
|
|
11
|
+
export declare const errors: {
|
|
12
|
+
/**
|
|
13
|
+
* for 'added' type design team decided that is not needed therefore in order not having to maintain
|
|
14
|
+
* one more special case we dont render it
|
|
15
|
+
**/
|
|
16
|
+
condition: ({ filterType, styleType }: Props) => boolean;
|
|
17
|
+
error: PropsValidationError;
|
|
18
|
+
}[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.getBorder = exports.getTextColor = exports.getBackgroundColor = exports.transparentFocusBorderWidth = exports.focusBorderWidth = exports.borderStyleParams = exports.HAS_SELECTED_VALUE_COLOR_SHADE = exports.FILTER_OPTIONS_MAX_HEIGHT = void 0;
|
|
4
|
+
exports.errors = exports.getBorder = exports.getTextColor = exports.getBackgroundColor = exports.transparentFocusBorderWidth = exports.focusBorderWidth = exports.borderStyleParams = exports.HAS_SELECTED_VALUE_COLOR_SHADE = exports.FILTER_OPTIONS_MAX_HEIGHT = void 0;
|
|
5
5
|
|
|
6
6
|
var _utils = require("../../theme/utils");
|
|
7
7
|
|
|
@@ -9,6 +9,8 @@ var _palette = require("../../theme/palette");
|
|
|
9
9
|
|
|
10
10
|
var _utils2 = require("../Button/utils");
|
|
11
11
|
|
|
12
|
+
var _errors = require("../../utils/errors");
|
|
13
|
+
|
|
12
14
|
var FILTER_OPTIONS_MAX_HEIGHT = 253;
|
|
13
15
|
exports.FILTER_OPTIONS_MAX_HEIGHT = FILTER_OPTIONS_MAX_HEIGHT;
|
|
14
16
|
var HAS_SELECTED_VALUE_COLOR_SHADE = 50;
|
|
@@ -98,4 +100,17 @@ var getBorder = function getBorder(_ref3) {
|
|
|
98
100
|
return "transparent";
|
|
99
101
|
};
|
|
100
102
|
|
|
101
|
-
exports.getBorder = getBorder;
|
|
103
|
+
exports.getBorder = getBorder;
|
|
104
|
+
var errors = [{
|
|
105
|
+
/**
|
|
106
|
+
* for 'added' type design team decided that is not needed therefore in order not having to maintain
|
|
107
|
+
* one more special case we dont render it
|
|
108
|
+
**/
|
|
109
|
+
condition: function condition(_ref4) {
|
|
110
|
+
var filterType = _ref4.filterType,
|
|
111
|
+
styleType = _ref4.styleType;
|
|
112
|
+
return Boolean(filterType === 'added' && styleType === 'transparent');
|
|
113
|
+
},
|
|
114
|
+
error: new _errors.PropsValidationError('This filterType and styleType is not supported')
|
|
115
|
+
}];
|
|
116
|
+
exports.errors = errors;
|
|
@@ -16,7 +16,7 @@ var selectWrapper = function selectWrapper(_ref) {
|
|
|
16
16
|
/*#__PURE__*/
|
|
17
17
|
|
|
18
18
|
/*#__PURE__*/
|
|
19
|
-
(0, _react.css)("position:relative;min-width:", (0, _utils.rem)(150), "
|
|
19
|
+
(0, _react.css)("position:relative;min-width:", (0, _utils.rem)(150), ";*{cursor:", !isSearchable && 'pointer', ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:selectWrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3Quc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBUWlDIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3Quc3R5bGUudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB0cmFuc2l0aW9uIH0gZnJvbSAndGhlbWUvZnVuY3Rpb25zJztcbmltcG9ydCB7IHJlbSB9IGZyb20gJ3RoZW1lL3V0aWxzJztcblxuZXhwb3J0IGNvbnN0IHNlbGVjdFdyYXBwZXIgPSAoe1xuICBpc1NlYXJjaGFibGUsXG59OiB7XG4gIGlzU2VhcmNoYWJsZTogYm9vbGVhbjtcbn0pID0+ICgpOiBTZXJpYWxpemVkU3R5bGVzID0+IGNzc2BcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBtaW4td2lkdGg6ICR7cmVtKDE1MCl9O1xuXG4gICoge1xuICAgIGN1cnNvcjogJHshaXNTZWFyY2hhYmxlICYmICdwb2ludGVyJ307XG4gIH1cbmA7XG5cbmV4cG9ydCBjb25zdCByaWdodEljb25Db250YWluZXIgPSAoXG4gIG9wZW46IGJvb2xlYW4sXG4gIGlzU2VhcmNoYWJsZTogYm9vbGVhblxuKSA9PiAoKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIGRpc3BsYXk6IGZsZXg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgdHJhbnNmb3JtOiByb3RhdGUoJHtvcGVuICYmICFpc1NlYXJjaGFibGUgPyAnMTgwJyA6ICcwJ31kZWcpO1xuICAke3RyYW5zaXRpb24oMC4yKX1cbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:selectWrapper;")
|
|
20
20
|
);
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -29,7 +29,7 @@ var rightIconContainer = function rightIconContainer(open, isSearchable) {
|
|
|
29
29
|
/*#__PURE__*/
|
|
30
30
|
|
|
31
31
|
/*#__PURE__*/
|
|
32
|
-
(0, _react.css)("display:flex;cursor:pointer;transform:rotate(", open && !isSearchable ? '180' : '0', "deg);", (0, _functions.transition)(0.2), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:rightIconContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
32
|
+
(0, _react.css)("display:flex;cursor:pointer;transform:rotate(", open && !isSearchable ? '180' : '0', "deg);", (0, _functions.transition)(0.2), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:rightIconContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3Quc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0JnQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9TZWxlY3QvU2VsZWN0LnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgdHJhbnNpdGlvbiB9IGZyb20gJ3RoZW1lL2Z1bmN0aW9ucyc7XG5pbXBvcnQgeyByZW0gfSBmcm9tICd0aGVtZS91dGlscyc7XG5cbmV4cG9ydCBjb25zdCBzZWxlY3RXcmFwcGVyID0gKHtcbiAgaXNTZWFyY2hhYmxlLFxufToge1xuICBpc1NlYXJjaGFibGU6IGJvb2xlYW47XG59KSA9PiAoKTogU2VyaWFsaXplZFN0eWxlcyA9PiBjc3NgXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgbWluLXdpZHRoOiAke3JlbSgxNTApfTtcblxuICAqIHtcbiAgICBjdXJzb3I6ICR7IWlzU2VhcmNoYWJsZSAmJiAncG9pbnRlcid9O1xuICB9XG5gO1xuXG5leHBvcnQgY29uc3QgcmlnaHRJY29uQ29udGFpbmVyID0gKFxuICBvcGVuOiBib29sZWFuLFxuICBpc1NlYXJjaGFibGU6IGJvb2xlYW5cbikgPT4gKCk6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICBkaXNwbGF5OiBmbGV4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHRyYW5zZm9ybTogcm90YXRlKCR7b3BlbiAmJiAhaXNTZWFyY2hhYmxlID8gJzE4MCcgOiAnMCd9ZGVnKTtcbiAgJHt0cmFuc2l0aW9uKDAuMil9XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:rightIconContainer;")
|
|
33
33
|
);
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -33,7 +33,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
33
33
|
} : {
|
|
34
34
|
name: "1v8u42f-TextArea",
|
|
35
35
|
styles: "width:100% ;label:TextArea;",
|
|
36
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RleHRBcmVhL1RleHRBcmVhLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrRGEiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvVGV4dEFyZWEvVGV4dEFyZWEudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IG9taXQgZnJvbSAnbG9kYXNoL29taXQnO1xuaW1wb3J0ICogYXMgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBmb3JtRmllbGRTdHlsZXMgfSBmcm9tICcuLi8uLi90aGVtZS9wYWxldHRlJztcbmltcG9ydCB7IFRlc3RQcm9wcyB9IGZyb20gJy4uLy4uL3V0aWxzL3R5cGVzJztcbmltcG9ydCBUZXh0SW5wdXRCYXNlIGZyb20gJy4uL1RleHRJbnB1dEJhc2UvVGV4dElucHV0QmFzZSc7XG5pbXBvcnQgeyBpbnB1dFN0eWxl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wbGFjZWhvbGRlcixcbiAgICAgICAgICAgICAgcmVzaXplRW5hYmxlZDogIWRpc2FibGVkICYmIHJlc2l6ZUVuYWJsZWQsXG4gICAgICAgICAgICAgIGlzVGV4dEFyZWE6IHRydWUsXG4gICAgICAgICAgICB9KX1cbiAgICAgICAgICAgIHBsYWNlaG9sZGVyPXtwbGFjZWhvbGRlcn1cbiAgICAgICAgICAgIHJlcXVpcmVkPXtyZXF1aXJlZH1cbiAgICAgICAgICAgIGlkPXtpZH1cbiAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgIHsuLi5vbWl0KHJlc3QsIFsnc3R5bGVUeXBlJywgJ2hpbnRNc2cnXSl9XG4gICAgICAgICAgICByZWY9e3JlZn1cbiAgICAgICAgICAvPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvVGV4dElucHV0QmFzZT5cbiAgICA8L1JlYWN0LkZyYWdtZW50PlxuICApO1xufSk7XG5cblRleHRBcmVhLmRpc3BsYXlOYW1lID0gJ1RleHRBcmVhJztcblxuZXhwb3J0IGRlZmF1bHQgVGV4dEFyZWE7XG4iXX0= */",
|
|
37
37
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -56,7 +56,8 @@ var TextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
56
56
|
}, (0, _react2.jsx)("textarea", _extends({
|
|
57
57
|
css: (0, _TextArea.inputStyle)({
|
|
58
58
|
placeholder: placeholder,
|
|
59
|
-
resizeEnabled: !disabled && resizeEnabled
|
|
59
|
+
resizeEnabled: !disabled && resizeEnabled,
|
|
60
|
+
isTextArea: true
|
|
60
61
|
}),
|
|
61
62
|
placeholder: placeholder,
|
|
62
63
|
required: required,
|
|
@@ -22,7 +22,7 @@ var inputStyle = function inputStyle(_ref) {
|
|
|
22
22
|
/*#__PURE__*/
|
|
23
23
|
|
|
24
24
|
/*#__PURE__*/
|
|
25
|
-
(0, _react.css)("resize:", !resizeEnabled ? 'none' : 'both', ";", (0, _TextInputBase.inputStyle)(_extends({}, rest))(theme), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:inputStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
25
|
+
(0, _react.css)("resize:", !resizeEnabled ? 'none' : 'both', ";", (0, _TextInputBase.inputStyle)(_extends({}, rest))(theme), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:inputStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1RleHRBcmVhL1RleHRBcmVhLnN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVMwQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9UZXh0QXJlYS9UZXh0QXJlYS5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICcuLi8uLi90aGVtZSc7XG5pbXBvcnQgeyBQcm9wcyB9IGZyb20gJy4vVGV4dEFyZWEnO1xuaW1wb3J0IHsgUHJvcHMgYXMgVGV4dElucHV0V3JhcHBlclByb3BzIH0gZnJvbSAnY29tcG9uZW50cy9UZXh0SW5wdXRCYXNlJztcbmltcG9ydCB7IGlucHV0U3R5bGUgYXMgYmFzZUlucHV0U3R5bGUgfSBmcm9tICdjb21wb25lbnRzL1RleHRJbnB1dEJhc2UvVGV4dElucHV0QmFzZS5zdHlsZSc7XG5cbmV4cG9ydCBjb25zdCBpbnB1dFN0eWxlID0gKHsgcmVzaXplRW5hYmxlZCwgLi4ucmVzdCB9OiBQcm9wcyAmIFRleHRJbnB1dFdyYXBwZXJQcm9wcykgPT4gKFxuICB0aGVtZTogVGhlbWVcbik6IFNlcmlhbGl6ZWRTdHlsZXMgPT4gY3NzYFxuICByZXNpemU6ICR7IXJlc2l6ZUVuYWJsZWQgPyAnbm9uZScgOiAnYm90aCd9O1xuICAke2Jhc2VJbnB1dFN0eWxlKHsgLi4ucmVzdCB9KSh0aGVtZSl9O1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:inputStyle;")
|
|
26
26
|
);
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -7,5 +7,5 @@ import { Props } from './TextInputBase';
|
|
|
7
7
|
* */
|
|
8
8
|
export declare const wrapperStyle: ({ disabled, locked, status, lean, dark, isSearch, isTextArea, size, }: Props) => (theme: Theme) => SerializedStyles;
|
|
9
9
|
export declare const textFieldStyle: ({ lean, isTextArea }: Props) => (theme: Theme) => SerializedStyles;
|
|
10
|
-
export declare const inputStyle: ({ label, placeholder, size, dark }: Props) => (theme: Theme) => SerializedStyles;
|
|
10
|
+
export declare const inputStyle: ({ label, placeholder, size, dark, isTextArea, }: Props) => (theme: Theme) => SerializedStyles;
|
|
11
11
|
export declare const errorMsgStyle: ({ status }: Props) => (theme: Theme) => SerializedStyles;
|