@sikka/hawa 0.42.16-next → 0.43.0-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.js +13 -13
- package/dist/blocks/auth/index.mjs +13 -13
- package/dist/blocks/index.js +13 -13
- package/dist/blocks/index.mjs +1 -1
- package/dist/calendar/index.d.mts +2 -2
- package/dist/calendar/index.d.ts +2 -2
- package/dist/calendar/index.js +41 -31
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +41 -31
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/{chunk-TRXY3DKL.mjs → chunk-RE6OFIBP.mjs} +13 -13
- package/dist/datePicker/index.js +41 -31
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +41 -31
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/elements/index.js +13 -13
- package/dist/elements/index.mjs +1 -1
- package/dist/index.css +34 -0
- package/dist/index.js +13 -13
- package/dist/index.mjs +13 -13
- 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 +4 -4
package/dist/elements/index.js
CHANGED
@@ -7396,19 +7396,19 @@ var PhoneInput = ({
|
|
7396
7396
|
var React50 = __toESM(require("react"));
|
7397
7397
|
var import_input_otp = require("input-otp");
|
7398
7398
|
|
7399
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7399
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7400
7400
|
var import_react41 = require("react");
|
7401
7401
|
|
7402
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7402
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7403
7403
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7404
7404
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7405
7405
|
return Boolean(className) && array.indexOf(className) === index;
|
7406
7406
|
}).join(" ");
|
7407
7407
|
|
7408
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7408
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7409
7409
|
var import_react40 = require("react");
|
7410
7410
|
|
7411
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7411
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7412
7412
|
var defaultAttributes = {
|
7413
7413
|
xmlns: "http://www.w3.org/2000/svg",
|
7414
7414
|
width: 24,
|
@@ -7421,7 +7421,7 @@ var defaultAttributes = {
|
|
7421
7421
|
strokeLinejoin: "round"
|
7422
7422
|
};
|
7423
7423
|
|
7424
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7424
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7425
7425
|
var Icon = (0, import_react40.forwardRef)(
|
7426
7426
|
({
|
7427
7427
|
color = "currentColor",
|
@@ -7453,7 +7453,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7453
7453
|
}
|
7454
7454
|
);
|
7455
7455
|
|
7456
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7456
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7457
7457
|
var createLucideIcon = (iconName, iconNode) => {
|
7458
7458
|
const Component = (0, import_react41.forwardRef)(
|
7459
7459
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7467,7 +7467,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7467
7467
|
return Component;
|
7468
7468
|
};
|
7469
7469
|
|
7470
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7470
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7471
7471
|
var Dot = createLucideIcon("Dot", [
|
7472
7472
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7473
7473
|
]);
|
@@ -9013,7 +9013,7 @@ var PhoneMockup = ({
|
|
9013
9013
|
|
9014
9014
|
lucide-react/dist/esm/shared/src/utils.js:
|
9015
9015
|
(**
|
9016
|
-
* @license lucide-react v0.
|
9016
|
+
* @license lucide-react v0.417.0 - ISC
|
9017
9017
|
*
|
9018
9018
|
* This source code is licensed under the ISC license.
|
9019
9019
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9021,7 +9021,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
9021
9021
|
|
9022
9022
|
lucide-react/dist/esm/defaultAttributes.js:
|
9023
9023
|
(**
|
9024
|
-
* @license lucide-react v0.
|
9024
|
+
* @license lucide-react v0.417.0 - ISC
|
9025
9025
|
*
|
9026
9026
|
* This source code is licensed under the ISC license.
|
9027
9027
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9029,7 +9029,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
9029
9029
|
|
9030
9030
|
lucide-react/dist/esm/Icon.js:
|
9031
9031
|
(**
|
9032
|
-
* @license lucide-react v0.
|
9032
|
+
* @license lucide-react v0.417.0 - ISC
|
9033
9033
|
*
|
9034
9034
|
* This source code is licensed under the ISC license.
|
9035
9035
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9037,7 +9037,7 @@ lucide-react/dist/esm/Icon.js:
|
|
9037
9037
|
|
9038
9038
|
lucide-react/dist/esm/createLucideIcon.js:
|
9039
9039
|
(**
|
9040
|
-
* @license lucide-react v0.
|
9040
|
+
* @license lucide-react v0.417.0 - ISC
|
9041
9041
|
*
|
9042
9042
|
* This source code is licensed under the ISC license.
|
9043
9043
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9045,7 +9045,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
9045
9045
|
|
9046
9046
|
lucide-react/dist/esm/icons/dot.js:
|
9047
9047
|
(**
|
9048
|
-
* @license lucide-react v0.
|
9048
|
+
* @license lucide-react v0.417.0 - ISC
|
9049
9049
|
*
|
9050
9050
|
* This source code is licensed under the ISC license.
|
9051
9051
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -9053,7 +9053,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
9053
9053
|
|
9054
9054
|
lucide-react/dist/esm/lucide-react.js:
|
9055
9055
|
(**
|
9056
|
-
* @license lucide-react v0.
|
9056
|
+
* @license lucide-react v0.417.0 - ISC
|
9057
9057
|
*
|
9058
9058
|
* This source code is licensed under the ISC license.
|
9059
9059
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/elements/index.mjs
CHANGED
package/dist/index.css
CHANGED
@@ -1039,6 +1039,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
1039
1039
|
.hawa-end-0 {
|
1040
1040
|
inset-inline-end: 0px;
|
1041
1041
|
}
|
1042
|
+
.hawa-end-1 {
|
1043
|
+
inset-inline-end: 0.25rem;
|
1044
|
+
}
|
1042
1045
|
.hawa-end-2 {
|
1043
1046
|
inset-inline-end: 0.5rem;
|
1044
1047
|
}
|
@@ -1072,6 +1075,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
1072
1075
|
.hawa-start-0 {
|
1073
1076
|
inset-inline-start: 0px;
|
1074
1077
|
}
|
1078
|
+
.hawa-start-1 {
|
1079
|
+
inset-inline-start: 0.25rem;
|
1080
|
+
}
|
1075
1081
|
.hawa-start-2 {
|
1076
1082
|
inset-inline-start: 0.5rem;
|
1077
1083
|
}
|
@@ -1357,6 +1363,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
1357
1363
|
width: 1.75rem !important;
|
1358
1364
|
height: 1.75rem !important;
|
1359
1365
|
}
|
1366
|
+
.\!hawa-h-8 {
|
1367
|
+
height: 2rem !important;
|
1368
|
+
}
|
1360
1369
|
.\!hawa-h-full {
|
1361
1370
|
height: 100% !important;
|
1362
1371
|
}
|
@@ -1558,6 +1567,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
1558
1567
|
min-height: -moz-fit-content;
|
1559
1568
|
min-height: fit-content;
|
1560
1569
|
}
|
1570
|
+
.\!hawa-w-8 {
|
1571
|
+
width: 2rem !important;
|
1572
|
+
}
|
1561
1573
|
.\!hawa-w-full {
|
1562
1574
|
width: 100% !important;
|
1563
1575
|
}
|
@@ -3560,6 +3572,9 @@ body {
|
|
3560
3572
|
.focus\:hawa-bg-accent:focus {
|
3561
3573
|
background-color: hsl(var(--accent));
|
3562
3574
|
}
|
3575
|
+
.focus\:hawa-bg-primary:focus {
|
3576
|
+
background-color: hsl(var(--primary));
|
3577
|
+
}
|
3563
3578
|
.focus\:hawa-bg-transparent:focus {
|
3564
3579
|
background-color: transparent;
|
3565
3580
|
}
|
@@ -3569,6 +3584,9 @@ body {
|
|
3569
3584
|
.focus\:hawa-text-accent-foreground:focus {
|
3570
3585
|
color: hsl(var(--accent-foreground));
|
3571
3586
|
}
|
3587
|
+
.focus\:hawa-text-primary-foreground:focus {
|
3588
|
+
color: hsl(var(--primary-foreground));
|
3589
|
+
}
|
3572
3590
|
.focus\:hawa-opacity-100:focus {
|
3573
3591
|
opacity: 1;
|
3574
3592
|
}
|
@@ -3805,6 +3823,9 @@ body {
|
|
3805
3823
|
.aria-selected\:hawa-text-muted-foreground[aria-selected="true"] {
|
3806
3824
|
color: hsl(var(--muted-foreground));
|
3807
3825
|
}
|
3826
|
+
.aria-selected\:hawa-opacity-100[aria-selected="true"] {
|
3827
|
+
opacity: 1;
|
3828
|
+
}
|
3808
3829
|
.aria-selected\:hawa-opacity-30[aria-selected="true"] {
|
3809
3830
|
opacity: 0.3;
|
3810
3831
|
}
|
@@ -4401,6 +4422,12 @@ body {
|
|
4401
4422
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
4402
4423
|
}
|
4403
4424
|
|
4425
|
+
.sm\:hawa-space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
4426
|
+
--tw-space-x-reverse: 0;
|
4427
|
+
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
4428
|
+
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
4429
|
+
}
|
4430
|
+
|
4404
4431
|
.sm\:hawa-space-y-0 > :not([hidden]) ~ :not([hidden]) {
|
4405
4432
|
--tw-space-y-reverse: 0;
|
4406
4433
|
margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
|
@@ -4515,6 +4542,13 @@ body {
|
|
4515
4542
|
border-top-right-radius: calc(var(--radius) - 2px);
|
4516
4543
|
border-bottom-right-radius: calc(var(--radius) - 2px);
|
4517
4544
|
}
|
4545
|
+
.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:hawa-bg-accent\/50:has([aria-selected].day-outside) {
|
4546
|
+
background-color: hsl(var(--accent) / 0.5);
|
4547
|
+
}
|
4548
|
+
.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:hawa-rounded-r-md:has([aria-selected].day-range-end) {
|
4549
|
+
border-top-right-radius: calc(var(--radius) - 2px);
|
4550
|
+
border-bottom-right-radius: calc(var(--radius) - 2px);
|
4551
|
+
}
|
4518
4552
|
.\[\&\:has\(\[aria-selected\]\.outside\)\]\:hawa-bg-accent\/50:has([aria-selected].outside) {
|
4519
4553
|
background-color: hsl(var(--accent) / 0.5);
|
4520
4554
|
}
|
package/dist/index.js
CHANGED
@@ -7923,19 +7923,19 @@ var PhoneInput = ({
|
|
7923
7923
|
var React50 = __toESM(require("react"));
|
7924
7924
|
var import_input_otp = require("input-otp");
|
7925
7925
|
|
7926
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7926
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7927
7927
|
var import_react41 = require("react");
|
7928
7928
|
|
7929
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7929
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7930
7930
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7931
7931
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7932
7932
|
return Boolean(className) && array.indexOf(className) === index;
|
7933
7933
|
}).join(" ");
|
7934
7934
|
|
7935
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7935
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7936
7936
|
var import_react40 = require("react");
|
7937
7937
|
|
7938
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7938
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7939
7939
|
var defaultAttributes = {
|
7940
7940
|
xmlns: "http://www.w3.org/2000/svg",
|
7941
7941
|
width: 24,
|
@@ -7948,7 +7948,7 @@ var defaultAttributes = {
|
|
7948
7948
|
strokeLinejoin: "round"
|
7949
7949
|
};
|
7950
7950
|
|
7951
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7951
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7952
7952
|
var Icon = (0, import_react40.forwardRef)(
|
7953
7953
|
({
|
7954
7954
|
color = "currentColor",
|
@@ -7980,7 +7980,7 @@ var Icon = (0, import_react40.forwardRef)(
|
|
7980
7980
|
}
|
7981
7981
|
);
|
7982
7982
|
|
7983
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7983
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7984
7984
|
var createLucideIcon = (iconName, iconNode) => {
|
7985
7985
|
const Component = (0, import_react41.forwardRef)(
|
7986
7986
|
({ className, ...props }, ref) => (0, import_react41.createElement)(Icon, {
|
@@ -7994,7 +7994,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7994
7994
|
return Component;
|
7995
7995
|
};
|
7996
7996
|
|
7997
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7997
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7998
7998
|
var Dot = createLucideIcon("Dot", [
|
7999
7999
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
8000
8000
|
]);
|
@@ -13826,7 +13826,7 @@ var Usage = (props) => {
|
|
13826
13826
|
|
13827
13827
|
lucide-react/dist/esm/shared/src/utils.js:
|
13828
13828
|
(**
|
13829
|
-
* @license lucide-react v0.
|
13829
|
+
* @license lucide-react v0.417.0 - ISC
|
13830
13830
|
*
|
13831
13831
|
* This source code is licensed under the ISC license.
|
13832
13832
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13834,7 +13834,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13834
13834
|
|
13835
13835
|
lucide-react/dist/esm/defaultAttributes.js:
|
13836
13836
|
(**
|
13837
|
-
* @license lucide-react v0.
|
13837
|
+
* @license lucide-react v0.417.0 - ISC
|
13838
13838
|
*
|
13839
13839
|
* This source code is licensed under the ISC license.
|
13840
13840
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13842,7 +13842,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13842
13842
|
|
13843
13843
|
lucide-react/dist/esm/Icon.js:
|
13844
13844
|
(**
|
13845
|
-
* @license lucide-react v0.
|
13845
|
+
* @license lucide-react v0.417.0 - ISC
|
13846
13846
|
*
|
13847
13847
|
* This source code is licensed under the ISC license.
|
13848
13848
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13850,7 +13850,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13850
13850
|
|
13851
13851
|
lucide-react/dist/esm/createLucideIcon.js:
|
13852
13852
|
(**
|
13853
|
-
* @license lucide-react v0.
|
13853
|
+
* @license lucide-react v0.417.0 - ISC
|
13854
13854
|
*
|
13855
13855
|
* This source code is licensed under the ISC license.
|
13856
13856
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13858,7 +13858,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13858
13858
|
|
13859
13859
|
lucide-react/dist/esm/icons/dot.js:
|
13860
13860
|
(**
|
13861
|
-
* @license lucide-react v0.
|
13861
|
+
* @license lucide-react v0.417.0 - ISC
|
13862
13862
|
*
|
13863
13863
|
* This source code is licensed under the ISC license.
|
13864
13864
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13866,7 +13866,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13866
13866
|
|
13867
13867
|
lucide-react/dist/esm/lucide-react.js:
|
13868
13868
|
(**
|
13869
|
-
* @license lucide-react v0.
|
13869
|
+
* @license lucide-react v0.417.0 - ISC
|
13870
13870
|
*
|
13871
13871
|
* This source code is licensed under the ISC license.
|
13872
13872
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/index.mjs
CHANGED
@@ -7679,19 +7679,19 @@ var PhoneInput = ({
|
|
7679
7679
|
import * as React50 from "react";
|
7680
7680
|
import { OTPInput, OTPInputContext } from "input-otp";
|
7681
7681
|
|
7682
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7682
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7683
7683
|
import { forwardRef as forwardRef25, createElement as createElement24 } from "react";
|
7684
7684
|
|
7685
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7685
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
7686
7686
|
var toKebabCase = (string9) => string9.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
7687
7687
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
7688
7688
|
return Boolean(className) && array.indexOf(className) === index;
|
7689
7689
|
}).join(" ");
|
7690
7690
|
|
7691
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7691
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7692
7692
|
import { forwardRef as forwardRef24, createElement as createElement23 } from "react";
|
7693
7693
|
|
7694
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7694
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
7695
7695
|
var defaultAttributes = {
|
7696
7696
|
xmlns: "http://www.w3.org/2000/svg",
|
7697
7697
|
width: 24,
|
@@ -7704,7 +7704,7 @@ var defaultAttributes = {
|
|
7704
7704
|
strokeLinejoin: "round"
|
7705
7705
|
};
|
7706
7706
|
|
7707
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7707
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
7708
7708
|
var Icon = forwardRef24(
|
7709
7709
|
({
|
7710
7710
|
color = "currentColor",
|
@@ -7736,7 +7736,7 @@ var Icon = forwardRef24(
|
|
7736
7736
|
}
|
7737
7737
|
);
|
7738
7738
|
|
7739
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7739
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
7740
7740
|
var createLucideIcon = (iconName, iconNode) => {
|
7741
7741
|
const Component = forwardRef25(
|
7742
7742
|
({ className, ...props }, ref) => createElement24(Icon, {
|
@@ -7750,7 +7750,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
7750
7750
|
return Component;
|
7751
7751
|
};
|
7752
7752
|
|
7753
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
7753
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
7754
7754
|
var Dot = createLucideIcon("Dot", [
|
7755
7755
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
7756
7756
|
]);
|
@@ -13593,7 +13593,7 @@ export {
|
|
13593
13593
|
|
13594
13594
|
lucide-react/dist/esm/shared/src/utils.js:
|
13595
13595
|
(**
|
13596
|
-
* @license lucide-react v0.
|
13596
|
+
* @license lucide-react v0.417.0 - ISC
|
13597
13597
|
*
|
13598
13598
|
* This source code is licensed under the ISC license.
|
13599
13599
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13601,7 +13601,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
13601
13601
|
|
13602
13602
|
lucide-react/dist/esm/defaultAttributes.js:
|
13603
13603
|
(**
|
13604
|
-
* @license lucide-react v0.
|
13604
|
+
* @license lucide-react v0.417.0 - ISC
|
13605
13605
|
*
|
13606
13606
|
* This source code is licensed under the ISC license.
|
13607
13607
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13609,7 +13609,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
13609
13609
|
|
13610
13610
|
lucide-react/dist/esm/Icon.js:
|
13611
13611
|
(**
|
13612
|
-
* @license lucide-react v0.
|
13612
|
+
* @license lucide-react v0.417.0 - ISC
|
13613
13613
|
*
|
13614
13614
|
* This source code is licensed under the ISC license.
|
13615
13615
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13617,7 +13617,7 @@ lucide-react/dist/esm/Icon.js:
|
|
13617
13617
|
|
13618
13618
|
lucide-react/dist/esm/createLucideIcon.js:
|
13619
13619
|
(**
|
13620
|
-
* @license lucide-react v0.
|
13620
|
+
* @license lucide-react v0.417.0 - ISC
|
13621
13621
|
*
|
13622
13622
|
* This source code is licensed under the ISC license.
|
13623
13623
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13625,7 +13625,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
13625
13625
|
|
13626
13626
|
lucide-react/dist/esm/icons/dot.js:
|
13627
13627
|
(**
|
13628
|
-
* @license lucide-react v0.
|
13628
|
+
* @license lucide-react v0.417.0 - ISC
|
13629
13629
|
*
|
13630
13630
|
* This source code is licensed under the ISC license.
|
13631
13631
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -13633,7 +13633,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
13633
13633
|
|
13634
13634
|
lucide-react/dist/esm/lucide-react.js:
|
13635
13635
|
(**
|
13636
|
-
* @license lucide-react v0.
|
13636
|
+
* @license lucide-react v0.417.0 - ISC
|
13637
13637
|
*
|
13638
13638
|
* This source code is licensed under the ISC license.
|
13639
13639
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/pinInput/index.js
CHANGED
@@ -52,19 +52,19 @@ function cn(...inputs) {
|
|
52
52
|
// elements/pinInput/PinInput.tsx
|
53
53
|
var import_input_otp = require("input-otp");
|
54
54
|
|
55
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
55
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
56
56
|
var import_react2 = require("react");
|
57
57
|
|
58
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
58
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
59
59
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
60
60
|
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
61
61
|
return Boolean(className) && array.indexOf(className) === index;
|
62
62
|
}).join(" ");
|
63
63
|
|
64
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
64
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
65
65
|
var import_react = require("react");
|
66
66
|
|
67
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
67
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
68
68
|
var defaultAttributes = {
|
69
69
|
xmlns: "http://www.w3.org/2000/svg",
|
70
70
|
width: 24,
|
@@ -77,7 +77,7 @@ var defaultAttributes = {
|
|
77
77
|
strokeLinejoin: "round"
|
78
78
|
};
|
79
79
|
|
80
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
80
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js
|
81
81
|
var Icon = (0, import_react.forwardRef)(
|
82
82
|
({
|
83
83
|
color = "currentColor",
|
@@ -109,7 +109,7 @@ var Icon = (0, import_react.forwardRef)(
|
|
109
109
|
}
|
110
110
|
);
|
111
111
|
|
112
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
112
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
113
113
|
var createLucideIcon = (iconName, iconNode) => {
|
114
114
|
const Component = (0, import_react2.forwardRef)(
|
115
115
|
({ className, ...props }, ref) => (0, import_react2.createElement)(Icon, {
|
@@ -123,7 +123,7 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
123
123
|
return Component;
|
124
124
|
};
|
125
125
|
|
126
|
-
// ../../node_modules/.pnpm/lucide-react@0.
|
126
|
+
// ../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/dot.js
|
127
127
|
var Dot = createLucideIcon("Dot", [
|
128
128
|
["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
|
129
129
|
]);
|
@@ -214,7 +214,7 @@ var PinInput = ({
|
|
214
214
|
|
215
215
|
lucide-react/dist/esm/shared/src/utils.js:
|
216
216
|
(**
|
217
|
-
* @license lucide-react v0.
|
217
|
+
* @license lucide-react v0.417.0 - ISC
|
218
218
|
*
|
219
219
|
* This source code is licensed under the ISC license.
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -222,7 +222,7 @@ lucide-react/dist/esm/shared/src/utils.js:
|
|
222
222
|
|
223
223
|
lucide-react/dist/esm/defaultAttributes.js:
|
224
224
|
(**
|
225
|
-
* @license lucide-react v0.
|
225
|
+
* @license lucide-react v0.417.0 - ISC
|
226
226
|
*
|
227
227
|
* This source code is licensed under the ISC license.
|
228
228
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -230,7 +230,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
230
230
|
|
231
231
|
lucide-react/dist/esm/Icon.js:
|
232
232
|
(**
|
233
|
-
* @license lucide-react v0.
|
233
|
+
* @license lucide-react v0.417.0 - ISC
|
234
234
|
*
|
235
235
|
* This source code is licensed under the ISC license.
|
236
236
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -238,7 +238,7 @@ lucide-react/dist/esm/Icon.js:
|
|
238
238
|
|
239
239
|
lucide-react/dist/esm/createLucideIcon.js:
|
240
240
|
(**
|
241
|
-
* @license lucide-react v0.
|
241
|
+
* @license lucide-react v0.417.0 - ISC
|
242
242
|
*
|
243
243
|
* This source code is licensed under the ISC license.
|
244
244
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -246,7 +246,7 @@ lucide-react/dist/esm/createLucideIcon.js:
|
|
246
246
|
|
247
247
|
lucide-react/dist/esm/icons/dot.js:
|
248
248
|
(**
|
249
|
-
* @license lucide-react v0.
|
249
|
+
* @license lucide-react v0.417.0 - ISC
|
250
250
|
*
|
251
251
|
* This source code is licensed under the ISC license.
|
252
252
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -254,7 +254,7 @@ lucide-react/dist/esm/icons/dot.js:
|
|
254
254
|
|
255
255
|
lucide-react/dist/esm/lucide-react.js:
|
256
256
|
(**
|
257
|
-
* @license lucide-react v0.
|
257
|
+
* @license lucide-react v0.417.0 - ISC
|
258
258
|
*
|
259
259
|
* This source code is licensed under the ISC license.
|
260
260
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../elements/pinInput/index.ts","../../elements/pinInput/PinInput.tsx","../../util/index.ts","../../../../node_modules/.pnpm/lucide-react@0.416.0_react@18.3.1/node_modules/shared/src/utils.ts","../../../../node_modules/.pnpm/lucide-react@0.416.0_react@18.3.1/node_modules/lucide-react/src/defaultAttributes.ts","../../../../node_modules/.pnpm/lucide-react@0.416.0_react@18.3.1/node_modules/lucide-react/src/Icon.ts","../../../../node_modules/.pnpm/lucide-react@0.416.0_react@18.3.1/node_modules/lucide-react/src/createLucideIcon.ts","../../../../node_modules/.pnpm/lucide-react@0.416.0_react@18.3.1/node_modules/lucide-react/src/icons/dot.ts","../../elements/helperText/HelperText.tsx"],"sourcesContent":["export * from \"./PinInput\";\n","import * as React from \"react\";\n\nimport { cn } from \"@util/index\";\nimport { OTPInput, OTPInputContext, OTPInputProps } from \"input-otp\";\nimport { Dot } from \"lucide-react\";\n\nimport { HelperText } from \"../helperText\";\n\nconst PinInputRoot = React.forwardRef<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50\",\n containerClassName,\n )}\n className={cn(\"disabled:hawa-cursor-not-allowed\", className)}\n {...props}\n />\n));\nPinInputRoot.displayName = \"PinInputRoot\";\n\nconst PinInputGroup = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"hawa-flex hawa-items-center\", className)}\n {...props}\n />\n));\nPinInputGroup.displayName = \"PinInputGroup\";\n\nconst PinInputSlot = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n const pinInputContext = React.useContext(OTPInputContext);\n const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];\n\n return (\n <div\n ref={ref}\n className={cn(\n \"hawa-border-input hawa-relative hawa-flex hawa-h-10 hawa-w-10 hawa-items-center hawa-justify-center hawa-border-y hawa-border-r hawa-text-sm hawa-transition-all first:hawa-rounded-l-md first:hawa-border-l last:hawa-rounded-r-md\",\n isActive &&\n \"hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2\",\n className,\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center\">\n <div className=\"hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000\" />\n </div>\n )}\n </div>\n );\n});\nPinInputSlot.displayName = \"PinInputSlot\";\n\nconst PinInputSeperator = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <Dot />\n </div>\n));\nPinInputSeperator.displayName = \"PinInputSeperator\";\n\ntype PinInputProps = Omit<OTPInputProps, \"render\"> & {\n /*\n * The position of the separator in the pin input\n * @default 3\n */\n separatorPosition?: number;\n helperText?: any;\n};\n\nconst PinInput: React.FC<PinInputProps> = ({\n separatorPosition = 0,\n ...props\n}) => {\n const maxLength = props.maxLength || 6; // Assuming a default maxLength of 6 if not provided\n const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);\n\n const firstGroupLength =\n clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;\n const secondGroupLength = maxLength - firstGroupLength;\n\n return (\n <div className=\"hawa-flex hawa-flex-col hawa-gap-2\">\n <PinInputRoot {...props}>\n {firstGroupLength > 0 && (\n <PinInputGroup className=\"hawa-w-full\">\n {[...Array(firstGroupLength)].map((_, index) => (\n <PinInputSlot key={index} index={index} className=\"hawa-w-full\" />\n ))}\n </PinInputGroup>\n )}\n {separatorPosition > 0 && separatorPosition < props.maxLength && (\n <PinInputSeperator />\n )}\n {secondGroupLength > 0 && (\n <PinInputGroup className=\"hawa-w-full\">\n {[...Array(secondGroupLength)].map((_, index) => (\n <PinInputSlot\n key={index + firstGroupLength}\n index={index + firstGroupLength}\n className=\"hawa-w-full\"\n />\n ))}\n </PinInputGroup>\n )}\n </PinInputRoot>\n <HelperText helperText={props.helperText} />\n </div>\n );\n};\n\nexport {\n PinInput,\n PinInputRoot,\n PinInputGroup,\n PinInputSlot,\n PinInputSeperator,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\ntype Palette = {\n name: string;\n colors: {\n [key: number]: string;\n };\n};\ntype Rgb = {\n r: number;\n g: number;\n b: number;\n};\nfunction hexToRgb(hex: string): Rgb | null {\n const sanitizedHex = hex.replaceAll(\"##\", \"#\");\n const colorParts = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(\n sanitizedHex\n );\n\n if (!colorParts) {\n return null;\n }\n\n const [, r, g, b] = colorParts;\n\n return {\n r: parseInt(r, 16),\n g: parseInt(g, 16),\n b: parseInt(b, 16)\n } as Rgb;\n}\n\nfunction rgbToHex(r: number, g: number, b: number): string {\n const toHex = (c: number) => `0${c.toString(16)}`.slice(-2);\n return `#${toHex(r)}${toHex(g)}${toHex(b)}`;\n}\n\nexport function getTextColor(color: string): \"#FFF\" | \"#333\" {\n const rgbColor = hexToRgb(color);\n\n if (!rgbColor) {\n return \"#333\";\n }\n\n const { r, g, b } = rgbColor;\n const luma = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n return luma < 120 ? \"#FFF\" : \"#333\";\n}\n\nfunction lighten(hex: string, intensity: number): string {\n const color = hexToRgb(`#${hex}`);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r + (255 - color.r) * intensity);\n const g = Math.round(color.g + (255 - color.g) * intensity);\n const b = Math.round(color.b + (255 - color.b) * intensity);\n\n return rgbToHex(r, g, b);\n}\n\nfunction darken(hex: string, intensity: number): string {\n const color = hexToRgb(hex);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r * intensity);\n const g = Math.round(color.g * intensity);\n const b = Math.round(color.b * intensity);\n\n return rgbToHex(r, g, b);\n}\nconst parseColor = (color: any) => {\n if (color.startsWith(\"#\")) {\n // Convert hex to RGB\n let r = parseInt(color.slice(1, 3), 16);\n let g = parseInt(color.slice(3, 5), 16);\n let b = parseInt(color.slice(5, 7), 16);\n return [r, g, b];\n } else if (color.startsWith(\"rgb\")) {\n // Extract RGB values from rgb() format\n return color.match(/\\d+/g).map(Number);\n }\n // Default to white if format is unrecognized\n return [255, 255, 255];\n};\nexport const calculateLuminance = (color: any) => {\n const [r, g, b] = parseColor(color)?.map((c: any) => {\n c /= 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nfunction getPallette(baseColor: string): Palette {\n const name = baseColor;\n\n const response: Palette = {\n name,\n colors: {\n 500: `#${baseColor}`.replace(\"##\", \"#\")\n }\n };\n\n const intensityMap: {\n [key: number]: number;\n } = {\n 50: 0.95,\n 100: 0.9,\n 200: 0.75,\n 300: 0.6,\n 400: 0.3,\n 600: 0.9,\n 700: 0.75,\n 800: 0.6,\n 900: 0.49\n };\n\n [50, 100, 200, 300, 400].forEach((level) => {\n response.colors[level] = lighten(baseColor, intensityMap[level]);\n });\n [600, 700, 800, 900].forEach((level) => {\n response.colors[level] = darken(baseColor, intensityMap[level]);\n });\n\n return response as Palette;\n}\n\nexport { getPallette };\n\n// const hexToRgb = (hex) => {\n// let d = hex?.split(\"#\")[1];\n// var aRgbHex = d?.match(/.{1,2}/g);\n// var aRgb = [\n// parseInt(aRgbHex[0], 16),\n// parseInt(aRgbHex[1], 16),\n// parseInt(aRgbHex[2], 16)\n// ];\n// return aRgb;\n// };\n// const getTextColor = (backColor) => {\n// let rgbArray = hexToRgb(backColor);\n// if (rgbArray[0] * 0.299 + rgbArray[1] * 0.587 + rgbArray[2] * 0.114 > 186) {\n// return \"#000000\";\n// } else {\n// return \"#ffffff\";\n// }\n// };\n// const replaceAt = function (string, index, replacement) {\n// // if (replacement == \"\" || replacement == \" \") {\n// // return (\n// // string.substring(0, index) +\n// // string.substring(index + replacement.length )\n// // );\n// // }\n// const replaced = string.substring(0, index) + replacement + string.substring(index + 1)\n// return replaced\n// };\n\n// export { hexToRgb, getTextColor, replaceAt };\n","import { CamelToPascal } from './utility-types';\n\n/**\n * Converts string to kebab case\n *\n * @param {string} string\n * @returns {string} A kebabized string\n */\nexport const toKebabCase = (string: string) =>\n string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n\n/**\n * Converts string to pascal case\n *\n * @param {string} string\n * @returns {string} A pascalized string\n */\nexport const toPascalCase = <T extends string>(string: T): CamelToPascal<T> => {\n const camelCase = string.replace(/^([A-Z])|[\\s-_]+(\\w)/g, (match, p1, p2) =>\n p2 ? p2.toUpperCase() : p1.toLowerCase(),\n );\n\n return (camelCase.charAt(0).toUpperCase() + camelCase.slice(1)) as CamelToPascal<T>;\n};\n\n/**\n * Merges classes into a single string\n *\n * @param {array} classes\n * @returns {string} A string of classes\n */\nexport const mergeClasses = <ClassType = string | undefined | null>(...classes: ClassType[]) =>\n classes\n .filter((className, index, array) => {\n return Boolean(className) && array.indexOf(className) === index;\n })\n .join(' ');\n","export default {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 24,\n height: 24,\n viewBox: '0 0 24 24',\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: 2,\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n};\n","import { createElement, forwardRef } from 'react';\nimport defaultAttributes from './defaultAttributes';\nimport { IconNode, LucideProps } from './types';\nimport { mergeClasses } from '@lucide/shared';\n\ninterface IconComponentProps extends LucideProps {\n iconNode: IconNode;\n}\n\n/**\n * Lucide icon component\n *\n * @component Icon\n * @param {object} props\n * @param {string} props.color - The color of the icon\n * @param {number} props.size - The size of the icon\n * @param {number} props.strokeWidth - The stroke width of the icon\n * @param {boolean} props.absoluteStrokeWidth - Whether to use absolute stroke width\n * @param {string} props.className - The class name of the icon\n * @param {IconNode} props.children - The children of the icon\n * @param {IconNode} props.iconNode - The icon node of the icon\n *\n * @returns {ForwardRefExoticComponent} LucideIcon\n */\nconst Icon = forwardRef<SVGSVGElement, IconComponentProps>(\n (\n {\n color = 'currentColor',\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = '',\n children,\n iconNode,\n ...rest\n },\n ref,\n ) => {\n return createElement(\n 'svg',\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? (Number(strokeWidth) * 24) / Number(size) : strokeWidth,\n className: mergeClasses('lucide', className),\n ...rest,\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...(Array.isArray(children) ? children : [children]),\n ],\n );\n },\n);\n\nexport default Icon;\n","import { createElement, forwardRef } from 'react';\nimport { mergeClasses, toKebabCase } from '@lucide/shared';\nimport { IconNode, LucideProps } from './types';\nimport Icon from './Icon';\n\n/**\n * Create a Lucide icon component\n * @param {string} iconName\n * @param {array} iconNode\n * @returns {ForwardRefExoticComponent} LucideIcon\n */\nconst createLucideIcon = (iconName: string, iconNode: IconNode) => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),\n ...props,\n }),\n );\n\n Component.displayName = `${iconName}`;\n\n return Component;\n};\n\nexport default createLucideIcon;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Dot\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/dot\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Dot = createLucideIcon('Dot', [\n ['circle', { cx: '12.1', cy: '12.1', r: '1', key: '18d7e5' }],\n]);\n\nexport default Dot;\n","import React from \"react\";\n\nimport { cn } from \"@util/index\";\n\nexport const HelperText = ({ helperText }: { helperText?: any }) => (\n <p\n className={cn(\n \"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all\",\n helperText ? \"hawa-h-4 hawa-opacity-100\" : \"hawa-h-0 hawa-opacity-0\",\n )}\n >\n {helperText}\n </p>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,SAAuB;;;ACAvB,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADFA,uBAAyD;;;;;;AEK5C,IAAA,cAAc,CAAC,WAC1B,OAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAY;AAsB/C,IAAA,eAAe,IAA2C,YACrE,QACG,OAAO,CAAC,WAAW,OAAO,UAAU;AACnC,SAAO,QAAQ,SAAS,KAAK,MAAM,QAAQ,SAAS,MAAM;AAC5D,CAAC,EACA,KAAK,GAAG;;;;;;ACpCb,IAAe,oBAAA;EACb,OAAO;EACP,OAAO;EACP,QAAQ;EACR,SAAS;EACT,MAAM;EACN,QAAQ;EACR,aAAa;EACb,eAAe;EACf,gBAAgB;AAClB;;;ACcA,IAAM,WAAO;EACX,CACE;IACE,QAAQ;IACR,OAAO;IACP,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CACH,GAED,oBAAoB,KAAK,oBAAoB,MAAM,aAClD,qCAAC,uBAAkB,GAEpB,oBAAoB,KACnB,qCAAC,iBAAc,WAAU,iBACtB,CAAC,GAAG,MAAM,iBAAiB,CAAC,EAAE,IAAI,CAAC,GAAG,UACrC;AAAA,IAAC;AAAA;AAAA,MACC,KAAK,QAAQ;AAAA,MACb,OAAO,QAAQ;AAAA,MACf,WAAU;AAAA;AAAA,EACZ,CACD,CACH,CAEJ,GACA,qCAAC,cAAW,YAAY,MAAM,YAAY,CAC5C;AAEJ;","names":["React","import_react","React"]}
|
1
|
+
{"version":3,"sources":["../../elements/pinInput/index.ts","../../elements/pinInput/PinInput.tsx","../../util/index.ts","../../../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/shared/src/utils.ts","../../../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/src/defaultAttributes.ts","../../../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/src/Icon.ts","../../../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/src/createLucideIcon.ts","../../../../node_modules/.pnpm/lucide-react@0.417.0_react@18.3.1/node_modules/lucide-react/src/icons/dot.ts","../../elements/helperText/HelperText.tsx"],"sourcesContent":["export * from \"./PinInput\";\n","import * as React from \"react\";\n\nimport { cn } from \"@util/index\";\nimport { OTPInput, OTPInputContext, OTPInputProps } from \"input-otp\";\nimport { Dot } from \"lucide-react\";\n\nimport { HelperText } from \"../helperText\";\n\nconst PinInputRoot = React.forwardRef<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"hawa-flex hawa-items-center hawa-gap-2 has-[:disabled]:hawa-opacity-50\",\n containerClassName,\n )}\n className={cn(\"disabled:hawa-cursor-not-allowed\", className)}\n {...props}\n />\n));\nPinInputRoot.displayName = \"PinInputRoot\";\n\nconst PinInputGroup = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"hawa-flex hawa-items-center\", className)}\n {...props}\n />\n));\nPinInputGroup.displayName = \"PinInputGroup\";\n\nconst PinInputSlot = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number }\n>(({ index, className, ...props }, ref) => {\n const pinInputContext = React.useContext(OTPInputContext);\n const { char, hasFakeCaret, isActive } = pinInputContext.slots[index];\n\n return (\n <div\n ref={ref}\n className={cn(\n \"hawa-border-input hawa-relative hawa-flex hawa-h-10 hawa-w-10 hawa-items-center hawa-justify-center hawa-border-y hawa-border-r hawa-text-sm hawa-transition-all first:hawa-rounded-l-md first:hawa-border-l last:hawa-rounded-r-md\",\n isActive &&\n \"hawa-ring-ring hawa-ring-offset-background hawa-z-10 hawa-ring-2\",\n className,\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"hawa-pointer-events-none hawa-absolute hawa-inset-0 hawa-flex hawa-items-center hawa-justify-center\">\n <div className=\"hawa-animate-caret-blink hawa-bg-foreground hawa-h-4 hawa-w-px hawa-duration-1000\" />\n </div>\n )}\n </div>\n );\n});\nPinInputSlot.displayName = \"PinInputSlot\";\n\nconst PinInputSeperator = React.forwardRef<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <Dot />\n </div>\n));\nPinInputSeperator.displayName = \"PinInputSeperator\";\n\ntype PinInputProps = Omit<OTPInputProps, \"render\"> & {\n /*\n * The position of the separator in the pin input\n * @default 3\n */\n separatorPosition?: number;\n helperText?: any;\n};\n\nconst PinInput: React.FC<PinInputProps> = ({\n separatorPosition = 0,\n ...props\n}) => {\n const maxLength = props.maxLength || 6; // Assuming a default maxLength of 6 if not provided\n const clampedSeparatorPosition = Math.min(separatorPosition, maxLength);\n\n const firstGroupLength =\n clampedSeparatorPosition > 0 ? clampedSeparatorPosition : 0;\n const secondGroupLength = maxLength - firstGroupLength;\n\n return (\n <div className=\"hawa-flex hawa-flex-col hawa-gap-2\">\n <PinInputRoot {...props}>\n {firstGroupLength > 0 && (\n <PinInputGroup className=\"hawa-w-full\">\n {[...Array(firstGroupLength)].map((_, index) => (\n <PinInputSlot key={index} index={index} className=\"hawa-w-full\" />\n ))}\n </PinInputGroup>\n )}\n {separatorPosition > 0 && separatorPosition < props.maxLength && (\n <PinInputSeperator />\n )}\n {secondGroupLength > 0 && (\n <PinInputGroup className=\"hawa-w-full\">\n {[...Array(secondGroupLength)].map((_, index) => (\n <PinInputSlot\n key={index + firstGroupLength}\n index={index + firstGroupLength}\n className=\"hawa-w-full\"\n />\n ))}\n </PinInputGroup>\n )}\n </PinInputRoot>\n <HelperText helperText={props.helperText} />\n </div>\n );\n};\n\nexport {\n PinInput,\n PinInputRoot,\n PinInputGroup,\n PinInputSlot,\n PinInputSeperator,\n};\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\ntype Palette = {\n name: string;\n colors: {\n [key: number]: string;\n };\n};\ntype Rgb = {\n r: number;\n g: number;\n b: number;\n};\nfunction hexToRgb(hex: string): Rgb | null {\n const sanitizedHex = hex.replaceAll(\"##\", \"#\");\n const colorParts = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(\n sanitizedHex\n );\n\n if (!colorParts) {\n return null;\n }\n\n const [, r, g, b] = colorParts;\n\n return {\n r: parseInt(r, 16),\n g: parseInt(g, 16),\n b: parseInt(b, 16)\n } as Rgb;\n}\n\nfunction rgbToHex(r: number, g: number, b: number): string {\n const toHex = (c: number) => `0${c.toString(16)}`.slice(-2);\n return `#${toHex(r)}${toHex(g)}${toHex(b)}`;\n}\n\nexport function getTextColor(color: string): \"#FFF\" | \"#333\" {\n const rgbColor = hexToRgb(color);\n\n if (!rgbColor) {\n return \"#333\";\n }\n\n const { r, g, b } = rgbColor;\n const luma = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n return luma < 120 ? \"#FFF\" : \"#333\";\n}\n\nfunction lighten(hex: string, intensity: number): string {\n const color = hexToRgb(`#${hex}`);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r + (255 - color.r) * intensity);\n const g = Math.round(color.g + (255 - color.g) * intensity);\n const b = Math.round(color.b + (255 - color.b) * intensity);\n\n return rgbToHex(r, g, b);\n}\n\nfunction darken(hex: string, intensity: number): string {\n const color = hexToRgb(hex);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r * intensity);\n const g = Math.round(color.g * intensity);\n const b = Math.round(color.b * intensity);\n\n return rgbToHex(r, g, b);\n}\nconst parseColor = (color: any) => {\n if (color.startsWith(\"#\")) {\n // Convert hex to RGB\n let r = parseInt(color.slice(1, 3), 16);\n let g = parseInt(color.slice(3, 5), 16);\n let b = parseInt(color.slice(5, 7), 16);\n return [r, g, b];\n } else if (color.startsWith(\"rgb\")) {\n // Extract RGB values from rgb() format\n return color.match(/\\d+/g).map(Number);\n }\n // Default to white if format is unrecognized\n return [255, 255, 255];\n};\nexport const calculateLuminance = (color: any) => {\n const [r, g, b] = parseColor(color)?.map((c: any) => {\n c /= 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nfunction getPallette(baseColor: string): Palette {\n const name = baseColor;\n\n const response: Palette = {\n name,\n colors: {\n 500: `#${baseColor}`.replace(\"##\", \"#\")\n }\n };\n\n const intensityMap: {\n [key: number]: number;\n } = {\n 50: 0.95,\n 100: 0.9,\n 200: 0.75,\n 300: 0.6,\n 400: 0.3,\n 600: 0.9,\n 700: 0.75,\n 800: 0.6,\n 900: 0.49\n };\n\n [50, 100, 200, 300, 400].forEach((level) => {\n response.colors[level] = lighten(baseColor, intensityMap[level]);\n });\n [600, 700, 800, 900].forEach((level) => {\n response.colors[level] = darken(baseColor, intensityMap[level]);\n });\n\n return response as Palette;\n}\n\nexport { getPallette };\n\n// const hexToRgb = (hex) => {\n// let d = hex?.split(\"#\")[1];\n// var aRgbHex = d?.match(/.{1,2}/g);\n// var aRgb = [\n// parseInt(aRgbHex[0], 16),\n// parseInt(aRgbHex[1], 16),\n// parseInt(aRgbHex[2], 16)\n// ];\n// return aRgb;\n// };\n// const getTextColor = (backColor) => {\n// let rgbArray = hexToRgb(backColor);\n// if (rgbArray[0] * 0.299 + rgbArray[1] * 0.587 + rgbArray[2] * 0.114 > 186) {\n// return \"#000000\";\n// } else {\n// return \"#ffffff\";\n// }\n// };\n// const replaceAt = function (string, index, replacement) {\n// // if (replacement == \"\" || replacement == \" \") {\n// // return (\n// // string.substring(0, index) +\n// // string.substring(index + replacement.length )\n// // );\n// // }\n// const replaced = string.substring(0, index) + replacement + string.substring(index + 1)\n// return replaced\n// };\n\n// export { hexToRgb, getTextColor, replaceAt };\n","import { CamelToPascal } from './utility-types';\n\n/**\n * Converts string to kebab case\n *\n * @param {string} string\n * @returns {string} A kebabized string\n */\nexport const toKebabCase = (string: string) =>\n string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\n\n/**\n * Converts string to pascal case\n *\n * @param {string} string\n * @returns {string} A pascalized string\n */\nexport const toPascalCase = <T extends string>(string: T): CamelToPascal<T> => {\n const camelCase = string.replace(/^([A-Z])|[\\s-_]+(\\w)/g, (match, p1, p2) =>\n p2 ? p2.toUpperCase() : p1.toLowerCase(),\n );\n\n return (camelCase.charAt(0).toUpperCase() + camelCase.slice(1)) as CamelToPascal<T>;\n};\n\n/**\n * Merges classes into a single string\n *\n * @param {array} classes\n * @returns {string} A string of classes\n */\nexport const mergeClasses = <ClassType = string | undefined | null>(...classes: ClassType[]) =>\n classes\n .filter((className, index, array) => {\n return Boolean(className) && array.indexOf(className) === index;\n })\n .join(' ');\n","export default {\n xmlns: 'http://www.w3.org/2000/svg',\n width: 24,\n height: 24,\n viewBox: '0 0 24 24',\n fill: 'none',\n stroke: 'currentColor',\n strokeWidth: 2,\n strokeLinecap: 'round',\n strokeLinejoin: 'round',\n};\n","import { createElement, forwardRef } from 'react';\nimport defaultAttributes from './defaultAttributes';\nimport { IconNode, LucideProps } from './types';\nimport { mergeClasses } from '@lucide/shared';\n\ninterface IconComponentProps extends LucideProps {\n iconNode: IconNode;\n}\n\n/**\n * Lucide icon component\n *\n * @component Icon\n * @param {object} props\n * @param {string} props.color - The color of the icon\n * @param {number} props.size - The size of the icon\n * @param {number} props.strokeWidth - The stroke width of the icon\n * @param {boolean} props.absoluteStrokeWidth - Whether to use absolute stroke width\n * @param {string} props.className - The class name of the icon\n * @param {IconNode} props.children - The children of the icon\n * @param {IconNode} props.iconNode - The icon node of the icon\n *\n * @returns {ForwardRefExoticComponent} LucideIcon\n */\nconst Icon = forwardRef<SVGSVGElement, IconComponentProps>(\n (\n {\n color = 'currentColor',\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = '',\n children,\n iconNode,\n ...rest\n },\n ref,\n ) => {\n return createElement(\n 'svg',\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? (Number(strokeWidth) * 24) / Number(size) : strokeWidth,\n className: mergeClasses('lucide', className),\n ...rest,\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...(Array.isArray(children) ? children : [children]),\n ],\n );\n },\n);\n\nexport default Icon;\n","import { createElement, forwardRef } from 'react';\nimport { mergeClasses, toKebabCase } from '@lucide/shared';\nimport { IconNode, LucideProps } from './types';\nimport Icon from './Icon';\n\n/**\n * Create a Lucide icon component\n * @param {string} iconName\n * @param {array} iconNode\n * @returns {ForwardRefExoticComponent} LucideIcon\n */\nconst createLucideIcon = (iconName: string, iconNode: IconNode) => {\n const Component = forwardRef<SVGSVGElement, LucideProps>(({ className, ...props }, ref) =>\n createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),\n ...props,\n }),\n );\n\n Component.displayName = `${iconName}`;\n\n return Component;\n};\n\nexport default createLucideIcon;\n","import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Dot\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/dot\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Dot = createLucideIcon('Dot', [\n ['circle', { cx: '12.1', cy: '12.1', r: '1', key: '18d7e5' }],\n]);\n\nexport default Dot;\n","import React from \"react\";\n\nimport { cn } from \"@util/index\";\n\nexport const HelperText = ({ helperText }: { helperText?: any }) => (\n <p\n className={cn(\n \"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all\",\n helperText ? \"hawa-h-4 hawa-opacity-100\" : \"hawa-h-0 hawa-opacity-0\",\n )}\n >\n {helperText}\n </p>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,SAAuB;;;ACAvB,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADFA,uBAAyD;;;;;;AEK5C,IAAA,cAAc,CAAC,WAC1B,OAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAY;AAsB/C,IAAA,eAAe,IAA2C,YACrE,QACG,OAAO,CAAC,WAAW,OAAO,UAAU;AACnC,SAAO,QAAQ,SAAS,KAAK,MAAM,QAAQ,SAAS,MAAM;AAC5D,CAAC,EACA,KAAK,GAAG;;;;;;ACpCb,IAAe,oBAAA;EACb,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