@customafk/lunas-ui 0.0.11 → 0.0.13

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 (220) hide show
  1. package/dist/{alert-dialog-0KwdjY-6.js → alert-dialog-CQa0TLlF.js} +1 -1
  2. package/dist/{alert-dialog-0KwdjY-6.js.map → alert-dialog-CQa0TLlF.js.map} +1 -1
  3. package/dist/{alert-dialog-BQv-ZvW9.cjs → alert-dialog-D1DFrl-0.cjs} +1 -1
  4. package/dist/{alert-dialog-BQv-ZvW9.cjs.map → alert-dialog-D1DFrl-0.cjs.map} +1 -1
  5. package/dist/{button-DIX2AwtI.d.cts → button-BAqUUT0m.d.cts} +6 -6
  6. package/dist/{button-DnN5aAEv.d.ts → button-O7LPNFsW.d.ts} +6 -6
  7. package/dist/{calendar-5D53vIAn.js → calendar-DaYVxwJx.js} +1 -1
  8. package/dist/{calendar-5D53vIAn.js.map → calendar-DaYVxwJx.js.map} +1 -1
  9. package/dist/{calendar-CPFb8F_s.cjs → calendar-DzAxQqFI.cjs} +1 -1
  10. package/dist/{calendar-CPFb8F_s.cjs.map → calendar-DzAxQqFI.cjs.map} +1 -1
  11. package/dist/cards/simple-card.d.ts +2 -2
  12. package/dist/{command-CS4JXTso.cjs → command-BaCe_FWz.cjs} +2 -2
  13. package/dist/{command-CS4JXTso.cjs.map → command-BaCe_FWz.cjs.map} +1 -1
  14. package/dist/{command-D0wTWahQ.d.ts → command-CzvzZ5v7.d.ts} +12 -12
  15. package/dist/{command-LdK9xFuR.js → command-DCJja1nB.js} +2 -2
  16. package/dist/{command-LdK9xFuR.js.map → command-DCJja1nB.js.map} +1 -1
  17. package/dist/{command-trF9N6ky.d.cts → command-DrdWHvOO.d.cts} +12 -12
  18. package/dist/data-display/statistic.d.cts +2 -2
  19. package/dist/{dialog-Cs7JBaly.js → dialog-C0AcPpDH.js} +1 -1
  20. package/dist/{dialog-Cs7JBaly.js.map → dialog-C0AcPpDH.js.map} +1 -1
  21. package/dist/{dialog-CXZOtc6v.cjs → dialog-CH0Dihp0.cjs} +1 -1
  22. package/dist/{dialog-CXZOtc6v.cjs.map → dialog-CH0Dihp0.cjs.map} +1 -1
  23. package/dist/{dialog-ODkNpSlH.d.ts → dialog-Ch71L6oE.d.ts} +12 -12
  24. package/dist/{dialog-CuqlkOcw.d.cts → dialog-DQY1Cjay.d.cts} +12 -12
  25. package/dist/dialogs/confirm-dialog.cjs +1 -1
  26. package/dist/dialogs/confirm-dialog.js +1 -1
  27. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  28. package/dist/dialogs/detail-dialog/index.js +1 -1
  29. package/dist/dialogs/error-dialog.cjs +1 -1
  30. package/dist/dialogs/error-dialog.js +1 -1
  31. package/dist/dialogs/form-dialog.cjs +1 -1
  32. package/dist/dialogs/form-dialog.d.cts +2 -2
  33. package/dist/dialogs/form-dialog.d.ts +2 -2
  34. package/dist/dialogs/form-dialog.js +1 -1
  35. package/dist/dialogs/loading-dialog.cjs +1 -1
  36. package/dist/dialogs/loading-dialog.js +1 -1
  37. package/dist/{error-dialog-DO0Bb-pi.cjs → error-dialog-BTjeT7x-.cjs} +2 -2
  38. package/dist/{error-dialog-DO0Bb-pi.cjs.map → error-dialog-BTjeT7x-.cjs.map} +1 -1
  39. package/dist/{error-dialog-D_4WL-Hj.js → error-dialog-DlhosP10.js} +2 -2
  40. package/dist/{error-dialog-D_4WL-Hj.js.map → error-dialog-DlhosP10.js.map} +1 -1
  41. package/dist/{form-wrapper-FYiHHas7.cjs → form-wrapper-CCqogufb.cjs} +2 -2
  42. package/dist/{form-wrapper-FYiHHas7.cjs.map → form-wrapper-CCqogufb.cjs.map} +1 -1
  43. package/dist/{form-wrapper-D-2Uz518.js → form-wrapper-YPIbD8rh.js} +2 -2
  44. package/dist/{form-wrapper-D-2Uz518.js.map → form-wrapper-YPIbD8rh.js.map} +1 -1
  45. package/dist/forms/combobox-field.cjs +2 -2
  46. package/dist/forms/combobox-field.d.cts +2 -2
  47. package/dist/forms/combobox-field.d.ts +2 -2
  48. package/dist/forms/combobox-field.js +2 -2
  49. package/dist/forms/date-field.cjs +1 -1
  50. package/dist/forms/date-field.d.cts +2 -2
  51. package/dist/forms/date-field.d.ts +2 -2
  52. package/dist/forms/date-field.js +1 -1
  53. package/dist/forms/form-wrapper.cjs +1 -1
  54. package/dist/forms/form-wrapper.d.cts +2 -2
  55. package/dist/forms/form-wrapper.d.ts +2 -2
  56. package/dist/forms/form-wrapper.js +1 -1
  57. package/dist/forms/multi-select-field.cjs +1 -1
  58. package/dist/forms/multi-select-field.cjs.map +1 -1
  59. package/dist/forms/multi-select-field.d.cts +2 -2
  60. package/dist/forms/multi-select-field.d.ts +2 -2
  61. package/dist/forms/multi-select-field.js +1 -1
  62. package/dist/forms/number-field.d.cts +2 -2
  63. package/dist/forms/number-field.d.ts +2 -2
  64. package/dist/forms/password-field.d.cts +2 -2
  65. package/dist/forms/password-field.d.ts +2 -2
  66. package/dist/forms/select-field.d.cts +2 -2
  67. package/dist/forms/select-field.d.ts +2 -2
  68. package/dist/forms/switch-field.d.cts +2 -2
  69. package/dist/forms/switch-field.d.ts +2 -2
  70. package/dist/forms/text-field.d.cts +2 -2
  71. package/dist/forms/text-field.d.ts +2 -2
  72. package/dist/forms/textarea-field.d.cts +2 -2
  73. package/dist/forms/textarea-field.d.ts +2 -2
  74. package/dist/{input-DIMlgILH.d.cts → input-DhLxB8V-.d.cts} +3 -3
  75. package/dist/{input-DR-TeKen.d.ts → input-cj6Jc1Zj.d.ts} +3 -3
  76. package/dist/layouts/flex.d.cts +3 -3
  77. package/dist/layouts/flex.d.ts +3 -3
  78. package/dist/layouts/main/index.d.cts +4 -4
  79. package/dist/{multi-select-BNh2ezg-.cjs → multi-select-C-r_XSFy.cjs} +2 -2
  80. package/dist/{multi-select-BNh2ezg-.cjs.map → multi-select-C-r_XSFy.cjs.map} +1 -1
  81. package/dist/{multi-select-B_fLji2s.js → multi-select-p5ihXgWH.js} +2 -2
  82. package/dist/{multi-select-B_fLji2s.js.map → multi-select-p5ihXgWH.js.map} +1 -1
  83. package/dist/{popover-CAokgoc_.cjs → popover-Ce0OTSQL.cjs} +1 -1
  84. package/dist/{popover-CAokgoc_.cjs.map → popover-Ce0OTSQL.cjs.map} +1 -1
  85. package/dist/{popover-B8j86VQv.js → popover-tDri6Ded.js} +1 -1
  86. package/dist/{popover-B8j86VQv.js.map → popover-tDri6Ded.js.map} +1 -1
  87. package/dist/{separator-Q6Oe2w6f.d.cts → separator-BsnCT8LX.d.cts} +3 -3
  88. package/dist/{separator-CievW3VI.d.ts → separator-D1cml8sE.d.ts} +3 -3
  89. package/dist/table/index.d.ts +2 -2
  90. package/dist/{toggle-31B39dod.d.cts → toggle-CxXbGIf5.d.ts} +4 -4
  91. package/dist/{toggle-J2Fw-oeH.d.ts → toggle-DfC247hI.d.cts} +5 -5
  92. package/dist/{tooltip-Bg1hHoeI.d.cts → tooltip-CA4xH6Zd.d.cts} +6 -6
  93. package/dist/{tooltip-CeP-zQrX.d.ts → tooltip-DZ2Shzgg.d.ts} +6 -6
  94. package/dist/typography/paragraph.d.cts +2 -2
  95. package/dist/typography/paragraph.d.ts +2 -2
  96. package/dist/typography/title.d.cts +2 -2
  97. package/dist/typography/title.d.ts +2 -2
  98. package/dist/ui/alert-dialog.cjs +1 -1
  99. package/dist/ui/alert-dialog.d.ts +12 -12
  100. package/dist/ui/alert-dialog.js +1 -1
  101. package/dist/ui/alert.d.cts +4 -4
  102. package/dist/ui/alert.d.ts +6 -6
  103. package/dist/ui/aspect-ratio.d.cts +2 -2
  104. package/dist/ui/aspect-ratio.d.ts +2 -2
  105. package/dist/ui/avatar.d.cts +4 -4
  106. package/dist/ui/avatar.d.ts +4 -4
  107. package/dist/ui/badge.d.cts +4 -4
  108. package/dist/ui/badge.d.ts +4 -4
  109. package/dist/ui/breadcrumb.d.cts +8 -8
  110. package/dist/ui/breadcrumb.d.ts +8 -8
  111. package/dist/ui/button.d.cts +1 -1
  112. package/dist/ui/button.d.ts +1 -1
  113. package/dist/ui/buttons/edit.cjs +2 -0
  114. package/dist/ui/buttons/edit.cjs.map +1 -0
  115. package/dist/ui/buttons/edit.d.cts +8 -0
  116. package/dist/ui/buttons/edit.d.ts +8 -0
  117. package/dist/ui/buttons/edit.js +2 -0
  118. package/dist/ui/buttons/edit.js.map +1 -0
  119. package/dist/ui/buttons/trash.cjs +2 -0
  120. package/dist/ui/buttons/trash.cjs.map +1 -0
  121. package/dist/ui/buttons/trash.d.cts +8 -0
  122. package/dist/ui/buttons/trash.d.ts +8 -0
  123. package/dist/ui/buttons/trash.js +2 -0
  124. package/dist/ui/buttons/trash.js.map +1 -0
  125. package/dist/ui/buttons/upload-image.cjs +2 -0
  126. package/dist/ui/buttons/upload-image.cjs.map +1 -0
  127. package/dist/ui/buttons/upload-image.d.cts +11 -0
  128. package/dist/ui/buttons/upload-image.d.ts +11 -0
  129. package/dist/ui/buttons/upload-image.js +2 -0
  130. package/dist/ui/buttons/upload-image.js.map +1 -0
  131. package/dist/ui/calendar.cjs +1 -1
  132. package/dist/ui/calendar.d.cts +4 -4
  133. package/dist/ui/calendar.d.ts +4 -4
  134. package/dist/ui/calendar.js +1 -1
  135. package/dist/ui/card.d.cts +8 -8
  136. package/dist/ui/card.d.ts +8 -8
  137. package/dist/ui/carousel.d.cts +7 -7
  138. package/dist/ui/carousel.d.ts +7 -7
  139. package/dist/ui/collapsible.d.cts +4 -4
  140. package/dist/ui/collapsible.d.ts +4 -4
  141. package/dist/ui/command.cjs +1 -1
  142. package/dist/ui/command.d.cts +2 -2
  143. package/dist/ui/command.d.ts +2 -2
  144. package/dist/ui/command.js +1 -1
  145. package/dist/ui/context-menu.d.cts +16 -16
  146. package/dist/ui/context-menu.d.ts +16 -16
  147. package/dist/ui/dialog.cjs +1 -1
  148. package/dist/ui/dialog.d.cts +1 -1
  149. package/dist/ui/dialog.d.ts +1 -1
  150. package/dist/ui/dialog.js +1 -1
  151. package/dist/ui/dropdown-menu.d.cts +16 -16
  152. package/dist/ui/dropdown-menu.d.ts +16 -16
  153. package/dist/ui/file-uploader.d.cts +2 -2
  154. package/dist/ui/file-uploader.d.ts +2 -2
  155. package/dist/ui/form.d.cts +7 -7
  156. package/dist/ui/form.d.ts +7 -7
  157. package/dist/ui/hover-card.d.cts +4 -4
  158. package/dist/ui/hover-card.d.ts +4 -4
  159. package/dist/ui/input-otp.d.cts +5 -5
  160. package/dist/ui/input-otp.d.ts +5 -5
  161. package/dist/ui/input.d.cts +1 -1
  162. package/dist/ui/input.d.ts +1 -1
  163. package/dist/ui/inputs/search-input.d.cts +1 -1
  164. package/dist/ui/inputs/search-input.d.ts +3 -3
  165. package/dist/ui/label.d.cts +2 -2
  166. package/dist/ui/label.d.ts +2 -2
  167. package/dist/ui/menubar.d.cts +17 -17
  168. package/dist/ui/menubar.d.ts +17 -17
  169. package/dist/ui/multi-select.cjs +1 -1
  170. package/dist/ui/multi-select.d.cts +2 -2
  171. package/dist/ui/multi-select.d.ts +2 -2
  172. package/dist/ui/multi-select.js +1 -1
  173. package/dist/ui/navigation-menu.d.cts +11 -11
  174. package/dist/ui/navigation-menu.d.ts +11 -11
  175. package/dist/ui/pagination.d.cts +9 -9
  176. package/dist/ui/pagination.d.ts +9 -9
  177. package/dist/ui/popover.cjs +1 -1
  178. package/dist/ui/popover.d.cts +5 -5
  179. package/dist/ui/popover.d.ts +5 -5
  180. package/dist/ui/popover.js +1 -1
  181. package/dist/ui/progress.d.cts +2 -2
  182. package/dist/ui/progress.d.ts +2 -2
  183. package/dist/ui/radio-group.d.cts +3 -3
  184. package/dist/ui/radio-group.d.ts +3 -3
  185. package/dist/ui/resizable.d.cts +4 -4
  186. package/dist/ui/resizable.d.ts +4 -4
  187. package/dist/ui/scroll-area.d.cts +3 -3
  188. package/dist/ui/scroll-area.d.ts +3 -3
  189. package/dist/ui/select.d.cts +11 -11
  190. package/dist/ui/select.d.ts +11 -11
  191. package/dist/ui/separator.d.cts +1 -1
  192. package/dist/ui/separator.d.ts +1 -1
  193. package/dist/ui/sheet.d.cts +9 -9
  194. package/dist/ui/sheet.d.ts +9 -9
  195. package/dist/ui/sidebar.d.cts +30 -30
  196. package/dist/ui/sidebar.d.ts +28 -28
  197. package/dist/ui/skeleton.d.cts +2 -2
  198. package/dist/ui/skeleton.d.ts +2 -2
  199. package/dist/ui/slider.d.cts +2 -2
  200. package/dist/ui/slider.d.ts +2 -2
  201. package/dist/ui/sonner.d.cts +2 -2
  202. package/dist/ui/sonner.d.ts +2 -2
  203. package/dist/ui/switch.d.cts +2 -2
  204. package/dist/ui/switch.d.ts +2 -2
  205. package/dist/ui/table.d.cts +9 -9
  206. package/dist/ui/table.d.ts +9 -9
  207. package/dist/ui/tabs.d.cts +5 -5
  208. package/dist/ui/tabs.d.ts +5 -5
  209. package/dist/ui/textarea.d.cts +2 -2
  210. package/dist/ui/textarea.d.ts +2 -2
  211. package/dist/ui/toggle-group.d.cts +4 -4
  212. package/dist/ui/toggle-group.d.ts +4 -4
  213. package/dist/ui/toggle.d.cts +1 -1
  214. package/dist/ui/toggle.d.ts +1 -1
  215. package/dist/ui/tooltip.d.cts +1 -1
  216. package/dist/ui/tooltip.d.ts +1 -1
  217. package/package.json +13 -1
  218. package/packages/components/ui/buttons/edit.tsx +20 -0
  219. package/packages/components/ui/buttons/trash.tsx +20 -0
  220. package/packages/components/ui/buttons/upload-image.tsx +28 -0
