@synerise/ds-sidebar 1.0.15 → 1.0.17

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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { SidebarWithButtonProps } from './SidebarWithButton.types';
3
- declare const SidebarWithButton: ({ dataSource, buttonLabel, title }: SidebarWithButtonProps) => React.JSX.Element;
2
+ import { type SidebarWithButtonProps } from './SidebarWithButton.types';
3
+ declare const SidebarWithButton: ({ dataSource, buttonLabel, title, }: SidebarWithButtonProps) => React.JSX.Element;
4
4
  export default SidebarWithButton;
@@ -1,9 +1,9 @@
1
1
  import React, { useRef, useState } from 'react';
2
2
  import Button from '@synerise/ds-button';
3
- import Icon, { AngleDownS } from '@synerise/ds-icon';
4
3
  import Dropdown from '@synerise/ds-dropdown';
5
- import { useOnClickOutside } from '@synerise/ds-utils';
4
+ import Icon, { AngleDownS } from '@synerise/ds-icon';
6
5
  import Menu from '@synerise/ds-menu';
6
+ import { useOnClickOutside } from '@synerise/ds-utils';
7
7
  import * as S from './SidebarWithButton.styles';
8
8
  var SidebarWithButton = function SidebarWithButton(_ref) {
9
9
  var dataSource = _ref.dataSource,
@@ -1,4 +1,4 @@
1
- import { MenuItemProps } from '@synerise/ds-menu/dist/Elements/Item/MenuItem.types';
1
+ import { type MenuItemProps } from '@synerise/ds-menu/dist/Elements/Item/MenuItem.types';
2
2
  export type SidebarWithButtonProps = {
3
3
  dataSource: MenuItemProps[];
4
4
  buttonLabel?: string;
@@ -0,0 +1 @@
1
+ export declare const prefixKeys: (keys: string | number | (string | number)[]) => string | string[];
@@ -0,0 +1,5 @@
1
+ export var prefixKeys = function prefixKeys(keys) {
2
+ return keys && Array.isArray(keys) ? keys.map(function (el) {
3
+ return ".$" + el;
4
+ }) : ".$" + keys;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-sidebar",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Sidebar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,15 +34,13 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.4.1",
38
- "@synerise/ds-dropdown": "^1.0.14",
39
- "@synerise/ds-icon": "^1.5.3",
40
- "@synerise/ds-menu": "^1.0.13",
41
- "@synerise/ds-utils": "^1.3.0",
42
- "dnd-core": "10.0.2",
43
- "immutability-helper": "^3.0.1",
44
- "react-dnd": "^10.0.2",
45
- "react-dnd-html5-backend": "^10.0.2"
37
+ "@synerise/ds-button": "^1.4.3",
38
+ "@synerise/ds-dropdown": "^1.0.16",
39
+ "@synerise/ds-icon": "^1.5.4",
40
+ "@synerise/ds-menu": "^1.0.15",
41
+ "@synerise/ds-sortable": "^1.3.1",
42
+ "@synerise/ds-utils": "^1.3.1",
43
+ "classnames": "^2.5.1"
46
44
  },
47
45
  "peerDependencies": {
48
46
  "@synerise/ds-core": "*",
@@ -50,5 +48,5 @@
50
48
  "react": ">=16.9.0 <= 18.3.1",
51
49
  "styled-components": "^5.3.3"
52
50
  },
53
- "gitHead": "11fe1d29b2ac23e70c3d5e6ce8ae20201a619a34"
51
+ "gitHead": "8db1900bf3f7b0782c834ff82f628199530cd934"
54
52
  }