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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a9d07b3d3decdf614e213f9b796f2e9c4108e912daff6bda5477faff3ab918d
4
- data.tar.gz: b75c692cabb151957667102aa792b85c428177f662d3682ef3b4cc08b0045d4b
3
+ metadata.gz: a17b3ba7acfc59b2cbacbc7536fefcb69f382dbb63467fcad71e39e496330002
4
+ data.tar.gz: 95d27d0bb0e48b53e744a2f6ba467ea49357cb0f7f80e2839e35e7b6152d21b2
5
5
  SHA512:
6
- metadata.gz: 12314500c7eb446fda855e49fb5eaf82e0c3a0ec9c91290817e724148d152b15e7efa0022ab2688fb6603bd091b33c9b00fe9359e4618567ca288e1dba0e9080
7
- data.tar.gz: 9fe102cc2be3845106d231e33a62a562dc5caf0df2ec0ef9ce03ac9d3de1cc9399c3a4e1c4c1c9354751b8094af4d2e2f132386c637df8e4f7748b8c5149bb28
6
+ metadata.gz: 539d0bb5e693a37d2cfb23fca7b326152584095fdc5eed789c64849a182a41e4cdca9e3eaf0edb4ee7241c3256cb6b57ebdf3c47be11e03b3feb5fcbcc9a35f5
7
+ data.tar.gz: b3156ef95acf3fbe480dc37badfc645a8a5ab358710c1d88ce251db31bc9584f9a4f7dcdceb96485ba873246f75e69e4f5d6f8235e8c16acc3faf3f9b22a7c5b
@@ -92,6 +92,7 @@ const Textarea = ({
92
92
  <Caption text={label} />
93
93
  {children || (
94
94
  <textarea
95
+ className="pb_textarea_kit"
95
96
  disabled={disabled}
96
97
  name={name}
97
98
  onChange={onChange}
@@ -15,6 +15,7 @@
15
15
  <%= text_area(
16
16
  :object,
17
17
  :method,
18
+ :class => "#{object.classname}",
18
19
  :max_characters => object.max_characters,
19
20
  :name => object.name,
20
21
  :onkeyup => object.onkeyup,
@@ -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
- dark={props.selectProps.dark}
15
- error={props.selectProps.error}
16
- label={props.selectProps.label}
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
- className="text_input"
22
- {...props}
20
+ className="text_input"
21
+ {...props}
23
22
  />
24
23
  </Flex>
25
24
  </TextInput>
@@ -23,4 +23,3 @@ examples:
23
23
  - typeahead_async_createable: Createable (+ Async Data)
24
24
  - typeahead_error_state: Error State
25
25
  - typeahead_custom_menu_list: Custom MenuList
26
- - typeahead_margin_bottom: Margin Bottom
@@ -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'