@refinn/core-ui 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -12
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -639,7 +639,7 @@ var Loading = (0, import_react6.forwardRef)(
|
|
|
639
639
|
{
|
|
640
640
|
d: "M1 9C1 6.87827 1.84286 4.84344 3.34315 3.34315C4.84344 1.84285 6.87827 1 9 1C11.1217 1 13.1566 1.84286 14.6569 3.34315C16.1571 4.84344 17 6.87827 17 9C17 11.1217 16.1571 13.1566 14.6569 14.6569C13.1566 16.1571 11.1217 17 9 17C6.87827 17 4.84344 16.1571 3.34315 14.6569C1.84285 13.1566 1 11.1217 1 9L1 9Z",
|
|
641
641
|
stroke: "#F3F4F6",
|
|
642
|
-
|
|
642
|
+
strokeWidth: "2"
|
|
643
643
|
}
|
|
644
644
|
),
|
|
645
645
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -647,7 +647,7 @@ var Loading = (0, import_react6.forwardRef)(
|
|
|
647
647
|
{
|
|
648
648
|
d: "M1 9C1 7.31057 1.53484 5.6645 2.52786 4.29772C3.52089 2.93094 4.92112 1.91361 6.52787 1.39155C8.13461 0.869484 9.86539 0.869484 11.4721 1.39155C13.0789 1.91361 14.4791 2.93094 15.4721 4.29772",
|
|
649
649
|
stroke: "#0193D7",
|
|
650
|
-
|
|
650
|
+
strokeWidth: "2"
|
|
651
651
|
}
|
|
652
652
|
)
|
|
653
653
|
]
|
|
@@ -845,7 +845,7 @@ var BottomSheet = (0, import_react8.forwardRef)(
|
|
|
845
845
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
846
846
|
"div",
|
|
847
847
|
{
|
|
848
|
-
className: `fixed inset-0 z-
|
|
848
|
+
className: `fixed inset-0 z-15000 flex items-end justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
|
|
849
849
|
"aria-modal": "true",
|
|
850
850
|
role: "dialog",
|
|
851
851
|
children: [
|
|
@@ -1180,7 +1180,7 @@ var Dialog = (0, import_react11.forwardRef)(
|
|
|
1180
1180
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1181
1181
|
"div",
|
|
1182
1182
|
{
|
|
1183
|
-
className: `fixed inset-0 z-
|
|
1183
|
+
className: `fixed inset-0 z-15000 flex items-center justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
|
|
1184
1184
|
"aria-modal": "true",
|
|
1185
1185
|
role: "dialog",
|
|
1186
1186
|
children: [
|
|
@@ -1363,7 +1363,7 @@ var Dropdown = (0, import_react12.forwardRef)(
|
|
|
1363
1363
|
}, rest), {
|
|
1364
1364
|
onClick: () => !isDisabled && setIsOpen(!isOpen),
|
|
1365
1365
|
className: `w-full rounded-md text-body-small px-16 text-center inline-flex gap-8 items-center border **:focus:outline-none focus:border-2 focus:px-15 focus:py-9
|
|
1366
|
-
${size === "lg" ? "py-
|
|
1366
|
+
${size === "lg" ? "py-12" : "py-8"}
|
|
1367
1367
|
${isDisabled ? "text-dropdown-text-disabled cursor-not-allowed" : value ? "text-dropdown-text-primary cursor-pointer" : "text-dropdown-text-secondary cursor-pointer"}
|
|
1368
1368
|
${isDisabled ? "pointer-events-none bg-dropdown-background-disabled border-dropdown-border-disabled" : error ? "border-red-600 bg-dropdown-background-enabled focus:border-red-600" : value ? "text-dropdown-text-primary bg-dropdown-background-enabled border-dropdown-border-enabled focus:border-dropdown-border-active " : "text-dropdown-text-secondary bg-dropdown-background-enabled border-dropdown-border-enabled focus:border-dropdown-border-active "}
|
|
1369
1369
|
${className}`,
|
|
@@ -1371,7 +1371,7 @@ var Dropdown = (0, import_react12.forwardRef)(
|
|
|
1371
1371
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1372
1372
|
"p",
|
|
1373
1373
|
{
|
|
1374
|
-
className: `grow ${isTextCenter ? "text-center" : "text-start"}`,
|
|
1374
|
+
className: `grow truncate ${isTextCenter ? "text-center" : "text-start"}`,
|
|
1375
1375
|
children: value.label || placeholder
|
|
1376
1376
|
}
|
|
1377
1377
|
),
|
|
@@ -1710,7 +1710,7 @@ var Link = (0, import_react15.forwardRef)(
|
|
|
1710
1710
|
className
|
|
1711
1711
|
].filter(Boolean).join(" ");
|
|
1712
1712
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", __spreadProps(__spreadValues({ ref, role: "link", className: classes }, rest), { children: [
|
|
1713
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("a", {
|
|
1713
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("a", { href, target: "_blank", rel: "noopener noreferrer", children: text }),
|
|
1714
1714
|
icon && !isInline ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SuccessIcon3, { className: iconClass }) : null
|
|
1715
1715
|
] }));
|
|
1716
1716
|
}
|
|
@@ -2235,8 +2235,8 @@ var TextArea = (0, import_react20.forwardRef)(
|
|
|
2235
2235
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2236
2236
|
"path",
|
|
2237
2237
|
{
|
|
2238
|
-
|
|
2239
|
-
|
|
2238
|
+
fillRule: "evenodd",
|
|
2239
|
+
clipRule: "evenodd",
|
|
2240
2240
|
d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
|
|
2241
2241
|
fill: "#16A34A"
|
|
2242
2242
|
}
|
|
@@ -2319,6 +2319,7 @@ var TextField = (0, import_react21.forwardRef)(
|
|
|
2319
2319
|
}
|
|
2320
2320
|
) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, {}),
|
|
2321
2321
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative w-full", children: [
|
|
2322
|
+
icon && icon,
|
|
2322
2323
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2323
2324
|
"input",
|
|
2324
2325
|
__spreadValues({
|
|
@@ -2330,7 +2331,7 @@ var TextField = (0, import_react21.forwardRef)(
|
|
|
2330
2331
|
onBlur: () => setIsFocused(false),
|
|
2331
2332
|
value,
|
|
2332
2333
|
onChange,
|
|
2333
|
-
className: `w-full ${
|
|
2334
|
+
className: `w-full ${icon ? "pl-40 focus:pl-39" : "pl-16 focus:pl-15"} pr-16 focus:pr-15 ${inputSize === "md" ? "py-8 focus:py-7" : "py-12 focus:py-11"} border border-gray-300 text-base rounded-md focus:outline-none focus:ring-1 focus:m-1 focus:w-[calc(100%-2px)] ${isDisabled || disabled ? "bg-gray-50 text-gray-400" : error ? "bg-white text-gray-900 border-red-500 focus:border-red-500 focus:ring-red-500" : "bg-white text-gray-900 focus:border-blue-600 focus:ring-blue-600"}`
|
|
2334
2335
|
}, props)
|
|
2335
2336
|
),
|
|
2336
2337
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
@@ -2372,8 +2373,8 @@ var TextField = (0, import_react21.forwardRef)(
|
|
|
2372
2373
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2373
2374
|
"path",
|
|
2374
2375
|
{
|
|
2375
|
-
|
|
2376
|
-
|
|
2376
|
+
fillRule: "evenodd",
|
|
2377
|
+
clipRule: "evenodd",
|
|
2377
2378
|
d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
|
|
2378
2379
|
fill: "#16A34A"
|
|
2379
2380
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -270,7 +270,7 @@ interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
270
270
|
label?: string;
|
|
271
271
|
placeholder?: string;
|
|
272
272
|
description?: string;
|
|
273
|
-
icon?:
|
|
273
|
+
icon?: ReactNode;
|
|
274
274
|
isDisabled?: boolean;
|
|
275
275
|
isLoading?: boolean;
|
|
276
276
|
isVertify?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -270,7 +270,7 @@ interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
270
270
|
label?: string;
|
|
271
271
|
placeholder?: string;
|
|
272
272
|
description?: string;
|
|
273
|
-
icon?:
|
|
273
|
+
icon?: ReactNode;
|
|
274
274
|
isDisabled?: boolean;
|
|
275
275
|
isLoading?: boolean;
|
|
276
276
|
isVertify?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -590,7 +590,7 @@ var Loading = forwardRef6(
|
|
|
590
590
|
{
|
|
591
591
|
d: "M1 9C1 6.87827 1.84286 4.84344 3.34315 3.34315C4.84344 1.84285 6.87827 1 9 1C11.1217 1 13.1566 1.84286 14.6569 3.34315C16.1571 4.84344 17 6.87827 17 9C17 11.1217 16.1571 13.1566 14.6569 14.6569C13.1566 16.1571 11.1217 17 9 17C6.87827 17 4.84344 16.1571 3.34315 14.6569C1.84285 13.1566 1 11.1217 1 9L1 9Z",
|
|
592
592
|
stroke: "#F3F4F6",
|
|
593
|
-
|
|
593
|
+
strokeWidth: "2"
|
|
594
594
|
}
|
|
595
595
|
),
|
|
596
596
|
/* @__PURE__ */ jsx6(
|
|
@@ -598,7 +598,7 @@ var Loading = forwardRef6(
|
|
|
598
598
|
{
|
|
599
599
|
d: "M1 9C1 7.31057 1.53484 5.6645 2.52786 4.29772C3.52089 2.93094 4.92112 1.91361 6.52787 1.39155C8.13461 0.869484 9.86539 0.869484 11.4721 1.39155C13.0789 1.91361 14.4791 2.93094 15.4721 4.29772",
|
|
600
600
|
stroke: "#0193D7",
|
|
601
|
-
|
|
601
|
+
strokeWidth: "2"
|
|
602
602
|
}
|
|
603
603
|
)
|
|
604
604
|
]
|
|
@@ -796,7 +796,7 @@ var BottomSheet = forwardRef8(
|
|
|
796
796
|
/* @__PURE__ */ jsxs8(
|
|
797
797
|
"div",
|
|
798
798
|
{
|
|
799
|
-
className: `fixed inset-0 z-
|
|
799
|
+
className: `fixed inset-0 z-15000 flex items-end justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
|
|
800
800
|
"aria-modal": "true",
|
|
801
801
|
role: "dialog",
|
|
802
802
|
children: [
|
|
@@ -1142,7 +1142,7 @@ var Dialog = forwardRef11(
|
|
|
1142
1142
|
/* @__PURE__ */ jsxs11(
|
|
1143
1143
|
"div",
|
|
1144
1144
|
{
|
|
1145
|
-
className: `fixed inset-0 z-
|
|
1145
|
+
className: `fixed inset-0 z-15000 flex items-center justify-center transition-opacity duration-300 ${animate ? "opacity-100" : "opacity-0"}`,
|
|
1146
1146
|
"aria-modal": "true",
|
|
1147
1147
|
role: "dialog",
|
|
1148
1148
|
children: [
|
|
@@ -1330,7 +1330,7 @@ var Dropdown = forwardRef12(
|
|
|
1330
1330
|
}, rest), {
|
|
1331
1331
|
onClick: () => !isDisabled && setIsOpen(!isOpen),
|
|
1332
1332
|
className: `w-full rounded-md text-body-small px-16 text-center inline-flex gap-8 items-center border **:focus:outline-none focus:border-2 focus:px-15 focus:py-9
|
|
1333
|
-
${size === "lg" ? "py-
|
|
1333
|
+
${size === "lg" ? "py-12" : "py-8"}
|
|
1334
1334
|
${isDisabled ? "text-dropdown-text-disabled cursor-not-allowed" : value ? "text-dropdown-text-primary cursor-pointer" : "text-dropdown-text-secondary cursor-pointer"}
|
|
1335
1335
|
${isDisabled ? "pointer-events-none bg-dropdown-background-disabled border-dropdown-border-disabled" : error ? "border-red-600 bg-dropdown-background-enabled focus:border-red-600" : value ? "text-dropdown-text-primary bg-dropdown-background-enabled border-dropdown-border-enabled focus:border-dropdown-border-active " : "text-dropdown-text-secondary bg-dropdown-background-enabled border-dropdown-border-enabled focus:border-dropdown-border-active "}
|
|
1336
1336
|
${className}`,
|
|
@@ -1338,7 +1338,7 @@ var Dropdown = forwardRef12(
|
|
|
1338
1338
|
/* @__PURE__ */ jsx12(
|
|
1339
1339
|
"p",
|
|
1340
1340
|
{
|
|
1341
|
-
className: `grow ${isTextCenter ? "text-center" : "text-start"}`,
|
|
1341
|
+
className: `grow truncate ${isTextCenter ? "text-center" : "text-start"}`,
|
|
1342
1342
|
children: value.label || placeholder
|
|
1343
1343
|
}
|
|
1344
1344
|
),
|
|
@@ -1677,7 +1677,7 @@ var Link = forwardRef15(
|
|
|
1677
1677
|
className
|
|
1678
1678
|
].filter(Boolean).join(" ");
|
|
1679
1679
|
return /* @__PURE__ */ jsxs14("div", __spreadProps(__spreadValues({ ref, role: "link", className: classes }, rest), { children: [
|
|
1680
|
-
/* @__PURE__ */ jsx15("a", {
|
|
1680
|
+
/* @__PURE__ */ jsx15("a", { href, target: "_blank", rel: "noopener noreferrer", children: text }),
|
|
1681
1681
|
icon && !isInline ? /* @__PURE__ */ jsx15(SuccessIcon3, { className: iconClass }) : null
|
|
1682
1682
|
] }));
|
|
1683
1683
|
}
|
|
@@ -2215,8 +2215,8 @@ var TextArea = forwardRef20(
|
|
|
2215
2215
|
children: /* @__PURE__ */ jsx20(
|
|
2216
2216
|
"path",
|
|
2217
2217
|
{
|
|
2218
|
-
|
|
2219
|
-
|
|
2218
|
+
fillRule: "evenodd",
|
|
2219
|
+
clipRule: "evenodd",
|
|
2220
2220
|
d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
|
|
2221
2221
|
fill: "#16A34A"
|
|
2222
2222
|
}
|
|
@@ -2302,6 +2302,7 @@ var TextField = forwardRef21(
|
|
|
2302
2302
|
}
|
|
2303
2303
|
) : /* @__PURE__ */ jsx21(Fragment4, {}),
|
|
2304
2304
|
/* @__PURE__ */ jsxs18("div", { className: "relative w-full", children: [
|
|
2305
|
+
icon && icon,
|
|
2305
2306
|
/* @__PURE__ */ jsx21(
|
|
2306
2307
|
"input",
|
|
2307
2308
|
__spreadValues({
|
|
@@ -2313,7 +2314,7 @@ var TextField = forwardRef21(
|
|
|
2313
2314
|
onBlur: () => setIsFocused(false),
|
|
2314
2315
|
value,
|
|
2315
2316
|
onChange,
|
|
2316
|
-
className: `w-full ${
|
|
2317
|
+
className: `w-full ${icon ? "pl-40 focus:pl-39" : "pl-16 focus:pl-15"} pr-16 focus:pr-15 ${inputSize === "md" ? "py-8 focus:py-7" : "py-12 focus:py-11"} border border-gray-300 text-base rounded-md focus:outline-none focus:ring-1 focus:m-1 focus:w-[calc(100%-2px)] ${isDisabled || disabled ? "bg-gray-50 text-gray-400" : error ? "bg-white text-gray-900 border-red-500 focus:border-red-500 focus:ring-red-500" : "bg-white text-gray-900 focus:border-blue-600 focus:ring-blue-600"}`
|
|
2317
2318
|
}, props)
|
|
2318
2319
|
),
|
|
2319
2320
|
isLoading ? /* @__PURE__ */ jsx21(
|
|
@@ -2355,8 +2356,8 @@ var TextField = forwardRef21(
|
|
|
2355
2356
|
children: /* @__PURE__ */ jsx21(
|
|
2356
2357
|
"path",
|
|
2357
2358
|
{
|
|
2358
|
-
|
|
2359
|
-
|
|
2359
|
+
fillRule: "evenodd",
|
|
2360
|
+
clipRule: "evenodd",
|
|
2360
2361
|
d: "M15.6328 6.64062L8.10449 14.1494L4.36719 10.4326L5.13281 9.64551L8.10449 12.6172L14.8672 5.875L15.6328 6.64062Z",
|
|
2361
2362
|
fill: "#16A34A"
|
|
2362
2363
|
}
|