@availity/mui-feedback 0.2.7 → 0.2.9
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/CHANGELOG.md +8 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
- package/src/lib/Feedback.test.tsx +1 -1
- package/src/lib/Feedback.tsx +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.2.9](https://github.com/Availity/element/compare/@availity/mui-feedback@0.2.8...@availity/mui-feedback@0.2.9) (2024-09-20)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-form-utils` updated to version `0.2.8`
|
|
10
|
+
* `mui-textfield` updated to version `0.2.8`
|
|
11
|
+
## [0.2.8](https://github.com/Availity/element/compare/@availity/mui-feedback@0.2.7...@availity/mui-feedback@0.2.8) (2024-09-13)
|
|
12
|
+
|
|
5
13
|
## [0.2.7](https://github.com/Availity/element/compare/@availity/mui-feedback@0.2.6...@availity/mui-feedback@0.2.7) (2024-08-22)
|
|
6
14
|
|
|
7
15
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -292,7 +292,7 @@ var FeedbackHeader = ({ appName, handleClose, loading, sent }) => {
|
|
|
292
292
|
var import_mui_icon3 = require("@availity/mui-icon");
|
|
293
293
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
294
294
|
var FeedbackContainer = (0, import_styles3.styled)(import_Container.default, { name: "AvFeedbackContainer", slot: "root" })({});
|
|
295
|
-
var
|
|
295
|
+
var FeedbackButton = (0, import_styles3.styled)(import_mui_button3.Button, { name: "AvFeedbackButton", slot: "root" })({});
|
|
296
296
|
var Feedback = ({
|
|
297
297
|
analytics = import_api_axios2.avLogMessagesApiV2,
|
|
298
298
|
appName,
|
|
@@ -310,7 +310,7 @@ var Feedback = ({
|
|
|
310
310
|
};
|
|
311
311
|
const open = Boolean(anchorEl);
|
|
312
312
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
313
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
313
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FeedbackButton, { onClick: handlePopoverOpen, color: buttonVariant, startIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_mui_icon3.CommentsIcon, {}), children: "Feedback" }),
|
|
314
314
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
315
315
|
import_mui_popover.Popover,
|
|
316
316
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -259,7 +259,7 @@ var FeedbackHeader = ({ appName, handleClose, loading, sent }) => {
|
|
|
259
259
|
import { CommentsIcon } from "@availity/mui-icon";
|
|
260
260
|
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
261
261
|
var FeedbackContainer = styled3(Container, { name: "AvFeedbackContainer", slot: "root" })({});
|
|
262
|
-
var
|
|
262
|
+
var FeedbackButton = styled3(Button2, { name: "AvFeedbackButton", slot: "root" })({});
|
|
263
263
|
var Feedback = ({
|
|
264
264
|
analytics = avLogMessagesApiV2,
|
|
265
265
|
appName,
|
|
@@ -277,7 +277,7 @@ var Feedback = ({
|
|
|
277
277
|
};
|
|
278
278
|
const open = Boolean(anchorEl);
|
|
279
279
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
280
|
-
/* @__PURE__ */ jsx3(
|
|
280
|
+
/* @__PURE__ */ jsx3(FeedbackButton, { onClick: handlePopoverOpen, color: buttonVariant, startIcon: /* @__PURE__ */ jsx3(CommentsIcon, {}), children: "Feedback" }),
|
|
281
281
|
/* @__PURE__ */ jsx3(
|
|
282
282
|
Popover,
|
|
283
283
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-feedback",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Availity MUI Feedback Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@availity/api-axios": "^9.0.0",
|
|
50
50
|
"@availity/mui-button": "^0.6.10",
|
|
51
|
-
"@availity/mui-form-utils": "^0.12.
|
|
51
|
+
"@availity/mui-form-utils": "^0.12.7",
|
|
52
52
|
"@availity/mui-icon": "^0.10.1",
|
|
53
53
|
"@availity/mui-popover": "^0.1.5",
|
|
54
|
-
"@availity/mui-textfield": "^0.6.
|
|
54
|
+
"@availity/mui-textfield": "^0.6.7",
|
|
55
55
|
"@availity/mui-toggle-button": "^0.1.13",
|
|
56
56
|
"@availity/mui-typography": "^0.2.0",
|
|
57
57
|
"react-hook-form": "^7.51.3"
|
|
@@ -4,7 +4,7 @@ import { Feedback } from './Feedback';
|
|
|
4
4
|
describe('Feedback', () => {
|
|
5
5
|
test('should render successfully', () => {
|
|
6
6
|
const { getByText } = render(<Feedback appName="This App" />);
|
|
7
|
-
const button = getByText('
|
|
7
|
+
const button = getByText('Feedback');
|
|
8
8
|
|
|
9
9
|
expect(button).toBeTruthy();
|
|
10
10
|
|
package/src/lib/Feedback.tsx
CHANGED
|
@@ -16,7 +16,7 @@ export interface FeedbackProps {
|
|
|
16
16
|
|
|
17
17
|
const FeedbackContainer = styled(Container, { name: 'AvFeedbackContainer', slot: 'root' })({});
|
|
18
18
|
|
|
19
|
-
const
|
|
19
|
+
const FeedbackButton = styled(Button, { name: 'AvFeedbackButton', slot: 'root' })({});
|
|
20
20
|
|
|
21
21
|
export const Feedback = ({
|
|
22
22
|
analytics = avLogMessagesApiV2,
|
|
@@ -40,9 +40,9 @@ export const Feedback = ({
|
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
42
|
<>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
</
|
|
43
|
+
<FeedbackButton onClick={handlePopoverOpen} color={buttonVariant} startIcon={<CommentsIcon />}>
|
|
44
|
+
Feedback
|
|
45
|
+
</FeedbackButton>
|
|
46
46
|
<Popover
|
|
47
47
|
anchorEl={anchorEl}
|
|
48
48
|
anchorOrigin={{
|