@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.
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.js CHANGED
@@ -6033,7 +6033,6 @@ var Icon = ({
6033
6033
  }
6034
6034
  return /* @__PURE__ */ jsx(Component, { size, color, className });
6035
6035
  };
6036
- var Icon_default = Icon;
6037
6036
  function Sheet({ ...props }) {
6038
6037
  return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
6039
6038
  }
@@ -6362,7 +6361,7 @@ function SidebarTrigger({
6362
6361
  },
6363
6362
  ...props,
6364
6363
  children: [
6365
- /* @__PURE__ */ jsx(Icon_default, { name: "layout-web" }),
6364
+ /* @__PURE__ */ jsx(Icon, { name: "layout-web" }),
6366
6365
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
6367
6366
  ]
6368
6367
  }
@@ -6444,7 +6443,7 @@ function SidebarMenuItem({
6444
6443
  "hover:bg-primary-100",
6445
6444
  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"
6446
6445
  );
6447
- const iconElement = icon !== void 0 ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsx(Icon_default, { name: "ellipse", size: 18 }) });
6446
+ const iconElement = icon !== void 0 ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsx(Icon, { name: "ellipse", size: 18 }) });
6448
6447
  return /* @__PURE__ */ jsx(
6449
6448
  "li",
6450
6449
  {
@@ -6506,7 +6505,7 @@ function SidebarMenuGroup({
6506
6505
  "cursor-pointer",
6507
6506
  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"
6508
6507
  );
6509
- const iconElement = icon !== void 0 ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsx(Icon_default, { name: "ellipse", size: 18 }) });
6508
+ const iconElement = icon !== void 0 ? /* @__PURE__ */ jsx("span", { className: "shrink-0", children: icon }) : /* @__PURE__ */ jsx("span", { className: "shrink-0", children: /* @__PURE__ */ jsx(Icon, { name: "ellipse", size: 18 }) });
6510
6509
  return /* @__PURE__ */ jsxs(
6511
6510
  Collapsible,
6512
6511
  {
@@ -6528,7 +6527,7 @@ function SidebarMenuGroup({
6528
6527
  }
6529
6528
  ),
6530
6529
  /* @__PURE__ */ jsx(
6531
- Icon_default,
6530
+ Icon,
6532
6531
  {
6533
6532
  name: "caret-down",
6534
6533
  size: 18,
@@ -6743,7 +6742,7 @@ var Modal = ({
6743
6742
  onClick: onClose,
6744
6743
  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",
6745
6744
  "aria-label": "Close",
6746
- children: /* @__PURE__ */ jsx(Icon_default, { name: "times", size: 24 })
6745
+ children: /* @__PURE__ */ jsx(Icon, { name: "times", size: 24 })
6747
6746
  }
6748
6747
  ),
6749
6748
  hasHeader && /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
@@ -6758,7 +6757,7 @@ var Modal = ({
6758
6757
  onClick: onClose,
6759
6758
  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",
6760
6759
  "aria-label": "Close",
6761
- children: /* @__PURE__ */ jsx(Icon_default, { name: "times", size: 20 })
6760
+ children: /* @__PURE__ */ jsx(Icon, { name: "times", size: 20 })
6762
6761
  }
6763
6762
  )
6764
6763
  ] }) }),
