@sikka/hawa 0.42.6-next → 0.42.8-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.
@@ -355,6 +355,7 @@ type DataTableProps<DataProps = {}> = {
355
355
  enableGoTo?: boolean;
356
356
  enableSelection?: boolean;
357
357
  enableFiltering?: boolean;
358
+ resetSelection?: boolean;
358
359
  filters?: {
359
360
  accessorKey: string;
360
361
  value: string;
@@ -393,7 +394,7 @@ declare module "@tanstack/table-core" {
393
394
  i18nKey?: string;
394
395
  }
395
396
  }
396
- declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
397
+ declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, resetSelection, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
397
398
 
398
399
  type BackToTopTypes = {
399
400
  /** Horizontal padding relative to the attached corner */
@@ -355,6 +355,7 @@ type DataTableProps<DataProps = {}> = {
355
355
  enableGoTo?: boolean;
356
356
  enableSelection?: boolean;
357
357
  enableFiltering?: boolean;
358
+ resetSelection?: boolean;
358
359
  filters?: {
359
360
  accessorKey: string;
360
361
  value: string;
@@ -393,7 +394,7 @@ declare module "@tanstack/table-core" {
393
394
  i18nKey?: string;
394
395
  }
395
396
  }
396
- declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
397
+ declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, resetSelection, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React.JSX.Element;
397
398
 
398
399
  type BackToTopTypes = {
399
400
  /** Horizontal padding relative to the attached corner */
@@ -3231,6 +3231,7 @@ var DataTable = ({
3231
3231
  data,
3232
3232
  paginationPosition = "bottom",
3233
3233
  translateFn,
3234
+ resetSelection,
3234
3235
  enableHideColumns,
3235
3236
  enableSelection,
3236
3237
  enableFiltering,
@@ -3317,6 +3318,9 @@ var DataTable = ({
3317
3318
  React24.useEffect(() => {
3318
3319
  localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
3319
3320
  }, [columnVisibility]);
3321
+ React24.useEffect(() => {
3322
+ setRowSelection({});
3323
+ }, [resetSelection]);
3320
3324
  React24.useEffect(() => {
3321
3325
  setColumnVisibility((prev) => {
3322
3326
  let newColumnVisibility = {};
@@ -7391,19 +7395,19 @@ var PhoneInput = ({
7391
7395
  var React50 = __toESM(require("react"));
7392
7396
  var import_input_otp = require("input-otp");
7393
7397
 
7394
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7398
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7395
7399
  var import_react41 = require("react");
7396
7400
 
7397
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
7401
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
7398
7402
  var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7399
7403
  var mergeClasses = (...classes) => classes.filter((className, index, array) => {
7400
7404
  return Boolean(className) && array.indexOf(className) === index;
7401
7405
  }).join(" ");
7402
7406
 
7403
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7407
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7404
7408
  var import_react40 = require("react");
7405
7409
 
7406
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
7410
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
7407
7411
  var defaultAttributes = {
7408
7412
  xmlns: "http://www.w3.org/2000/svg",
7409
7413
  width: 24,
@@ -7416,7 +7420,7 @@ var defaultAttributes = {
7416
7420
  strokeLinejoin: "round"
7417
7421
  };
7418
7422
 
7419
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7423
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7420
7424
  var Icon = (0, import_react40.forwardRef)(
7421
7425
  ({
7422
7426
  color = "currentColor",
@@ -7448,7 +7452,7 @@ var Icon = (0, import_react40.forwardRef)(
7448
7452
  }
7449
7453
  );
7450
7454
 
7451
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7455
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7452
7456
  var createLucideIcon = (iconName, iconNode) => {
7453
7457
  const Component = (0, import_react41.forwardRef)(
7454
7458
  ({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
@@ -7462,7 +7466,7 @@ var createLucideIcon = (iconName, iconNode) => {
7462
7466
  return Component;
7463
7467
  };
7464
7468
 
7465
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
7469
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
7466
7470
  var Dot = createLucideIcon("Dot", [
7467
7471
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
7468
7472
  ]);
@@ -9008,7 +9012,7 @@ var PhoneMockup = ({
9008
9012
 
9009
9013
  lucide-react/dist/esm/shared/src/utils.js:
9010
9014
  (**
9011
- * @license lucide-react v0.396.0 - ISC
9015
+ * @license lucide-react v0.403.0 - ISC
9012
9016
  *
9013
9017
  * This source code is licensed under the ISC license.
9014
9018
  * See the LICENSE file in the root directory of this source tree.
@@ -9016,7 +9020,7 @@ lucide-react/dist/esm/shared/src/utils.js:
9016
9020
 
9017
9021
  lucide-react/dist/esm/defaultAttributes.js:
9018
9022
  (**
9019
- * @license lucide-react v0.396.0 - ISC
9023
+ * @license lucide-react v0.403.0 - ISC
9020
9024
  *
9021
9025
  * This source code is licensed under the ISC license.
9022
9026
  * See the LICENSE file in the root directory of this source tree.
@@ -9024,7 +9028,7 @@ lucide-react/dist/esm/defaultAttributes.js:
9024
9028
 
9025
9029
  lucide-react/dist/esm/Icon.js:
9026
9030
  (**
9027
- * @license lucide-react v0.396.0 - ISC
9031
+ * @license lucide-react v0.403.0 - ISC
9028
9032
  *
9029
9033
  * This source code is licensed under the ISC license.
9030
9034
  * See the LICENSE file in the root directory of this source tree.
@@ -9032,7 +9036,7 @@ lucide-react/dist/esm/Icon.js:
9032
9036
 
9033
9037
  lucide-react/dist/esm/createLucideIcon.js:
9034
9038
  (**
9035
- * @license lucide-react v0.396.0 - ISC
9039
+ * @license lucide-react v0.403.0 - ISC
9036
9040
  *
9037
9041
  * This source code is licensed under the ISC license.
9038
9042
  * See the LICENSE file in the root directory of this source tree.
@@ -9040,7 +9044,7 @@ lucide-react/dist/esm/createLucideIcon.js:
9040
9044
 
9041
9045
  lucide-react/dist/esm/icons/dot.js:
9042
9046
  (**
9043
- * @license lucide-react v0.396.0 - ISC
9047
+ * @license lucide-react v0.403.0 - ISC
9044
9048
  *
9045
9049
  * This source code is licensed under the ISC license.
9046
9050
  * See the LICENSE file in the root directory of this source tree.
@@ -9048,7 +9052,7 @@ lucide-react/dist/esm/icons/dot.js:
9048
9052
 
9049
9053
  lucide-react/dist/esm/lucide-react.js:
9050
9054
  (**
9051
- * @license lucide-react v0.396.0 - ISC
9055
+ * @license lucide-react v0.403.0 - ISC
9052
9056
  *
9053
9057
  * This source code is licensed under the ISC license.
9054
9058
  * See the LICENSE file in the root directory of this source tree.
@@ -26,7 +26,7 @@ import {
26
26
  TabsList,
27
27
  TabsTrigger,
28
28
  Textarea
29
- } from "../chunk-EBVZY3RJ.mjs";
29
+ } from "../chunk-RIZBMJNK.mjs";
30
30
  import {
31
31
  useClipboard
32
32
  } from "../chunk-WL7C2A5D.mjs";
@@ -938,6 +938,7 @@ var DataTable = ({
938
938
  data,
939
939
  paginationPosition = "bottom",
940
940
  translateFn,
941
+ resetSelection,
941
942
  enableHideColumns,
942
943
  enableSelection,
943
944
  enableFiltering,
@@ -1024,6 +1025,9 @@ var DataTable = ({
1024
1025
  React10.useEffect(() => {
1025
1026
  localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
1026
1027
  }, [columnVisibility]);
1028
+ React10.useEffect(() => {
1029
+ setRowSelection({});
1030
+ }, [resetSelection]);
1027
1031
  React10.useEffect(() => {
1028
1032
  setColumnVisibility((prev) => {
1029
1033
  let newColumnVisibility = {};
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.4.5 | MIT License | https://tailwindcss.com
3
3
  *//*
4
4
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
5
5
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
@@ -1798,10 +1798,6 @@ input[type="number"]::-webkit-inner-spin-button,
1798
1798
  --tw-translate-y: -100%;
1799
1799
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1800
1800
  }
1801
- .hawa--translate-x-0 {
1802
- --tw-translate-x: -0px;
1803
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1804
- }
1805
1801
  .hawa--translate-x-0\.5 {
1806
1802
  --tw-translate-x: -0.125rem;
1807
1803
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -1810,10 +1806,6 @@ input[type="number"]::-webkit-inner-spin-button,
1810
1806
  --tw-translate-y: -50%;
1811
1807
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1812
1808
  }
1813
- .hawa-translate-x-0 {
1814
- --tw-translate-x: 0px;
1815
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1816
- }
1817
1809
  .hawa-translate-x-0\.5 {
1818
1810
  --tw-translate-x: 0.125rem;
1819
1811
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -3164,12 +3156,12 @@ input[type="number"]::-webkit-inner-spin-button,
3164
3156
  .hawa-backdrop-blur-\[2px\] {
3165
3157
  --tw-backdrop-blur: blur(2px);
3166
3158
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
3167
- backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
3159
+ backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
3168
3160
  }
3169
3161
  .hawa-backdrop-blur-sm {
3170
3162
  --tw-backdrop-blur: blur(4px);
3171
3163
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
3172
- backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
3164
+ backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
3173
3165
  }
3174
3166
  .hawa-transition {
3175
3167
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
@@ -3641,18 +3633,10 @@ body {
3641
3633
  .focus-visible\:hawa-ring-offset-2:focus-visible {
3642
3634
  --tw-ring-offset-width: 2px;
3643
3635
  }
3644
- .active\:hawa-translate-x-0:active {
3645
- --tw-translate-x: 0px;
3646
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3647
- }
3648
3636
  .active\:hawa-translate-x-0\.5:active {
3649
3637
  --tw-translate-x: 0.125rem;
3650
3638
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3651
3639
  }
3652
- .active\:hawa-translate-y-0:active {
3653
- --tw-translate-y: 0px;
3654
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3655
- }
3656
3640
  .active\:hawa-translate-y-0\.5:active {
3657
3641
  --tw-translate-y: 0.125rem;
3658
3642
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
package/dist/index.d.mts CHANGED
@@ -503,6 +503,7 @@ type DataTableProps<DataProps = {}> = {
503
503
  enableGoTo?: boolean;
504
504
  enableSelection?: boolean;
505
505
  enableFiltering?: boolean;
506
+ resetSelection?: boolean;
506
507
  filters?: {
507
508
  accessorKey: string;
508
509
  value: string;
@@ -541,7 +542,7 @@ declare module "@tanstack/table-core" {
541
542
  i18nKey?: string;
542
543
  }
543
544
  }
544
- declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React$1.JSX.Element;
545
+ declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, resetSelection, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React$1.JSX.Element;
545
546
 
546
547
  type BackToTopTypes = {
547
548
  /** Horizontal padding relative to the attached corner */
@@ -1690,8 +1691,8 @@ type LoginFormTypes = {
1690
1691
  onTwitterLogin?: () => void;
1691
1692
  /** Additional buttons to add under the login button */
1692
1693
  additionalButtons?: any;
1693
- /** The allowed length of the password input field */
1694
- passwordLength?: number;
1694
+ /** The minimum length of the password input field */
1695
+ minPasswordLength?: number;
1695
1696
  /** If true, the form is displayed without a card container styling.*/
1696
1697
  cardless?: boolean;
1697
1698
  /** Props to pass to the PhoneInput component */
@@ -1765,6 +1766,8 @@ type RegisterFormTypes = {
1765
1766
  form?: string;
1766
1767
  card?: string;
1767
1768
  };
1769
+ /** The minimum length of the password input field */
1770
+ minPasswordLength?: number;
1768
1771
  /** If true, the form is displayed without a card container styling.*/
1769
1772
  cardless?: boolean;
1770
1773
  };
package/dist/index.d.ts CHANGED
@@ -503,6 +503,7 @@ type DataTableProps<DataProps = {}> = {
503
503
  enableGoTo?: boolean;
504
504
  enableSelection?: boolean;
505
505
  enableFiltering?: boolean;
506
+ resetSelection?: boolean;
506
507
  filters?: {
507
508
  accessorKey: string;
508
509
  value: string;
@@ -541,7 +542,7 @@ declare module "@tanstack/table-core" {
541
542
  i18nKey?: string;
542
543
  }
543
544
  }
544
- declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React$1.JSX.Element;
545
+ declare const DataTable: <DataProps extends {}>({ columns, data, paginationPosition, translateFn, resetSelection, enableHideColumns, enableSelection, enableFiltering, enableSearch, enableGoTo, ...props }: DataTableProps<DataProps>) => React$1.JSX.Element;
545
546
 
546
547
  type BackToTopTypes = {
547
548
  /** Horizontal padding relative to the attached corner */
@@ -1690,8 +1691,8 @@ type LoginFormTypes = {
1690
1691
  onTwitterLogin?: () => void;
1691
1692
  /** Additional buttons to add under the login button */
1692
1693
  additionalButtons?: any;
1693
- /** The allowed length of the password input field */
1694
- passwordLength?: number;
1694
+ /** The minimum length of the password input field */
1695
+ minPasswordLength?: number;
1695
1696
  /** If true, the form is displayed without a card container styling.*/
1696
1697
  cardless?: boolean;
1697
1698
  /** Props to pass to the PhoneInput component */
@@ -1765,6 +1766,8 @@ type RegisterFormTypes = {
1765
1766
  form?: string;
1766
1767
  card?: string;
1767
1768
  };
1769
+ /** The minimum length of the password input field */
1770
+ minPasswordLength?: number;
1768
1771
  /** If true, the form is displayed without a card container styling.*/
1769
1772
  cardless?: boolean;
1770
1773
  };
package/dist/index.js CHANGED
@@ -3306,6 +3306,7 @@ var DataTable = ({
3306
3306
  data,
3307
3307
  paginationPosition = "bottom",
3308
3308
  translateFn,
3309
+ resetSelection,
3309
3310
  enableHideColumns,
3310
3311
  enableSelection,
3311
3312
  enableFiltering,
@@ -3392,6 +3393,9 @@ var DataTable = ({
3392
3393
  React24.useEffect(() => {
3393
3394
  localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
3394
3395
  }, [columnVisibility]);
3396
+ React24.useEffect(() => {
3397
+ setRowSelection({});
3398
+ }, [resetSelection]);
3395
3399
  React24.useEffect(() => {
3396
3400
  setColumnVisibility((prev) => {
3397
3401
  let newColumnVisibility = {};
@@ -7918,19 +7922,19 @@ var PhoneInput = ({
7918
7922
  var React50 = __toESM(require("react"));
7919
7923
  var import_input_otp = require("input-otp");
7920
7924
 
7921
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7925
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7922
7926
  var import_react41 = require("react");
7923
7927
 
7924
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
7928
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
7925
7929
  var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7926
7930
  var mergeClasses = (...classes) => classes.filter((className, index, array) => {
7927
7931
  return Boolean(className) && array.indexOf(className) === index;
7928
7932
  }).join(" ");
7929
7933
 
7930
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7934
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7931
7935
  var import_react40 = require("react");
7932
7936
 
7933
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
7937
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
7934
7938
  var defaultAttributes = {
7935
7939
  xmlns: "http://www.w3.org/2000/svg",
7936
7940
  width: 24,
@@ -7943,7 +7947,7 @@ var defaultAttributes = {
7943
7947
  strokeLinejoin: "round"
7944
7948
  };
7945
7949
 
7946
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7950
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
7947
7951
  var Icon = (0, import_react40.forwardRef)(
7948
7952
  ({
7949
7953
  color = "currentColor",
@@ -7975,7 +7979,7 @@ var Icon = (0, import_react40.forwardRef)(
7975
7979
  }
7976
7980
  );
7977
7981
 
7978
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7982
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
7979
7983
  var createLucideIcon = (iconName, iconNode) => {
7980
7984
  const Component = (0, import_react41.forwardRef)(
7981
7985
  ({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
@@ -7989,7 +7993,7 @@ var createLucideIcon = (iconName, iconNode) => {
7989
7993
  return Component;
7990
7994
  };
7991
7995
 
7992
- // ../../node_modules/.pnpm/lucide-react@0.396.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
7996
+ // ../../node_modules/.pnpm/lucide-react@0.403.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
7993
7997
  var Dot = createLucideIcon("Dot", [
7994
7998
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
7995
7999
  ]);
@@ -10943,7 +10947,7 @@ var import_libphonenumber_js = require("libphonenumber-js");
10943
10947
  var z = __toESM(require("zod"));
10944
10948
  var LoginForm = ({
10945
10949
  loginType = "email",
10946
- passwordLength = 8,
10950
+ minPasswordLength = 8,
10947
10951
  texts,
10948
10952
  ...props
10949
10953
  }) => {
@@ -10964,7 +10968,7 @@ var LoginForm = ({
10964
10968
  email: z.string({ required_error: ((_a = texts == null ? void 0 : texts.email) == null ? void 0 : _a.required) || "Email Required" }).min(1, { message: ((_b = texts == null ? void 0 : texts.email) == null ? void 0 : _b.required) || "Email Required" }).email({ message: ((_c = texts == null ? void 0 : texts.email) == null ? void 0 : _c.invalid) || "Email Invalid" }),
10965
10969
  password: z.string({
10966
10970
  required_error: ((_d = texts == null ? void 0 : texts.password) == null ? void 0 : _d.required) || "Password Required"
10967
- }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(passwordLength, {
10971
+ }).min(1, { message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Password Required" }).min(minPasswordLength, {
10968
10972
  message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.tooShort) || "Password too short"
10969
10973
  })
10970
10974
  });
@@ -10981,7 +10985,7 @@ var LoginForm = ({
10981
10985
  ),
10982
10986
  password: z.string({
10983
10987
  required_error: ((_j = texts == null ? void 0 : texts.password) == null ? void 0 : _j.required) || "Password Required"
10984
- }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(passwordLength, {
10988
+ }).min(1, { message: ((_k = texts == null ? void 0 : texts.password) == null ? void 0 : _k.required) || "Password Required" }).min(minPasswordLength, {
10985
10989
  message: ((_l = texts == null ? void 0 : texts.password) == null ? void 0 : _l.tooShort) || "Password too short"
10986
10990
  })
10987
10991
  });
@@ -11274,11 +11278,12 @@ var z2 = __toESM(require("zod"));
11274
11278
  var RegisterForm = ({
11275
11279
  texts,
11276
11280
  registerFields = ["email"],
11281
+ minPasswordLength = 8,
11277
11282
  showTermsOption = false,
11278
11283
  showNewsletterOption = false,
11279
11284
  ...props
11280
11285
  }) => {
11281
- var _a, _b, _c, _d, _e, _f, _g, _h;
11286
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
11282
11287
  const [passwordVisible, setPasswordVisible] = (0, import_react69.useState)(false);
11283
11288
  const thirdPartyAuthTexts = {
11284
11289
  continueWithGoogle: texts == null ? void 0 : texts.continueWithGoogle,
@@ -11323,15 +11328,17 @@ var RegisterForm = ({
11323
11328
  ...fieldSchemas,
11324
11329
  password: z2.string({
11325
11330
  required_error: ((_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required) || "Password is required"
11326
- }).min(5, {
11331
+ }).min(minPasswordLength, {
11327
11332
  message: ((_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.tooShort) || "Password is too short"
11328
11333
  }).refine((value) => value !== "", {
11329
11334
  message: ((_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.required) || "Password is required"
11330
11335
  }),
11331
11336
  confirm_password: z2.string({
11332
11337
  required_error: ((_d = texts == null ? void 0 : texts.confirm) == null ? void 0 : _d.required) || "Confirm password required"
11338
+ }).min(minPasswordLength, {
11339
+ message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.tooShort) || "Password is too short"
11333
11340
  }).refine((value) => value !== "", {
11334
- message: ((_e = texts == null ? void 0 : texts.password) == null ? void 0 : _e.required) || "Confirm password is required"
11341
+ message: ((_f = texts == null ? void 0 : texts.password) == null ? void 0 : _f.required) || "Confirm password is required"
11335
11342
  }),
11336
11343
  refCode: z2.string().optional(),
11337
11344
  reference: z2.string().optional(),
@@ -11340,7 +11347,7 @@ var RegisterForm = ({
11340
11347
  }),
11341
11348
  newsletter_accepted: z2.boolean().optional()
11342
11349
  }).refine((data) => data.password === data.confirm_password, {
11343
- message: ((_f = texts == null ? void 0 : texts.confirm) == null ? void 0 : _f.dontMatch) || "Passwords don't match",
11350
+ message: ((_g = texts == null ? void 0 : texts.confirm) == null ? void 0 : _g.dontMatch) || "Passwords don't match",
11344
11351
  path: ["confirm_password"]
11345
11352
  });
11346
11353
  const { handleSubmit, control, formState } = (0, import_react_hook_form2.useForm)({
@@ -11351,7 +11358,7 @@ var RegisterForm = ({
11351
11358
  {
11352
11359
  className: cn(
11353
11360
  "hawa-flex hawa-flex-col hawa-gap-4",
11354
- (_g = props.classNames) == null ? void 0 : _g.root
11361
+ (_h = props.classNames) == null ? void 0 : _h.root
11355
11362
  )
11356
11363
  },
11357
11364
  /* @__PURE__ */ import_react69.default.createElement(
@@ -11359,7 +11366,7 @@ var RegisterForm = ({
11359
11366
  {
11360
11367
  dir: props.direction,
11361
11368
  className: cn(
11362
- (_h = props.classNames) == null ? void 0 : _h.card,
11369
+ (_i = props.classNames) == null ? void 0 : _i.card,
11363
11370
  props.cardless && "hawa-border-none hawa-bg-transparent !hawa-shadow-none !hawa-drop-shadow-none"
11364
11371
  )
11365
11372
  },
@@ -13790,7 +13797,7 @@ var Usage = (props) => {
13790
13797
 
13791
13798
  lucide-react/dist/esm/shared/src/utils.js:
13792
13799
  (**
13793
- * @license lucide-react v0.396.0 - ISC
13800
+ * @license lucide-react v0.403.0 - ISC
13794
13801
  *
13795
13802
  * This source code is licensed under the ISC license.
13796
13803
  * See the LICENSE file in the root directory of this source tree.
@@ -13798,7 +13805,7 @@ lucide-react/dist/esm/shared/src/utils.js:
13798
13805
 
13799
13806
  lucide-react/dist/esm/defaultAttributes.js:
13800
13807
  (**
13801
- * @license lucide-react v0.396.0 - ISC
13808
+ * @license lucide-react v0.403.0 - ISC
13802
13809
  *
13803
13810
  * This source code is licensed under the ISC license.
13804
13811
  * See the LICENSE file in the root directory of this source tree.
@@ -13806,7 +13813,7 @@ lucide-react/dist/esm/defaultAttributes.js:
13806
13813
 
13807
13814
  lucide-react/dist/esm/Icon.js:
13808
13815
  (**
13809
- * @license lucide-react v0.396.0 - ISC
13816
+ * @license lucide-react v0.403.0 - ISC
13810
13817
  *
13811
13818
  * This source code is licensed under the ISC license.
13812
13819
  * See the LICENSE file in the root directory of this source tree.
@@ -13814,7 +13821,7 @@ lucide-react/dist/esm/Icon.js:
13814
13821
 
13815
13822
  lucide-react/dist/esm/createLucideIcon.js:
13816
13823
  (**
13817
- * @license lucide-react v0.396.0 - ISC
13824
+ * @license lucide-react v0.403.0 - ISC
13818
13825
  *
13819
13826
  * This source code is licensed under the ISC license.
13820
13827
  * See the LICENSE file in the root directory of this source tree.
@@ -13822,7 +13829,7 @@ lucide-react/dist/esm/createLucideIcon.js:
13822
13829
 
13823
13830
  lucide-react/dist/esm/icons/dot.js:
13824
13831
  (**
13825
- * @license lucide-react v0.396.0 - ISC
13832
+ * @license lucide-react v0.403.0 - ISC
13826
13833
  *
13827
13834
  * This source code is licensed under the ISC license.
13828
13835
  * See the LICENSE file in the root directory of this source tree.
@@ -13830,7 +13837,7 @@ lucide-react/dist/esm/icons/dot.js:
13830
13837
 
13831
13838
  lucide-react/dist/esm/lucide-react.js:
13832
13839
  (**
13833
- * @license lucide-react v0.396.0 - ISC
13840
+ * @license lucide-react v0.403.0 - ISC
13834
13841
  *
13835
13842
  * This source code is licensed under the ISC license.
13836
13843
  * See the LICENSE file in the root directory of this source tree.