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 +4 -4
- data/app/pb_kits/playbook/pb_card/_card.tsx +1 -2
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +4 -5
- data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.tsx +2 -2
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +2 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +1 -2
- data/app/pb_kits/playbook/utilities/object.ts +1 -29
- data/dist/chunks/_typeahead-BGTMEmj7.js +36 -0
- data/dist/chunks/_weekday_stacked-De2TduOp.js +45 -0
- data/dist/chunks/{lib-Dzh-65PP.js → lib-Fr78pbpF.js} +2 -2
- data/dist/chunks/{pb_form_validation-1T09rwCG.js → pb_form_validation-CN51bfsD.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +5 -6
- data/app/pb_kits/playbook/utilities/object.test.js +0 -99
- data/dist/chunks/_typeahead-Dd8gkRY2.js +0 -36
- data/dist/chunks/_weekday_stacked-bhqmtN2l.js +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f68144468567bb0942e0754a5686d9245acb40e84273c43fd8ee3df8579e126
|
4
|
+
data.tar.gz: bf0767e5db39ca73b281e3859a0507af791dc325eed1da02c250ae13d922b713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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 '
|
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 '
|
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 '
|
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:
|
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
|