@@ -1,9 +1,9 @@
1
- import { Button } from "../button-DnN5aAEv.js";
2
- import { Input } from "../input-DR-TeKen.js";
3
- import { Separator } from "../separator-CievW3VI.js";
4
- import { TooltipContent } from "../tooltip-CeP-zQrX.js";
1
+ import { Button } from "../button-O7LPNFsW.js";
2
+ import { Input } from "../input-cj6Jc1Zj.js";
3
+ import { Separator } from "../separator-D1cml8sE.js";
4
+ import { TooltipContent } from "../tooltip-DZ2Shzgg.js";
5
5
  import React from "react";
6
- import * as react_jsx_runtime154 from "react/jsx-runtime";
6
+ import * as react_jsx_runtime113 from "react/jsx-runtime";
7
7
  import { VariantProps } from "class-variance-authority";
8
8
  import * as class_variance_authority_types3 from "class-variance-authority/types";
9
9
 
@@ -30,7 +30,7 @@ declare function SidebarProvider({
30
30
  defaultOpen?: boolean;
31
31
  open?: boolean;
32
32
  onOpenChange?: (open: boolean) => void;
33
- }): react_jsx_runtime154.JSX.Element;
33
+ }): react_jsx_runtime113.JSX.Element;
34
34
  declare function Sidebar({
35
35
  side,
36
36
  variant,
@@ -42,71 +42,71 @@ declare function Sidebar({
42
42
  side?: "left" | "right";
43
43
  variant?: "sidebar" | "floating" | "inset";
44
44
  collapsible?: "offcanvas" | "icon" | "none";
45
- }): react_jsx_runtime154.JSX.Element;
45
+ }): react_jsx_runtime113.JSX.Element;
46
46
  declare function SidebarTrigger({
47
47
  className,
48
48
  onClick,
49
49
  ...props
50
- }: React.ComponentProps<typeof Button>): react_jsx_runtime154.JSX.Element;
50
+ }: React.ComponentProps<typeof Button>): react_jsx_runtime113.JSX.Element;
51
51
  declare function SidebarRail({
52
52
  className,
53
53
  ...props
54
- }: React.ComponentProps<"button">): react_jsx_runtime154.JSX.Element;
54
+ }: React.ComponentProps<"button">): react_jsx_runtime113.JSX.Element;
55
55
  declare function SidebarInset({
56
56
  className,
57
57
  children,
58
58
  ...props
59
- }: React.ComponentProps<"main">): react_jsx_runtime154.JSX.Element;
59
+ }: React.ComponentProps<"main">): react_jsx_runtime113.JSX.Element;
60
60
  declare function SidebarInput({
61
61
  className,
62
62
  ...props
63
- }: React.ComponentProps<typeof Input>): react_jsx_runtime154.JSX.Element;
63
+ }: React.ComponentProps<typeof Input>): react_jsx_runtime113.JSX.Element;
64
64
  declare function SidebarHeader({
65
65
  className,
66
66
  ...props
67
- }: React.ComponentProps<"div">): react_jsx_runtime154.JSX.Element;
67
+ }: React.ComponentProps<"div">): react_jsx_runtime113.JSX.Element;
68
68
  declare function SidebarFooter({
69
69
  className,
70
70
  ...props
71
- }: React.ComponentProps<"div">): react_jsx_runtime154.JSX.Element;
71
+ }: React.ComponentProps<"div">): react_jsx_runtime113.JSX.Element;
72
72
  declare function SidebarSeparator({
73
73
  className,
74
74
  ...props
75
- }: React.ComponentProps<typeof Separator>): react_jsx_runtime154.JSX.Element;
75
+ }: React.ComponentProps<typeof Separator>): react_jsx_runtime113.JSX.Element;
76
76
  declare function SidebarContent({
77
77
  className,
78
78
  ...props
79
- }: React.ComponentProps<"div">): react_jsx_runtime154.JSX.Element;
79
+ }: React.ComponentProps<"div">): react_jsx_runtime113.JSX.Element;
80
80
  declare function SidebarGroup({
81
81
  className,
82
82
  ...props
83
- }: React.ComponentProps<"div">): react_jsx_runtime154.JSX.Element;
83
+ }: React.ComponentProps<"div">): react_jsx_runtime113.JSX.Element;
84
84
  declare function SidebarGroupLabel({
85
85
  className,
86
86
  asChild,
87
87
  ...props
88
88
  }: React.ComponentProps<"div"> & {
89
89
  asChild?: boolean;
90
- }): react_jsx_runtime154.JSX.Element;
90
+ }): react_jsx_runtime113.JSX.Element;
91
91
  declare function SidebarGroupAction({
92
92
  className,
93
93
  asChild,
94
94
  ...props
95
95
  }: React.ComponentProps<"button"> & {
96
96
  asChild?: boolean;
97
- }): react_jsx_runtime154.JSX.Element;
97
+ }): react_jsx_runtime113.JSX.Element;
98
98
  declare function SidebarGroupContent({
99
99
  className,
100
100
  ...props
101
- }: React.ComponentProps<"div">): react_jsx_runtime154.JSX.Element;
101
+ }: React.ComponentProps<"div">): react_jsx_runtime113.JSX.Element;
102
102
  declare function SidebarMenu({
103
103
  className,
104
104
  ...props
105
- }: React.ComponentProps<"ul">): react_jsx_runtime154.JSX.Element;
105
+ }: React.ComponentProps<"ul">): react_jsx_runtime113.JSX.Element;
106
106
  declare function SidebarMenuItem({
107
107
  className,
108
108
  ...props
109
- }: React.ComponentProps<"li">): react_jsx_runtime154.JSX.Element;
109
+ }: React.ComponentProps<"li">): react_jsx_runtime113.JSX.Element;
110
110
  declare const sidebarMenuButtonVariants: (props?: ({
111
111
  variant?: "default" | "outline" | null | undefined;
112
112
  size?: "sm" | "lg" | "default" | null | undefined;
@@ -123,7 +123,7 @@ declare function SidebarMenuButton({
123
123
  asChild?: boolean;
124
124
  isActive?: boolean;
125
125
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
126
- } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime154.JSX.Element;
126
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime113.JSX.Element;
127
127
  declare function SidebarMenuAction({
128
128
  className,
129
129
  asChild,
@@ -132,26 +132,26 @@ declare function SidebarMenuAction({
132
132
  }: React.ComponentProps<"button"> & {
133
133
  asChild?: boolean;
134
134
  showOnHover?: boolean;
135
- }): react_jsx_runtime154.JSX.Element;
135
+ }): react_jsx_runtime113.JSX.Element;
136
136
  declare function SidebarMenuBadge({
137
137
  className,
138
138
  ...props
139
- }: React.ComponentProps<"div">): react_jsx_runtime154.JSX.Element;
139
+ }: React.ComponentProps<"div">): react_jsx_runtime113.JSX.Element;
140
140
  declare function SidebarMenuSkeleton({
141
141
  className,
142
142
  showIcon,
143
143
  ...props
144
144
  }: React.ComponentProps<"div"> & {
145
145
  showIcon?: boolean;
146
- }): react_jsx_runtime154.JSX.Element;
146
+ }): react_jsx_runtime113.JSX.Element;
147
147
  declare function SidebarMenuSub({
148
148
  className,
149
149
  ...props
150
- }: React.ComponentProps<"ul">): react_jsx_runtime154.JSX.Element;
150
+ }: React.ComponentProps<"ul">): react_jsx_runtime113.JSX.Element;
151
151
  declare function SidebarMenuSubItem({
152
152
  className,
153
153
  ...props
154
- }: React.ComponentProps<"li">): react_jsx_runtime154.JSX.Element;
154
+ }: React.ComponentProps<"li">): react_jsx_runtime113.JSX.Element;
155
155
  declare function SidebarMenuSubButton({
156
156
  asChild,
157
157
  size,
@@ -162,7 +162,7 @@ declare function SidebarMenuSubButton({
162
162
  asChild?: boolean;
163
163
  size?: "sm" | "md";
164
164
  isActive?: boolean;
165
- }): react_jsx_runtime154.JSX.Element;
165
+ }): react_jsx_runtime113.JSX.Element;
166
166
  //#endregion
