@trackunit/react-compound-components 0.0.6 → 0.0.7

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/index.cjs.js CHANGED
@@ -119,7 +119,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
119
119
  */
120
120
  const ConfirmationDialogModal = (_a) => {
121
121
  var { isOpen, title, handleDismiss, message, handlePrimaryActionClick, handleSecondaryActionClick, secondaryActionLabel, primaryActionType, primaryActionLabel } = _a, rest = __rest(_a, ["isOpen", "title", "handleDismiss", "message", "handlePrimaryActionClick", "handleSecondaryActionClick", "secondaryActionLabel", "primaryActionType", "primaryActionLabel"]);
122
- return (jsxRuntime.jsx(reactComponents.Modal, Object.assign({ className: "max-w-xl", isOpen: isOpen, onDismissClick: handleDismiss }, rest, { children: jsxRuntime.jsxs(reactComponents.Card, { role: "dialog", "aria-labelledby": "dialogTitle", "aria-describedby": "dialogDesc", children: [jsxRuntime.jsx(reactComponents.CardHeader, { id: "dialogTitle", heading: title, headingVariant: "secondary", onClose: handleDismiss }), jsxRuntime.jsx(reactComponents.CardBody, { className: "bg-secondary-50", id: "dialogDesc", children: message }), jsxRuntime.jsxs(reactComponents.CardFooter, { hideSeparator: true, className: "bg-secondary-50", children: [jsxRuntime.jsx(reactComponents.Button, { variant: "secondary", onClick: handleSecondaryActionClick, dataTestId: "secondaryAction", children: secondaryActionLabel }), jsxRuntime.jsx(reactComponents.Button, { variant: primaryActionType, onClick: handlePrimaryActionClick, dataTestId: "primaryAction", children: primaryActionLabel })] })] }) })));
122
+ return (jsxRuntime.jsx(reactComponents.Modal, Object.assign({ className: "max-w-xl", isOpen: isOpen, onDismissClick: handleDismiss }, rest, { children: jsxRuntime.jsxs(reactComponents.Card, { "aria-describedby": "dialogDesc", "aria-labelledby": "dialogTitle", role: "dialog", children: [jsxRuntime.jsx(reactComponents.CardHeader, { id: "dialogTitle", heading: title, headingVariant: "secondary", onClose: handleDismiss }), jsxRuntime.jsx(reactComponents.CardBody, { className: "bg-secondary-50", id: "dialogDesc", children: message }), jsxRuntime.jsxs(reactComponents.CardFooter, { className: "bg-secondary-50", hideSeparator: true, children: [jsxRuntime.jsx(reactComponents.Button, { dataTestId: "secondaryAction", onClick: handleSecondaryActionClick, variant: "secondary", children: secondaryActionLabel }), jsxRuntime.jsx(reactComponents.Button, { dataTestId: "primaryAction", onClick: handlePrimaryActionClick, variant: primaryActionType, children: primaryActionLabel })] })] }) })));
123
123
  };
124
124
 
125
125
  /**
package/index.esm.js CHANGED
@@ -96,7 +96,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
96
96
  */
97
97
  const ConfirmationDialogModal = (_a) => {
98
98
  var { isOpen, title, handleDismiss, message, handlePrimaryActionClick, handleSecondaryActionClick, secondaryActionLabel, primaryActionType, primaryActionLabel } = _a, rest = __rest(_a, ["isOpen", "title", "handleDismiss", "message", "handlePrimaryActionClick", "handleSecondaryActionClick", "secondaryActionLabel", "primaryActionType", "primaryActionLabel"]);
99
- return (jsx(Modal, Object.assign({ className: "max-w-xl", isOpen: isOpen, onDismissClick: handleDismiss }, rest, { children: jsxs(Card, { role: "dialog", "aria-labelledby": "dialogTitle", "aria-describedby": "dialogDesc", children: [jsx(CardHeader, { id: "dialogTitle", heading: title, headingVariant: "secondary", onClose: handleDismiss }), jsx(CardBody, { className: "bg-secondary-50", id: "dialogDesc", children: message }), jsxs(CardFooter, { hideSeparator: true, className: "bg-secondary-50", children: [jsx(Button, { variant: "secondary", onClick: handleSecondaryActionClick, dataTestId: "secondaryAction", children: secondaryActionLabel }), jsx(Button, { variant: primaryActionType, onClick: handlePrimaryActionClick, dataTestId: "primaryAction", children: primaryActionLabel })] })] }) })));
99
+ return (jsx(Modal, Object.assign({ className: "max-w-xl", isOpen: isOpen, onDismissClick: handleDismiss }, rest, { children: jsxs(Card, { "aria-describedby": "dialogDesc", "aria-labelledby": "dialogTitle", role: "dialog", children: [jsx(CardHeader, { id: "dialogTitle", heading: title, headingVariant: "secondary", onClose: handleDismiss }), jsx(CardBody, { className: "bg-secondary-50", id: "dialogDesc", children: message }), jsxs(CardFooter, { className: "bg-secondary-50", hideSeparator: true, children: [jsx(Button, { dataTestId: "secondaryAction", onClick: handleSecondaryActionClick, variant: "secondary", children: secondaryActionLabel }), jsx(Button, { dataTestId: "primaryAction", onClick: handlePrimaryActionClick, variant: primaryActionType, children: primaryActionLabel })] })] }) })));
100
100
  };
101
101
 
102
102
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-compound-components",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {