@herca/r-kit 0.0.29 → 0.0.31

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.
Files changed (45) hide show
  1. package/dist/components/breadcrumbs/index.cjs +1 -2
  2. package/dist/components/breadcrumbs/index.cjs.map +1 -1
  3. package/dist/components/breadcrumbs/index.js +1 -2
  4. package/dist/components/breadcrumbs/index.js.map +1 -1
  5. package/dist/components/calendar/index.cjs +16 -17
  6. package/dist/components/calendar/index.cjs.map +1 -1
  7. package/dist/components/calendar/index.js +16 -17
  8. package/dist/components/calendar/index.js.map +1 -1
  9. package/dist/components/counter/index.cjs +1 -2
  10. package/dist/components/counter/index.cjs.map +1 -1
  11. package/dist/components/counter/index.js +1 -2
  12. package/dist/components/counter/index.js.map +1 -1
  13. package/dist/components/date-picker/index.cjs +18 -19
  14. package/dist/components/date-picker/index.cjs.map +1 -1
  15. package/dist/components/date-picker/index.js +18 -19
  16. package/dist/components/date-picker/index.js.map +1 -1
  17. package/dist/components/input-file/index.cjs +11 -12
  18. package/dist/components/input-file/index.cjs.map +1 -1
  19. package/dist/components/input-file/index.js +11 -12
  20. package/dist/components/input-file/index.js.map +1 -1
  21. package/dist/components/modal/index.cjs +2 -3
  22. package/dist/components/modal/index.cjs.map +1 -1
  23. package/dist/components/modal/index.js +2 -3
  24. package/dist/components/modal/index.js.map +1 -1
  25. package/dist/components/select/index.cjs +4 -5
  26. package/dist/components/select/index.cjs.map +1 -1
  27. package/dist/components/select/index.js +4 -5
  28. package/dist/components/select/index.js.map +1 -1
  29. package/dist/components/sidebar/index.cjs +4 -5
  30. package/dist/components/sidebar/index.cjs.map +1 -1
  31. package/dist/components/sidebar/index.js +4 -5
  32. package/dist/components/sidebar/index.js.map +1 -1
  33. package/dist/components/table/index.cjs +4 -5
  34. package/dist/components/table/index.cjs.map +1 -1
  35. package/dist/components/table/index.js +4 -5
  36. package/dist/components/table/index.js.map +1 -1
  37. package/dist/components/toast/index.cjs +2 -3
  38. package/dist/components/toast/index.cjs.map +1 -1
  39. package/dist/components/toast/index.js +2 -3
  40. package/dist/components/toast/index.js.map +1 -1
  41. package/dist/index.cjs +35 -36
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.js +35 -36
  44. package/dist/index.js.map +1 -1
  45. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -6061,7 +6061,6 @@ var Icon = ({
6061
6061
  }
6062
6062
  return /* @__PURE__ */ jsxRuntime.jsx(Component, { size, color, className });
6063
6063
  };
6064
- var Icon_default = Icon;
6065
6064
  function Sheet({ ...props }) {
6066
6065
  return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
6067
6066
  }
@@ -6390,7 +6389,7 @@ function SidebarTrigger({
6390
6389
  },
6391
6390
  ...props,
6392
6391
  children: [
6393
- /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "layout-web" }),
6392
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "layout-web" }),
6394
6393
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
6395
6394
  ]
6396
6395
  }