167
167
  export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
168
168
  //# sourceMappingURL=sidebar.d.ts.map
@@ -1,11 +1,11 @@
1
- import * as react_jsx_runtime185 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime226 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region packages/components/ui/skeleton.d.ts
5
5
  declare function Skeleton({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<"div">): react_jsx_runtime185.JSX.Element;
8
+ }: React.ComponentProps<"div">): react_jsx_runtime226.JSX.Element;
9
9
  //#endregion
10
10
  export { Skeleton };
11
11
  //# sourceMappingURL=skeleton.d.cts.map
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime120 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime137 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/skeleton.d.ts
5
5
  declare function Skeleton({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<"div">): react_jsx_runtime120.JSX.Element;
8
+ }: React.ComponentProps<"div">): react_jsx_runtime137.JSX.Element;
9
9
  //#endregion
10
10
  export { Skeleton };
11
11
  //# sourceMappingURL=skeleton.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime184 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime213 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { Slider as Slider$1 } from "radix-ui";
4
4
 
@@ -10,7 +10,7 @@ declare function Slider({
10
10
  min,
11
11
  max,
12
12
  ...props
13
- }: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime184.JSX.Element;
13
+ }: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime213.JSX.Element;
14
14
  //#endregion
15
15
  export { Slider };
