@snack-uikit/accordion 0.11.26 → 0.11.27-preview-4e8bfebd.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/cjs/hooks.js CHANGED
@@ -2,16 +2,11 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
5
- var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
6
- return mod && mod.__esModule ? mod : {
7
- "default": mod
8
- };
9
- };
10
5
  Object.defineProperty(exports, "__esModule", {
11
6
  value: true
12
7
  });
13
8
  exports.useExpanded = useExpanded;
14
- const lodash_debounce_1 = __importDefault(require("lodash.debounce"));
9
+ const lodash_1 = require("lodash");
15
10
  const react_1 = require("react");
16
11
  const toggles_1 = require("@snack-uikit/toggles");
17
12
  function useExpanded(id) {
@@ -24,7 +19,7 @@ function useExpanded(id) {
24
19
  _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
25
20
  isExpandedDebounced = _ref3[0],
26
21
  setIsExpandedDebounced = _ref3[1];
27
- const debouncedSetIsExpandedDebounced = (0, react_1.useMemo)(() => (0, lodash_debounce_1.default)(setIsExpandedDebounced, 300), []);
22
+ const debouncedSetIsExpandedDebounced = (0, react_1.useMemo)(() => (0, lodash_1.debounce)(setIsExpandedDebounced, 300), []);
28
23
  const handleToggleExpanded = (0, react_1.useCallback)(expanded => {
29
24
  handleExpandedChange();
30
25
  debouncedSetIsExpandedDebounced(expanded);
package/dist/esm/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import debounce from 'lodash.debounce';
1
+ import { debounce } from 'lodash';
2
2
  import { useCallback, useMemo, useState } from 'react';
3
3
  import { useToggleGroup } from '@snack-uikit/toggles';
4
4
  export function useExpanded(id) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Accordion",
7
- "version": "0.11.26",
7
+ "version": "0.11.27-preview-4e8bfebd.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -37,17 +37,17 @@
37
37
  "scripts": {},
38
38
  "dependencies": {
39
39
  "@snack-uikit/button": "0.19.19",
40
- "@snack-uikit/icons": "0.27.7",
41
- "@snack-uikit/toggles": "0.13.27",
42
- "@snack-uikit/tooltip": "0.18.15",
43
- "@snack-uikit/truncate-string": "0.7.14",
40
+ "@snack-uikit/icons": "0.27.8-preview-4e8bfebd.0",
41
+ "@snack-uikit/toggles": "0.13.28-preview-4e8bfebd.0",
42
+ "@snack-uikit/tooltip": "0.18.16-preview-4e8bfebd.0",
43
+ "@snack-uikit/truncate-string": "0.7.15-preview-4e8bfebd.0",
44
44
  "@snack-uikit/typography": "0.8.13",
45
45
  "@snack-uikit/utils": "4.0.2",
46
46
  "classnames": "2.5.1",
47
- "lodash.debounce": "4.0.8"
47
+ "lodash": "4.18.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/lodash.debounce": "4.0.8"
50
+ "@types/lodash": "4.17.25"
51
51
  },
52
- "gitHead": "864821fceaa6bbb61080166d14f1682fa16e3f85"
52
+ "gitHead": "d52534cac02c3b621615686607bfba56762150ac"
53
53
  }
package/src/hooks.ts CHANGED
@@ -1,4 +1,4 @@
1
- import debounce from 'lodash.debounce';
1
+ import { debounce } from 'lodash';
2
2
  import { useCallback, useMemo, useState } from 'react';
3
3
 
4
4
  import { useToggleGroup } from '@snack-uikit/toggles';