@@ -6472,7 +6471,7 @@ function SidebarMenuItem({
6472
6471
  "hover:bg-primary-100",
6473
6472
  Boolean(active) && "bg-primary-100 text-primary-1000 before:bg-primary-1000 before:absolute before:top-1/2 before:left-0 before:h-5 before:w-1 before:-translate-y-1/2 before:rounded-r-md"
6474
6473
  );
6475
- const iconElement = icon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "ellipse", size: 18 }) });
6474
+ const iconElement = icon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "ellipse", size: 18 }) });
6476
6475
  return /* @__PURE__ */ jsxRuntime.jsx(
6477
6476
  "li",
6478
6477
  {
@@ -6534,7 +6533,7 @@ function SidebarMenuGroup({
6534
6533
  "cursor-pointer",
6535
6534
  Boolean(active) && "bg-primary-100 text-primary-1000 before:bg-primary-1000 before:absolute before:top-1/2 before:left-0 before:h-5 before:w-1 before:-translate-y-1/2 before:rounded-r-md"
6536
6535
  );
6537
- const iconElement = icon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "ellipse", size: 18 }) });
6536
+ const iconElement = icon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "ellipse", size: 18 }) });
6538
6537
  return /* @__PURE__ */ jsxRuntime.jsxs(
6539
6538
  Collapsible,
6540
6539
  {
@@ -6556,7 +6555,7 @@ function SidebarMenuGroup({
6556
6555
  }
6557
6556
  ),
6558
6557
  /* @__PURE__ */ jsxRuntime.jsx(
6559
- Icon_default,
6558
+ Icon,
6560
6559
  {
6561
6560
  name: "caret-down",
6562
6561
  size: 18,
@@ -6771,7 +6770,7 @@ var Modal = ({
6771
6770
  onClick: onClose,
6772
6771
  className: "focus:ring-primary-300 absolute top-4 right-4 cursor-pointer rounded-sm p-1 text-gray-900 opacity-70 transition hover:opacity-100 focus:ring-2 focus:outline-none",
6773
6772
  "aria-label": "Close",
6774
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times", size: 24 })
6773
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times", size: 24 })
6775
6774
  }
6776
6775
  ),
6777
6776
  hasHeader && /* @__PURE__ */ jsxRuntime.jsx(ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
@@ -6786,7 +6785,7 @@ var Modal = ({
6786
6785
  onClick: onClose,
6787
6786
  className: "focus:ring-primary-300 mt-0.5 shrink-0 cursor-pointer rounded-sm p-1 text-gray-900 opacity-70 transition hover:opacity-100 focus:ring-2 focus:outline-none",
6788
6787
  "aria-label": "Close",
6789
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times", size: 20 })
6788
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times", size: 20 })
6790
6789
  }
6791
6790
  )
6792
6791
  ] }) }),
@@ -7266,9 +7265,9 @@ var ModalPreviewAttachment = ({
7266
7265
  children: [
7267
7266
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full justify-between", children: [
7268
7267
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
7269
- /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times", color: "white" }) }),
7268
+ /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times", color: "white" }) }),
7270
7269
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center", children: [
7271
- iconName && /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: iconName, size: 48 }),
7270
+ iconName && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: iconName, size: 48 }),
7272
7271
  /* @__PURE__ */ jsxRuntime.jsx(
7273
7272
  Text,
7274
7273
  {
@@ -7379,7 +7378,7 @@ var ZoomController = ({
7379
7378
  onClick: onZoomIn,
7380
7379
  disabled: zoom >= maxZoom,
7381
7380
  type: "button",
7382
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "search-plus-fill" })
7381
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search-plus-fill" })
7383
7382
  }
7384
7383
  ),
7385
7384
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7389,11 +7388,11 @@ var ZoomController = ({
7389
7388
  onClick: onZoomOut,
7390
7389
  disabled: zoom <= minZoom,
7391
7390
  type: "button",
7392
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "search-minus-fill" })
7391
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search-minus-fill" })
7393
7392
  }
7394
7393
  ),
7395
7394
  /* @__PURE__ */ jsxRuntime.jsxs(Button, { color: "secondary", onClick: onDownload, children: [
7396
- /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "download" }),
7395
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "download" }),
7397
7396
  /* @__PURE__ */ jsxRuntime.jsx(
7398
7397
  Text,
7399
7398
  {
@@ -7483,7 +7482,7 @@ var PreviewItem = ({
7483
7482
  alt: data.file.name,
7484
7483
  className: "size-11 rounded-md object-cover"
7485
7484
  }
7486
- ) : /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: iconName ?? "doc", className: "size-11" })
7485
+ ) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: iconName ?? "doc", className: "size-11" })
7487
7486
  }
7488
7487
  ),
7489
7488
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
@@ -7528,11 +7527,11 @@ var PreviewItem = ({
7528
7527
  disabled,
7529
7528
  className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
7530
7529
  title: "Replace file",
7531
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "rotate-right", className: "size-4 text-gray-700" })
7530
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "rotate-right", className: "size-4 text-gray-700" })
7532
7531
  }
7533
7532
  ),