16
16
  //# sourceMappingURL=slider.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime128 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime138 from "react/jsx-runtime";
3
3
  import { Slider as Slider$1 } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/slider.d.ts
@@ -10,7 +10,7 @@ declare function Slider({
10
10
  min,
11
11
  max,
12
12
  ...props
13
- }: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime128.JSX.Element;
13
+ }: React.ComponentProps<typeof Slider$1.Root>): react_jsx_runtime138.JSX.Element;
14
14
  //#endregion
15
15
  export { Slider };
16
16
  //# sourceMappingURL=slider.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime186 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime204 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/sonner.d.ts
4
- declare const Toaster: () => react_jsx_runtime186.JSX.Element;
4
+ declare const Toaster: () => react_jsx_runtime204.JSX.Element;
5
5
  //#endregion
6
6
  export { Toaster };
7
7
  //# sourceMappingURL=sonner.d.cts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime220 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime141 from "react/jsx-runtime";
2
2
 
3
3
  //#region packages/components/ui/sonner.d.ts
4
- declare const Toaster: () => react_jsx_runtime220.JSX.Element;
4
+ declare const Toaster: () => react_jsx_runtime141.JSX.Element;
5
5
  //#endregion
6
6
  export { Toaster };
7
7
  //# sourceMappingURL=sonner.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime210 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime203 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { Switch as Switch$1 } from "radix-ui";
