@equinor/eds-core-react 0.15.0-dev.20211116v2 → 0.16.1-dev.12072021
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/core-react.cjs.js +425 -143
- package/dist/esm/components/Accordion/AccordionHeader.js +2 -2
- package/dist/esm/components/Accordion/AccordionItem.js +2 -2
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Button/tokens/button.js +2 -2
- package/dist/esm/components/Button/tokens/contained.js +4 -4
- package/dist/esm/components/Button/tokens/ghost.js +4 -4
- package/dist/esm/components/Button/tokens/icon.js +6 -6
- package/dist/esm/components/Button/tokens/outlined.js +4 -4
- package/dist/esm/components/Card/Card.js +2 -3
- package/dist/esm/components/Card/CardActions.js +6 -2
- package/dist/esm/components/Card/CardContent.js +24 -0
- package/dist/esm/components/Card/CardHeader.js +1 -1
- package/dist/esm/components/Card/CardMedia.js +2 -2
- package/dist/esm/components/Card/index.js +3 -0
- package/dist/esm/components/Checkbox/Input.js +5 -3
- package/dist/esm/components/Chip/Chip.js +1 -1
- package/dist/esm/components/Divider/Divider.tokens.js +2 -2
- package/dist/esm/components/Icon/Icon.js +7 -7
- package/dist/esm/components/Input/Input.tokens.js +4 -4
- package/dist/esm/components/Menu/Menu.context.js +6 -1
- package/dist/esm/components/Menu/Menu.js +6 -0
- package/dist/esm/components/Menu/MenuItem.js +6 -6
- package/dist/esm/components/Menu/MenuList.js +2 -2
- package/dist/esm/components/Menu/MenuSection.js +4 -4
- package/dist/esm/components/Pagination/Pagination.js +5 -10
- package/dist/esm/components/Progress/Circular/CircularProgress.js +1 -1
- package/dist/esm/components/Progress/Linear/LinearProgress.js +1 -1
- package/dist/esm/components/Radio/Radio.js +4 -2
- package/dist/esm/components/Search/Search.js +10 -8
- package/dist/esm/components/Search/Search.tokens.js +7 -0
- package/dist/esm/components/Select/MultiSelect/MultiSelect.js +2 -2
- package/dist/esm/components/Select/Select.tokens.js +2 -2
- package/dist/esm/components/Select/SingleSelect/SingleSelect.js +1 -1
- package/dist/esm/components/Slider/Slider.js +4 -4
- package/dist/esm/components/Slider/SliderInput.js +1 -1
- package/dist/esm/components/Switch/Switch.styles.js +1 -1
- package/dist/esm/components/Switch/Switch.tokens.js +4 -4
- package/dist/esm/components/Switch/SwitchSmall.js +2 -1
- package/dist/esm/components/Table/DataCell/DataCell.tokens.js +2 -2
- package/dist/esm/components/Tabs/Tab.js +2 -2
- package/dist/esm/components/Tabs/TabList.js +2 -2
- package/dist/esm/components/Tabs/TabPanel.js +1 -1
- package/dist/esm/components/Tabs/TabPanels.js +2 -2
- package/dist/esm/components/TextField/Field.js +2 -2
- package/dist/esm/components/TextField/HelperText/HelperText.js +1 -1
- package/dist/esm/components/Textarea/Textarea.js +1 -1
- package/dist/esm/components/TopBar/Actions.js +1 -1
- package/dist/esm/components/Typography/Typography.js +3 -3
- package/dist/esm/hooks/useAutoResize.js +1 -1
- package/dist/esm/hooks/useId.js +1 -1
- package/dist/esm/hooks/useToken.js +2 -2
- package/dist/esm/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_curry1.js +25 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_curry2.js +38 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_curry3.js +57 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_has.js +7 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_isObject.js +7 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/internal/_isPlaceholder.js +7 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/mergeDeepRight.js +36 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/mergeDeepWithKey.js +49 -0
- package/dist/esm/node_modules/.pnpm/ramda@0.27.1/node_modules/ramda/src/mergeWithKey.js +53 -0
- package/dist/esm/utils/templates/common.js +1 -1
- package/dist/esm/utils/templates/index.js +8 -15
- package/dist/types/components/Card/CardContent.d.ts +3 -0
- package/dist/types/components/Card/index.d.ts +3 -1
- package/dist/types/components/Menu/Menu.d.ts +2 -2
- package/dist/types/components/Menu/MenuItem.d.ts +2 -2
- package/dist/types/components/Menu/MenuList.d.ts +1 -1
- package/dist/types/components/Table/Cell.d.ts +2 -2
- package/dist/types/components/Table/DataCell/DataCell.d.ts +1 -1
- package/dist/types/components/Table/HeaderCell/HeaderCell.d.ts +1 -1
- package/dist/types/components/Typography/Typography.tokens.d.ts +2 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +6 -6
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _curry2_1 from './internal/_curry2.js';
|
|
2
|
+
import mergeDeepWithKey_1 from './mergeDeepWithKey.js';
|
|
3
|
+
|
|
4
|
+
var _curry2 = _curry2_1;
|
|
5
|
+
var mergeDeepWithKey = mergeDeepWithKey_1;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new object with the own properties of the first object merged with
|
|
8
|
+
* the own properties of the second object. If a key exists in both objects:
|
|
9
|
+
* - and both values are objects, the two values will be recursively merged
|
|
10
|
+
* - otherwise the value from the second object will be used.
|
|
11
|
+
*
|
|
12
|
+
* @func
|
|
13
|
+
* @memberOf R
|
|
14
|
+
* @since v0.24.0
|
|
15
|
+
* @category Object
|
|
16
|
+
* @sig {a} -> {a} -> {a}
|
|
17
|
+
* @param {Object} lObj
|
|
18
|
+
* @param {Object} rObj
|
|
19
|
+
* @return {Object}
|
|
20
|
+
* @see R.merge, R.mergeDeepLeft, R.mergeDeepWith, R.mergeDeepWithKey
|
|
21
|
+
* @example
|
|
22
|
+
*
|
|
23
|
+
* R.mergeDeepRight({ name: 'fred', age: 10, contact: { email: 'moo@example.com' }},
|
|
24
|
+
* { age: 40, contact: { email: 'baa@example.com' }});
|
|
25
|
+
* //=> { name: 'fred', age: 40, contact: { email: 'baa@example.com' }}
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
var mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {
|
|
29
|
+
return mergeDeepWithKey(function (k, lVal, rVal) {
|
|
30
|
+
return rVal;
|
|
31
|
+
}, lObj, rObj);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var mergeDeepRight_1 = mergeDeepRight;
|
|
35
|
+
|
|
36
|
+
export default mergeDeepRight_1;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _curry3_1 from './internal/_curry3.js';
|
|
2
|
+
import _isObject_1 from './internal/_isObject.js';
|
|
3
|
+
import mergeWithKey_1 from './mergeWithKey.js';
|
|
4
|
+
|
|
5
|
+
var _curry3 = _curry3_1;
|
|
6
|
+
var _isObject = _isObject_1;
|
|
7
|
+
var mergeWithKey = mergeWithKey_1;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new object with the own properties of the two provided objects.
|
|
10
|
+
* If a key exists in both objects:
|
|
11
|
+
* - and both associated values are also objects then the values will be
|
|
12
|
+
* recursively merged.
|
|
13
|
+
* - otherwise the provided function is applied to the key and associated values
|
|
14
|
+
* using the resulting value as the new value associated with the key.
|
|
15
|
+
* If a key only exists in one object, the value will be associated with the key
|
|
16
|
+
* of the resulting object.
|
|
17
|
+
*
|
|
18
|
+
* @func
|
|
19
|
+
* @memberOf R
|
|
20
|
+
* @since v0.24.0
|
|
21
|
+
* @category Object
|
|
22
|
+
* @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}
|
|
23
|
+
* @param {Function} fn
|
|
24
|
+
* @param {Object} lObj
|
|
25
|
+
* @param {Object} rObj
|
|
26
|
+
* @return {Object}
|
|
27
|
+
* @see R.mergeWithKey, R.mergeDeepWith
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* let concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r
|
|
31
|
+
* R.mergeDeepWithKey(concatValues,
|
|
32
|
+
* { a: true, c: { thing: 'foo', values: [10, 20] }},
|
|
33
|
+
* { b: true, c: { thing: 'bar', values: [15, 35] }});
|
|
34
|
+
* //=> { a: true, b: true, c: { thing: 'bar', values: [10, 20, 15, 35] }}
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
var mergeDeepWithKey = /*#__PURE__*/_curry3(function mergeDeepWithKey(fn, lObj, rObj) {
|
|
38
|
+
return mergeWithKey(function (k, lVal, rVal) {
|
|
39
|
+
if (_isObject(lVal) && _isObject(rVal)) {
|
|
40
|
+
return mergeDeepWithKey(fn, lVal, rVal);
|
|
41
|
+
} else {
|
|
42
|
+
return fn(k, lVal, rVal);
|
|
43
|
+
}
|
|
44
|
+
}, lObj, rObj);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
var mergeDeepWithKey_1 = mergeDeepWithKey;
|
|
48
|
+
|
|
49
|
+
export default mergeDeepWithKey_1;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _curry3_1 from './internal/_curry3.js';
|
|
2
|
+
import _has_1 from './internal/_has.js';
|
|
3
|
+
|
|
4
|
+
var _curry3 = _curry3_1;
|
|
5
|
+
var _has = _has_1;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new object with the own properties of the two provided objects. If
|
|
8
|
+
* a key exists in both objects, the provided function is applied to the key
|
|
9
|
+
* and the values associated with the key in each object, with the result being
|
|
10
|
+
* used as the value associated with the key in the returned object.
|
|
11
|
+
*
|
|
12
|
+
* @func
|
|
13
|
+
* @memberOf R
|
|
14
|
+
* @since v0.19.0
|
|
15
|
+
* @category Object
|
|
16
|
+
* @sig ((String, a, a) -> a) -> {a} -> {a} -> {a}
|
|
17
|
+
* @param {Function} fn
|
|
18
|
+
* @param {Object} l
|
|
19
|
+
* @param {Object} r
|
|
20
|
+
* @return {Object}
|
|
21
|
+
* @see R.mergeDeepWithKey, R.merge, R.mergeWith
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* let concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r
|
|
25
|
+
* R.mergeWithKey(concatValues,
|
|
26
|
+
* { a: true, thing: 'foo', values: [10, 20] },
|
|
27
|
+
* { b: true, thing: 'bar', values: [15, 35] });
|
|
28
|
+
* //=> { a: true, b: true, thing: 'bar', values: [10, 20, 15, 35] }
|
|
29
|
+
* @symb R.mergeWithKey(f, { x: 1, y: 2 }, { y: 5, z: 3 }) = { x: 1, y: f('y', 2, 5), z: 3 }
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
var mergeWithKey = /*#__PURE__*/_curry3(function mergeWithKey(fn, l, r) {
|
|
33
|
+
var result = {};
|
|
34
|
+
var k;
|
|
35
|
+
|
|
36
|
+
for (k in l) {
|
|
37
|
+
if (_has(k, l)) {
|
|
38
|
+
result[k] = _has(k, r) ? fn(k, l[k], r[k]) : l[k];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
for (k in r) {
|
|
43
|
+
if (_has(k, r) && !_has(k, result)) {
|
|
44
|
+
result[k] = r[k];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return result;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
var mergeWithKey_1 = mergeWithKey;
|
|
52
|
+
|
|
53
|
+
export default mergeWithKey_1;
|
|
@@ -5,41 +5,34 @@ const typographyTemplate = (typography, link) => {
|
|
|
5
5
|
return '';
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
let base =
|
|
9
|
-
margin: 0;
|
|
10
|
-
color: ${typography.color};
|
|
11
|
-
font-family: ${typography.fontFamily};
|
|
12
|
-
font-size: ${typography.fontSize};
|
|
13
|
-
font-weight: ${typography.fontWeight};
|
|
14
|
-
line-height: ${typography.lineHeight};
|
|
15
|
-
`;
|
|
8
|
+
let base = "\n margin: 0;\n color: ".concat(typography.color, ";\n font-family: ").concat(typography.fontFamily, ";\n font-size: ").concat(typography.fontSize, ";\n font-weight: ").concat(typography.fontWeight, ";\n line-height: ").concat(typography.lineHeight, ";\n ");
|
|
16
9
|
|
|
17
10
|
if (typography.fontStyle) {
|
|
18
|
-
base +=
|
|
11
|
+
base += "\nfont-style: ".concat(typography.fontStyle, ";");
|
|
19
12
|
}
|
|
20
13
|
|
|
21
14
|
if (typography.letterSpacing) {
|
|
22
|
-
base +=
|
|
15
|
+
base += "\nletter-spacing: ".concat(typography.letterSpacing, ";");
|
|
23
16
|
}
|
|
24
17
|
|
|
25
18
|
if (typography.textTransform) {
|
|
26
|
-
base +=
|
|
19
|
+
base += "\ntext-transform: ".concat(typography.textTransform, ";");
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
if (typography.textDecoration) {
|
|
30
|
-
base +=
|
|
23
|
+
base += "\ntext-decoration: ".concat(typography.textDecoration, ";");
|
|
31
24
|
}
|
|
32
25
|
|
|
33
26
|
if (typography.textAlign) {
|
|
34
|
-
base +=
|
|
27
|
+
base += "\ntext-align: ".concat(typography.textAlign, ";");
|
|
35
28
|
}
|
|
36
29
|
|
|
37
30
|
if (typography.fontFeature) {
|
|
38
|
-
base +=
|
|
31
|
+
base += "\nfont-feature-settings: ".concat(typography.fontFeature, ";");
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
if (link) {
|
|
42
|
-
base +=
|
|
35
|
+
base += "\ncursor: pointer;";
|
|
43
36
|
}
|
|
44
37
|
|
|
45
38
|
return base;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { Card as CardWrapper, CardProps } from './Card';
|
|
2
2
|
import { CardActions, CardActionsProps } from './CardActions';
|
|
3
|
+
import { CardContent, CardContentProps } from './CardContent';
|
|
3
4
|
import { CardMedia, CardMediaProps } from './CardMedia';
|
|
4
5
|
import { CardHeader, CardHeaderProps } from './CardHeader';
|
|
5
6
|
import { CardHeaderTitle, CardHeaderTitleProps } from './CardHeaderTitle';
|
|
6
7
|
declare type CardCompoundProps = typeof CardWrapper & {
|
|
7
8
|
Actions: typeof CardActions;
|
|
9
|
+
Content: typeof CardContent;
|
|
8
10
|
Header: typeof CardHeader;
|
|
9
11
|
Media: typeof CardMedia;
|
|
10
12
|
HeaderTitle: typeof CardHeaderTitle;
|
|
11
13
|
};
|
|
12
14
|
declare const Card: CardCompoundProps;
|
|
13
15
|
export { Card };
|
|
14
|
-
export type { CardProps, CardActionsProps, CardMediaProps, CardHeaderProps, CardHeaderTitleProps, };
|
|
16
|
+
export type { CardProps, CardActionsProps, CardContentProps, CardMediaProps, CardHeaderProps, CardHeaderTitleProps, };
|
|
@@ -12,7 +12,7 @@ export declare type MenuProps = {
|
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
/** Menu placement relative to anchorEl */
|
|
14
14
|
placement?: Placement;
|
|
15
|
-
} & HTMLAttributes<
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
16
16
|
export declare const Menu: import("react").ForwardRefExoticComponent<{
|
|
17
17
|
/** Anchor element for Menu */
|
|
18
18
|
anchorEl?: HTMLElement | null;
|
|
@@ -24,4 +24,4 @@ export declare const Menu: import("react").ForwardRefExoticComponent<{
|
|
|
24
24
|
onClose?: () => void;
|
|
25
25
|
/** Menu placement relative to anchorEl */
|
|
26
26
|
placement?: Placement;
|
|
27
|
-
} & HTMLAttributes<
|
|
27
|
+
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -8,7 +8,7 @@ export declare type MenuItemProps = {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
/** onClick handler */
|
|
10
10
|
onClick?: (e: React.MouseEvent) => void;
|
|
11
|
-
} & React.HTMLAttributes<
|
|
11
|
+
} & React.HTMLAttributes<HTMLButtonElement>;
|
|
12
12
|
export declare const MenuItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
13
13
|
/** @ignore */
|
|
14
14
|
index?: number;
|
|
@@ -18,4 +18,4 @@ export declare const MenuItem: import("react").MemoExoticComponent<import("react
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
/** onClick handler */
|
|
20
20
|
onClick?: (e: React.MouseEvent) => void;
|
|
21
|
-
} & import("react").HTMLAttributes<
|
|
21
|
+
} & import("react").HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
@@ -4,5 +4,5 @@ declare type MenuListProps = {
|
|
|
4
4
|
focus?: FocusTarget;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare const MenuList: import("react").ForwardRefExoticComponent<MenuListProps & import("react").RefAttributes<
|
|
7
|
+
export declare const MenuList: import("react").ForwardRefExoticComponent<MenuListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export {};
|
|
@@ -7,5 +7,5 @@ export declare type CellProps = {
|
|
|
7
7
|
color?: Colors;
|
|
8
8
|
/** Specifies cell sort direction */
|
|
9
9
|
sort?: React.AriaAttributes['aria-sort'];
|
|
10
|
-
} & (TdHTMLAttributes<
|
|
11
|
-
export declare const Cell: import("react").ForwardRefExoticComponent<CellProps & import("react").RefAttributes<
|
|
10
|
+
} & (TdHTMLAttributes<HTMLTableCellElement> | ThHTMLAttributes<HTMLTableCellElement>);
|
|
11
|
+
export declare const Cell: import("react").ForwardRefExoticComponent<CellProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
@@ -5,4 +5,4 @@ export declare const TableDataCell: import("react").ForwardRefExoticComponent<{
|
|
|
5
5
|
variant?: Variants;
|
|
6
6
|
/** Specifies cell background color */
|
|
7
7
|
color?: Colors;
|
|
8
|
-
} & TdHTMLAttributes<
|
|
8
|
+
} & TdHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
@@ -2,4 +2,4 @@ import { ThHTMLAttributes } from 'react';
|
|
|
2
2
|
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<{
|
|
3
3
|
sort?: React.AriaAttributes['aria-sort'];
|
|
4
4
|
sticky?: boolean;
|
|
5
|
-
} & ThHTMLAttributes<
|
|
5
|
+
} & ThHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
@@ -450,4 +450,5 @@ declare type TypographyVariants = keyof TypographyTokens['heading'] | keyof Typo
|
|
|
450
450
|
declare type ColorVariants = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'disabled';
|
|
451
451
|
declare type TypographyGroups = keyof typeof typography;
|
|
452
452
|
declare const link: ComponentToken;
|
|
453
|
-
export { typography, colors, quickVariants,
|
|
453
|
+
export { typography, colors, quickVariants, link };
|
|
454
|
+
export type { TypographyVariants, ColorVariants, TypographyGroups };
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-core-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1-dev.12072021",
|
|
4
4
|
"description": "The React implementation of the Equinor Design System",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/core-react.cjs.js",
|
|
@@ -62,13 +62,14 @@
|
|
|
62
62
|
"jest": "^27.0.6",
|
|
63
63
|
"jest-styled-components": "^7.0.5",
|
|
64
64
|
"js-file-download": "^0.4.12",
|
|
65
|
-
"
|
|
65
|
+
"ramda": "^0.27.1",
|
|
66
66
|
"react": "^17.0.2",
|
|
67
67
|
"react-dom": "^17.0.2",
|
|
68
68
|
"react-hook-form": "^7.11.1",
|
|
69
69
|
"rollup": "^2.53.3",
|
|
70
70
|
"rollup-plugin-delete": "^2.0.0",
|
|
71
71
|
"styled-components": "5.3.0",
|
|
72
|
+
"tsc-watch": "^4.5.0",
|
|
72
73
|
"typescript": "^4.3.5"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
@@ -82,8 +83,6 @@
|
|
|
82
83
|
"@equinor/eds-tokens": "0.7.0",
|
|
83
84
|
"@popperjs/core": "2.9.2",
|
|
84
85
|
"downshift": "^6.1.7",
|
|
85
|
-
"focus-visible": "^5.2.0",
|
|
86
|
-
"ramda": "^0.27.1",
|
|
87
86
|
"react-fast-compare": "3.2.0",
|
|
88
87
|
"react-popper": "2.2.5"
|
|
89
88
|
},
|
|
@@ -91,10 +90,11 @@
|
|
|
91
90
|
"pnpm": ">=4",
|
|
92
91
|
"node": ">=10.0.0"
|
|
93
92
|
},
|
|
93
|
+
"browserslist": "defaults, not IE 11",
|
|
94
94
|
"scripts": {
|
|
95
95
|
"build": "rollup -c && tsc -p tsconfig.json",
|
|
96
|
-
"test": "tsc -p tsconfig.json && jest",
|
|
97
|
-
"test:watch": "jest --watch",
|
|
96
|
+
"test": "tsc -p tsconfig.test.json && jest",
|
|
97
|
+
"test:watch": "tsc-watch -p tsconfig.test.json --onFirstSuccess \"jest --watch\"",
|
|
98
98
|
"test:update-snapshots": "jest --updateSnapshot",
|
|
99
99
|
"storybook": "start-storybook -p 9000 --ci",
|
|
100
100
|
"build:storybook": "build-storybook -o storybook-build"
|