@@ -7238,9 +7237,9 @@ var ModalPreviewAttachment = ({
7238
7237
  children: [
7239
7238
  /* @__PURE__ */ jsxs("div", { className: "flex w-full justify-between", children: [
7240
7239
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
7241
- /* @__PURE__ */ jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsx(Icon_default, { name: "times", color: "white" }) }),
7240
+ /* @__PURE__ */ jsx("button", { onClick: onClose, className: "cursor-pointer", type: "button", children: /* @__PURE__ */ jsx(Icon, { name: "times", color: "white" }) }),
7242
7241
  /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
7243
- iconName && /* @__PURE__ */ jsx(Icon_default, { name: iconName, size: 48 }),
7242
+ iconName && /* @__PURE__ */ jsx(Icon, { name: iconName, size: 48 }),
7244
7243
  /* @__PURE__ */ jsx(
7245
7244
  Text,
7246
7245
  {
@@ -7351,7 +7350,7 @@ var ZoomController = ({
7351
7350
  onClick: onZoomIn,
7352
7351
  disabled: zoom >= maxZoom,
7353
7352
  type: "button",
7354
- children: /* @__PURE__ */ jsx(Icon_default, { name: "search-plus-fill" })
7353
+ children: /* @__PURE__ */ jsx(Icon, { name: "search-plus-fill" })
7355
7354
  }
7356
7355
  ),
7357
7356
  /* @__PURE__ */ jsx(
@@ -7361,11 +7360,11 @@ var ZoomController = ({
7361
7360
  onClick: onZoomOut,
7362
7361
  disabled: zoom <= minZoom,
7363
7362
  type: "button",
7364
- children: /* @__PURE__ */ jsx(Icon_default, { name: "search-minus-fill" })
7363
+ children: /* @__PURE__ */ jsx(Icon, { name: "search-minus-fill" })
7365
7364
  }
7366
7365
  ),
7367
7366
  /* @__PURE__ */ jsxs(Button, { color: "secondary", onClick: onDownload, children: [
7368
- /* @__PURE__ */ jsx(Icon_default, { name: "download" }),
7367
+ /* @__PURE__ */ jsx(Icon, { name: "download" }),
7369
7368
  /* @__PURE__ */ jsx(
7370
7369
  Text,
7371
7370
  {
@@ -7455,7 +7454,7 @@ var PreviewItem = ({
7455
7454
  alt: data.file.name,
7456
7455
  className: "size-11 rounded-md object-cover"
7457
7456
  }
7458
- ) : /* @__PURE__ */ jsx(Icon_default, { name: iconName ?? "doc", className: "size-11" })
7457
+ ) : /* @__PURE__ */ jsx(Icon, { name: iconName ?? "doc", className: "size-11" })
7459
7458
  }
7460
7459
  ),
7461
7460
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
@@ -7500,11 +7499,11 @@ var PreviewItem = ({
7500
7499
  disabled,
7501
7500
  className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
7502
7501
  title: "Replace file",
7503
- children: /* @__PURE__ */ jsx(Icon_default, { name: "rotate-right", className: "size-4 text-gray-700" })
7502
+ children: /* @__PURE__ */ jsx(Icon, { name: "rotate-right", className: "size-4 text-gray-700" })
7504
7503
  }
7505
7504
  ),
7506
7505
  /* @__PURE__ */ jsx(
7507
- Icon_default,
7506
+ Icon,
7508
7507
  {
7509
7508
  name: "exclamation-triangle",
7510
7509
  className: "text-danger-500 size-4"
@@ -7518,7 +7517,7 @@ var PreviewItem = ({
7518
7517
  onClick: onRemove,
7519
7518
  disabled,
7520
7519
  className: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
7521
- children: /* @__PURE__ */ jsx(Icon_default, { name: "times", className: "size-4 text-gray-700" })
7520
+ children: /* @__PURE__ */ jsx(Icon, { name: "times", className: "size-4 text-gray-700" })
7522
7521
  }
7523
7522
  )
7524
7523
  ] })
@@ -7743,8 +7742,8 @@ var InputFile = forwardRef(
7743
7742
  onDragOver: variant === "large" ? handleDragOver : void 0,
7744
7743
  onDrop: variant === "large" ? handleDrop : void 0,
7745
7744
  children: [
7746
- isDefault && /* @__PURE__ */ jsx(Icon_default, { name: "upload" }),
7747
- isSized && /* @__PURE__ */ jsx(Icon_default, { name: "cloud-upload", size: variant === "large" ? 125 : 40 }),
7745
+ isDefault && /* @__PURE__ */ jsx(Icon, { name: "upload" }),
7746
+ isSized && /* @__PURE__ */ jsx(Icon, { name: "cloud-upload", size: variant === "large" ? 125 : 40 }),
7748
7747
  /* @__PURE__ */ jsxs(
7749
7748
  "div",
7750
7749
  {
@@ -8078,7 +8077,7 @@ var ButtonIcon = ({
8078
8077
  onClick,
8079
8078
  disabled,
8080
8079
  children: /* @__PURE__ */ jsx(
8081
- Icon_default,
8080
+ Icon,
8082
8081
  {
8083
8082
  name: icon,
8084
8083
  className: cn(
@@ -8344,7 +8343,7 @@ function TableCellHead({
8344
8343
  type: "button",
8345
8344
  children: [
8346
8345
  /* @__PURE__ */ jsx(Text, { as: "h5", variant: "t1", weight: "semibold", children: value }),
8347
- /* @__PURE__ */ jsx(Icon_default, { name: "sort-vertical", size: 16, className: "shrink-0" })
8346
+ /* @__PURE__ */ jsx(Icon, { name: "sort-vertical", size: 16, className: "shrink-0" })
8348
8347
  ]
8349
8348
  }
8350
8349
  ) : children });
@@ -8445,7 +8444,7 @@ function TablePagination({
8445
8444
  value,
8446
8445
  rightAddonClassName: "pl-0! pr-1!",
8447
8446
  rightAddon: /* @__PURE__ */ jsx(
8448
- Icon_default,
8447
+ Icon,
8449
8448
  {
8450
8449
  name: "angle-down-small",
8451
8450
  className: "text-gray-900",
@@ -8498,7 +8497,7 @@ function TablePagination({
8498
8497
  disabled: currentPage <= 1,
8499
8498
  className: "cursor-pointer disabled:opacity-40",
8500
8499
  onClick: () => prevOnClick?.(),
8501
- children: /* @__PURE__ */ jsx(Icon_default, { name: "angles-left-small", size: 20 })
8500
+ children: /* @__PURE__ */ jsx(Icon, { name: "angles-left-small", size: 20 })
8502
8501
  }
8503
8502
  ),
8504
8503
  /* @__PURE__ */ jsx("div", { className: "flex gap-1", children: generatePages(currentPage, totalPage).map((item, index) => {
@@ -8540,7 +8539,7 @@ function TablePagination({
8540
8539
  disabled: currentPage >= totalPage,
8541
8540
  className: "cursor-pointer disabled:opacity-40",
8542
8541
  onClick: () => nextOnClick?.(),
8543
- children: /* @__PURE__ */ jsx(Icon_default, { name: "angles-right-small", size: 20 })
8542
+ children: /* @__PURE__ */ jsx(Icon, { name: "angles-right-small", size: 20 })
8544
8543
  }
8545
8544
  )
8546
8545
  ] })
@@ -8711,7 +8710,7 @@ var ButtonNavigator = ({
8711
8710
  size: "icon",
8712
8711
  color: "gray",
8713
8712
  className: cn("bg-gray-500 hover:bg-gray-600", className),
8714
- children: /* @__PURE__ */ jsx(Icon_default, { name: icon, className: "text-white", size: size_map[size] })
8713
+ children: /* @__PURE__ */ jsx(Icon, { name: icon, className: "text-white", size: size_map[size] })
8715
8714
  }
8716
8715
  );
8717
8716
  };
@@ -8954,7 +8953,7 @@ function ToastCard({
8954
8953
  children: [
8955
8954
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
8956
8955
  icon && /* @__PURE__ */ jsx(
8957
- Icon_default,
8956
+ Icon,
8958
8957
  {
8959
8958
  name: icon,
8960
8959
  size: iconSize,
@@ -8992,7 +8991,7 @@ function ToastCard({
8992
8991
  }
8993
8992
  ),
8994
8993
  /* @__PURE__ */ jsx("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx(
8995
- Icon_default,
8994
+ Icon,
8996
8995
  {
8997
8996
  name: "times",
8998
8997
  size: 20,
@@ -9303,7 +9302,7 @@ var Select = ({
9303
9302
  {
9304
9303
  onClick: (e) => handleRemove(item, e),
9305
9304
  className: "text-primary-1000 rounded p-0.5 hover:bg-blue-200",
9306
- children: /* @__PURE__ */ jsx(Icon_default, { name: "times-circle", size: 14 })
9305
+ children: /* @__PURE__ */ jsx(Icon, { name: "times-circle", size: 14 })
9307
9306
  }
9308
9307
  )
9309
9308
  ]
@@ -9351,11 +9350,11 @@ var Select = ({
9351
9350
  type: "button",
9352
9351
  onClick: handleClear,
9353
9352
  className: "cursor-pointer rounded text-center text-gray-700",
9354
- children: /* @__PURE__ */ jsx(Icon_default, { name: "times-circle", size: 20 })
9353
+ children: /* @__PURE__ */ jsx(Icon, { name: "times-circle", size: 20 })
9355
9354
  }
9356
9355
  ),
9357
9356
  /* @__PURE__ */ jsx(
9358
- Icon_default,
9357
+ Icon,
9359
9358
  {
9360
9359
  className: "text-gray-700",
9361
9360
  name: isOpen ? "angle-up-small" : "angle-down-small",
@@ -9375,7 +9374,7 @@ var Select = ({
9375
9374
  ),
9376
9375
  children: [
9377
9376
  isSearchable && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 rounded-lg border border-gray-200 bg-white px-3.5 py-2.5", children: [
9378
- /* @__PURE__ */ jsx(Icon_default, { name: "search", size: 20, className: "text-gray-400" }),
9377
+ /* @__PURE__ */ jsx(Icon, { name: "search", size: 20, className: "text-gray-400" }),
9379
9378
  /* @__PURE__ */ jsx(
9380
9379
  "input",
9381
9380
  {
@@ -9868,7 +9867,7 @@ function CalendarDayItem({
9868
9867
  ),
9869
9868
  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: [
9870
9869
  /* @__PURE__ */ jsx(TooltipTrigger, { className: "cursor-pointer", children: /* @__PURE__ */ jsx(
9871
- Icon_default,
9870
+ Icon,
9872
9871
  {
9873
9872
  name: "plus",
9874
9873
  className: "text-gray-700! opacity-0 transition-opacity group-hover:opacity-100",
@@ -10199,7 +10198,7 @@ var ButtonDropdown = ({
10199
10198
  "bg-transparent transition-colors outline-none *:duration-300 hover:bg-gray-50 focus:outline-none"
10200
10199
  ),
10201
10200
  children: /* @__PURE__ */ jsx(
10202
- Icon_default,
10201
+ Icon,
10203
10202
  {
10204
10203
  name: "arrow-down",
10205
10204
  size: size_map[size],
@@ -10645,7 +10644,7 @@ var Calendar2 = ({
10645
10644
  children: [
10646
10645
  selectedType,
10647
10646
  " ",
10648
- /* @__PURE__ */ jsx(Icon_default, { name: "angle-down-small", size: 20 })
10647
+ /* @__PURE__ */ jsx(Icon, { name: "angle-down-small", size: 20 })
10649
10648
  ]
10650
10649
  }
10651
10650
  ) }),
@@ -10748,7 +10747,7 @@ var ButtonNavigation = ({
10748
10747
  type
10749
10748
  }) => {
10750
10749
  return /* @__PURE__ */ jsx("button", { onClick, children: /* @__PURE__ */ jsx(
10751
- Icon_default,
10750
+ Icon,
10752
10751
  {
10753
10752
  name: type === "next" ? "angle-right-small" : "angle-left-small",
10754
10753
  size: 30,
@@ -11129,7 +11128,7 @@ var DatePicker = ({
11129
11128
  mergedAddon: true,
11130
11129
  className: "pl-0",
11131
11130
  leftAddonClassName: "pr-1!",
11132
- leftAddon: /* @__PURE__ */ jsx(Icon_default, { name: "calendar", className: "text-gray-900" }),
11131
+ leftAddon: /* @__PURE__ */ jsx(Icon, { name: "calendar", className: "text-gray-900" }),
11133
11132
  placeholder: mode === "range" ? `${formatConfig.placeholder} - ${formatConfig.placeholder}` : formatConfig.placeholder,
11134
11133
  onChange: handleInputChange2,
11135
11134
  value: inputValue,
@@ -11301,7 +11300,7 @@ var DatePicker = ({
11301
11300
  )
11302
11301
  }
11303
11302
  ),
11304
- /* @__PURE__ */ jsx(Icon_default, { name: "minus", size: 16 }),
11303
+ /* @__PURE__ */ jsx(Icon, { name: "minus", size: 16 }),
11305
11304
  /* @__PURE__ */ jsx(
11306
11305
  Input,
11307
11306
  {