pixelize-design-library 2.1.27 → 2.1.28

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.
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { ContactFormProps } from "./ContactFormProps";
3
- declare const ContactForm: ({ apiKey, customFields, getCustomValues, isDisabled, organizationId, customerId, buttonColorScheme }: ContactFormProps) => React.JSX.Element;
3
+ declare const ContactForm: ({ apiKey, customFields, getCustomValues, isDisabled, organizationId, customerId, buttonColorScheme, buttonSx, }: ContactFormProps) => React.JSX.Element;
4
4
  export default ContactForm;
@@ -82,7 +82,7 @@ var InputTextArea_1 = __importDefault(require("../InputTextArea/InputTextArea"))
82
82
  var Button_1 = __importDefault(require("../Button/Button"));
83
83
  var ContactForm = function (_a) {
84
84
  var _b;
85
- var apiKey = _a.apiKey, customFields = _a.customFields, getCustomValues = _a.getCustomValues, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, organizationId = _a.organizationId, customerId = _a.customerId, _d = _a.buttonColorScheme, buttonColorScheme = _d === void 0 ? "primary" : _d;
85
+ var apiKey = _a.apiKey, customFields = _a.customFields, getCustomValues = _a.getCustomValues, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, organizationId = _a.organizationId, customerId = _a.customerId, _d = _a.buttonColorScheme, buttonColorScheme = _d === void 0 ? "primary" : _d, buttonSx = _a.buttonSx;
86
86
  var colors = (0, useCustomTheme_1.useCustomTheme)().colors;
87
87
  var _e = (0, react_1.useState)({
88
88
  firstName: "",
@@ -211,8 +211,6 @@ var ContactForm = function (_a) {
211
211
  react_1.default.createElement(react_2.Text, { fontSize: "sm", mb: 1 }, "Enquiry"),
212
212
  react_1.default.createElement(react_2.Box, null,
213
213
  react_1.default.createElement(InputTextArea_1.default, { placeholder: "Enter your enquiry", rows: 4, width: "100%", value: formData.enquiry, onChange: function (e) { return handleChange("enquiry", e.target.value); } }))),
214
- react_1.default.createElement(Button_1.default, { type: "submit", isDisabled: isDisabled, colorScheme: buttonColorScheme, width: "full", sx: {
215
- mt: 2
216
- } }, "Send Message")))));
214
+ react_1.default.createElement(Button_1.default, { type: "submit", isDisabled: isDisabled, colorScheme: buttonColorScheme, width: "full", sx: buttonSx }, "Send Message")))));
217
215
  };
218
216
  exports.default = ContactForm;
@@ -1,3 +1,4 @@
1
+ import { SystemStyleObject } from "@chakra-ui/react";
1
2
  import { ReactNode } from "react";
2
3
  export interface ContactFormProps {
3
4
  apiKey?: string;
@@ -7,4 +8,5 @@ export interface ContactFormProps {
7
8
  customFields?: ReactNode;
8
9
  getCustomValues?: () => Record<string, any>;
9
10
  buttonColorScheme?: "primary" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow" | "secondary" | "tertiary" | undefined;
11
+ buttonSx?: SystemStyleObject;
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",