playbook_ui 14.14.0.pre.alpha.play1868dependencyremovallodash6413 → 14.14.0.pre.alpha.play1872verticaltimelineresponsiveissue6409

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b69cb5f7e6de2a8aad199853565c2526d17f48538c114ee5a70f0b4ced03dd82
4
- data.tar.gz: fc4c4d00a40d0851f718d7d55fd0dd2daaebdddad78a7587d1b7b74745d23a68
3
+ metadata.gz: 2f68144468567bb0942e0754a5686d9245acb40e84273c43fd8ee3df8579e126
4
+ data.tar.gz: bf0767e5db39ca73b281e3859a0507af791dc325eed1da02c250ae13d922b713
5
5
  SHA512:
6
- metadata.gz: 2b8bcff3b4c99109bd5c33b8cff4f59e0db5b50e23acda311c9b10d64183e4e2d01b605e0d7042aa1f1f9f62c4ec8342db9d1c7a9f896af6bfc8cad931db4ebe
7
- data.tar.gz: 806a5bb50efe9e78739b80c990b20b29164ba095d76047e1878417b04ebccd1c8e702c4a34684f852e3e88c6e1664d38ca605963c372f354b5d757e8dfbbe8a8
6
+ metadata.gz: 2144ebd23a67353cbe90a10bfbdc4d69971511306aa5cc28d504870ade661f64f980730bb9aaa615c636ba7d627d9e2a4d10974b048b88a03464889066331402
7
+ data.tar.gz: 40200e6f11faa20c4322c4d1d5057f8c8ab75eec8a8424062b8adad8848aea79b94b4a0df8f978b7f10a856ff8b8debf1902f732efebd15ea834ac8d6ef4bae5
@@ -1,8 +1,7 @@
1
1
  /* eslint-disable react/no-multi-comp */
2
2
 
3
3
  import React from 'react'
4
- import { get } from '../utilities/object'
5
-
4
+ import { get } from 'lodash'
6
5
  import classnames from 'classnames'
7
6
 
8
7
  import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import { map } from 'lodash'
3
- import { isEmpty, omitBy } from '../../utilities/object'
2
+ import { isEmpty, map, omitBy } from 'lodash'
4
3
 
5
4
  import Body from '../../pb_body/_body'
6
5
  import Caption from '../../pb_caption/_caption'
@@ -41,13 +40,13 @@ const CurrentFilters = ({ dark, filters }: CurrentFiltersProps): React.ReactElem
41
40
  className="filter"
42
41
  key={`filter-${name}`}
43
42
  >
44
- { value === true ?
43
+ { value === true ?
45
44
  <Title
46
45
  dark={dark}
47
46
  size={4}
48
47
  tag="h4"
49
48
  text={name}
50
- /> :
49
+ /> :
51
50
  <div>
52
51
  <Caption
53
52
  dark={dark}
@@ -59,7 +58,7 @@ const CurrentFilters = ({ dark, filters }: CurrentFiltersProps): React.ReactElem
59
58
  tag="h4"
60
59
  text={value}
61
60
  />
62
- </div>
61
+ </div>
63
62
  }
64
63
  </div>
65
64
  ))}
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { isEmpty } from '../../utilities/object'
2
+ import { isEmpty } from 'lodash'
3
3
 
4
4
  import Flex from '../../pb_flex/_flex'
5
5
 
@@ -46,7 +46,7 @@ const FilterSingle = ({
46
46
  paddingRight="lg"
47
47
  vertical="center"
48
48
  >
49
- { children &&
49
+ { children &&
50
50
  <>
51
51
  <FiltersPopover
52
52
  dark={dark}
@@ -19,7 +19,7 @@ import {
19
19
 
20
20
  import classnames from "classnames";
21
21
  import { globalProps, GlobalProps } from "../utilities/globalProps";
22
- import { uniqueId } from '../utilities/object';
22
+ import { uniqueId } from 'lodash';
23
23
 
24
24
  type ModifiedGlobalProps = Omit<GlobalProps, 'minWidth' | 'maxHeight' | 'minHeight'>
25
25
 
@@ -243,7 +243,7 @@ $gap_lg: $height_from_top + $space_lg;
243
243
  }
244
244
  [class=pb_timeline_item_left_block] {
245
245
  margin-bottom: $space_lg;
246
- width: $space_lg;
246
+ min-width: $space_lg;
247
247
  }
248
248
  [class=pb_timeline_item_right_block] {
249
249
  @include flex_wrapper(column);
@@ -263,7 +263,7 @@ $gap_lg: $height_from_top + $space_lg;
263
263
  }
264
264
  [class=pb_timeline_item_left_block] {
265
265
  margin-bottom: $space_lg;
266
- width: $space_lg;
266
+ min-width: $space_lg;
267
267
  }
268
268
  [class=pb_timeline_item_right_block] {
269
269
  @include flex_wrapper(column);
@@ -3,8 +3,7 @@ import Select from 'react-select'
3
3
  import AsyncSelect from 'react-select/async'
4
4
  import CreateableSelect from 'react-select/creatable'
5
5
  import AsyncCreateableSelect from 'react-select/async-creatable'
6
- import { get, isString, uniqueId } from '../utilities/object'
7
-
6
+ import { get, isString, uniqueId } from 'lodash'
8
7
  import { globalProps, GlobalProps } from '../utilities/globalProps'
9
8
  import classnames from 'classnames'
10
9
 
@@ -1,31 +1,3 @@
1
1
  /* 🛠️ Any commonly used lodash functions can be added here. 🤙 */
2
2
 
3
- export const isEmpty = (obj: any) => [Object, Array].includes((obj || {}).constructor) && !Object.entries((obj || {})).length;
4
-
5
- export const get = <T, R = any>(obj: T, path: string, defaultValue?: R): R | any => {
6
- const travel = (regexp: RegExp): any =>
7
- String.prototype.split
8
- .call(path, regexp)
9
- .filter(Boolean)
10
- .reduce((res: any, key: string) => (res !== null && res !== undefined ? res[key] : res), obj)
11
- const result = travel(/[,[\]]+?/) || travel(/[,[\].]+?/)
12
- return result === undefined || result === obj ? defaultValue : result
13
- }
14
-
15
- export const isString = (str: unknown): str is string =>
16
- str != null && typeof (str as any).valueOf() === "string"
17
-
18
- export const uniqueId: (prefix?: string) => string = (() => {
19
- let counter = 0
20
- return (prefix = '') => `${prefix}${++counter}`
21
- })()
22
-
23
- export const omitBy = (obj: Record<string, any>, predicate: (value: any, key: string) => boolean) => {
24
- if (obj === null || typeof obj !== 'object') return {}
25
- return Object.keys(obj).reduce((result: Record<string, any>, key: string) => {
26
- if (!predicate(obj[key], key)) {
27
- result[key] = obj[key];
28
- }
29
- return result;
30
- }, {})
31
- }
3
+ export const isEmpty = (obj: Record<string, unknown>): boolean => Object.keys(obj).length < 1