react-admin-base-bootstrap 0.5.4 → 0.5.5

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.
@@ -114,10 +114,10 @@ export default function BootstrapTable({ url, bordered, noStrip, defaultParams,
114
114
  React.createElement(CardHeader, null,
115
115
  React.createElement(Row, null,
116
116
  add && React.createElement(Col, { xs: "12", md: "2" },
117
- React.createElement(Link, { to: add, className: "btn btn-primary font-xl btn-lg d-block" },
117
+ React.createElement(Link, { to: add, className: "btn btn-primary font-xl d-block" },
118
118
  React.createElement("i", { className: "fa fa-plus" }))),
119
119
  React.createElement(Col, { md: "2" },
120
- React.createElement(Input, { type: "select", bsSize: "lg", value: itemPerPage.toString(), onChange: a => setItemPerPage(+a.currentTarget.value) },
120
+ React.createElement(Input, { type: "select", value: itemPerPage.toString(), onChange: a => setItemPerPage(+a.currentTarget.value) },
121
121
  React.createElement("option", { value: "1" }, "1"),
122
122
  React.createElement("option", { value: "20" }, "20"),
123
123
  React.createElement("option", { value: "50" }, "50"),
@@ -127,10 +127,10 @@ export default function BootstrapTable({ url, bordered, noStrip, defaultParams,
127
127
  React.createElement("option", { value: "-1" }, intl.formatMessage({ id: "ALL" })))),
128
128
  children[2],
129
129
  React.createElement(Col, { md: "3", className: "ms-auto" },
130
- React.createElement(Input, { placeholder: intl.formatMessage({ id: "SEARCH" }), type: "text", value: params.query || '', bsSize: "lg", onChange: e => setParams(Object.assign(Object.assign({}, params), { query: e.currentTarget.value })) })))),
130
+ React.createElement(Input, { placeholder: intl.formatMessage({ id: "SEARCH" }), type: "text", value: params.query || '', onChange: e => setParams(Object.assign(Object.assign({}, params), { query: e.currentTarget.value })) })))),
131
131
  data === null ? React.createElement(Alert, { className: "text-center mb-0 mx-3 ", color: "warning" },
132
- React.createElement("i", { className: "fas fa-spinner fa-lg fa-spin" })) : !data.length ? React.createElement(Alert, { className: "text-center mx-3", color: "danger" },
133
- React.createElement("i", { className: "far fa-times-circle fa-lg" }),
132
+ React.createElement("i", { className: "fas fa-spinner fa-spin" })) : !data.length ? React.createElement(Alert, { className: "text-center mx-3", color: "danger" },
133
+ React.createElement("i", { className: "far fa-times-circle" }),
134
134
  " ",
135
135
  React.createElement(FormattedMessage, { id: "NO_DATA_IS_AVAILABLE" })) : React.createElement(Table, { hover: true, bordered: bordered, striped: !noStrip, responsive: true, size: "md", className: "mb-0 dataTable" },
136
136
  children[0],
@@ -6,8 +6,8 @@ export default function BootstrapPagination({ className, currentPage, pageCount,
6
6
  return null;
7
7
  return React.createElement(Pagination, { listClassName: "mb-0", className: className },
8
8
  React.createElement(PaginatorCore, { activePage: currentPage, pageCount: pageCount, showPages: 15, prevPage: index => React.createElement(PaginationItem, { onClick: () => onPageChange(index) },
9
- React.createElement(PaginationLink, { previous: true, tag: "button" }, "\u00AB")), page: index => React.createElement(PaginationItem, { key: index, active: currentPage === index },
10
- React.createElement(PaginationLink, { tag: "button", onClick: () => onPageChange(index) }, index)), nextPage: index => React.createElement(PaginationItem, { onClick: () => onPageChange(index) },
11
- React.createElement(PaginationLink, { next: true, tag: "button" }, "\u00BB")), dots: index => React.createElement(PaginationItem, { onClick: () => onPageChange(index), active: currentPage === index },
12
- React.createElement(PaginationLink, { tag: "button" }, index)) }));
9
+ React.createElement(PaginationLink, { previous: true, tag: "button", type: "button" }, "\u00AB")), page: index => React.createElement(PaginationItem, { key: index, active: currentPage === index },
10
+ React.createElement(PaginationLink, { tag: "button", type: "button", onClick: () => onPageChange(index) }, index)), nextPage: index => React.createElement(PaginationItem, { onClick: () => onPageChange(index) },
11
+ React.createElement(PaginationLink, { next: true, tag: "button", type: "button" }, "\u00BB")), dots: index => React.createElement(PaginationItem, { onClick: () => onPageChange(index), active: currentPage === index },
12
+ React.createElement(PaginationLink, { tag: "button", type: "button" }, index)) }));
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-admin-base-bootstrap",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -114,9 +114,9 @@ export default function BootstrapTable({url, bordered, noStrip, defaultParams, a
114
114
  <DataContextProvider value={fetchData}>
115
115
  <CardHeader>
116
116
  <Row>
117
- {add && <Col xs="12" md="2"><Link to={add} className="btn btn-primary font-xl btn-lg d-block"><i className="fa fa-plus"/></Link></Col>}
117
+ {add && <Col xs="12" md="2"><Link to={add} className="btn btn-primary font-xl d-block"><i className="fa fa-plus"/></Link></Col>}
118
118
  <Col md="2">
119
- <Input type="select" bsSize="lg" value={itemPerPage.toString()} onChange={a => setItemPerPage(+a.currentTarget.value)}>
119
+ <Input type="select" value={itemPerPage.toString()} onChange={a => setItemPerPage(+a.currentTarget.value)}>
120
120
  <option value="1">1</option>
121
121
  <option value="20">20</option>
122
122
  <option value="50">50</option>
@@ -131,14 +131,13 @@ export default function BootstrapTable({url, bordered, noStrip, defaultParams, a
131
131
  <Input
132
132
  placeholder={intl.formatMessage({id: "SEARCH"})} type="text"
133
133
  value={params.query || ''}
134
- bsSize="lg"
135
134
  onChange={e => setParams({...params, query: e.currentTarget.value})}
136
135
  />
137
136
  </Col>
138
137
  </Row>
139
138
  </CardHeader>
140
- {data === null ? <Alert className="text-center mb-0 mx-3 " color="warning"><i className="fas fa-spinner fa-lg fa-spin"></i></Alert> : !data.length ? <Alert className="text-center mx-3" color="danger">
141
- <i className="far fa-times-circle fa-lg"></i> <FormattedMessage id="NO_DATA_IS_AVAILABLE"/>
139
+ {data === null ? <Alert className="text-center mb-0 mx-3 " color="warning"><i className="fas fa-spinner fa-spin"></i></Alert> : !data.length ? <Alert className="text-center mx-3" color="danger">
140
+ <i className="far fa-times-circle"></i> <FormattedMessage id="NO_DATA_IS_AVAILABLE"/>
142
141
  </Alert> : <Table hover bordered={bordered} striped={!noStrip} responsive size="md" className="mb-0 dataTable">
143
142
  {children[0]}
144
143
  <tbody>
@@ -19,17 +19,17 @@ export default function BootstrapPagination({ className, currentPage, pageCount,
19
19
  activePage={currentPage}
20
20
  pageCount={pageCount}
21
21
  showPages={15}
22
- prevPage={index => <PaginationItem onClick={() => onPageChange(index)}><PaginationLink previous tag="button">&laquo;</PaginationLink></PaginationItem>}
22
+ prevPage={index => <PaginationItem onClick={() => onPageChange(index)}><PaginationLink previous tag="button" type="button">&laquo;</PaginationLink></PaginationItem>}
23
23
 
24
24
  page={index => <PaginationItem key={index} active={currentPage === index}>
25
- <PaginationLink tag="button" onClick={() => onPageChange(index)}>{index}</PaginationLink>
25
+ <PaginationLink tag="button" type="button" onClick={() => onPageChange(index)}>{index}</PaginationLink>
26
26
  </PaginationItem>}
27
27
 
28
28
  nextPage={index => <PaginationItem
29
- onClick={() => onPageChange(index)}><PaginationLink next tag="button">&raquo;</PaginationLink></PaginationItem>}
29
+ onClick={() => onPageChange(index)}><PaginationLink next tag="button" type="button">&raquo;</PaginationLink></PaginationItem>}
30
30
 
31
31
  dots={index => <PaginationItem
32
- onClick={() => onPageChange(index)} active={currentPage === index}><PaginationLink tag="button">{index}</PaginationLink></PaginationItem>}
32
+ onClick={() => onPageChange(index)} active={currentPage === index}><PaginationLink tag="button" type="button">{index}</PaginationLink></PaginationItem>}
33
33
  />
34
34
  </Pagination>;
35
35
  }