playbook_ui 14.3.1.pre.alpha.PBNTR515typeaheadmarginbottomredux3752 → 14.3.1.pre.alpha.PLAY14973742
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +1 -0
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +1 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +0 -14
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +0 -3
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +5 -6
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
- data/dist/chunks/{_typeahead-B2Nx6LQp.js → _typeahead-Z2PW068O.js} +1 -1
- data/dist/chunks/{_weekday_stacked-C3ENHbH6.js → _weekday_stacked-CpnZgQb_.js} +2 -2
- 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/lib/playbook/version.rb +1 -1
- metadata +3 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +0 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17b3ba7acfc59b2cbacbc7536fefcb69f382dbb63467fcad71e39e496330002
|
4
|
+
data.tar.gz: 95d27d0bb0e48b53e744a2f6ba467ea49357cb0f7f80e2839e35e7b6152d21b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539d0bb5e693a37d2cfb23fca7b326152584095fdc5eed789c64849a182a41e4cdca9e3eaf0edb4ee7241c3256cb6b57ebdf3c47be11e03b3feb5fcbcc9a35f5
|
7
|
+
data.tar.gz: b3156ef95acf3fbe480dc37badfc645a8a5ab358710c1d88ce251db31bc9584f9a4f7dcdceb96485ba873246f75e69e4f5d6f8235e8c16acc3faf3f9b22a7c5b
|
@@ -107,18 +107,4 @@ test('should pass className prop', () => {
|
|
107
107
|
|
108
108
|
const kit = screen.getByTestId('typeahead-test')
|
109
109
|
expect(kit).toHaveClass(className)
|
110
|
-
})
|
111
|
-
|
112
|
-
test('typeahead textinput has mb_sm class by default', () => {
|
113
|
-
render(
|
114
|
-
<Typeahead
|
115
|
-
data={{ testid: 'default-mb-test' }}
|
116
|
-
options={options}
|
117
|
-
/>
|
118
|
-
)
|
119
|
-
|
120
|
-
const kit = screen.getByTestId('default-mb-test')
|
121
|
-
expect(kit).toHaveClass("pb_typeahead_kit mb_sm")
|
122
|
-
const textInput = kit.querySelector(".pb_text_input_kit")
|
123
|
-
expect(textInput).toHaveClass("mb_none")
|
124
110
|
})
|
@@ -45,7 +45,6 @@ type TypeaheadProps = {
|
|
45
45
|
getOptionLabel?: string | (() => any),
|
46
46
|
getOptionValue?: string | (() => any),
|
47
47
|
name?: string,
|
48
|
-
marginBottom?: "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl",
|
49
48
|
} & GlobalProps
|
50
49
|
|
51
50
|
export type SelectValueType = {
|
@@ -77,7 +76,6 @@ const Typeahead = ({
|
|
77
76
|
htmlOptions = {},
|
78
77
|
id,
|
79
78
|
loadOptions = noop,
|
80
|
-
marginBottom = "sm",
|
81
79
|
...props
|
82
80
|
}: TypeaheadProps) => {
|
83
81
|
const selectProps = {
|
@@ -136,7 +134,6 @@ const Typeahead = ({
|
|
136
134
|
const htmlProps = buildHtmlProps(htmlOptions)
|
137
135
|
const classes = classnames(
|
138
136
|
'pb_typeahead_kit react-select',
|
139
|
-
`mb_${marginBottom}`,
|
140
137
|
globalProps(props),
|
141
138
|
className
|
142
139
|
)
|
@@ -11,15 +11,14 @@ type Props = {
|
|
11
11
|
const TypeaheadControl = (props: Props) => (
|
12
12
|
<div className="pb_typeahead_wrapper">
|
13
13
|
<TextInput
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
marginBottom="none"
|
14
|
+
dark={props.selectProps.dark}
|
15
|
+
error={props.selectProps.error}
|
16
|
+
label={props.selectProps.label}
|
18
17
|
>
|
19
18
|
<Flex>
|
20
19
|
<components.Control
|
21
|
-
|
22
|
-
|
20
|
+
className="text_input"
|
21
|
+
{...props}
|
23
22
|
/>
|
24
23
|
</Flex>
|
25
24
|
</TextInput>
|
@@ -10,4 +10,3 @@ export { default as TypeaheadCreateable } from './_typeahead_createable.jsx'
|
|
10
10
|
export { default as TypeaheadAsyncCreateable } from './_typeahead_async_createable.jsx'
|
11
11
|
export { default as TypeaheadErrorState } from './_typeahead_error_state.jsx'
|
12
12
|
export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_list.jsx'
|
13
|
-
export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
|