@nulogy/components 6.3.0 → 6.4.1

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/main.js CHANGED
@@ -191,7 +191,8 @@
191
191
 
192
192
  var i18nOptions = _objectSpread$6(_objectSpread$6(_objectSpread$6({}, getDefaults()), i18n.options.react), props);
193
193
 
194
- var useSuspense = i18nOptions.useSuspense;
194
+ var useSuspense = i18nOptions.useSuspense,
195
+ keyPrefix = i18nOptions.keyPrefix;
195
196
  var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
196
197
  namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
197
198
  if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
@@ -200,7 +201,7 @@
200
201
  });
201
202
 
202
203
  function getT() {
203
- return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0]);
204
+ return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
204
205
  }
205
206
 
206
207
  var _useState = React.useState(getT),
@@ -20204,6 +20205,11 @@
20204
20205
 
20205
20206
  var spaceProps = getSubset(props, propTypes.space);
20206
20207
  var restProps = omitSubset(props, propTypes.space);
20208
+ var modifiers = React.useMemo(function () {
20209
+ return transformPropsToModifiers({
20210
+ boundariesElement: boundariesElement
20211
+ });
20212
+ }, [boundariesElement]);
20207
20213
  return /*#__PURE__*/React__default['default'].createElement(Popper$1, {
20208
20214
  trigger: /*#__PURE__*/React__default['default'].cloneElement(trigger(), Object.assign({
20209
20215
  type: "button",
@@ -20218,9 +20224,7 @@
20218
20224
  openOnClick: true,
20219
20225
  ref: ref,
20220
20226
  openOnHover: false,
20221
- modifiers: transformPropsToModifiers({
20222
- boundariesElement: boundariesElement
20223
- }),
20227
+ modifiers: modifiers,
20224
20228
  backgroundColor: backgroundColor,
20225
20229
  borderColor: backgroundColor,
20226
20230
  openAriaLabel: openAriaLabel,
@@ -44179,22 +44183,6 @@
44179
44183
  opacity: 0
44180
44184
  }, visible ? FADE_IN_STYLES : FADE_OUT_STYLES);
44181
44185
  });
44182
- var AnimatedBoxBottom = styled__default['default'](Box).withConfig({
44183
- displayName: "Toast__AnimatedBoxBottom",
44184
- componentId: "sc-1cheg2k-1"
44185
- })(function (_ref2) {
44186
- var visible = _ref2.visible;
44187
- return Object.assign({
44188
- position: "fixed",
44189
- bottom: 0,
44190
- left: 0,
44191
- right: 0,
44192
- marginLeft: "auto",
44193
- marginRight: "auto",
44194
- width: "fit-content",
44195
- tranform: "translateY(" + TOAST_Y_MIN + ")"
44196
- }, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES);
44197
- });
44198
44186
  var Toast = function Toast(_a) {
44199
44187
  var triggered = _a.triggered,
44200
44188
  onHide = _a.onHide,
@@ -44203,7 +44191,8 @@
44203
44191
  children = _a.children,
44204
44192
  showDuration = _a.showDuration,
44205
44193
  onHidden = _a.onHidden,
44206
- props = __rest(_a, ["triggered", "onHide", "onShow", "isCloseable", "children", "showDuration", "onHidden"]);
44194
+ zIndex = _a.zIndex,
44195
+ props = __rest(_a, ["triggered", "onHide", "onShow", "isCloseable", "children", "showDuration", "onHidden", "zIndex"]);
44207
44196
 
44208
44197
  var _useState = React.useState(triggered),
44209
44198
  visible = _useState[0],
@@ -44266,13 +44255,23 @@
44266
44255
  hideToast(0);
44267
44256
  };
44268
44257
 
44269
- return /*#__PURE__*/React__default['default'].createElement(AnimatedBoxBottom, {
44258
+ return /*#__PURE__*/React__default['default'].createElement(Box, Object.assign({
44270
44259
  visible: visible,
44271
44260
  onMouseEnter: onMouseIn,
44272
44261
  onFocus: onMouseIn,
44273
44262
  onMouseLeave: onMouseOut,
44274
- onBlur: onMouseOut
44275
- }, /*#__PURE__*/React__default['default'].createElement(AnimatedAlert, Object.assign({
44263
+ onBlur: onMouseOut,
44264
+ position: "fixed",
44265
+ bottom: "0",
44266
+ left: "0",
44267
+ right: "0",
44268
+ marginLeft: "auto",
44269
+ marginRight: "auto",
44270
+ width: "fit-content",
44271
+ transform: "translateY(" + TOAST_Y_MIN + ")"
44272
+ }, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES, {
44273
+ zIndex: zIndex
44274
+ }), /*#__PURE__*/React__default['default'].createElement(AnimatedAlert, Object.assign({
44276
44275
  visible: visible,
44277
44276
  isCloseable: isCloseable,
44278
44277
  onClose: handleCloseButtonClick,
@@ -52636,6 +52635,89 @@
52636
52635
  }, props));
52637
52636
  };
52638
52637
 
52638
+ var numericAlphabeticalSort = function numericAlphabeticalSort(a, b, numeric) {
52639
+ return String(a).localeCompare(b, undefined, {
52640
+ numeric: numeric,
52641
+ sensitivity: "base"
52642
+ });
52643
+ };
52644
+
52645
+ var applySort = function applySort(rows, sortColumn, columns) {
52646
+ return [].concat(rows).sort(function (a, b) {
52647
+ var column = columns.find(function (col) {
52648
+ return col.dataKey === sortColumn;
52649
+ });
52650
+ var numeric = column.numeric;
52651
+ return numericAlphabeticalSort(a[sortColumn], b[sortColumn], numeric);
52652
+ });
52653
+ };
52654
+
52655
+ var sortRows = function sortRows(rows, columns, sortState) {
52656
+ var sortedRows = applySort(rows, sortState.sortColumn, columns);
52657
+ return sortState.ascending ? sortedRows : sortedRows.reverse();
52658
+ };
52659
+
52660
+ var SortingTable = function SortingTable(_a) {
52661
+ var incomingColumns = _a.columns,
52662
+ incomingRows = _a.rows,
52663
+ initialSortColumn = _a.initialSortColumn,
52664
+ props = __rest(_a, ["columns", "rows", "initialSortColumn"]);
52665
+
52666
+ var _useState = React.useState({
52667
+ ascending: true,
52668
+ sortColumn: initialSortColumn
52669
+ }),
52670
+ sortState = _useState[0],
52671
+ setSortState = _useState[1];
52672
+
52673
+ var _useState2 = React.useState(function () {
52674
+ return sortRows(incomingRows, incomingColumns, sortState);
52675
+ }),
52676
+ rows = _useState2[0],
52677
+ setRows = _useState2[1];
52678
+
52679
+ var onSortChange = function onSortChange(dataKey) {
52680
+ var newSortState;
52681
+ setSortState(function (previousState) {
52682
+ var ascending = previousState.sortColumn !== dataKey || !previousState.ascending;
52683
+ newSortState = {
52684
+ ascending: ascending,
52685
+ sortColumn: dataKey
52686
+ };
52687
+ return newSortState;
52688
+ });
52689
+ setRows(function (previousState) {
52690
+ return sortRows(previousState, incomingColumns, newSortState);
52691
+ });
52692
+ };
52693
+
52694
+ var transformColumn = function transformColumn(column) {
52695
+ var isAscending = sortState.ascending && column.dataKey === sortState.sortColumn;
52696
+ return Object.assign(Object.assign({}, column), {
52697
+ headerFormatter: function headerFormatter(_ref) {
52698
+ var label = _ref.label,
52699
+ dataKey = _ref.dataKey;
52700
+ return /*#__PURE__*/React__default['default'].createElement(Table.SortingHeader, {
52701
+ onChange: function onChange() {
52702
+ return onSortChange(dataKey);
52703
+ },
52704
+ label: label,
52705
+ ascending: isAscending,
52706
+ active: dataKey === sortState.sortColumn
52707
+ });
52708
+ }
52709
+ });
52710
+ };
52711
+
52712
+ var columns = incomingColumns.map(function (column) {
52713
+ return transformColumn(column);
52714
+ });
52715
+ return /*#__PURE__*/React__default['default'].createElement(Table, Object.assign({
52716
+ columns: columns,
52717
+ rows: rows
52718
+ }, props));
52719
+ };
52720
+
52639
52721
  exports.ALL_NDS_LOCALES = ALL_NDS_LOCALES;
52640
52722
  exports.Alert = Alert;
52641
52723
  exports.AnimatedBox = AnimatedBox;
@@ -52702,6 +52784,7 @@
52702
52784
  exports.SelectMultiValue = SelectMultiValue;
52703
52785
  exports.SelectOption = SelectOption;
52704
52786
  exports.Sidebar = Sidebar;
52787
+ exports.SortingTable = SortingTable;
52705
52788
  exports.StatusIndicator = StatusIndicator;
52706
52789
  exports.Tab = Tab;
52707
52790
  exports.Table = Table;
@@ -165,7 +165,8 @@ function useTranslation(ns) {
165
165
 
166
166
  var i18nOptions = _objectSpread$6(_objectSpread$6(_objectSpread$6({}, getDefaults()), i18n.options.react), props);
167
167
 
168
- var useSuspense = i18nOptions.useSuspense;
168
+ var useSuspense = i18nOptions.useSuspense,
169
+ keyPrefix = i18nOptions.keyPrefix;
169
170
  var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
170
171
  namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
171
172
  if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);
@@ -174,7 +175,7 @@ function useTranslation(ns) {
174
175
  });
175
176
 
176
177
  function getT() {
177
- return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0]);
178
+ return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
178
179
  }
179
180
 
180
181
  var _useState = useState(getT),
@@ -20178,6 +20179,11 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
20178
20179
 
20179
20180
  var spaceProps = getSubset(props, propTypes.space);
20180
20181
  var restProps = omitSubset(props, propTypes.space);
20182
+ var modifiers = useMemo(function () {
20183
+ return transformPropsToModifiers({
20184
+ boundariesElement: boundariesElement
20185
+ });
20186
+ }, [boundariesElement]);
20181
20187
  return /*#__PURE__*/React__default.createElement(Popper$1, {
20182
20188
  trigger: /*#__PURE__*/React__default.cloneElement(trigger(), Object.assign({
20183
20189
  type: "button",
@@ -20192,9 +20198,7 @@ var DropdownMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
20192
20198
  openOnClick: true,
20193
20199
  ref: ref,
20194
20200
  openOnHover: false,
20195
- modifiers: transformPropsToModifiers({
20196
- boundariesElement: boundariesElement
20197
- }),
20201
+ modifiers: modifiers,
20198
20202
  backgroundColor: backgroundColor,
20199
20203
  borderColor: backgroundColor,
20200
20204
  openAriaLabel: openAriaLabel,
@@ -44153,22 +44157,6 @@ var AnimatedAlert = styled(Alert).withConfig({
44153
44157
  opacity: 0
44154
44158
  }, visible ? FADE_IN_STYLES : FADE_OUT_STYLES);
44155
44159
  });
44156
- var AnimatedBoxBottom = styled(Box).withConfig({
44157
- displayName: "Toast__AnimatedBoxBottom",
44158
- componentId: "sc-1cheg2k-1"
44159
- })(function (_ref2) {
44160
- var visible = _ref2.visible;
44161
- return Object.assign({
44162
- position: "fixed",
44163
- bottom: 0,
44164
- left: 0,
44165
- right: 0,
44166
- marginLeft: "auto",
44167
- marginRight: "auto",
44168
- width: "fit-content",
44169
- tranform: "translateY(" + TOAST_Y_MIN + ")"
44170
- }, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES);
44171
- });
44172
44160
  var Toast = function Toast(_a) {
44173
44161
  var triggered = _a.triggered,
44174
44162
  onHide = _a.onHide,
@@ -44177,7 +44165,8 @@ var Toast = function Toast(_a) {
44177
44165
  children = _a.children,
44178
44166
  showDuration = _a.showDuration,
44179
44167
  onHidden = _a.onHidden,
44180
- props = __rest(_a, ["triggered", "onHide", "onShow", "isCloseable", "children", "showDuration", "onHidden"]);
44168
+ zIndex = _a.zIndex,
44169
+ props = __rest(_a, ["triggered", "onHide", "onShow", "isCloseable", "children", "showDuration", "onHidden", "zIndex"]);
44181
44170
 
44182
44171
  var _useState = useState(triggered),
44183
44172
  visible = _useState[0],
@@ -44240,13 +44229,23 @@ var Toast = function Toast(_a) {
44240
44229
  hideToast(0);
44241
44230
  };
44242
44231
 
44243
- return /*#__PURE__*/React__default.createElement(AnimatedBoxBottom, {
44232
+ return /*#__PURE__*/React__default.createElement(Box, Object.assign({
44244
44233
  visible: visible,
44245
44234
  onMouseEnter: onMouseIn,
44246
44235
  onFocus: onMouseIn,
44247
44236
  onMouseLeave: onMouseOut,
44248
- onBlur: onMouseOut
44249
- }, /*#__PURE__*/React__default.createElement(AnimatedAlert, Object.assign({
44237
+ onBlur: onMouseOut,
44238
+ position: "fixed",
44239
+ bottom: "0",
44240
+ left: "0",
44241
+ right: "0",
44242
+ marginLeft: "auto",
44243
+ marginRight: "auto",
44244
+ width: "fit-content",
44245
+ transform: "translateY(" + TOAST_Y_MIN + ")"
44246
+ }, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES, {
44247
+ zIndex: zIndex
44248
+ }), /*#__PURE__*/React__default.createElement(AnimatedAlert, Object.assign({
44250
44249
  visible: visible,
44251
44250
  isCloseable: isCloseable,
44252
44251
  onClose: handleCloseButtonClick,
@@ -52610,4 +52609,87 @@ var Divider = function Divider(_a) {
52610
52609
  }, props));
52611
52610
  };
52612
52611
 
52613
- export { ALL_NDS_LOCALES, Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Box, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input$1 as Input, Link, List, ListItem, LoadingAnimation, Modal, NDSProvider, NavBar$1 as NavBar, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer$1 as SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, StatusIndicator, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToggleComponent as Toggle, Tooltip, TruncatedText, Theme as theme, useWindowDimensions };
52612
+ var numericAlphabeticalSort = function numericAlphabeticalSort(a, b, numeric) {
52613
+ return String(a).localeCompare(b, undefined, {
52614
+ numeric: numeric,
52615
+ sensitivity: "base"
52616
+ });
52617
+ };
52618
+
52619
+ var applySort = function applySort(rows, sortColumn, columns) {
52620
+ return [].concat(rows).sort(function (a, b) {
52621
+ var column = columns.find(function (col) {
52622
+ return col.dataKey === sortColumn;
52623
+ });
52624
+ var numeric = column.numeric;
52625
+ return numericAlphabeticalSort(a[sortColumn], b[sortColumn], numeric);
52626
+ });
52627
+ };
52628
+
52629
+ var sortRows = function sortRows(rows, columns, sortState) {
52630
+ var sortedRows = applySort(rows, sortState.sortColumn, columns);
52631
+ return sortState.ascending ? sortedRows : sortedRows.reverse();
52632
+ };
52633
+
52634
+ var SortingTable = function SortingTable(_a) {
52635
+ var incomingColumns = _a.columns,
52636
+ incomingRows = _a.rows,
52637
+ initialSortColumn = _a.initialSortColumn,
52638
+ props = __rest(_a, ["columns", "rows", "initialSortColumn"]);
52639
+
52640
+ var _useState = useState({
52641
+ ascending: true,
52642
+ sortColumn: initialSortColumn
52643
+ }),
52644
+ sortState = _useState[0],
52645
+ setSortState = _useState[1];
52646
+
52647
+ var _useState2 = useState(function () {
52648
+ return sortRows(incomingRows, incomingColumns, sortState);
52649
+ }),
52650
+ rows = _useState2[0],
52651
+ setRows = _useState2[1];
52652
+
52653
+ var onSortChange = function onSortChange(dataKey) {
52654
+ var newSortState;
52655
+ setSortState(function (previousState) {
52656
+ var ascending = previousState.sortColumn !== dataKey || !previousState.ascending;
52657
+ newSortState = {
52658
+ ascending: ascending,
52659
+ sortColumn: dataKey
52660
+ };
52661
+ return newSortState;
52662
+ });
52663
+ setRows(function (previousState) {
52664
+ return sortRows(previousState, incomingColumns, newSortState);
52665
+ });
52666
+ };
52667
+
52668
+ var transformColumn = function transformColumn(column) {
52669
+ var isAscending = sortState.ascending && column.dataKey === sortState.sortColumn;
52670
+ return Object.assign(Object.assign({}, column), {
52671
+ headerFormatter: function headerFormatter(_ref) {
52672
+ var label = _ref.label,
52673
+ dataKey = _ref.dataKey;
52674
+ return /*#__PURE__*/React__default.createElement(Table.SortingHeader, {
52675
+ onChange: function onChange() {
52676
+ return onSortChange(dataKey);
52677
+ },
52678
+ label: label,
52679
+ ascending: isAscending,
52680
+ active: dataKey === sortState.sortColumn
52681
+ });
52682
+ }
52683
+ });
52684
+ };
52685
+
52686
+ var columns = incomingColumns.map(function (column) {
52687
+ return transformColumn(column);
52688
+ });
52689
+ return /*#__PURE__*/React__default.createElement(Table, Object.assign({
52690
+ columns: columns,
52691
+ rows: rows
52692
+ }, props));
52693
+ };
52694
+
52695
+ export { ALL_NDS_LOCALES, Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Box, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input$1 as Input, Link, List, ListItem, LoadingAnimation, Modal, NDSProvider, NavBar$1 as NavBar, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer$1 as SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SortingTable, StatusIndicator, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToggleComponent as Toggle, Tooltip, TruncatedText, Theme as theme, useWindowDimensions };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { TableProps } from "../Table";
3
+ declare type SortingTableProps = TableProps & {
4
+ initialSortColumn: string;
5
+ };
6
+ declare const SortingTable: React.FC<SortingTableProps>;
7
+ export default SortingTable;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("../Table/BaseTable").BaseTableProps & {
5
+ selectedRows?: string[];
6
+ onRowSelectionChange?: (...args: any[]) => any;
7
+ onRowExpansionChange?: (...args: any[]) => any;
8
+ rowsPerPage?: number;
9
+ onPageChange?: (...args: any[]) => any;
10
+ selectAllAriaLabel?: string;
11
+ deselectAllAriaLabel?: string;
12
+ paginationCss?: any;
13
+ paginationProps?: any;
14
+ expandedRows?: any[];
15
+ hasSelectableRows?: boolean;
16
+ hasExpandableRows?: boolean;
17
+ onSelectRow?: (...args: any[]) => any;
18
+ onSelectHeader?: (...args: any[]) => any;
19
+ isHeaderSelected?: any;
20
+ } & {
21
+ initialSortColumn: string;
22
+ }>;
23
+ };
24
+ export default _default;
25
+ export declare const _SortingTable: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export { default as SortingTable } from "./SortingTable";
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const WithSorting: {
6
+ export declare const WithCustomSorting: {
7
7
  (): JSX.Element;
8
8
  story: {
9
9
  name: string;
@@ -8,7 +8,7 @@ declare type ToastProps = AlertProps & {
8
8
  onHidden?: (...args: any[]) => any;
9
9
  };
10
10
  export declare const Toast: {
11
- ({ triggered, onHide, onShow, isCloseable, children, showDuration, onHidden, ...props }: ToastProps): JSX.Element;
11
+ ({ triggered, onHide, onShow, isCloseable, children, showDuration, onHidden, zIndex, ...props }: ToastProps): JSX.Element;
12
12
  defaultProps: {
13
13
  triggered: boolean;
14
14
  onShow: () => void;
@@ -22,6 +22,12 @@ export declare const WithCloseButton: {
22
22
  name: string;
23
23
  };
24
24
  };
25
+ export declare const WithModal: {
26
+ (): JSX.Element;
27
+ story: {
28
+ name: string;
29
+ };
30
+ };
25
31
  export declare const CloseableWithMultiLineMessage: {
26
32
  (): JSX.Element;
27
33
  story: {
@@ -46,3 +46,4 @@ export { AsyncSelect } from "./AsyncSelect";
46
46
  export { ApplicationFrame, Page, Sidebar } from "./Layout";
47
47
  export { useWindowDimensions } from "./utils";
48
48
  export { Divider } from "./Divider";
49
+ export { SortingTable } from "./SortingTable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "6.3.0",
3
+ "version": "6.4.1",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -74,7 +74,7 @@
74
74
  "@storybook/addon-storysource": "^6.1.9",
75
75
  "@storybook/addon-viewport": "^6.1.9",
76
76
  "@storybook/codemod": "^6.1.9",
77
- "@storybook/react": "^6.1.9",
77
+ "@storybook/react": "^6.3.12",
78
78
  "@storybook/theming": "^6.1.9",
79
79
  "@testing-library/jest-dom": "5.11.5",
80
80
  "@testing-library/react": "^10.0.0",
@@ -94,7 +94,7 @@
94
94
  "babel-plugin-require-context-hook": "1.0.0",
95
95
  "babel-plugin-styled-components": "1.10.7",
96
96
  "babel-preset-react": "6.24.1",
97
- "chromatic": "^5.2.0",
97
+ "chromatic": "^6.0.6",
98
98
  "concurrently": "^5.2.0",
99
99
  "cypress": "^4.0.0",
100
100
  "cypress-enter-plugin": "^1.0.1",
@@ -104,7 +104,7 @@
104
104
  "enzyme-to-json": "3.4.4",
105
105
  "eslint": "6.8.0",
106
106
  "eslint-plugin-prettier": "^3.1.4",
107
- "http-server": "0.12.3",
107
+ "http-server": "^14.0.0",
108
108
  "husky": "^4.3.0",
109
109
  "jest": "24.1.0",
110
110
  "jest-styled-components": "7",
@@ -152,7 +152,7 @@
152
152
  "polished": "3.4.4",
153
153
  "react-datepicker": "^4.1.0",
154
154
  "react-fast-compare": "^3.2.0",
155
- "react-i18next": "^11.3.3",
155
+ "react-i18next": "^11.14.2",
156
156
  "react-input-autosize": "^2.2.2",
157
157
  "react-modal": "^3.10.1",
158
158
  "react-popper": "1.3.7",