7534
7533
  /* @__PURE__ */ jsxRuntime.jsx(
7535
- Icon_default,
7534
+ Icon,
7536
7535
  {
7537
7536
  name: "exclamation-triangle",
7538
7537
  className: "text-danger-500 size-4"
@@ -7546,7 +7545,7 @@ var PreviewItem = ({
7546
7545
  onClick: onRemove,
7547
7546
  disabled,
7548
7547
  className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
7549
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times", className: "size-4 text-gray-700" })
7548
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times", className: "size-4 text-gray-700" })
7550
7549
  }
7551
7550
  )
7552
7551
  ] })
@@ -7771,8 +7770,8 @@ var InputFile = React287.forwardRef(
7771
7770
  onDragOver: variant === "large" ? handleDragOver : void 0,
7772
7771
  onDrop: variant === "large" ? handleDrop : void 0,
7773
7772
  children: [
7774
- isDefault && /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "upload" }),
7775
- isSized && /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "cloud-upload", size: variant === "large" ? 125 : 40 }),
7773
+ isDefault && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "upload" }),
7774
+ isSized && /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "cloud-upload", size: variant === "large" ? 125 : 40 }),
7776
7775
  /* @__PURE__ */ jsxRuntime.jsxs(
7777
7776
  "div",
7778
7777
  {
@@ -8106,7 +8105,7 @@ var ButtonIcon = ({
8106
8105
  onClick,
8107
8106
  disabled,
8108
8107
  children: /* @__PURE__ */ jsxRuntime.jsx(
8109
- Icon_default,
8108
+ Icon,
8110
8109
  {
8111
8110
  name: icon,
8112
8111
  className: cn(
@@ -8372,7 +8371,7 @@ function TableCellHead({
8372
8371
  type: "button",
8373
8372
  children: [
8374
8373
  /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "h5", variant: "t1", weight: "semibold", children: value }),
8375
- /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "sort-vertical", size: 16, className: "shrink-0" })
8374
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "sort-vertical", size: 16, className: "shrink-0" })
8376
8375
  ]
8377
8376
  }
8378
8377
  ) : children });
@@ -8473,7 +8472,7 @@ function TablePagination({
8473
8472
  value,
8474
8473
  rightAddonClassName: "pl-0! pr-1!",
8475
8474
  rightAddon: /* @__PURE__ */ jsxRuntime.jsx(
8476
- Icon_default,
8475
+ Icon,
8477
8476
  {
8478
8477
  name: "angle-down-small",
8479
8478
  className: "text-gray-900",
@@ -8526,7 +8525,7 @@ function TablePagination({
8526
8525
  disabled: currentPage <= 1,
8527
8526
  className: "cursor-pointer disabled:opacity-40",
8528
8527
  onClick: () => prevOnClick?.(),
8529
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "angles-left-small", size: 20 })
8528
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "angles-left-small", size: 20 })
8530
8529
  }
8531
8530
  ),
8532
8531
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children: generatePages(currentPage, totalPage).map((item, index) => {
@@ -8568,7 +8567,7 @@ function TablePagination({
8568
8567
  disabled: currentPage >= totalPage,
8569
8568
  className: "cursor-pointer disabled:opacity-40",
8570
8569
  onClick: () => nextOnClick?.(),
8571
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "angles-right-small", size: 20 })
8570
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "angles-right-small", size: 20 })
8572
8571
  }
8573
8572
  )
8574
8573
  ] })
@@ -8739,7 +8738,7 @@ var ButtonNavigator = ({
8739
8738
  size: "icon",
8740
8739
  color: "gray",
8741
8740
  className: cn("bg-gray-500 hover:bg-gray-600", className),
8742
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: icon, className: "text-white", size: size_map[size] })
8741
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, className: "text-white", size: size_map[size] })
8743
8742
  }
8744
8743
  );
8745
8744
  };
