@synerise/ds-column-manager 1.2.1 → 1.2.3

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.
@@ -1,13 +1,13 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useEffect, useMemo, useState } from 'react';
3
- import { Title } from '@synerise/ds-typography';
4
- import Drawer from '@synerise/ds-drawer';
5
3
  import Button from '@synerise/ds-button';
6
- import Icon, { CloseM, SearchM } from '@synerise/ds-icon';
7
4
  import { useTheme } from '@synerise/ds-core';
5
+ import Drawer from '@synerise/ds-drawer';
6
+ import Icon, { CloseM, SearchM } from '@synerise/ds-icon';
7
+ import { Title } from '@synerise/ds-typography';
8
+ import * as S from './ColumnManager.styles';
8
9
  import { ColumnManagerActions } from './ColumnManagerActions/ColumnManagerActions';
9
10
  import ColumnManagerList from './ColumnManagerList/ColumnManagerList';
10
- import * as S from './ColumnManager.styles';
11
11
  import { useTranslations } from './hooks/useTranslations';
12
12
  import { matchesSearchQuery } from './utils/matchesSearchQuery';
13
13
  var ColumnManager = function ColumnManager(_ref) {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { ColumnManagerActionsProps } from './ColumnManagerActions.types';
3
- export declare const ColumnManagerActions: ({ texts, onApply, onCancel }: ColumnManagerActionsProps) => React.JSX.Element;
2
+ import { type ColumnManagerActionsProps } from './ColumnManagerActions.types';
3
+ export declare const ColumnManagerActions: ({ texts, onApply, onCancel, }: ColumnManagerActionsProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ColumnManagerTexts } from '../ColumnManager.types';
1
+ import { type ColumnManagerTexts } from '../ColumnManager.types';
2
2
  export type ColumnManagerActionsProps = {
3
3
  onApply: () => void;
4
4
  onCancel: () => void;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { Column, ColumnManagerItemProps } from './ColumManagerItem.types';
2
+ import { type Column, type ColumnManagerItemProps } from './ColumManagerItem.types';
3
3
  export declare const ColumnManagerItem: <ColumnType extends Column>({ item, switchAction, draggable, searchQuery, texts, dragHandleProps, id, isDragged, ...rest }: ColumnManagerItemProps<ColumnType>) => React.JSX.Element;
4
4
  export default ColumnManagerItem;
@@ -5,8 +5,8 @@ import React, { useMemo } from 'react';
5
5
  import { useTheme } from '@synerise/ds-core';
6
6
  import Icon, { DragHandleM, VarTypeBooleanM, VarTypeDateM, VarTypeListM, VarTypeNumberM, VarTypeStringM } from '@synerise/ds-icon';
7
7
  import { RawSwitch } from '@synerise/ds-switch';
8
- import { escapeRegEx } from '@synerise/ds-utils';
9
8
  import Tooltip from '@synerise/ds-tooltip';
9
+ import { escapeRegEx } from '@synerise/ds-utils';
10
10
  import * as S from './ColumnManagerItem.styles';
11
11
  var DEFAULT_TYPE = 'text';
12
12
  var typeIcon = {
@@ -1,5 +1,5 @@
1
- import styled from 'styled-components';
2
1
  import { FixedSizeList } from 'react-window';
2
+ import styled from 'styled-components';
3
3
  export var ColumnManagerList = styled.div.withConfig({
4
4
  displayName: "ColumnManagerstyle__ColumnManagerList",
5
5
  componentId: "sc-8vnyk-0"
@@ -1,6 +1,6 @@
1
- import React, { CSSProperties } from 'react';
2
- import { ColumnManagerListProps } from './ColumnManagerList.types';
1
+ import React, { type CSSProperties } from 'react';
3
2
  import type { Column } from '../ColumnManagerItem/ColumManagerItem.types';
3
+ import { type ColumnManagerListProps } from './ColumnManagerList.types';
4
4
  export declare const LIST_STYLE: CSSProperties;
5
5
  declare const ColumnManagerList: <ColumnType extends Column>({ searchQuery, columns, draggable, handleOrderChange, toggleColumn, texts, }: ColumnManagerListProps<ColumnType>) => React.JSX.Element;
6
6
  export default ColumnManagerList;
@@ -1,11 +1,11 @@
1
1
  import React, { useMemo, useRef, useState } from 'react';
2
2
  import { DragOverlay } from '@dnd-kit/core';
3
- import { SortableContainer } from '@synerise/ds-sortable';
4
- import Scrollbar from '@synerise/ds-scrollbar';
5
3
  import Result from '@synerise/ds-result';
4
+ import Scrollbar from '@synerise/ds-scrollbar';
5
+ import { SortableContainer } from '@synerise/ds-sortable';
6
6
  import { useResizeObserver } from '@synerise/ds-utils';
7
- import { ColumnManagerSortableItem } from '../ColumnManagerSortableItem/ColumnManagerSortableItem';
8
7
  import { ColumnManagerItem } from '../ColumnManagerItem/ColumnManagerItem';
8
+ import { ColumnManagerSortableItem } from '../ColumnManagerSortableItem/ColumnManagerSortableItem';
9
9
  import * as S from './ColumnManager.style';
10
10
  export var LIST_STYLE = {
11
11
  overflowX: 'unset',
@@ -1,5 +1,5 @@
1
- import type { Column, ColumnManagerItemProps } from '../ColumnManagerItem/ColumManagerItem.types';
2
1
  import type { ColumnManagerTexts } from '../ColumnManager.types';
2
+ import type { Column, ColumnManagerItemProps } from '../ColumnManagerItem/ColumManagerItem.types';
3
3
  export type ColumnManagerListProps<ColumnType extends Column> = {
4
4
  searchQuery: string;
5
5
  columns: ColumnType[];
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ColumnManagerSortableItemProps } from './ColumnManagerSortableItem.types';
3
- import { Column } from '../ColumnManagerItem/ColumManagerItem.types';
2
+ import { type Column } from '../ColumnManagerItem/ColumManagerItem.types';
3
+ import { type ColumnManagerSortableItemProps } from './ColumnManagerSortableItem.types';
4
4
  export declare const ColumnManagerSortableItem: <ColumnType extends Column>(props: ColumnManagerSortableItemProps<ColumnType>) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { ListChildComponentProps } from 'react-window';
2
- import type { ColumnManagerItemProps, Column } from '../ColumnManagerItem/ColumManagerItem.types';
2
+ import type { Column, ColumnManagerItemProps } from '../ColumnManagerItem/ColumManagerItem.types';
3
3
  export type ColumnManagerSortableItemProps<ColumnType extends Column> = ListChildComponentProps<ColumnManagerItemProps<ColumnType>[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-column-manager",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "ColumnManager UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -31,18 +31,18 @@
31
31
  "sideEffects": false,
32
32
  "types": "dist/index.d.ts",
33
33
  "dependencies": {
34
- "@synerise/ds-button": "^1.4.1",
35
- "@synerise/ds-drawer": "^1.0.5",
36
- "@synerise/ds-icon": "^1.5.3",
37
- "@synerise/ds-menu": "^1.0.13",
38
- "@synerise/ds-result": "^1.0.13",
39
- "@synerise/ds-scrollbar": "^1.1.1",
40
- "@synerise/ds-search-bar": "^1.3.3",
41
- "@synerise/ds-sortable": "^1.3.0",
42
- "@synerise/ds-switch": "^1.1.7",
43
- "@synerise/ds-tooltip": "^1.1.11",
44
- "@synerise/ds-typography": "^1.0.12",
45
- "@synerise/ds-utils": "^1.3.0",
34
+ "@synerise/ds-button": "^1.4.2",
35
+ "@synerise/ds-drawer": "^1.0.6",
36
+ "@synerise/ds-icon": "^1.5.4",
37
+ "@synerise/ds-menu": "^1.0.14",
38
+ "@synerise/ds-result": "^1.0.14",
39
+ "@synerise/ds-scrollbar": "^1.1.2",
40
+ "@synerise/ds-search-bar": "^1.3.4",
41
+ "@synerise/ds-sortable": "^1.3.2",
42
+ "@synerise/ds-switch": "^1.1.8",
43
+ "@synerise/ds-tooltip": "^1.1.12",
44
+ "@synerise/ds-typography": "^1.0.13",
45
+ "@synerise/ds-utils": "^1.3.1",
46
46
  "react-window": "1.8.5"
47
47
  },
48
48
  "peerDependencies": {
@@ -52,5 +52,5 @@
52
52
  "react-intl": ">=3.12.0 <= 6.8",
53
53
  "styled-components": "^5.3.3"
54
54
  },
55
- "gitHead": "11fe1d29b2ac23e70c3d5e6ce8ae20201a619a34"
55
+ "gitHead": "2161bdb04f3db0f79b7d0465ce6b41121f1543ef"
56
56
  }