4
4
 
@@ -6,7 +6,7 @@ import { Switch as Switch$1 } from "radix-ui";
6
6
  declare function Switch({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime210.JSX.Element;
9
+ }: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime203.JSX.Element;
10
10
  //#endregion
11
11
  export { Switch };
12
12
  //# sourceMappingURL=switch.d.cts.map
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime179 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime149 from "react/jsx-runtime";
3
3
  import { Switch as Switch$1 } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/switch.d.ts
6
6
  declare function Switch({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime179.JSX.Element;
9
+ }: React.ComponentProps<typeof Switch$1.Root>): react_jsx_runtime149.JSX.Element;
10
10
  //#endregion
11
11
  export { Switch };
12
12
  //# sourceMappingURL=switch.d.ts.map
@@ -1,39 +1,39 @@
1
- import * as react_jsx_runtime211 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime218 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region packages/components/ui/table.d.ts
5
5
  declare function Table({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<"table">): react_jsx_runtime211.JSX.Element;
8
+ }: React.ComponentProps<"table">): react_jsx_runtime218.JSX.Element;
9
9
  declare function TableHeader({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<"thead">): react_jsx_runtime211.JSX.Element;
12
+ }: React.ComponentProps<"thead">): react_jsx_runtime218.JSX.Element;
13
13
  declare function TableBody({
14
14
  className,
15
15
  ...props
16
- }: React.ComponentProps<"tbody">): react_jsx_runtime211.JSX.Element;
16
+ }: React.ComponentProps<"tbody">): react_jsx_runtime218.JSX.Element;
17
17
  declare function TableFooter({
18
18
  className,
19
19
  ...props
20
- }: React.ComponentProps<"tfoot">): react_jsx_runtime211.JSX.Element;
20
+ }: React.ComponentProps<"tfoot">): react_jsx_runtime218.JSX.Element;
21
21
  declare function TableRow({
22
22
  className,
23
23
  ...props
24
- }: React.ComponentProps<"tr">): react_jsx_runtime211.JSX.Element;
24
+ }: React.ComponentProps<"tr">): react_jsx_runtime218.JSX.Element;
25
25
  declare function TableHead({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<"th">): react_jsx_runtime211.JSX.Element;
28
+ }: React.ComponentProps<"th">): react_jsx_runtime218.JSX.Element;
29
29
  declare function TableCell({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<"td">): react_jsx_runtime211.JSX.Element;
32
+ }: React.ComponentProps<"td">): react_jsx_runtime218.JSX.Element;
33
33
  declare function TableCaption({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<"caption">): react_jsx_runtime211.JSX.Element;
36
+ }: React.ComponentProps<"caption">): react_jsx_runtime218.JSX.Element;
37
37
  //#endregion