@@ -8982,7 +8981,7 @@ function ToastCard({
8982
8981
  children: [
8983
8982
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
8984
8983
  icon && /* @__PURE__ */ jsxRuntime.jsx(
8985
- Icon_default,
8984
+ Icon,
8986
8985
  {
8987
8986
  name: icon,
8988
8987
  size: iconSize,
@@ -9020,7 +9019,7 @@ function ToastCard({
9020
9019
  }
9021
9020
  ),
9022
9021
  /* @__PURE__ */ jsxRuntime.jsx("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsx(
9023
- Icon_default,
9022
+ Icon,
9024
9023
  {
9025
9024
  name: "times",
9026
9025
  size: 20,
@@ -9331,7 +9330,7 @@ var Select = ({
9331
9330
  {
9332
9331
  onClick: (e) => handleRemove(item, e),
9333
9332
  className: "text-primary-1000 rounded p-0.5 hover:bg-blue-200",
9334
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times-circle", size: 14 })
9333
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times-circle", size: 14 })
9335
9334
  }
9336
9335
  )
9337
9336
  ]
@@ -9379,11 +9378,11 @@ var Select = ({
9379
9378
  type: "button",
9380
9379
  onClick: handleClear,
9381
9380
  className: "cursor-pointer rounded text-center text-gray-700",
9382
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "times-circle", size: 20 })
9381
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "times-circle", size: 20 })
9383
9382
  }
9384
9383
  ),
9385
9384
  /* @__PURE__ */ jsxRuntime.jsx(
9386
- Icon_default,
9385
+ Icon,
9387
9386
  {
9388
9387
  className: "text-gray-700",
9389
9388
  name: isOpen ? "angle-up-small" : "angle-down-small",
@@ -9403,7 +9402,7 @@ var Select = ({
9403
9402
  ),
9404
9403
  children: [
9405
9404
  isSearchable && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 rounded-lg border border-gray-200 bg-white px-3.5 py-2.5", children: [
9406
- /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "search", size: 20, className: "text-gray-400" }),
9405
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: 20, className: "text-gray-400" }),
9407
9406
  /* @__PURE__ */ jsxRuntime.jsx(
9408
9407
  "input",
9409
9408
  {
@@ -9896,7 +9895,7 @@ function CalendarDayItem({
9896
9895
  ),
9897
9896
  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: [
9898
9897
  /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { className: "cursor-pointer", children: /* @__PURE__ */ jsxRuntime.jsx(
9899
- Icon_default,
9898
+ Icon,
9900
9899
  {
9901
9900
  name: "plus",
9902
9901
  className: "text-gray-700! opacity-0 transition-opacity group-hover:opacity-100",
@@ -10227,7 +10226,7 @@ var ButtonDropdown = ({
10227
10226
  "bg-transparent transition-colors outline-none *:duration-300 hover:bg-gray-50 focus:outline-none"
10228
10227
  ),
10229
10228
  children: /* @__PURE__ */ jsxRuntime.jsx(
10230
- Icon_default,
10229
+ Icon,
10231
10230
  {
10232
10231
  name: "arrow-down",
10233
10232
  size: size_map[size],
@@ -10673,7 +10672,7 @@ var Calendar2 = ({
10673
10672
  children: [
10674
10673
  selectedType,
10675
10674
  " ",
10676
- /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "angle-down-small", size: 20 })
10675
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "angle-down-small", size: 20 })
10677
10676
  ]
10678
10677
  }
10679
10678
  ) }),
@@ -10776,7 +10775,7 @@ var ButtonNavigation = ({
10776
10775
  type
10777
10776
  }) => {
10778
10777
  return /* @__PURE__ */ jsxRuntime.jsx("button", { onClick, children: /* @__PURE__ */ jsxRuntime.jsx(
10779
- Icon_default,
10778
+ Icon,
10780
10779
  {
10781
10780
  name: type === "next" ? "angle-right-small" : "angle-left-small",
10782
10781
  size: 30,
@@ -11157,7 +11156,7 @@ var DatePicker = ({
11157
11156
  mergedAddon: true,
11158
11157
  className: "pl-0",
11159
11158
  leftAddonClassName: "pr-1!",
11160
- leftAddon: /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "calendar", className: "text-gray-900" }),
11159
+ leftAddon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "calendar", className: "text-gray-900" }),
11161
11160
  placeholder: mode === "range" ? `${formatConfig.placeholder} - ${formatConfig.placeholder}` : formatConfig.placeholder,
11162
11161
  onChange: handleInputChange2,
11163
11162
  value: inputValue,
@@ -11329,7 +11328,7 @@ var DatePicker = ({
11329
11328
  )
11330
11329
  }
11331
11330
  ),
11332
- /* @__PURE__ */ jsxRuntime.jsx(Icon_default, { name: "minus", size: 16 }),
11331
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "minus", size: 16 }),
11333
11332
  /* @__PURE__ */ jsxRuntime.jsx(
11334
11333
  Input,
11335
11334
  {