@herca/r-kit 0.0.29 → 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
|
@@ -5570,7 +5570,6 @@ var Icon = ({
|
|
|
5570
5570
|
}
|
|
5571
5571
|
return /* @__PURE__ */ jsxRuntime.jsx(Component, { size, color, className });
|
|
5572
5572
|
};
|
|
5573
|
-
var Icon_default = Icon;
|
|
5574
5573
|
var ButtonNavigator = ({
|
|
5575
5574
|
onClick,
|
|
5576
5575
|
icon,
|
|
@@ -5589,7 +5588,7 @@ var ButtonNavigator = ({
|
|
|
5589
5588
|
size: "icon",
|
|
5590
5589
|
color: "gray",
|
|
5591
5590
|
className: cn("bg-gray-500 hover:bg-gray-600", className),
|
|
5592
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5591
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, className: "text-white", size: size_map[size] })
|
|
5593
5592
|
}
|
|
5594
5593
|
);
|
|
5595
5594
|
};
|
|
@@ -6381,9 +6380,9 @@ var ModalPreviewAttachment = ({
|
|
|
6381
6380
|
children: [
|
|
6382
6381
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full justify-between", children: [
|
|
6383
6382
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
6384
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6383
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times", color: "white" }) }),
|
|
6385
6384
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
|
|
6386
|
-
iconName && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6385
|
+
iconName && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: iconName, size: 48 }),
|
|
6387
6386
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6388
6387
|
Text,
|
|
6389
6388
|
{
|
|
@@ -6494,7 +6493,7 @@ var ZoomController = ({
|
|
|
6494
6493
|
onClick: onZoomIn,
|
|
6495
6494
|
disabled: zoom >= maxZoom,
|
|
6496
6495
|
type: "button",
|
|
6497
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6496
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search-plus-fill" })
|
|
6498
6497
|
}
|
|
6499
6498
|
),
|
|
6500
6499
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6504,11 +6503,11 @@ var ZoomController = ({
|
|
|
6504
6503
|
onClick: onZoomOut,
|
|
6505
6504
|
disabled: zoom <= minZoom,
|
|
6506
6505
|
type: "button",
|
|
6507
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6506
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search-minus-fill" })
|
|
6508
6507
|
}
|
|
6509
6508
|
),
|
|
6510
6509
|
/* @__PURE__ */ jsxRuntime.jsxs(Button, { color: "secondary", onClick: onDownload, children: [
|
|
6511
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6510
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "download" }),
|
|
6512
6511
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6513
6512
|
Text,
|
|
6514
6513
|
{
|
|
@@ -6598,7 +6597,7 @@ var PreviewItem = ({
|
|
|
6598
6597
|
alt: data.file.name,
|
|
6599
6598
|
className: "size-11 rounded-md object-cover"
|
|
6600
6599
|
}
|
|
6601
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6600
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: iconName ?? "doc", className: "size-11" })
|
|
6602
6601
|
}
|
|
6603
6602
|
),
|
|
6604
6603
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
@@ -6643,11 +6642,11 @@ var PreviewItem = ({
|
|
|
6643
6642
|
disabled,
|
|
6644
6643
|
className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
6645
6644
|
title: "Replace file",
|
|
6646
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6645
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "rotate-right", className: "size-4 text-gray-700" })
|
|
6647
6646
|
}
|
|
6648
6647
|
),
|
|
6649
6648
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6650
|
-
|
|
6649
|
+
Icon,
|
|
6651
6650
|
{
|
|
6652
6651
|
name: "exclamation-triangle",
|
|
6653
6652
|
className: "text-danger-500 size-4"
|
|
@@ -6661,7 +6660,7 @@ var PreviewItem = ({
|
|
|
6661
6660
|
onClick: onRemove,
|
|
6662
6661
|
disabled,
|
|
6663
6662
|
className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
6664
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6663
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times", className: "size-4 text-gray-700" })
|
|
6665
6664
|
}
|
|
6666
6665
|
)
|
|
6667
6666
|
] })
|
|
@@ -6886,8 +6885,8 @@ var InputFile = React283.forwardRef(
|
|
|
6886
6885
|
onDragOver: variant === "large" ? handleDragOver : void 0,
|
|
6887
6886
|
onDrop: variant === "large" ? handleDrop : void 0,
|
|
6888
6887
|
children: [
|
|
6889
|
-
isDefault && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6890
|
-
isSized && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6888
|
+
isDefault && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "upload" }),
|
|
6889
|
+
isSized && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "cloud-upload", size: variant === "large" ? 125 : 40 }),
|
|
6891
6890
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6892
6891
|
"div",
|
|
6893
6892
|
{
|
|
@@ -7349,7 +7348,7 @@ function CalendarDayItem({
|
|
|
7349
7348
|
),
|
|
7350
7349
|
variant === "default" && Boolean(hasEvent) === false && backdropOnClick && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
7351
7350
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { className: "cursor-pointer", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7352
|
-
|
|
7351
|
+
Icon,
|
|
7353
7352
|
{
|
|
7354
7353
|
name: "plus",
|
|
7355
7354
|
className: "text-gray-700! opacity-0 transition-opacity group-hover:opacity-100",
|
|
@@ -7680,7 +7679,7 @@ var ButtonDropdown = ({
|
|
|
7680
7679
|
"bg-transparent transition-colors outline-none *:duration-300 hover:bg-gray-50 focus:outline-none"
|
|
7681
7680
|
),
|
|
7682
7681
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7683
|
-
|
|
7682
|
+
Icon,
|
|
7684
7683
|
{
|
|
7685
7684
|
name: "arrow-down",
|
|
7686
7685
|
size: size_map[size],
|
|
@@ -8126,7 +8125,7 @@ var Calendar2 = ({
|
|
|
8126
8125
|
children: [
|
|
8127
8126
|
selectedType,
|
|
8128
8127
|
" ",
|
|
8129
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8128
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "angle-down-small", size: 20 })
|
|
8130
8129
|
]
|
|
8131
8130
|
}
|
|
8132
8131
|
) }),
|
|
@@ -8229,7 +8228,7 @@ var ButtonNavigation = ({
|
|
|
8229
8228
|
type
|
|
8230
8229
|
}) => {
|
|
8231
8230
|
return /* @__PURE__ */ jsxRuntime.jsx("button", { onClick, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8232
|
-
|
|
8231
|
+
Icon,
|
|
8233
8232
|
{
|
|
8234
8233
|
name: type === "next" ? "angle-right-small" : "angle-left-small",
|
|
8235
8234
|
size: 30,
|