38
38
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
39
39
  //# sourceMappingURL=table.d.cts.map
@@ -1,39 +1,39 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime45 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime155 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/table.d.ts
5
5
  declare function Table({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<"table">): react_jsx_runtime45.JSX.Element;
8
+ }: React.ComponentProps<"table">): react_jsx_runtime155.JSX.Element;
9
9
  declare function TableHeader({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<"thead">): react_jsx_runtime45.JSX.Element;
12
+ }: React.ComponentProps<"thead">): react_jsx_runtime155.JSX.Element;
13
13
  declare function TableBody({
14
14
  className,
15
15
  ...props
16
- }: React.ComponentProps<"tbody">): react_jsx_runtime45.JSX.Element;
16
+ }: React.ComponentProps<"tbody">): react_jsx_runtime155.JSX.Element;
17
17
  declare function TableFooter({
18
18
  className,
19
19
  ...props
20
- }: React.ComponentProps<"tfoot">): react_jsx_runtime45.JSX.Element;
20
+ }: React.ComponentProps<"tfoot">): react_jsx_runtime155.JSX.Element;
21
21
  declare function TableRow({
22
22
  className,
23
23
  ...props
24
- }: React.ComponentProps<"tr">): react_jsx_runtime45.JSX.Element;
24
+ }: React.ComponentProps<"tr">): react_jsx_runtime155.JSX.Element;
25
25
  declare function TableHead({
26
26
  className,
27
27
  ...props
28
- }: React.ComponentProps<"th">): react_jsx_runtime45.JSX.Element;
28
+ }: React.ComponentProps<"th">): react_jsx_runtime155.JSX.Element;
29
29
  declare function TableCell({
30
30
  className,
31
31
  ...props
32
- }: React.ComponentProps<"td">): react_jsx_runtime45.JSX.Element;
32
+ }: React.ComponentProps<"td">): react_jsx_runtime155.JSX.Element;
33
33
  declare function TableCaption({
34
34
  className,
35
35
  ...props
36
- }: React.ComponentProps<"caption">): react_jsx_runtime45.JSX.Element;
36
+ }: React.ComponentProps<"caption">): react_jsx_runtime155.JSX.Element;
37
37
  //#endregion
