@bento-core/paginated-table 1.0.1-CDS.15 → 1.0.1-CDS.17

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.
@@ -61,9 +61,11 @@ const Text = _ref2 => {
61
61
  text,
62
62
  clsName,
63
63
  tag,
64
+ component = 'span',
64
65
  Component
65
66
  } = _ref2;
66
- return /*#__PURE__*/_react.default.createElement("span", {
67
+ return /*#__PURE__*/_react.default.createElement(_core.Box, {
68
+ component: component,
67
69
  className: clsName,
68
70
  type: tag
69
71
  }, text, Component && /*#__PURE__*/_react.default.createElement(Component, null));
@@ -16,7 +16,6 @@ function AddToCartDialogAlertView(props) {
16
16
  const closeAlertModelTimer = 4000;
17
17
  const AlertDialog = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_core.Dialog, {
18
18
  open: open,
19
- "aria-labelledby": "alert-dialog-title",
20
19
  "aria-describedby": "alert-dialog-description"
21
20
  }, /*#__PURE__*/_react.default.createElement(_core.DialogContent, {
22
21
  className: "alter-content"
@@ -28,14 +28,16 @@ function AddToCartDialogView(props) {
28
28
  }
29
29
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_core.Dialog, {
30
30
  open: open,
31
- "aria-labelledby": "alert-dialog-title",
32
31
  "aria-describedby": "alert-dialog-description"
33
32
  }, /*#__PURE__*/_react.default.createElement(_core.DialogContent, null, DisplayCustomText ? /*#__PURE__*/_react.default.createElement(DisplayCustomText, {
34
33
  onYesClick: onYesClick,
35
34
  onNoClick: onNoClick,
36
35
  activeFilters: activeFilters
37
36
  }) : /*#__PURE__*/_react.default.createElement(_core.DialogContentText, {
38
- id: "alert-dialog-description"
37
+ id: "alert-dialog-description",
38
+ style: {
39
+ color: 'black'
40
+ }
39
41
  }, "Are you sure to add All Files", ' ', numberOfFilesSelected, ' ', "to cart")), /*#__PURE__*/_react.default.createElement(_core.DialogActions, {
40
42
  className: "dialog_actions"
41
43
  }, /*#__PURE__*/_react.default.createElement(_core.Button, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/paginated-table",
3
- "version": "1.0.1-CDS.15",
3
+ "version": "1.0.1-CDS.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@bento-core/cart": "^1.0.1-CDS.1",
17
- "@bento-core/table": "^1.0.1-CDS.7",
17
+ "@bento-core/table": "^1.0.1-CDS.9",
18
18
  "@bento-core/tool-tip": "^1.0.0",
19
19
  "@bento-core/util": "^1.0.1-CDS.0"
20
20
  },
@@ -28,5 +28,5 @@
28
28
  },
29
29
  "author": "CTOS Bento Team",
30
30
  "license": "ISC",
31
- "gitHead": "cd3e380b26fa838f2864b2c7723223bf62b2975d"
31
+ "gitHead": "3a79fe0c15ab525a2e1c97c6c52f22f9dc743b25"
32
32
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import {
3
+ Box,
3
4
  Container,
4
5
  createTheme,
5
6
  Link,
@@ -41,12 +42,13 @@ const Text = ({
41
42
  text,
42
43
  clsName,
43
44
  tag,
45
+ component = 'span',
44
46
  Component,
45
47
  }) => (
46
- <span className={clsName} type={tag}>
48
+ <Box component={component} className={clsName} type={tag}>
47
49
  {text}
48
50
  { Component && <Component /> }
49
- </span>
51
+ </Box>
50
52
  );
51
53
 
52
54
  /**
@@ -15,7 +15,6 @@ function AddToCartDialogAlertView(props) {
15
15
  <>
16
16
  <Dialog
17
17
  open={open}
18
- aria-labelledby="alert-dialog-title"
19
18
  aria-describedby="alert-dialog-description"
20
19
  >
21
20
  <DialogContent className="alter-content">
@@ -30,7 +30,6 @@ function AddToCartDialogView(props) {
30
30
  <>
31
31
  <Dialog
32
32
  open={open}
33
- aria-labelledby="alert-dialog-title"
34
33
  aria-describedby="alert-dialog-description"
35
34
  >
36
35
  <DialogContent>
@@ -42,7 +41,7 @@ function AddToCartDialogView(props) {
42
41
  activeFilters={activeFilters}
43
42
  />
44
43
  ) : (
45
- <DialogContentText id="alert-dialog-description">
44
+ <DialogContentText id="alert-dialog-description" style={{ color: 'black' }}>
46
45
  Are you sure to add All Files
47
46
  {' '}
48
47
  {numberOfFilesSelected}