@herca/r-kit 0.0.28 → 0.0.30
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/components/breadcrumbs/index.cjs +1 -2
- package/dist/components/breadcrumbs/index.cjs.map +1 -1
- package/dist/components/breadcrumbs/index.js +1 -2
- package/dist/components/breadcrumbs/index.js.map +1 -1
- package/dist/components/calendar/index.cjs +16 -17
- package/dist/components/calendar/index.cjs.map +1 -1
- package/dist/components/calendar/index.js +16 -17
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/counter/index.cjs +1 -2
- package/dist/components/counter/index.cjs.map +1 -1
- package/dist/components/counter/index.js +1 -2
- package/dist/components/counter/index.js.map +1 -1
- package/dist/components/date-picker/index.cjs +18 -19
- package/dist/components/date-picker/index.cjs.map +1 -1
- package/dist/components/date-picker/index.js +18 -19
- package/dist/components/date-picker/index.js.map +1 -1
- package/dist/components/input-file/index.cjs +11 -12
- package/dist/components/input-file/index.cjs.map +1 -1
- package/dist/components/input-file/index.js +11 -12
- package/dist/components/input-file/index.js.map +1 -1
- package/dist/components/modal/index.cjs +2 -3
- package/dist/components/modal/index.cjs.map +1 -1
- package/dist/components/modal/index.js +2 -3
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/select/index.cjs +4 -5
- package/dist/components/select/index.cjs.map +1 -1
- package/dist/components/select/index.js +4 -5
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/sidebar/index.cjs +4 -5
- package/dist/components/sidebar/index.cjs.map +1 -1
- package/dist/components/sidebar/index.js +4 -5
- package/dist/components/sidebar/index.js.map +1 -1
- package/dist/components/table/index.cjs +4 -5
- package/dist/components/table/index.cjs.map +1 -1
- package/dist/components/table/index.js +4 -5
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/toast/index.cjs +2 -3
- package/dist/components/toast/index.cjs.map +1 -1
- package/dist/components/toast/index.js +2 -3
- package/dist/components/toast/index.js.map +1 -1
- package/dist/index.cjs +35 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5540,7 +5540,6 @@ var Icon = ({
|
|
|
5540
5540
|
}
|
|
5541
5541
|
return /* @__PURE__ */ jsx(Component, { size, color, className });
|
|
5542
5542
|
};
|
|
5543
|
-
var Icon_default = Icon;
|
|
5544
5543
|
var ButtonNavigator = ({
|
|
5545
5544
|
onClick,
|
|
5546
5545
|
icon,
|
|
@@ -5559,7 +5558,7 @@ var ButtonNavigator = ({
|
|
|
5559
5558
|
size: "icon",
|
|
5560
5559
|
color: "gray",
|
|
5561
5560
|
className: cn("bg-gray-500 hover:bg-gray-600", className),
|
|
5562
|
-
children: /* @__PURE__ */ jsx(
|
|
5561
|
+
children: /* @__PURE__ */ jsx(Icon, { name: icon, className: "text-white", size: size_map[size] })
|
|
5563
5562
|
}
|
|
5564
5563
|
);
|
|
5565
5564
|
};
|
|
@@ -6454,9 +6453,9 @@ var ModalPreviewAttachment = ({
|
|
|
6454
6453
|
children: [
|
|
6455
6454
|
/* @__PURE__ */ jsxs("div", { className: "flex w-full justify-between", children: [
|
|
6456
6455
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
6457
|
-
/* @__PURE__ */ jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsx(
|
|
6456
|
+
/* @__PURE__ */ jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsx(Icon, { name: "times", color: "white" }) }),
|
|
6458
6457
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
6459
|
-
iconName && /* @__PURE__ */ jsx(
|
|
6458
|
+
iconName && /* @__PURE__ */ jsx(Icon, { name: iconName, size: 48 }),
|
|
6460
6459
|
/* @__PURE__ */ jsx(
|
|
6461
6460
|
Text,
|
|
6462
6461
|
{
|
|
@@ -6567,7 +6566,7 @@ var ZoomController = ({
|
|
|
6567
6566
|
onClick: onZoomIn,
|
|
6568
6567
|
disabled: zoom >= maxZoom,
|
|
6569
6568
|
type: "button",
|
|
6570
|
-
children: /* @__PURE__ */ jsx(
|
|
6569
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "search-plus-fill" })
|
|
6571
6570
|
}
|
|
6572
6571
|
),
|
|
6573
6572
|
/* @__PURE__ */ jsx(
|
|
@@ -6577,11 +6576,11 @@ var ZoomController = ({
|
|
|
6577
6576
|
onClick: onZoomOut,
|
|
6578
6577
|
disabled: zoom <= minZoom,
|
|
6579
6578
|
type: "button",
|
|
6580
|
-
children: /* @__PURE__ */ jsx(
|
|
6579
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "search-minus-fill" })
|
|
6581
6580
|
}
|
|
6582
6581
|
),
|
|
6583
6582
|
/* @__PURE__ */ jsxs(Button, { color: "secondary", onClick: onDownload, children: [
|
|
6584
|
-
/* @__PURE__ */ jsx(
|
|
6583
|
+
/* @__PURE__ */ jsx(Icon, { name: "download" }),
|
|
6585
6584
|
/* @__PURE__ */ jsx(
|
|
6586
6585
|
Text,
|
|
6587
6586
|
{
|
|
@@ -6671,7 +6670,7 @@ var PreviewItem = ({
|
|
|
6671
6670
|
alt: data.file.name,
|
|
6672
6671
|
className: "size-11 rounded-md object-cover"
|
|
6673
6672
|
}
|
|
6674
|
-
) : /* @__PURE__ */ jsx(
|
|
6673
|
+
) : /* @__PURE__ */ jsx(Icon, { name: iconName ?? "doc", className: "size-11" })
|
|
6675
6674
|
}
|
|
6676
6675
|
),
|
|
6677
6676
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
@@ -6716,11 +6715,11 @@ var PreviewItem = ({
|
|
|
6716
6715
|
disabled,
|
|
6717
6716
|
className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
6718
6717
|
title: "Replace file",
|
|
6719
|
-
children: /* @__PURE__ */ jsx(
|
|
6718
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "rotate-right", className: "size-4 text-gray-700" })
|
|
6720
6719
|
}
|
|
6721
6720
|
),
|
|
6722
6721
|
/* @__PURE__ */ jsx(
|
|
6723
|
-
|
|
6722
|
+
Icon,
|
|
6724
6723
|
{
|
|
6725
6724
|
name: "exclamation-triangle",
|
|
6726
6725
|
className: "text-danger-500 size-4"
|
|
@@ -6734,7 +6733,7 @@ var PreviewItem = ({
|
|
|
6734
6733
|
onClick: onRemove,
|
|
6735
6734
|
disabled,
|
|
6736
6735
|
className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
6737
|
-
children: /* @__PURE__ */ jsx(
|
|
6736
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "times", className: "size-4 text-gray-700" })
|
|
6738
6737
|
}
|
|
6739
6738
|
)
|
|
6740
6739
|
] })
|
|
@@ -6959,8 +6958,8 @@ var InputFile = forwardRef(
|
|
|
6959
6958
|
onDragOver: variant === "large" ? handleDragOver : void 0,
|
|
6960
6959
|
onDrop: variant === "large" ? handleDrop : void 0,
|
|
6961
6960
|
children: [
|
|
6962
|
-
isDefault && /* @__PURE__ */ jsx(
|
|
6963
|
-
isSized && /* @__PURE__ */ jsx(
|
|
6961
|
+
isDefault && /* @__PURE__ */ jsx(Icon, { name: "upload" }),
|
|
6962
|
+
isSized && /* @__PURE__ */ jsx(Icon, { name: "cloud-upload", size: variant === "large" ? 125 : 40 }),
|
|
6964
6963
|
/* @__PURE__ */ jsxs(
|
|
6965
6964
|
"div",
|
|
6966
6965
|
{
|
|
@@ -7414,7 +7413,7 @@ function CalendarDayItem({
|
|
|
7414
7413
|
),
|
|
7415
7414
|
variant === "default" && Boolean(hasEvent) === false && backdropOnClick && /* @__PURE__ */ jsx("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
7416
7415
|
/* @__PURE__ */ jsx(TooltipTrigger, { className: "cursor-pointer", children: /* @__PURE__ */ jsx(
|
|
7417
|
-
|
|
7416
|
+
Icon,
|
|
7418
7417
|
{
|
|
7419
7418
|
name: "plus",
|
|
7420
7419
|
className: "text-gray-700! opacity-0 transition-opacity group-hover:opacity-100",
|
|
@@ -7745,7 +7744,7 @@ var ButtonDropdown = ({
|
|
|
7745
7744
|
"bg-transparent transition-colors outline-none *:duration-300 hover:bg-gray-50 focus:outline-none"
|
|
7746
7745
|
),
|
|
7747
7746
|
children: /* @__PURE__ */ jsx(
|
|
7748
|
-
|
|
7747
|
+
Icon,
|
|
7749
7748
|
{
|
|
7750
7749
|
name: "arrow-down",
|
|
7751
7750
|
size: size_map[size],
|
|
@@ -8191,7 +8190,7 @@ var Calendar2 = ({
|
|
|
8191
8190
|
children: [
|
|
8192
8191
|
selectedType,
|
|
8193
8192
|
" ",
|
|
8194
|
-
/* @__PURE__ */ jsx(
|
|
8193
|
+
/* @__PURE__ */ jsx(Icon, { name: "angle-down-small", size: 20 })
|
|
8195
8194
|
]
|
|
8196
8195
|
}
|
|
8197
8196
|
) }),
|
|
@@ -8294,7 +8293,7 @@ var ButtonNavigation = ({
|
|
|
8294
8293
|
type
|
|
8295
8294
|
}) => {
|
|
8296
8295
|
return /* @__PURE__ */ jsx("button", { onClick, children: /* @__PURE__ */ jsx(
|
|
8297
|
-
|
|
8296
|
+
Icon,
|
|
8298
8297
|
{
|
|
8299
8298
|
name: type === "next" ? "angle-right-small" : "angle-left-small",
|
|
8300
8299
|
size: 30,
|
|
@@ -8675,7 +8674,7 @@ var DatePicker = ({
|
|
|
8675
8674
|
mergedAddon: true,
|
|
8676
8675
|
className: "pl-0",
|
|
8677
8676
|
leftAddonClassName: "pr-1!",
|
|
8678
|
-
leftAddon: /* @__PURE__ */ jsx(
|
|
8677
|
+
leftAddon: /* @__PURE__ */ jsx(Icon, { name: "calendar", className: "text-gray-900" }),
|
|
8679
8678
|
placeholder: mode === "range" ? `${formatConfig.placeholder} - ${formatConfig.placeholder}` : formatConfig.placeholder,
|
|
8680
8679
|
onChange: handleInputChange2,
|
|
8681
8680
|
value: inputValue,
|
|
@@ -8847,7 +8846,7 @@ var DatePicker = ({
|
|
|
8847
8846
|
)
|
|
8848
8847
|
}
|
|
8849
8848
|
),
|
|
8850
|
-
/* @__PURE__ */ jsx(
|
|
8849
|
+
/* @__PURE__ */ jsx(Icon, { name: "minus", size: 16 }),
|
|
8851
8850
|
/* @__PURE__ */ jsx(
|
|
8852
8851
|
Input,
|
|
8853
8852
|
{
|