@sikka/hawa 0.42.7-next → 0.42.9-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/blocks/auth/index.d.mts +4 -2
- package/dist/blocks/auth/index.d.ts +4 -2
- package/dist/blocks/auth/index.js +19 -14
- package/dist/blocks/auth/index.mjs +19 -14
- package/dist/blocks/index.d.mts +4 -2
- package/dist/blocks/index.d.ts +4 -2
- package/dist/blocks/index.js +19 -14
- package/dist/blocks/index.mjs +7 -2
- package/dist/{chunk-RIZBMJNK.mjs → chunk-NPYUEHMC.mjs} +13 -13
- package/dist/dataTable/index.d.mts +2 -1
- package/dist/dataTable/index.d.ts +2 -1
- package/dist/dataTable/index.js +4 -0
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +4 -0
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -1
- package/dist/elements/index.d.ts +2 -1
- package/dist/elements/index.js +17 -13
- package/dist/elements/index.mjs +5 -1
- package/dist/index.css +3 -19
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +23 -14
- package/dist/index.mjs +23 -14
- package/dist/pinInput/index.js +13 -13
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +13 -13
- package/dist/pinInput/index.mjs.map +1 -1
- package/package.json +7 -7
@@ -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 */
|
package/dist/elements/index.d.ts
CHANGED
@@ -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 */
|
package/dist/elements/index.js
CHANGED
@@ -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.
|
7398
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7401
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7407
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7410
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7423
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7455
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7469
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
9015
|
+
* @license lucide-react v0.408.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.
|
9023
|
+
* @license lucide-react v0.408.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.
|
9031
|
+
* @license lucide-react v0.408.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.
|
9039
|
+
* @license lucide-react v0.408.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.
|
9047
|
+
* @license lucide-react v0.408.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.
|
9055
|
+
* @license lucide-react v0.408.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.
|
package/dist/elements/index.mjs
CHANGED
@@ -26,7 +26,7 @@ import {
|
|
26
26
|
TabsList,
|
27
27
|
TabsTrigger,
|
28
28
|
Textarea
|
29
|
-
} from "../chunk-
|
29
|
+
} from "../chunk-NPYUEHMC.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.
|
2
|
+
! tailwindcss v3.4.6 | 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
|
-
|
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
|
-
|
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 */
|
@@ -1646,13 +1647,15 @@ type PricingCardProps = {
|
|
1646
1647
|
type LoginFormTypes = {
|
1647
1648
|
/** Object containing text labels used throughout the form. */
|
1648
1649
|
texts?: LoginFormTextsTypes;
|
1649
|
-
/** If true, only logos are displayed in third-party auth buttons
|
1650
|
+
/** If true, only logos are displayed in third-party auth buttons.*/
|
1650
1651
|
logosOnly?: boolean;
|
1651
1652
|
/** Direction of text and UI elements, either left-to-right or right-to-left. */
|
1652
1653
|
direction?: DirectionType;
|
1653
1654
|
/** If true, an error alert is displayed at the top of the form. */
|
1654
1655
|
showError?: boolean;
|
1655
|
-
/**
|
1656
|
+
/** Callback function triggered when the error alert is dismissed. */
|
1657
|
+
onErrorDismissed?: () => void;
|
1658
|
+
/** Title text of error alert.*/
|
1656
1659
|
errorTitle?: string;
|
1657
1660
|
/** Description text of error alert. */
|
1658
1661
|
errorText?: string;
|
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 */
|
@@ -1646,13 +1647,15 @@ type PricingCardProps = {
|
|
1646
1647
|
type LoginFormTypes = {
|
1647
1648
|
/** Object containing text labels used throughout the form. */
|
1648
1649
|
texts?: LoginFormTextsTypes;
|
1649
|
-
/** If true, only logos are displayed in third-party auth buttons
|
1650
|
+
/** If true, only logos are displayed in third-party auth buttons.*/
|
1650
1651
|
logosOnly?: boolean;
|
1651
1652
|
/** Direction of text and UI elements, either left-to-right or right-to-left. */
|
1652
1653
|
direction?: DirectionType;
|
1653
1654
|
/** If true, an error alert is displayed at the top of the form. */
|
1654
1655
|
showError?: boolean;
|
1655
|
-
/**
|
1656
|
+
/** Callback function triggered when the error alert is dismissed. */
|
1657
|
+
onErrorDismissed?: () => void;
|
1658
|
+
/** Title text of error alert.*/
|
1656
1659
|
errorTitle?: string;
|
1657
1660
|
/** Description text of error alert. */
|
1658
1661
|
errorText?: string;
|
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.
|
7925
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7928
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7934
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7937
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7950
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7982
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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.
|
7996
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.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
|
]);
|
@@ -11203,7 +11207,12 @@ var LoginForm = ({
|
|
11203
11207
|
direction: props.direction,
|
11204
11208
|
title: props.errorTitle,
|
11205
11209
|
text: props.errorText,
|
11206
|
-
severity: "error"
|
11210
|
+
severity: "error",
|
11211
|
+
onAlertClosed: () => {
|
11212
|
+
if (props.onErrorDismissed) {
|
11213
|
+
props.onErrorDismissed();
|
11214
|
+
}
|
11215
|
+
}
|
11207
11216
|
}
|
11208
11217
|
), /* @__PURE__ */ import_react67.default.createElement(
|
11209
11218
|
"form",
|
@@ -13793,7 +13802,7 @@ var Usage = (props) => {
|
|
13793
13802
|
|
13794
13803
|
lucide-react/dist/esm/shared/src/utils.js:
|
13795
13804
|
(**
|
13796
|
-
* @license lucide-react v0.
|
13805
|
+
* @license lucide-react v0.408.0 - ISC
|
13797
13806
|
*
|
13798
13807
|
* This source code is licensed under the ISC license.
|
13799
13808
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13801,7 +13810,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13801
13810
|
|
13802
13811
|
lucide-react/dist/esm/defaultAttributes.js:
|
13803
13812
|
(**
|
13804
|
-
* @license lucide-react v0.
|
13813
|
+
* @license lucide-react v0.408.0 - ISC
|
13805
13814
|
*
|
13806
13815
|
* This source code is licensed under the ISC license.
|
13807
13816
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13809,7 +13818,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13809
13818
|
|
13810
13819
|
lucide-react/dist/esm/Icon.js:
|
13811
13820
|
(**
|
13812
|
-
* @license lucide-react v0.
|
13821
|
+
* @license lucide-react v0.408.0 - ISC
|
13813
13822
|
*
|
13814
13823
|
* This source code is licensed under the ISC license.
|
13815
13824
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13817,7 +13826,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13817
13826
|
|
13818
13827
|
lucide-react/dist/esm/createLucideIcon.js:
|
13819
13828
|
(**
|
13820
|
-
* @license lucide-react v0.
|
13829
|
+
* @license lucide-react v0.408.0 - ISC
|
13821
13830
|
*
|
13822
13831
|
* This source code is licensed under the ISC license.
|
13823
13832
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13825,7 +13834,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13825
13834
|
|
13826
13835
|
lucide-react/dist/esm/icons/dot.js:
|
13827
13836
|
(**
|
13828
|
-
* @license lucide-react v0.
|
13837
|
+
* @license lucide-react v0.408.0 - ISC
|
13829
13838
|
*
|
13830
13839
|
* This source code is licensed under the ISC license.
|
13831
13840
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13833,7 +13842,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13833
13842
|
|
13834
13843
|
lucide-react/dist/esm/lucide-react.js:
|
13835
13844
|
(**
|
13836
|
-
* @license lucide-react v0.
|
13845
|
+
* @license lucide-react v0.408.0 - ISC
|
13837
13846
|
*
|
13838
13847
|
* This source code is licensed under the ISC license.
|
13839
13848
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/index.mjs
CHANGED
@@ -3062,6 +3062,7 @@ var DataTable = ({
|
|
3062
3062
|
data,
|
3063
3063
|
paginationPosition = "bottom",
|
3064
3064
|
translateFn,
|
3065
|
+
resetSelection,
|
3065
3066
|
enableHideColumns,
|
3066
3067
|
enableSelection,
|
3067
3068
|
enableFiltering,
|
@@ -3148,6 +3149,9 @@ var DataTable = ({
|
|
3148
3149
|
React24.useEffect(() => {
|
3149
3150
|
localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify(columnVisibility));
|
3150
3151
|
}, [columnVisibility]);
|
3152
|
+
React24.useEffect(() => {
|
3153
|
+
setRowSelection({});
|
3154
|
+
}, [resetSelection]);
|
3151
3155
|
React24.useEffect(() => {
|
3152
3156
|
setColumnVisibility((prev) => {
|
3153
3157
|
let newColumnVisibility = {};
|
@@ -7674,19 +7678,19 @@ var PhoneInput = ({
|
|
7674
7678
|
import * as React50 from "react";
|
7675
7679
|
import { OTPInput, OTPInputContext } from "input-otp";
|
7676
7680
|
|
7677
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7681
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7678
7682
|
import { forwardRef as forwardRef25, createElement as createElement24 } from "react";
|
7679
7683
|
|
7680
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7684
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7681
7685
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7682
7686
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7683
7687
|
return Boolean(className) && array.indexOf(className) === index;
|
7684
7688
|
}).join(" ");
|
7685
7689
|
|
7686
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7690
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7687
7691
|
import { forwardRef as forwardRef24, createElement as createElement23 } from "react";
|
7688
7692
|
|
7689
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7693
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7690
7694
|
var defaultAttributes = {
|
7691
7695
|
xmlns: "http://www.w3.org/2000/svg",
|
7692
7696
|
width: 24,
|
@@ -7699,7 +7703,7 @@ var defaultAttributes = {
|
|
7699
7703
|
strokeLinejoin: "round"
|
7700
7704
|
};
|
7701
7705
|
|
7702
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7706
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7703
7707
|
var Icon = forwardRef24(
|
7704
7708
|
({
|
7705
7709
|
color = "currentColor",
|
@@ -7731,7 +7735,7 @@ var Icon = forwardRef24(
|
|
7731
7735
|
}
|
7732
7736
|
);
|
7733
7737
|
|
7734
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7738
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7735
7739
|
var createLucideIcon = (iconName, iconNode) => {
|
7736
7740
|
const Component = forwardRef25(
|
7737
7741
|
({ className, ...props }, ref) => createElement24(Icon, {
|
@@ -7745,7 +7749,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7745
7749
|
return Component;
|
7746
7750
|
};
|
7747
7751
|
|
7748
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7752
|
+
// ../../node_modules/.pnpm/lucide-react@0.408.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7749
7753
|
var Dot = createLucideIcon("Dot", [
|
7750
7754
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7751
7755
|
]);
|
@@ -10971,7 +10975,12 @@ var LoginForm = ({
|
|
10971
10975
|
direction: props.direction,
|
10972
10976
|
title: props.errorTitle,
|
10973
10977
|
text: props.errorText,
|
10974
|
-
severity: "error"
|
10978
|
+
severity: "error",
|
10979
|
+
onAlertClosed: () => {
|
10980
|
+
if (props.onErrorDismissed) {
|
10981
|
+
props.onErrorDismissed();
|
10982
|
+
}
|
10983
|
+
}
|
10975
10984
|
}
|
10976
10985
|
), /* @__PURE__ */ React82.createElement(
|
10977
10986
|
"form",
|
@@ -13560,7 +13569,7 @@ export {
|
|
13560
13569
|
|
13561
13570
|
lucide-react/dist/esm/shared/src/utils.js:
|
13562
13571
|
(**
|
13563
|
-
* @license lucide-react v0.
|
13572
|
+
* @license lucide-react v0.408.0 - ISC
|
13564
13573
|
*
|
13565
13574
|
* This source code is licensed under the ISC license.
|
13566
13575
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13568,7 +13577,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13568
13577
|
|
13569
13578
|
lucide-react/dist/esm/defaultAttributes.js:
|
13570
13579
|
(**
|
13571
|
-
* @license lucide-react v0.
|
13580
|
+
* @license lucide-react v0.408.0 - ISC
|
13572
13581
|
*
|
13573
13582
|
* This source code is licensed under the ISC license.
|
13574
13583
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13576,7 +13585,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13576
13585
|
|
13577
13586
|
lucide-react/dist/esm/Icon.js:
|
13578
13587
|
(**
|
13579
|
-
* @license lucide-react v0.
|
13588
|
+
* @license lucide-react v0.408.0 - ISC
|
13580
13589
|
*
|
13581
13590
|
* This source code is licensed under the ISC license.
|
13582
13591
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13584,7 +13593,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13584
13593
|
|
13585
13594
|
lucide-react/dist/esm/createLucideIcon.js:
|
13586
13595
|
(**
|
13587
|
-
* @license lucide-react v0.
|
13596
|
+
* @license lucide-react v0.408.0 - ISC
|
13588
13597
|
*
|
13589
13598
|
* This source code is licensed under the ISC license.
|
13590
13599
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13592,7 +13601,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13592
13601
|
|
13593
13602
|
lucide-react/dist/esm/icons/dot.js:
|
13594
13603
|
(**
|
13595
|
-
* @license lucide-react v0.
|
13604
|
+
* @license lucide-react v0.408.0 - ISC
|
13596
13605
|
*
|
13597
13606
|
* This source code is licensed under the ISC license.
|
13598
13607
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13600,7 +13609,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13600
13609
|
|
13601
13610
|
lucide-react/dist/esm/lucide-react.js:
|
13602
13611
|
(**
|
13603
|
-
* @license lucide-react v0.
|
13612
|
+
* @license lucide-react v0.408.0 - ISC
|
13604
13613
|
*
|
13605
13614
|
* This source code is licensed under the ISC license.
|
13606
13615
|
* See the LICENSE file in the root directory of this source tree.
|