@plusscommunities/pluss-newsletter-web-sharing 1.4.38 → 1.4.39

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/index.cjs.js CHANGED
@@ -1085,14 +1085,16 @@ var ListNewsletter$1 = /*#__PURE__*/function (_Component) {
1085
1085
  style: {
1086
1086
  minWidth: '100%'
1087
1087
  }
1088
- }, /*#__PURE__*/React__default['default'].createElement(reactBootstrap.FormControl, {
1088
+ }, /*#__PURE__*/React__default['default'].createElement(GenericInput, {
1089
+ id: "search",
1089
1090
  type: "text",
1090
- placeholder: "Search news",
1091
+ placeholder: "Search by title",
1091
1092
  value: this.state.search,
1092
1093
  onChange: this.onSearchChange,
1094
+ className: "genericInputContainer-rounded marginTop-10",
1093
1095
  style: {
1094
- marginBottom: 16,
1095
- maxWidth: 360
1096
+ maxWidth: 500,
1097
+ marginBottom: 16
1096
1098
  }
1097
1099
  }), this.renderContent());
1098
1100
  }
package/dist/index.esm.js CHANGED
@@ -11,7 +11,7 @@ import _ from 'lodash';
11
11
  import FontAwesome from 'react-fontawesome';
12
12
  import * as PlussCore from '@plusscommunities/pluss-core-web';
13
13
  import moment from 'moment';
14
- import { Table, FormControl, FormGroup } from 'react-bootstrap';
14
+ import { Table, FormGroup } from 'react-bootstrap';
15
15
  import { Link } from 'react-router-dom';
16
16
  import { withRouter } from 'react-router';
17
17
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
@@ -1041,14 +1041,16 @@ var ListNewsletter$1 = /*#__PURE__*/function (_Component) {
1041
1041
  style: {
1042
1042
  minWidth: '100%'
1043
1043
  }
1044
- }, /*#__PURE__*/React.createElement(FormControl, {
1044
+ }, /*#__PURE__*/React.createElement(GenericInput, {
1045
+ id: "search",
1045
1046
  type: "text",
1046
- placeholder: "Search news",
1047
+ placeholder: "Search by title",
1047
1048
  value: this.state.search,
1048
1049
  onChange: this.onSearchChange,
1050
+ className: "genericInputContainer-rounded marginTop-10",
1049
1051
  style: {
1050
- marginBottom: 16,
1051
- maxWidth: 360
1052
+ maxWidth: 500,
1053
+ marginBottom: 16
1052
1054
  }
1053
1055
  }), this.renderContent());
1054
1056
  }
package/dist/index.umd.js CHANGED
@@ -1063,14 +1063,16 @@
1063
1063
  style: {
1064
1064
  minWidth: '100%'
1065
1065
  }
1066
- }, /*#__PURE__*/React__default['default'].createElement(reactBootstrap.FormControl, {
1066
+ }, /*#__PURE__*/React__default['default'].createElement(GenericInput, {
1067
+ id: "search",
1067
1068
  type: "text",
1068
- placeholder: "Search news",
1069
+ placeholder: "Search by title",
1069
1070
  value: this.state.search,
1070
1071
  onChange: this.onSearchChange,
1072
+ className: "genericInputContainer-rounded marginTop-10",
1071
1073
  style: {
1072
- marginBottom: 16,
1073
- maxWidth: 360
1074
+ maxWidth: 500,
1075
+ marginBottom: 16
1074
1076
  }
1075
1077
  }), this.renderContent());
1076
1078
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-newsletter-web-sharing",
3
- "version": "1.4.38",
3
+ "version": "1.4.39",
4
4
  "description": "Extension package to enable newsletter on Pluss Communities Platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { Table, FormControl } from 'react-bootstrap';
2
+ import { Table } from 'react-bootstrap';
3
3
  import { connect } from 'react-redux';
4
4
  import moment from 'moment';
5
5
  import _ from 'lodash';
@@ -9,6 +9,7 @@ import { newsLoaded, removeNews } from '../../actions';
9
9
  import { newsletterActions } from '../../webapi';
10
10
  import { checkLoggedIn, validateAccess } from '../../session';
11
11
  import { Text } from '../../components/text';
12
+ import { GenericInput } from '../../components';
12
13
  import { TEXT_LIGHT } from '../../js';
13
14
  import { values } from '../../values.config';
14
15
 
@@ -286,12 +287,14 @@ class ListNewsletter extends Component {
286
287
  render() {
287
288
  return (
288
289
  <div style={{ minWidth: '100%' }}>
289
- <FormControl
290
+ <GenericInput
291
+ id="search"
290
292
  type="text"
291
- placeholder="Search news"
293
+ placeholder="Search by title"
292
294
  value={this.state.search}
293
295
  onChange={this.onSearchChange}
294
- style={{ marginBottom: 16, maxWidth: 360 }}
296
+ className="genericInputContainer-rounded marginTop-10"
297
+ style={{ maxWidth: 500, marginBottom: 16 }}
295
298
  />
296
299
  {this.renderContent()}
297
300
  </div>