38
38
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
39
39
  //# sourceMappingURL=table.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime220 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime214 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
  import { Tabs as Tabs$1 } from "radix-ui";
4
4
 
@@ -6,19 +6,19 @@ import { Tabs as Tabs$1 } from "radix-ui";
6
6
  declare function Tabs({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime220.JSX.Element;
9
+ }: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime214.JSX.Element;
10
10
  declare function TabsList({
11
11
  className,
12
12
  ...props
13
- }: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime220.JSX.Element;
13
+ }: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime214.JSX.Element;
14
14
  declare function TabsTrigger({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime220.JSX.Element;
17
+ }: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime214.JSX.Element;
18
18
  declare function TabsContent({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime220.JSX.Element;
21
+ }: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime214.JSX.Element;
22
22
  //#endregion
23
23
  export { Tabs, TabsContent, TabsList, TabsTrigger };
24
24
  //# sourceMappingURL=tabs.d.cts.map
package/dist/ui/tabs.d.ts CHANGED
@@ -1,24 +1,24 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime32 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime166 from "react/jsx-runtime";
3
3
  import { Tabs as Tabs$1 } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/tabs.d.ts
6
6
  declare function Tabs({
7
7
  className,
8
8
  ...props
9
- }: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime32.JSX.Element;
9
+ }: React.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime166.JSX.Element;
10
10
  declare function TabsList({
11
11
  className,
12
12
  ...props
13
- }: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime32.JSX.Element;
13
+ }: React.ComponentProps<typeof Tabs$1.List>): react_jsx_runtime166.JSX.Element;
14
14
  declare function TabsTrigger({
15
15
  className,
16
16
  ...props
17
- }: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime32.JSX.Element;
17
+ }: React.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime166.JSX.Element;
18
18
  declare function TabsContent({
19
19
  className,
20
20
  ...props
21
- }: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime32.JSX.Element;
21
+ }: React.ComponentProps<typeof Tabs$1.Content>): react_jsx_runtime166.JSX.Element;
22
22
  //#endregion
23
23
  export { Tabs, TabsContent, TabsList, TabsTrigger };
24
24
  //# sourceMappingURL=tabs.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime219 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime234 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region packages/components/ui/textarea.d.ts
@@ -9,7 +9,7 @@ declare function Textarea({
9
9
  ...props
10
10
  }: React.ComponentProps<"textarea"> & {
11
11
  onValueChange?: (value: string) => void;
12
- }): react_jsx_runtime219.JSX.Element;
12
+ }): react_jsx_runtime234.JSX.Element;
13
13
  //#endregion
14
14
  export { Textarea };
15
15
  //# sourceMappingURL=textarea.d.cts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import * as react_jsx_runtime36 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime179 from "react/jsx-runtime";
3
3
 
4
4
  //#region packages/components/ui/textarea.d.ts
5
5
  declare function Textarea({
@@ -9,7 +9,7 @@ declare function Textarea({
9
9
  ...props
10
10
  }: React.ComponentProps<"textarea"> & {
11
11
  onValueChange?: (value: string) => void;
12
- }): react_jsx_runtime36.JSX.Element;
12
+ }): react_jsx_runtime179.JSX.Element;
13
13
  //#endregion
14
14
  export { Textarea };
15
15
  //# sourceMappingURL=textarea.d.ts.map
@@ -1,5 +1,5 @@
1
- import { toggleVariants } from "../toggle-31B39dod.cjs";
2
- import * as react_jsx_runtime224 from "react/jsx-runtime";
1
+ import { toggleVariants } from "../toggle-DfC247hI.cjs";
2
+ import * as react_jsx_runtime227 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
@@ -11,14 +11,14 @@ declare function ToggleGroup({
11
11
  size,
12
12
  children,
13
13
  ...props
14
- }: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime224.JSX.Element;
14
+ }: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime227.JSX.Element;
15
15
  declare function ToggleGroupItem({
16
16
  className,
17
17
  children,
18
18
  variant,
19
19
  size,
20
20
  ...props
21
- }: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime224.JSX.Element;
21
+ }: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime227.JSX.Element;
22
22
  //#endregion
23
23
  export { ToggleGroup, ToggleGroupItem };
