@sikka/hawa 0.15.14-next → 0.15.15-next

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/dist/index.d.mts CHANGED
@@ -279,7 +279,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
279
279
  /** The small red text under the input field to show validation or a hint. */
280
280
  helperText?: any;
281
281
  forceHideHelperText?: boolean;
282
- inputProps?: any;
282
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
283
283
  /** The icon inside the input field */
284
284
  icon?: any;
285
285
  /** Boolean to enable/disable editing the input field and using it as a text field */
package/dist/index.d.ts CHANGED
@@ -279,7 +279,7 @@ type TextFieldTypes = React__default.InputHTMLAttributes<HTMLInputElement> & {
279
279
  /** The small red text under the input field to show validation or a hint. */
280
280
  helperText?: any;
281
281
  forceHideHelperText?: boolean;
282
- inputProps?: any;
282
+ inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
283
283
  /** The icon inside the input field */
284
284
  icon?: any;
285
285
  /** Boolean to enable/disable editing the input field and using it as a text field */
package/dist/index.js CHANGED
@@ -8254,6 +8254,10 @@ var LoginForm = function(_param) {
8254
8254
  var field = param.field;
8255
8255
  var _texts_email, _formState_errors_email, _texts_email1;
8256
8256
  return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
8257
+ inputProps: {
8258
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
8259
+ },
8260
+ dir: "ltr",
8257
8261
  width: "full",
8258
8262
  autoComplete: "email",
8259
8263
  label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
@@ -8380,6 +8384,7 @@ var LoginForm = function(_param) {
8380
8384
  }, /* @__PURE__ */ import_react45.default.createElement(CardContent, {
8381
8385
  headless: true
8382
8386
  }, props.showError && /* @__PURE__ */ import_react45.default.createElement(Alert, {
8387
+ direction: props.direction,
8383
8388
  title: props.errorTitle,
8384
8389
  text: props.errorText,
8385
8390
  severity: "error"
@@ -8562,6 +8567,10 @@ var RegisterForm = function(_param) {
8562
8567
  var field = param.field;
8563
8568
  var _texts_email, _formState_errors_email, _texts_email1;
8564
8569
  return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
8570
+ dir: "ltr",
8571
+ inputProps: {
8572
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
8573
+ },
8565
8574
  width: "full",
8566
8575
  autoComplete: "email",
8567
8576
  label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
package/dist/index.mjs CHANGED
@@ -8310,6 +8310,10 @@ var LoginForm = ({
8310
8310
  render: ({ field }) => /* @__PURE__ */ React72.createElement(
8311
8311
  Input,
8312
8312
  {
8313
+ inputProps: {
8314
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
8315
+ },
8316
+ dir: "ltr",
8313
8317
  width: "full",
8314
8318
  autoComplete: "email",
8315
8319
  label: texts?.email?.label,
@@ -8450,6 +8454,7 @@ var LoginForm = ({
8450
8454
  return /* @__PURE__ */ React72.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, /* @__PURE__ */ React72.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React72.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React72.createElement(
8451
8455
  Alert,
8452
8456
  {
8457
+ direction: props.direction,
8453
8458
  title: props.errorTitle,
8454
8459
  text: props.errorText,
8455
8460
  severity: "error"
@@ -8629,6 +8634,10 @@ var RegisterForm = ({ texts, ...props }) => {
8629
8634
  render: ({ field }) => /* @__PURE__ */ React73.createElement(
8630
8635
  Input,
8631
8636
  {
8637
+ dir: "ltr",
8638
+ inputProps: {
8639
+ className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
8640
+ },
8632
8641
  width: "full",
8633
8642
  autoComplete: "email",
8634
8643
  label: texts?.email?.label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.15.14-next",
3
+ "version": "0.15.15-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {