@momo-webplatform/mobase 0.0.3 → 0.0.5

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 (193) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +83 -12
  3. package/package.json +8 -12
  4. package/publish/cjs/{src/components → components}/Accordion/Accordion.js +1 -1
  5. package/publish/cjs/{src/components → components}/Alert/Alert.js +1 -1
  6. package/publish/cjs/{src/components → components}/AlertDialog/AlertDialog.js +4 -4
  7. package/publish/cjs/{src/components → components}/Avatar/Avatar.js +1 -1
  8. package/publish/cjs/{src/components → components}/Badge/Badge.js +1 -1
  9. package/publish/cjs/{src/components → components}/Button/Button.js +2 -2
  10. package/publish/cjs/{src/components → components}/Button/index.js +2 -1
  11. package/publish/cjs/{src/components → components}/Calendar/calendar.js +4 -4
  12. package/publish/cjs/{src/components → components}/Card/Card.js +1 -1
  13. package/publish/cjs/{src/components → components}/Checkbox/Checkbox.js +1 -1
  14. package/publish/cjs/{src/components → components}/Command/command.js +1 -1
  15. package/publish/cjs/{src/components → components}/Dialog/dialog.js +1 -1
  16. package/publish/cjs/{src/components → components}/Drawer/drawer.js +1 -1
  17. package/publish/cjs/{src/components → components}/DropdownMenu/dropdownmenu.js +1 -1
  18. package/publish/cjs/{src/components → components}/HoverCard/hover-card.js +1 -1
  19. package/publish/cjs/{src/components → components}/IconButton/IconButton.js +1 -1
  20. package/publish/cjs/{src/components → components}/Input/input.js +1 -1
  21. package/publish/cjs/{src/components → components}/Label/Label.js +1 -1
  22. package/publish/cjs/{src/components → components}/Menubar/menubar.js +1 -1
  23. package/publish/cjs/{src/components → components}/NavigationMenu/navigation-menu.js +1 -1
  24. package/publish/cjs/{src/components → components}/Popover/popover.js +1 -1
  25. package/publish/cjs/{src/components → components}/Progress/Progress.js +1 -1
  26. package/publish/cjs/{src/components → components}/RadioGroup/RadioGroup.js +1 -1
  27. package/publish/cjs/{src/components → components}/Select/Select.js +1 -1
  28. package/publish/cjs/{src/components → components}/Sheet/sheet.js +1 -1
  29. package/publish/cjs/{src/components → components}/Skeleton/skeleton.js +1 -1
  30. package/publish/cjs/{src/components → components}/Slider/slider.js +1 -1
  31. package/publish/cjs/{src/components → components}/Switch/Switch.js +1 -1
  32. package/publish/cjs/{src/components → components}/Table/Table.js +1 -1
  33. package/publish/cjs/{src/components → components}/Tabs/Tabs.js +1 -1
  34. package/publish/cjs/{src/components → components}/Textarea/Textarea.js +1 -1
  35. package/publish/cjs/{src/components → components}/Toast/Toast.js +1 -1
  36. package/publish/cjs/{src/components/Tooltip → components/tooltip}/Tooltip.js +1 -1
  37. package/publish/cjs/helpers/SpinerIcon.js +7 -0
  38. package/publish/cjs/tsconfig.lib.tsbuildinfo +1 -1
  39. package/publish/esm/{src/components → components}/Accordion/Accordion.js +1 -1
  40. package/publish/esm/{src/components → components}/Alert/Alert.js +1 -1
  41. package/publish/esm/{src/components → components}/AlertDialog/AlertDialog.js +2 -2
  42. package/publish/esm/{src/components → components}/Avatar/Avatar.js +1 -1
  43. package/publish/esm/{src/components → components}/Badge/Badge.js +1 -1
  44. package/publish/esm/{src/components → components}/Button/Button.js +2 -2
  45. package/publish/esm/components/Button/index.d.ts +2 -0
  46. package/publish/esm/components/Button/index.js +1 -0
  47. package/publish/esm/{src/components → components}/Calendar/calendar.js +3 -3
  48. package/publish/esm/{src/components → components}/Card/Card.js +1 -1
  49. package/publish/esm/{src/components → components}/Checkbox/Checkbox.js +1 -1
  50. package/publish/esm/{src/components → components}/Command/command.js +1 -1
  51. package/publish/esm/{src/components → components}/Dialog/dialog.js +1 -1
  52. package/publish/esm/{src/components → components}/Drawer/drawer.js +1 -1
  53. package/publish/esm/{src/components → components}/DropdownMenu/dropdownmenu.js +1 -1
  54. package/publish/esm/{src/components → components}/HoverCard/hover-card.js +1 -1
  55. package/publish/esm/{src/components → components}/IconButton/IconButton.js +1 -1
  56. package/publish/esm/{src/components → components}/Input/input.js +1 -1
  57. package/publish/esm/{src/components → components}/Label/Label.js +1 -1
  58. package/publish/esm/{src/components → components}/Menubar/menubar.js +1 -1
  59. package/publish/esm/{src/components → components}/NavigationMenu/navigation-menu.js +1 -1
  60. package/publish/esm/{src/components → components}/Popover/popover.js +1 -1
  61. package/publish/esm/{src/components → components}/Progress/Progress.js +1 -1
  62. package/publish/esm/{src/components → components}/RadioGroup/RadioGroup.js +1 -1
  63. package/publish/esm/{src/components → components}/Select/Select.js +1 -1
  64. package/publish/esm/{src/components → components}/Sheet/sheet.js +1 -1
  65. package/publish/esm/{src/components → components}/Skeleton/skeleton.js +1 -1
  66. package/publish/esm/{src/components → components}/Slider/slider.js +1 -1
  67. package/publish/esm/{src/components → components}/Switch/Switch.js +1 -1
  68. package/publish/esm/{src/components → components}/Table/Table.js +1 -1
  69. package/publish/esm/{src/components → components}/Tabs/Tabs.js +1 -1
  70. package/publish/esm/{src/components → components}/Textarea/Textarea.js +1 -1
  71. package/publish/esm/{src/components → components}/Toast/Toast.js +1 -1
  72. package/publish/esm/{src/components/Tooltip → components/tooltip}/Tooltip.js +1 -1
  73. package/publish/esm/helpers/SpinerIcon.d.ts +6 -0
  74. package/publish/esm/helpers/SpinerIcon.js +5 -0
  75. package/publish/esm/tsconfig.lib.tsbuildinfo +1 -1
  76. package/publish/cjs/components/ui/button.js +0 -60
  77. package/publish/cjs/src/components/Pagination/Pagination.js +0 -52
  78. package/publish/esm/components/ui/button.d.ts +0 -11
  79. package/publish/esm/components/ui/button.js +0 -33
  80. package/publish/esm/src/components/Button/index.d.ts +0 -2
  81. package/publish/esm/src/components/Button/index.js +0 -1
  82. package/publish/esm/src/components/Pagination/Pagination.d.ts +0 -19
  83. package/publish/esm/src/components/Pagination/Pagination.js +0 -20
  84. /package/publish/cjs/{src/components → components}/Accordion/index.js +0 -0
  85. /package/publish/cjs/{src/components → components}/AlertDialog/index.js +0 -0
  86. /package/publish/cjs/{src/components → components}/Avatar/index.js +0 -0
  87. /package/publish/cjs/{src/components → components}/Checkbox/index.js +0 -0
  88. /package/publish/cjs/{src/components → components}/Collapsible/collapsible.js +0 -0
  89. /package/publish/cjs/{src/components → components}/IconButton/index.js +0 -0
  90. /package/publish/cjs/{src/components → components}/RadioGroup/Radio.js +0 -0
  91. /package/publish/cjs/{src/components → components}/RadioGroup/index.js +0 -0
  92. /package/publish/cjs/{src/components → components}/Switch/index.js +0 -0
  93. /package/publish/cjs/{src/components → components}/Toast/toaster.js +0 -0
  94. /package/publish/cjs/{src/components → components}/Toast/use-toast.js +0 -0
  95. /package/publish/cjs/{components/utils → foundation}/SpinerIcon.js +0 -0
  96. /package/publish/cjs/{src/helpers → helpers}/clone-deep.js +0 -0
  97. /package/publish/cjs/{src/helpers → helpers}/clone-deep.spec.js +0 -0
  98. /package/publish/cjs/{src/helpers → helpers}/generic-forward-ref.js +0 -0
  99. /package/publish/cjs/{src/helpers → helpers}/http.js +0 -0
  100. /package/publish/cjs/{src/helpers → helpers}/is-client.js +0 -0
  101. /package/publish/cjs/{src/helpers → helpers}/is-object.js +0 -0
  102. /package/publish/cjs/{src/helpers → helpers}/is-object.spec.js +0 -0
  103. /package/publish/cjs/{src/helpers → helpers}/merge-deep.js +0 -0
  104. /package/publish/cjs/{src/helpers → helpers}/merge-deep.spec.js +0 -0
  105. /package/publish/cjs/{src/helpers → helpers}/omit.js +0 -0
  106. /package/publish/cjs/{src/helpers → helpers}/omit.spec.js +0 -0
  107. /package/publish/cjs/{lib → helpers}/utils.js +0 -0
  108. /package/publish/cjs/{src/index.js → index.js} +0 -0
  109. /package/publish/cjs/{src/types → types}/index.js +0 -0
  110. /package/publish/esm/{src/components → components}/Accordion/Accordion.d.ts +0 -0
  111. /package/publish/esm/{src/components → components}/Accordion/index.d.ts +0 -0
  112. /package/publish/esm/{src/components → components}/Accordion/index.js +0 -0
  113. /package/publish/esm/{src/components → components}/Alert/Alert.d.ts +0 -0
  114. /package/publish/esm/{src/components → components}/AlertDialog/AlertDialog.d.ts +0 -0
  115. /package/publish/esm/{src/components → components}/AlertDialog/index.d.ts +0 -0
  116. /package/publish/esm/{src/components → components}/AlertDialog/index.js +0 -0
  117. /package/publish/esm/{src/components → components}/Avatar/Avatar.d.ts +0 -0
  118. /package/publish/esm/{src/components → components}/Avatar/index.d.ts +0 -0
  119. /package/publish/esm/{src/components → components}/Avatar/index.js +0 -0
  120. /package/publish/esm/{src/components → components}/Badge/Badge.d.ts +0 -0
  121. /package/publish/esm/{src/components → components}/Button/Button.d.ts +0 -0
  122. /package/publish/esm/{src/components → components}/Calendar/calendar.d.ts +0 -0
  123. /package/publish/esm/{src/components → components}/Card/Card.d.ts +0 -0
  124. /package/publish/esm/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
  125. /package/publish/esm/{src/components → components}/Checkbox/index.d.ts +0 -0
  126. /package/publish/esm/{src/components → components}/Checkbox/index.js +0 -0
  127. /package/publish/esm/{src/components → components}/Collapsible/collapsible.d.ts +0 -0
  128. /package/publish/esm/{src/components → components}/Collapsible/collapsible.js +0 -0
  129. /package/publish/esm/{src/components → components}/Command/command.d.ts +0 -0
  130. /package/publish/esm/{src/components → components}/Dialog/dialog.d.ts +0 -0
  131. /package/publish/esm/{src/components → components}/Drawer/drawer.d.ts +0 -0
  132. /package/publish/esm/{src/components → components}/DropdownMenu/dropdownmenu.d.ts +0 -0
  133. /package/publish/esm/{src/components → components}/HoverCard/hover-card.d.ts +0 -0
  134. /package/publish/esm/{src/components → components}/IconButton/IconButton.d.ts +0 -0
  135. /package/publish/esm/{src/components → components}/IconButton/index.d.ts +0 -0
  136. /package/publish/esm/{src/components → components}/IconButton/index.js +0 -0
  137. /package/publish/esm/{src/components → components}/Input/input.d.ts +0 -0
  138. /package/publish/esm/{src/components → components}/Label/Label.d.ts +0 -0
  139. /package/publish/esm/{src/components → components}/Menubar/menubar.d.ts +0 -0
  140. /package/publish/esm/{src/components → components}/NavigationMenu/navigation-menu.d.ts +0 -0
  141. /package/publish/esm/{src/components → components}/Popover/popover.d.ts +0 -0
  142. /package/publish/esm/{src/components → components}/Progress/Progress.d.ts +0 -0
  143. /package/publish/esm/{src/components → components}/RadioGroup/Radio.d.ts +0 -0
  144. /package/publish/esm/{src/components → components}/RadioGroup/Radio.js +0 -0
  145. /package/publish/esm/{src/components → components}/RadioGroup/RadioGroup.d.ts +0 -0
  146. /package/publish/esm/{src/components → components}/RadioGroup/index.d.ts +0 -0
  147. /package/publish/esm/{src/components → components}/RadioGroup/index.js +0 -0
  148. /package/publish/esm/{src/components → components}/Select/Select.d.ts +0 -0
  149. /package/publish/esm/{src/components → components}/Sheet/sheet.d.ts +0 -0
  150. /package/publish/esm/{src/components → components}/Skeleton/skeleton.d.ts +0 -0
  151. /package/publish/esm/{src/components → components}/Slider/slider.d.ts +0 -0
  152. /package/publish/esm/{src/components → components}/Switch/Switch.d.ts +0 -0
  153. /package/publish/esm/{src/components → components}/Switch/index.d.ts +0 -0
  154. /package/publish/esm/{src/components → components}/Switch/index.js +0 -0
  155. /package/publish/esm/{src/components → components}/Table/Table.d.ts +0 -0
  156. /package/publish/esm/{src/components → components}/Tabs/Tabs.d.ts +0 -0
  157. /package/publish/esm/{src/components → components}/Textarea/Textarea.d.ts +0 -0
  158. /package/publish/esm/{src/components → components}/Toast/Toast.d.ts +0 -0
  159. /package/publish/esm/{src/components → components}/Toast/toaster.d.ts +0 -0
  160. /package/publish/esm/{src/components → components}/Toast/toaster.js +0 -0
  161. /package/publish/esm/{src/components → components}/Toast/use-toast.d.ts +0 -0
  162. /package/publish/esm/{src/components → components}/Toast/use-toast.js +0 -0
  163. /package/publish/esm/{src/components/Tooltip → components/tooltip}/Tooltip.d.ts +0 -0
  164. /package/publish/esm/{components/utils → foundation}/SpinerIcon.d.ts +0 -0
  165. /package/publish/esm/{components/utils → foundation}/SpinerIcon.js +0 -0
  166. /package/publish/esm/{src/helpers → helpers}/clone-deep.d.ts +0 -0
  167. /package/publish/esm/{src/helpers → helpers}/clone-deep.js +0 -0
  168. /package/publish/esm/{src/helpers → helpers}/clone-deep.spec.d.ts +0 -0
  169. /package/publish/esm/{src/helpers → helpers}/clone-deep.spec.js +0 -0
  170. /package/publish/esm/{src/helpers → helpers}/generic-forward-ref.d.ts +0 -0
  171. /package/publish/esm/{src/helpers → helpers}/generic-forward-ref.js +0 -0
  172. /package/publish/esm/{src/helpers → helpers}/http.d.ts +0 -0
  173. /package/publish/esm/{src/helpers → helpers}/http.js +0 -0
  174. /package/publish/esm/{src/helpers → helpers}/is-client.d.ts +0 -0
  175. /package/publish/esm/{src/helpers → helpers}/is-client.js +0 -0
  176. /package/publish/esm/{src/helpers → helpers}/is-object.d.ts +0 -0
  177. /package/publish/esm/{src/helpers → helpers}/is-object.js +0 -0
  178. /package/publish/esm/{src/helpers → helpers}/is-object.spec.d.ts +0 -0
  179. /package/publish/esm/{src/helpers → helpers}/is-object.spec.js +0 -0
  180. /package/publish/esm/{src/helpers → helpers}/merge-deep.d.ts +0 -0
  181. /package/publish/esm/{src/helpers → helpers}/merge-deep.js +0 -0
  182. /package/publish/esm/{src/helpers → helpers}/merge-deep.spec.d.ts +0 -0
  183. /package/publish/esm/{src/helpers → helpers}/merge-deep.spec.js +0 -0
  184. /package/publish/esm/{src/helpers → helpers}/omit.d.ts +0 -0
  185. /package/publish/esm/{src/helpers → helpers}/omit.js +0 -0
  186. /package/publish/esm/{src/helpers → helpers}/omit.spec.d.ts +0 -0
  187. /package/publish/esm/{src/helpers → helpers}/omit.spec.js +0 -0
  188. /package/publish/esm/{lib → helpers}/utils.d.ts +0 -0
  189. /package/publish/esm/{lib → helpers}/utils.js +0 -0
  190. /package/publish/esm/{src/index.d.ts → index.d.ts} +0 -0
  191. /package/publish/esm/{src/index.js → index.js} +0 -0
  192. /package/publish/esm/{src/types → types}/index.d.ts +0 -0
  193. /package/publish/esm/{src/types → types}/index.js +0 -0
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
4
  import { ChevronDown } from "lucide-react";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  // const Accordion = AccordionPrimitive.Root;
7
7
  const Accordion = React.forwardRef(({ className, ...props }, ref) => (_jsx(AccordionPrimitive.Root, { ref: ref, ...props })));
8
8
  Accordion.displayName = "AccordionRoot";
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { cva } from "class-variance-authority";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  const alertVariants = cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
6
6
  variants: {
7
7
  variant: {
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
- import { cn } from "@/lib/utils";
5
- import { buttonVariants } from "@/components/ui/button";
4
+ import { cn } from "@/src/helpers/utils";
5
+ import { buttonVariants } from "@/src/components/Button";
6
6
  const AlertDialog = AlertDialogPrimitive.Root;
7
7
  const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
8
8
  const AlertDialogPortal = AlertDialogPrimitive.Portal;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  import { cva } from "class-variance-authority";
6
6
  /* -------------------------------------------------------------------------------------------------
7
7
  * AvatarVariants
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cva } from "class-variance-authority";
3
- import { cn } from "@/lib/utils";
3
+ import { cn } from "@/src/helpers/utils";
4
4
  const badgeVariants = cva("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold", {
5
5
  variants: {
6
6
  variant: {
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import * as React from "react";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
4
  import { cva } from "class-variance-authority";
5
- import { cn } from "@/lib/utils";
6
- import SpinerIcon from "~/components/utils/SpinerIcon";
5
+ import { cn } from "@/src/helpers/utils";
6
+ import SpinerIcon from "@/src/foundation/SpinerIcon";
7
7
  // /dwd
8
8
  const buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent", {
9
9
  variants: {
@@ -0,0 +1,2 @@
1
+ export { Button, buttonVariants } from "./Button";
2
+ export type { ButtonProps } from "./Button";
@@ -0,0 +1 @@
1
+ export { Button, buttonVariants } from "./Button";
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ChevronLeft, ChevronRight } from "lucide-react";
3
3
  import { DayPicker } from "react-day-picker";
4
- import { cn } from "@/lib/utils";
5
- import { buttonVariants } from "@/components/ui/button";
4
+ import { cn } from "@/src/helpers/utils";
5
+ import { buttonVariants } from "@/src/components/Button";
6
6
  function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
7
7
  return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("p-3", className), classNames: {
8
8
  months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
@@ -18,7 +18,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
18
18
  head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
19
19
  row: "flex w-full mt-2",
20
20
  cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
21
- day: cn(buttonVariants({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
21
+ day: cn(buttonVariants({ variant: "outline" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
22
22
  day_range_end: "day-range-end",
23
23
  day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
24
24
  day_today: "bg-accent text-accent-foreground",
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { cn } from "@/lib/utils";
3
+ import { cn } from "@/src/helpers/utils";
4
4
  const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className), ...props })));
5
5
  Card.displayName = "Card";
6
6
  const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
@@ -5,7 +5,7 @@ import { Check } from "lucide-react";
5
5
  import { Primitive } from "@radix-ui/react-primitive";
6
6
  import { createContextScope } from "@radix-ui/react-context";
7
7
  import { Presence } from "@radix-ui/react-presence";
8
- import { cn } from "@/lib/utils";
8
+ import { cn } from "@/src/helpers/utils";
9
9
  /* -------------------------------------------------------------------------------------------------
10
10
  * Checkbox
11
11
  * -----------------------------------------------------------------------------------------------*/
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { Command as CommandPrimitive } from "cmdk";
4
4
  import { Search } from "lucide-react";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  import { Dialog, DialogContent } from "~/src/components/Dialog/dialog";
7
7
  const Command = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive, { ref: ref, className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className), ...props })));
8
8
  Command.displayName = CommandPrimitive.displayName;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as DialogPrimitive from "@radix-ui/react-dialog";
4
4
  import { X } from "lucide-react";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  const Dialog = DialogPrimitive.Root;
7
7
  const DialogTrigger = DialogPrimitive.Trigger;
8
8
  const DialogPortal = DialogPrimitive.Portal;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { Drawer as DrawerPrimitive } from "vaul";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  const Drawer = ({ shouldScaleBackground = true, ...props }) => (_jsx(DrawerPrimitive.Root, { shouldScaleBackground: shouldScaleBackground, ...props }));
6
6
  Drawer.displayName = "Drawer";
7
7
  const DrawerTrigger = DrawerPrimitive.Trigger;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
4
4
  import { Check, ChevronRight, Circle } from "lucide-react";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  const DropdownMenu = DropdownMenuPrimitive.Root;
7
7
  const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
8
8
  const DropdownMenuGroup = DropdownMenuPrimitive.Group;
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  const HoverCard = HoverCardPrimitive.Root;
7
7
  const HoverCardTrigger = HoverCardPrimitive.Trigger;
8
8
  const HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (_jsx(HoverCardPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className), ...props })));
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { Slot } from "@radix-ui/react-slot";
4
4
  import { cva } from "class-variance-authority";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  // /dwd
7
7
  const iconButtonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent", {
8
8
  variants: {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { cn } from "@/lib/utils";
3
+ import { cn } from "@/src/helpers/utils";
4
4
  const Input = React.forwardRef(({ className, type, ...props }, ref) => {
5
5
  return (_jsx("input", { type: type, className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref, ...props }));
6
6
  });
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as LabelPrimitive from "@radix-ui/react-label";
4
4
  import { cva } from "class-variance-authority";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  const labelVariants = cva("text-sm font-normal leading-none disabled:opacity-50 text-gray-900 peer-disabled:cursor-not-allowed peer-disabled:opacity-50");
7
7
  const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx(LabelPrimitive.Root, { ref: ref, className: cn(labelVariants(), className), ...props })));
8
8
  Label.displayName = LabelPrimitive.Root.displayName;
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
5
5
  import { Check, ChevronRight, Circle } from "lucide-react";
6
- import { cn } from "@/lib/utils";
6
+ import { cn } from "@/src/helpers/utils";
7
7
  const MenubarMenu = MenubarPrimitive.Menu;
8
8
  const MenubarGroup = MenubarPrimitive.Group;
9
9
  const MenubarPortal = MenubarPrimitive.Portal;
@@ -4,7 +4,7 @@ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
4
4
  import { cva } from "class-variance-authority";
5
5
  import { ChevronDown } from "lucide-react";
6
6
  import Link from "next/link";
7
- import { cn } from "@/lib/utils";
7
+ import { cn } from "@/src/helpers/utils";
8
8
  const NavigationMenu = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(NavigationMenuPrimitive.Root, { ref: ref, className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className), ...props, children: [children, _jsx(NavigationMenuViewport, {})] })));
9
9
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
10
10
  const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => (_jsx(NavigationMenuPrimitive.List, { ref: ref, className: cn("group flex flex-1 list-none items-center justify-center space-x-1", className), ...props })));
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as PopoverPrimitive from "@radix-ui/react-popover";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  const Popover = PopoverPrimitive.Root;
6
6
  const PopoverTrigger = PopoverPrimitive.Trigger;
7
7
  const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className), ...props }) })));
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as ProgressPrimitive from "@radix-ui/react-progress";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  const Progress = React.forwardRef(({ className, value, ...props }, ref) => (_jsx(ProgressPrimitive.Root, { ref: ref, className: cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className), ...props, children: _jsx(ProgressPrimitive.Indicator, { className: "h-full w-full flex-1 bg-primary transition-all", style: { transform: `translateX(-${100 - (value || 0)}%)` } }) })));
6
6
  Progress.displayName = ProgressPrimitive.Root.displayName;
7
7
  export { Progress };
@@ -4,7 +4,7 @@ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
4
4
  import { Circle } from "lucide-react";
5
5
  import { createContextScope } from "@radix-ui/react-context";
6
6
  import { createRovingFocusGroupScope } from "@radix-ui/react-roving-focus";
7
- import { cn } from "@/lib/utils";
7
+ import { cn } from "@/src/helpers/utils";
8
8
  import { createRadioScope } from "./Radio";
9
9
  /* -------------------------------------------------------------------------------------------------
10
10
  * RadioGroup
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { ChevronDownIcon, ChevronUpIcon, CheckIcon } from '@heroicons/react/solid';
4
4
  import * as SelectPrimitive from "@radix-ui/react-select";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  const Select = SelectPrimitive.Root;
7
7
  const SelectGroup = SelectPrimitive.Group;
8
8
  const SelectValue = SelectPrimitive.Value;
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import * as SheetPrimitive from "@radix-ui/react-dialog";
4
4
  import { cva } from "class-variance-authority";
5
5
  import { X } from "lucide-react";
6
- import { cn } from "@/lib/utils";
6
+ import { cn } from "@/src/helpers/utils";
7
7
  const Sheet = SheetPrimitive.Root;
8
8
  const SheetTrigger = SheetPrimitive.Trigger;
9
9
  const SheetClose = SheetPrimitive.Close;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "@/lib/utils";
2
+ import { cn } from "@/src/helpers/utils";
3
3
  function Skeleton({ className, ...props }) {
4
4
  return (_jsx("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props }));
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as SliderPrimitive from "@radix-ui/react-slider";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  const Slider = React.forwardRef(({ className, ...props }, ref) => (_jsxs(SliderPrimitive.Root, { ref: ref, className: cn("relative flex w-full touch-none select-none items-center", className), ...props, children: [_jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: _jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }), _jsx(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })] })));
6
6
  Slider.displayName = SliderPrimitive.Root.displayName;
7
7
  export { Slider };
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import * as SwitchPrimitives from "@radix-ui/react-switch";
4
4
  import { createContextScope } from "@radix-ui/react-context";
5
5
  import { Primitive } from "@radix-ui/react-primitive";
6
- import { cn } from "@/lib/utils";
6
+ import { cn } from "@/src/helpers/utils";
7
7
  const SWITCH_NAME = "Switch";
8
8
  export const [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME);
9
9
  export const [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import { cn } from "@/lib/utils";
3
+ import { cn } from "@/src/helpers/utils";
4
4
  const Table = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "relative w-full overflow-auto", children: _jsx("table", { ref: ref, className: cn("w-full caption-bottom text-sm", className), ...props }) })));
5
5
  Table.displayName = "Table";
6
6
  const TableHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("thead", { ref: ref, className: cn("[&_tr]:border-b", className), ...props })));
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import * as TabsPrimitive from "@radix-ui/react-tabs";
5
- import { cn } from "@/lib/utils";
5
+ import { cn } from "@/src/helpers/utils";
6
6
  const Tabs = TabsPrimitive.Root;
7
7
  const TabsList = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", className), ...props })));
8
8
  TabsList.displayName = TabsPrimitive.List.displayName;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "@/lib/utils";
2
+ import { cn } from "@/src/helpers/utils";
3
3
  import React from "react";
4
4
  const Textarea = React.forwardRef(({ className, ...props }, ref) => {
5
5
  return (_jsx("textarea", { className: cn("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref, ...props }));
@@ -3,7 +3,7 @@ import * as React from "react";
3
3
  import * as ToastPrimitives from "@radix-ui/react-toast";
4
4
  import { cva } from "class-variance-authority";
5
5
  import { X } from "lucide-react";
6
- import { cn } from "@/lib/utils";
6
+ import { cn } from "@/src/helpers/utils";
7
7
  const ToastProvider = ToastPrimitives.Provider;
8
8
  const ToastViewport = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Viewport, { ref: ref, className: cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", className), ...props })));
9
9
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
4
- import { cn } from "@/lib/utils";
4
+ import { cn } from "@/src/helpers/utils";
5
5
  const TooltipProvider = TooltipPrimitive.Provider;
6
6
  const Tooltip = TooltipPrimitive.Root;
7
7
  const TooltipTrigger = TooltipPrimitive.Trigger;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ type SpinerIconProps = {
3
+ className?: string;
4
+ };
5
+ declare const SpinerIcon: React.FC<SpinerIconProps>;
6
+ export default SpinerIcon;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const SpinerIcon = ({ className }) => {
3
+ return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "none", className: `${className}`, children: [_jsx("path", { opacity: "0.9", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z", fill: "currentColor" }), _jsx("path", { opacity: "0.2", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z", fill: "currentColor" }), _jsx("path", { opacity: "0.25", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z", fill: "currentColor" }), _jsx("path", { opacity: "0.3", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z", fill: "currentColor" }), _jsx("path", { opacity: "0.35", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z", fill: "currentColor" }), _jsx("path", { opacity: "0.4", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z", fill: "currentColor" }), _jsx("path", { opacity: "0.45", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z", fill: "currentColor" }), _jsx("path", { opacity: "0.5", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z", fill: "currentColor" }), _jsx("path", { opacity: "0.55", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z", fill: "currentColor" }), _jsx("path", { opacity: "0.65", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z", fill: "currentColor" }), _jsx("path", { opacity: "0.75", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z", fill: "currentColor" }), _jsx("path", { opacity: "0.85", "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z", fill: "currentColor" })] }));
4
+ };
5
+ export default SpinerIcon;