24
24
  //# sourceMappingURL=toggle-group.d.cts.map
@@ -1,6 +1,6 @@
1
- import { toggleVariants } from "../toggle-J2Fw-oeH.js";
1
+ import { toggleVariants } from "../toggle-CxXbGIf5.js";
2
2
  import React from "react";
3
- import * as react_jsx_runtime41 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime195 from "react/jsx-runtime";
4
4
  import { VariantProps } from "class-variance-authority";
5
5
  import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
6
6
 
@@ -11,14 +11,14 @@ declare function ToggleGroup({
11
11
  size,
12
12
  children,
13
13
  ...props
14
- }: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime41.JSX.Element;
14
+ }: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime195.JSX.Element;
15
15
  declare function ToggleGroupItem({
16
16
  className,
17
17
  children,
18
18
  variant,
19
19
  size,
20
20
  ...props
21
- }: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime41.JSX.Element;
21
+ }: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime195.JSX.Element;
22
22
  //#endregion
23
23
  export { ToggleGroup, ToggleGroupItem };
24
24
  //# sourceMappingURL=toggle-group.d.ts.map
@@ -1,2 +1,2 @@
1
- import { Toggle, toggleVariants } from "../toggle-31B39dod.cjs";
1
+ import { Toggle, toggleVariants } from "../toggle-DfC247hI.cjs";
2
2
  export { Toggle, toggleVariants };
@@ -1,2 +1,2 @@
1
- import { Toggle, toggleVariants } from "../toggle-J2Fw-oeH.js";
1
+ import { Toggle, toggleVariants } from "../toggle-CxXbGIf5.js";
2
2
  export { Toggle, toggleVariants };
@@ -1,2 +1,2 @@
1
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-Bg1hHoeI.cjs";
1
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-CA4xH6Zd.cjs";
2
2
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -1,2 +1,2 @@
1
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-CeP-zQrX.js";
1
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-DZ2Shzgg.js";
2
2
  export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@customafk/lunas-ui",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "UI library for Lunas Enterprise",
5
5
  "type": "module",
6
6
  "author": {
@@ -177,10 +177,22 @@
177
177
  "import": "./dist/ui/buttons/add-new.js",
178
178
  "require": "./dist/ui/buttons/add-new.cjs"
179
179
  },
180
+ "./ui/buttons/edit": {
181
+ "import": "./dist/ui/buttons/edit.js",
182
+ "require": "./dist/ui/buttons/edit.cjs"
183
+ },
180
184
  "./ui/buttons/refresh": {
181
185
  "import": "./dist/ui/buttons/refresh.js",
182
186
  "require": "./dist/ui/buttons/refresh.cjs"
183
187
  },
188
+ "./ui/buttons/trash": {
189
+ "import": "./dist/ui/buttons/trash.js",
190
+ "require": "./dist/ui/buttons/trash.cjs"
191
+ },
192
+ "./ui/buttons/upload-image": {
193
+ "import": "./dist/ui/buttons/upload-image.js",
194
+ "require": "./dist/ui/buttons/upload-image.cjs"
195
+ },
184
196
  "./ui/calendar": {
185
197
  "import": "./dist/ui/calendar.js",
186
198
  "require": "./dist/ui/calendar.cjs"
@@ -0,0 +1,20 @@
1
+ import { Edit2Icon } from "lucide-react";
2
+
3
+ import { Button } from "../button";
4
+
5
+ type Props = {
6
+ onClick?: () => void;
7
+ };
8
+ export const EditBtn: React.FC<Props> = ({ onClick }) => {
9
+ return (
10
+ <Button
11
+ aria-label="Chỉnh sửa"
12
+ variant="ghost"
13
+ size="icon"
14
+ className="aspect-square max-sm:p-0"
15
+ onClick={onClick}
16
+ >
17
+ <Edit2Icon size={16} className="opacity-60" />
18
+ </Button>
19
+ );
20
+ };
@@ -0,0 +1,20 @@
1
+ import { Trash2Icon } from "lucide-react";
2
+
3
+ import { Button } from "../button";
4
+
5
+ type Props = {
6
+ onClick?: () => void;
7
+ };
8
+ export const TrashBtn: React.FC<Props> = ({ onClick }) => {
9
+ return (
10
+ <Button
11
+ aria-label="Xoá"
12
+ variant="ghost"
13
+ size="icon"
14
+ className="aspect-square max-sm:p-0"
15
+ onClick={onClick}
16
+ >
17
+ <Trash2Icon size={16} className="opacity-60" aria-hidden="true" />
18
+ </Button>
19
+ );
20
+ };
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import type { PropsWithChildren } from "react";
3
+ import { UploadIcon } from "lucide-react";
4
+
5
+ import { Button } from "../button";
6
+
7
+ type Props = {
8
+ size?: number;
9
+ onClick?: () => void;
10
+ };
11
+
12
+ export const UploadImageBtn: React.FC<PropsWithChildren<Props>> = ({
13
+ size = "5rem",
14
+ onClick,
15
+ }) => {
16
+ return (
17
+ <Button
18
+ style={{
19
+ width: size,
20
+ height: size,
21
+ }}
22
+ variant="outline"
23
+ onClick={onClick}
24
+ >
25
+ <UploadIcon className="size-6" />
26
+ </Button>
27
+ );
28
+ };