@customafk/lunas-ui 0.2.1 → 0.2.2

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 (182) hide show
  1. package/dist/{button-DXPSlb3I.mjs → button-B2FJrOBP.mjs} +2 -2
  2. package/dist/{button-DXPSlb3I.mjs.map → button-B2FJrOBP.mjs.map} +1 -1
  3. package/dist/{button-Bji_SqMI.d.cts → button-BnFROtRM.d.cts} +4 -4
  4. package/dist/{button-C58TS8Pc.cjs → button-CYw2AqT0.cjs} +2 -2
  5. package/dist/{button-C58TS8Pc.cjs.map → button-CYw2AqT0.cjs.map} +1 -1
  6. package/dist/{button-PV-Xnryv.d.mts → button-IfNjnUO-.d.mts} +6 -6
  7. package/dist/{calendar-CEF9LSd4.mjs → calendar-Bt6qXSZb.mjs} +2 -2
  8. package/dist/{calendar-CEF9LSd4.mjs.map → calendar-Bt6qXSZb.mjs.map} +1 -1
  9. package/dist/{calendar-DT0NPRhB.cjs → calendar-BwWfk_Zk.cjs} +2 -2
  10. package/dist/{calendar-DT0NPRhB.cjs.map → calendar-BwWfk_Zk.cjs.map} +1 -1
  11. package/dist/cards/grid-product-card.cjs +1 -1
  12. package/dist/cards/grid-product-card.mjs +1 -1
  13. package/dist/cards/product-card.cjs +1 -1
  14. package/dist/cards/product-card.mjs +1 -1
  15. package/dist/data-display/statistic.d.cts +2 -2
  16. package/dist/{dialog-DKZ8BLxc.d.mts → dialog-CyLgmqny.d.cts} +12 -12
  17. package/dist/{dialog-7127ChM2.d.cts → dialog-lFDfcYPP.d.mts} +12 -12
  18. package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
  19. package/dist/dialogs/detail-dialog/components/sidebar.d.cts +24 -24
  20. package/dist/dialogs/detail-dialog/components/sidebar.d.mts +24 -24
  21. package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
  22. package/dist/dialogs/detail-dialog/index.cjs +1 -1
  23. package/dist/dialogs/detail-dialog/index.mjs +1 -1
  24. package/dist/features/tables/index.cjs +1 -1
  25. package/dist/features/tables/index.d.cts +1 -1
  26. package/dist/features/tables/index.d.mts +23 -23
  27. package/dist/features/tables/index.mjs +1 -1
  28. package/dist/features/tanstack-form/index.cjs +1 -1
  29. package/dist/features/tanstack-form/index.d.cts +51 -51
  30. package/dist/features/tanstack-form/index.d.mts +224 -224
  31. package/dist/features/tanstack-form/index.mjs +1 -1
  32. package/dist/{input-D0enZTLC.d.cts → input-Bm0YXroi.d.cts} +6 -6
  33. package/dist/{input-DkvHV_UU.d.mts → input-CLlVXOR2.d.mts} +6 -6
  34. package/dist/layouts/cms-layout/index.cjs +1 -1
  35. package/dist/layouts/cms-layout/index.mjs +1 -1
  36. package/dist/layouts/flex.d.mts +4 -4
  37. package/dist/layouts/payment-layout/index.cjs +1 -1
  38. package/dist/layouts/payment-layout/index.mjs +1 -1
  39. package/dist/pages/FeatureDeveloping.cjs +1 -1
  40. package/dist/pages/FeatureDeveloping.d.cts +2 -2
  41. package/dist/pages/FeatureDeveloping.d.mts +2 -2
  42. package/dist/pages/FeatureDeveloping.mjs +1 -1
  43. package/dist/pages/FeatureFixing.cjs +1 -1
  44. package/dist/pages/FeatureFixing.d.cts +2 -2
  45. package/dist/pages/FeatureFixing.d.mts +2 -2
  46. package/dist/pages/FeatureFixing.mjs +1 -1
  47. package/dist/pages/NotAuthorized.cjs +1 -1
  48. package/dist/pages/NotAuthorized.d.cts +2 -2
  49. package/dist/pages/NotAuthorized.mjs +1 -1
  50. package/dist/pages/NotFound.cjs +1 -1
  51. package/dist/pages/NotFound.d.cts +2 -2
  52. package/dist/pages/NotFound.d.mts +2 -2
  53. package/dist/pages/NotFound.mjs +1 -1
  54. package/dist/typography/paragraph.d.cts +3 -3
  55. package/dist/typography/paragraph.d.mts +5 -5
  56. package/dist/typography/title.d.cts +2 -2
  57. package/dist/ui/alert-dialog.d.mts +12 -12
  58. package/dist/ui/alert.d.cts +5 -5
  59. package/dist/ui/alert.d.mts +7 -7
  60. package/dist/ui/aspect-ratio.d.cts +2 -2
  61. package/dist/ui/aspect-ratio.d.mts +2 -2
  62. package/dist/ui/avatar.d.cts +4 -4
  63. package/dist/ui/avatar.d.mts +4 -4
  64. package/dist/ui/badge.d.cts +2 -2
  65. package/dist/ui/badge.d.mts +4 -4
  66. package/dist/ui/breadcrumb.d.cts +8 -8
  67. package/dist/ui/breadcrumb.d.mts +8 -8
  68. package/dist/ui/button-group.d.cts +6 -6
  69. package/dist/ui/button-group.d.mts +6 -6
  70. package/dist/ui/button.cjs +1 -1
  71. package/dist/ui/button.d.cts +1 -1
  72. package/dist/ui/button.d.mts +1 -1
  73. package/dist/ui/button.mjs +1 -1
  74. package/dist/ui/buttons/add-new.cjs +1 -1
  75. package/dist/ui/buttons/add-new.mjs +1 -1
  76. package/dist/ui/buttons/edit.cjs +1 -1
  77. package/dist/ui/buttons/edit.mjs +1 -1
  78. package/dist/ui/buttons/refresh.cjs +1 -1
  79. package/dist/ui/buttons/refresh.mjs +1 -1
  80. package/dist/ui/buttons/trash.cjs +1 -1
  81. package/dist/ui/buttons/trash.mjs +1 -1
  82. package/dist/ui/buttons/upload-image.cjs +1 -1
  83. package/dist/ui/buttons/upload-image.mjs +1 -1
  84. package/dist/ui/calendar.cjs +1 -1
  85. package/dist/ui/calendar.d.cts +4 -4
  86. package/dist/ui/calendar.d.mts +4 -4
  87. package/dist/ui/calendar.mjs +1 -1
  88. package/dist/ui/card.d.cts +8 -8
  89. package/dist/ui/card.d.mts +8 -8
  90. package/dist/ui/carousel.cjs +1 -1
  91. package/dist/ui/carousel.d.cts +7 -7
  92. package/dist/ui/carousel.d.mts +7 -7
  93. package/dist/ui/carousel.mjs +1 -1
  94. package/dist/ui/checkbox.d.cts +2 -2
  95. package/dist/ui/checkbox.d.mts +2 -2
  96. package/dist/ui/collapsible.d.cts +4 -4
  97. package/dist/ui/collapsible.d.mts +4 -4
  98. package/dist/ui/command.d.cts +11 -11
  99. package/dist/ui/command.d.mts +11 -11
  100. package/dist/ui/context-menu.d.cts +16 -16
  101. package/dist/ui/context-menu.d.mts +16 -16
  102. package/dist/ui/dialog.d.cts +1 -1
  103. package/dist/ui/dialog.d.mts +1 -1
  104. package/dist/ui/drawer.d.cts +11 -11
  105. package/dist/ui/drawer.d.mts +11 -11
  106. package/dist/ui/dropdown-menu.d.cts +16 -16
  107. package/dist/ui/dropdown-menu.d.mts +16 -16
  108. package/dist/ui/empty.d.cts +9 -9
  109. package/dist/ui/empty.d.mts +9 -9
  110. package/dist/ui/field.d.cts +24 -24
  111. package/dist/ui/field.d.mts +13 -13
  112. package/dist/ui/file-uploader.cjs +1 -1
  113. package/dist/ui/file-uploader.d.cts +2 -2
  114. package/dist/ui/file-uploader.d.mts +2 -2
  115. package/dist/ui/file-uploader.mjs +1 -1
  116. package/dist/ui/form.d.cts +11 -11
  117. package/dist/ui/form.d.mts +11 -11
  118. package/dist/ui/hover-card.d.cts +4 -4
  119. package/dist/ui/hover-card.d.mts +4 -4
  120. package/dist/ui/input-otp.d.cts +5 -5
  121. package/dist/ui/input-otp.d.mts +5 -5
  122. package/dist/ui/input.d.cts +1 -1
  123. package/dist/ui/input.d.mts +1 -1
  124. package/dist/ui/inputs/search-input.d.cts +3 -3
  125. package/dist/ui/inputs/search-input.d.mts +3 -3
  126. package/dist/ui/item.d.cts +14 -14
  127. package/dist/ui/item.d.mts +14 -14
  128. package/dist/ui/label.d.cts +2 -2
  129. package/dist/ui/label.d.mts +2 -2
  130. package/dist/ui/menubar.d.cts +17 -17
  131. package/dist/ui/menubar.d.mts +17 -17
  132. package/dist/ui/multi-select.cjs +1 -1
  133. package/dist/ui/multi-select.d.cts +2 -2
  134. package/dist/ui/multi-select.d.mts +3 -3
  135. package/dist/ui/multi-select.mjs +1 -1
  136. package/dist/ui/navigation-menu.d.cts +11 -11
  137. package/dist/ui/navigation-menu.d.mts +11 -11
  138. package/dist/ui/pagination.d.cts +9 -9
  139. package/dist/ui/pagination.d.mts +9 -9
  140. package/dist/ui/popover.d.cts +6 -6
  141. package/dist/ui/popover.d.mts +6 -6
  142. package/dist/ui/progress.d.cts +2 -2
  143. package/dist/ui/progress.d.mts +2 -2
  144. package/dist/ui/radio-group.d.cts +3 -3
  145. package/dist/ui/radio-group.d.mts +3 -3
  146. package/dist/ui/resizable.d.cts +9 -9
  147. package/dist/ui/resizable.d.mts +9 -9
  148. package/dist/ui/scroll-area.d.cts +6 -6
  149. package/dist/ui/scroll-area.d.mts +6 -6
  150. package/dist/ui/select.d.cts +9 -9
  151. package/dist/ui/select.d.mts +9 -9
  152. package/dist/ui/separator.d.cts +2 -2
  153. package/dist/ui/separator.d.mts +2 -2
  154. package/dist/ui/sheet.d.cts +9 -9
  155. package/dist/ui/sheet.d.mts +9 -9
  156. package/dist/ui/sidebar.cjs +1 -1
  157. package/dist/ui/sidebar.d.cts +28 -28
  158. package/dist/ui/sidebar.d.mts +26 -26
  159. package/dist/ui/sidebar.mjs +1 -1
  160. package/dist/ui/skeleton.d.cts +2 -2
  161. package/dist/ui/skeleton.d.mts +2 -2
  162. package/dist/ui/slider.d.cts +2 -2
  163. package/dist/ui/slider.d.mts +2 -2
  164. package/dist/ui/sonner.d.cts +2 -2
  165. package/dist/ui/sonner.d.mts +2 -2
  166. package/dist/ui/spinner.d.cts +2 -2
  167. package/dist/ui/spinner.d.mts +2 -2
  168. package/dist/ui/switch.d.cts +2 -2
  169. package/dist/ui/switch.d.mts +2 -2
  170. package/dist/ui/table.d.cts +18 -18
  171. package/dist/ui/table.d.mts +18 -18
  172. package/dist/ui/tabs.d.cts +5 -5
  173. package/dist/ui/tabs.d.mts +5 -5
  174. package/dist/ui/textarea.d.cts +2 -2
  175. package/dist/ui/textarea.d.mts +2 -2
  176. package/dist/ui/toggle-group.d.cts +3 -3
  177. package/dist/ui/toggle-group.d.mts +3 -3
  178. package/dist/ui/toggle.d.cts +4 -4
  179. package/dist/ui/toggle.d.mts +2 -2
  180. package/dist/ui/tooltip.d.cts +5 -5
  181. package/dist/ui/tooltip.d.mts +5 -5
  182. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import * as react_jsx_runtime274 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime162 from "react/jsx-runtime";
2
2
  import { RadioGroup as RadioGroup$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/radio-group.d.ts
5
5
  declare function RadioGroup({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime274.JSX.Element;
8
+ }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime162.JSX.Element;
9
9
  declare function RadioGroupItem({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime274.JSX.Element;
12
+ }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime162.JSX.Element;
13
13
  //#endregion
14
14
  export { RadioGroup, RadioGroupItem };
15
15
  //# sourceMappingURL=radio-group.d.cts.map
@@ -1,15 +1,15 @@
1
- import * as react_jsx_runtime188 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime252 from "react/jsx-runtime";
2
2
  import { RadioGroup as RadioGroup$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/radio-group.d.ts
5
5
  declare function RadioGroup({
6
6
  className,
7
7
  ...props
8
- }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime188.JSX.Element;
8
+ }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime252.JSX.Element;
9
9
  declare function RadioGroupItem({
10
10
  className,
11
11
  ...props
12
- }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime188.JSX.Element;
12
+ }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime252.JSX.Element;
13
13
  //#endregion
14
14
  export { RadioGroup, RadioGroupItem };
15
15
  //# sourceMappingURL=radio-group.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react24 from "react";
1
+ import * as react16 from "react";
2
2
  import * as node_modules_react_resizable_panels_dist_declarations_src_types0 from "node_modules/react-resizable-panels/dist/declarations/src/types";
3
3
  import * as ResizablePrimitive from "react-resizable-panels";
4
4
 
@@ -6,7 +6,7 @@ import * as ResizablePrimitive from "react-resizable-panels";
6
6
  type TResizableHandle = React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
7
7
  withHandle?: boolean;
8
8
  };
9
- declare const ResizablePanelGroup: react24.NamedExoticComponent<Omit<react24.HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
9
+ declare const ResizablePanelGroup: react16.NamedExoticComponent<Omit<react16.HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
10
10
  autoSaveId?: string | null;
11
11
  className?: string;
12
12
  direction: node_modules_react_resizable_panels_dist_declarations_src_types0.Direction;
@@ -14,13 +14,13 @@ declare const ResizablePanelGroup: react24.NamedExoticComponent<Omit<react24.HTM
14
14
  keyboardResizeBy?: number | null;
15
15
  onLayout?: ResizablePrimitive.PanelGroupOnLayout | null;
16
16
  storage?: ResizablePrimitive.PanelGroupStorage;
17
- style?: react24.CSSProperties;
17
+ style?: react16.CSSProperties;
18
18
  tagName?: keyof HTMLElementTagNameMap;
19
19
  dir?: "auto" | "ltr" | "rtl" | undefined;
20
20
  } & {
21
- children?: react24.ReactNode | undefined;
22
- } & react24.RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>>;
23
- declare const ResizablePanel: react24.NamedExoticComponent<Omit<react24.HTMLAttributes<HTMLInputElement | HTMLElement | HTMLButtonElement | HTMLFieldSetElement | HTMLLegendElement | HTMLDivElement | HTMLLabelElement | HTMLParagraphElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
21
+ children?: react16.ReactNode | undefined;
22
+ } & react16.RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>>;
23
+ declare const ResizablePanel: react16.NamedExoticComponent<Omit<react16.HTMLAttributes<HTMLInputElement | HTMLElement | HTMLButtonElement | HTMLFieldSetElement | HTMLLegendElement | HTMLDivElement | HTMLLabelElement | HTMLParagraphElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
24
24
  className?: string;
25
25
  collapsedSize?: number | undefined;
26
26
  collapsible?: boolean | undefined;
@@ -35,9 +35,9 @@ declare const ResizablePanel: react24.NamedExoticComponent<Omit<react24.HTMLAttr
35
35
  style?: object;
36
36
  tagName?: keyof HTMLElementTagNameMap | undefined;
37
37
  } & {
38
- children?: react24.ReactNode | undefined;
39
- } & react24.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
40
- declare const ResizableHandle: react24.NamedExoticComponent<TResizableHandle>;
38
+ children?: react16.ReactNode | undefined;
39
+ } & react16.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
40
+ declare const ResizableHandle: react16.NamedExoticComponent<TResizableHandle>;
41
41
  //#endregion
42
42
  export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
43
43
  //# sourceMappingURL=resizable.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react14 from "react";
1
+ import * as react24 from "react";
2
2
  import * as ResizablePrimitive from "react-resizable-panels";
3
3
  import * as node_modules_react_resizable_panels_dist_declarations_src_types0 from "node_modules/react-resizable-panels/dist/declarations/src/types";
4
4
 
@@ -6,7 +6,7 @@ import * as node_modules_react_resizable_panels_dist_declarations_src_types0 fro
6
6
  type TResizableHandle = React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
7
7
  withHandle?: boolean;
8
8
  };
9
- declare const ResizablePanelGroup: react14.NamedExoticComponent<Omit<react14.HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
9
+ declare const ResizablePanelGroup: react24.NamedExoticComponent<Omit<react24.HTMLAttributes<keyof HTMLElementTagNameMap>, "id"> & {
10
10
  autoSaveId?: string | null;
11
11
  className?: string;
12
12
  direction: node_modules_react_resizable_panels_dist_declarations_src_types0.Direction;
@@ -14,13 +14,13 @@ declare const ResizablePanelGroup: react14.NamedExoticComponent<Omit<react14.HTM
14
14
  keyboardResizeBy?: number | null;
15
15
  onLayout?: ResizablePrimitive.PanelGroupOnLayout | null;
16
16
  storage?: ResizablePrimitive.PanelGroupStorage;
17
- style?: react14.CSSProperties;
17
+ style?: react24.CSSProperties;
18
18
  tagName?: keyof HTMLElementTagNameMap;
19
19
  dir?: "auto" | "ltr" | "rtl" | undefined;
20
20
  } & {
21
- children?: react14.ReactNode | undefined;
22
- } & react14.RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>>;
23
- declare const ResizablePanel: react14.NamedExoticComponent<Omit<react14.HTMLAttributes<HTMLInputElement | HTMLElement | HTMLButtonElement | HTMLFieldSetElement | HTMLLegendElement | HTMLDivElement | HTMLLabelElement | HTMLParagraphElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
21
+ children?: react24.ReactNode | undefined;
22
+ } & react24.RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>>;
23
+ declare const ResizablePanel: react24.NamedExoticComponent<Omit<react24.HTMLAttributes<HTMLInputElement | HTMLElement | HTMLButtonElement | HTMLFieldSetElement | HTMLLegendElement | HTMLDivElement | HTMLLabelElement | HTMLParagraphElement | HTMLObjectElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
24
24
  className?: string;
25
25
  collapsedSize?: number | undefined;
26
26
  collapsible?: boolean | undefined;
@@ -35,9 +35,9 @@ declare const ResizablePanel: react14.NamedExoticComponent<Omit<react14.HTMLAttr
35
35
  style?: object;
36
36
  tagName?: keyof HTMLElementTagNameMap | undefined;
37
37
  } & {
38
- children?: react14.ReactNode | undefined;
39
- } & react14.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
40
- declare const ResizableHandle: react14.NamedExoticComponent<TResizableHandle>;
38
+ children?: react24.ReactNode | undefined;
39
+ } & react24.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
40
+ declare const ResizableHandle: react24.NamedExoticComponent<TResizableHandle>;
41
41
  //#endregion
42
42
  export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
43
43
  //# sourceMappingURL=resizable.d.mts.map
@@ -1,20 +1,20 @@
1
- import * as react_jsx_runtime276 from "react/jsx-runtime";
2
- import * as react34 from "react";
1
+ import * as react_jsx_runtime187 from "react/jsx-runtime";
2
+ import * as react14 from "react";
3
3
  import { ScrollArea as ScrollArea$1 } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/scroll-area.d.ts
6
- declare const ScrollArea: react34.MemoExoticComponent<({
6
+ declare const ScrollArea: react14.MemoExoticComponent<({
7
7
  className,
8
8
  children,
9
9
  ref,
10
10
  onScroll,
11
11
  ...props
12
- }: React.ComponentProps<typeof ScrollArea$1.Root>) => react_jsx_runtime276.JSX.Element>;
13
- declare const ScrollBar: react34.MemoExoticComponent<({
12
+ }: React.ComponentProps<typeof ScrollArea$1.Root>) => react_jsx_runtime187.JSX.Element>;
13
+ declare const ScrollBar: react14.MemoExoticComponent<({
14
14
  className,
15
15
  orientation,
16
16
  ...props
17
- }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) => react_jsx_runtime276.JSX.Element>;
17
+ }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) => react_jsx_runtime187.JSX.Element>;
18
18
  //#endregion
19
19
  export { ScrollArea, ScrollBar };
20
20
  //# sourceMappingURL=scroll-area.d.cts.map
@@ -1,20 +1,20 @@
1
- import * as react24 from "react";
2
- import * as react_jsx_runtime224 from "react/jsx-runtime";
1
+ import * as react11 from "react";
2
+ import * as react_jsx_runtime150 from "react/jsx-runtime";
3
3
  import { ScrollArea as ScrollArea$1 } from "radix-ui";
4
4
 
5
5
  //#region packages/components/ui/scroll-area.d.ts
6
- declare const ScrollArea: react24.MemoExoticComponent<({
6
+ declare const ScrollArea: react11.MemoExoticComponent<({
7
7
  className,
8
8
  children,
9
9
  ref,
10
10
  onScroll,
11
11
  ...props
12
- }: React.ComponentProps<typeof ScrollArea$1.Root>) => react_jsx_runtime224.JSX.Element>;
13
- declare const ScrollBar: react24.MemoExoticComponent<({
12
+ }: React.ComponentProps<typeof ScrollArea$1.Root>) => react_jsx_runtime150.JSX.Element>;
13
+ declare const ScrollBar: react11.MemoExoticComponent<({
14
14
  className,
15
15
  orientation,
16
16
  ...props
17
- }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) => react_jsx_runtime224.JSX.Element>;
17
+ }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>) => react_jsx_runtime150.JSX.Element>;
18
18
  //#endregion
19
19
  export { ScrollArea, ScrollBar };
20
20
  //# sourceMappingURL=scroll-area.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as react_jsx_runtime231 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime189 from "react/jsx-runtime";
2
2
  import { Select as Select$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/select.d.ts
5
5
  declare function Select({
6
6
  ...props
7
- }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime231.JSX.Element;
7
+ }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime189.JSX.Element;
8
8
  declare function SelectGroup({
9
9
  ...props
10
- }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime231.JSX.Element;
10
+ }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime189.JSX.Element;
11
11
  declare function SelectValue({
12
12
  ...props
13
- }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime231.JSX.Element;
13
+ }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime189.JSX.Element;
14
14
  declare function SelectTrigger({
15
15
  className,
16
16
  size,
@@ -18,26 +18,26 @@ declare function SelectTrigger({
18
18
  ...props
19
19
  }: React.ComponentProps<typeof Select$1.Trigger> & {
20
20
  size?: 'sm' | 'default';
21
- }): react_jsx_runtime231.JSX.Element;
21
+ }): react_jsx_runtime189.JSX.Element;
22
22
  declare function SelectContent({
23
23
  className,
24
24
  children,
25
25
  position,
26
26
  ...props
27
- }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime231.JSX.Element;
27
+ }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime189.JSX.Element;
28
28
  declare function SelectLabel({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime231.JSX.Element;
31
+ }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime189.JSX.Element;
32
32
  declare function SelectItem({
33
33
  className,
34
34
  children,
35
35
  ...props
36
- }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime231.JSX.Element;
36
+ }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime189.JSX.Element;
37
37
  declare function SelectSeparator({
38
38
  className,
39
39
  ...props
40
- }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime231.JSX.Element;
40
+ }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime189.JSX.Element;
41
41
  //#endregion
42
42
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
43
43
  //# sourceMappingURL=select.d.cts.map
@@ -1,16 +1,16 @@
1
- import * as react_jsx_runtime244 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime207 from "react/jsx-runtime";
2
2
  import { Select as Select$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/select.d.ts
5
5
  declare function Select({
6
6
  ...props
7
- }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime244.JSX.Element;
7
+ }: React.ComponentProps<typeof Select$1.Root>): react_jsx_runtime207.JSX.Element;
8
8
  declare function SelectGroup({
9
9
  ...props
10
- }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime244.JSX.Element;
10
+ }: React.ComponentProps<typeof Select$1.Group>): react_jsx_runtime207.JSX.Element;
11
11
  declare function SelectValue({
12
12
  ...props
13
- }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime244.JSX.Element;
13
+ }: React.ComponentProps<typeof Select$1.Value>): react_jsx_runtime207.JSX.Element;
14
14
  declare function SelectTrigger({
15
15
  className,
16
16
  size,
@@ -18,26 +18,26 @@ declare function SelectTrigger({
18
18
  ...props
19
19
  }: React.ComponentProps<typeof Select$1.Trigger> & {
20
20
  size?: 'sm' | 'default';
21
- }): react_jsx_runtime244.JSX.Element;
21
+ }): react_jsx_runtime207.JSX.Element;
22
22
  declare function SelectContent({
23
23
  className,
24
24
  children,
25
25
  position,
26
26
  ...props
27
- }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime244.JSX.Element;
27
+ }: React.ComponentProps<typeof Select$1.Content>): react_jsx_runtime207.JSX.Element;
28
28
  declare function SelectLabel({
29
29
  className,
30
30
  ...props
31
- }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime244.JSX.Element;
31
+ }: React.ComponentProps<typeof Select$1.Label>): react_jsx_runtime207.JSX.Element;
32
32
  declare function SelectItem({
33
33
  className,
34
34
  children,
35
35
  ...props
36
- }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime244.JSX.Element;
36
+ }: React.ComponentProps<typeof Select$1.Item>): react_jsx_runtime207.JSX.Element;
37
37
  declare function SelectSeparator({
38
38
  className,
39
39
  ...props
40
- }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime244.JSX.Element;
40
+ }: React.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime207.JSX.Element;
41
41
  //#endregion
42
42
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue };
43
43
  //# sourceMappingURL=select.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime183 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime197 from "react/jsx-runtime";
2
2
  import { Separator as Separator$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/separator.d.ts
@@ -7,7 +7,7 @@ declare function Separator({
7
7
  orientation,
8
8
  decorative,
9
9
  ...props
10
- }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime183.JSX.Element;
10
+ }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime197.JSX.Element;
11
11
  //#endregion
12
12
  export { Separator };
13
13
  //# sourceMappingURL=separator.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime221 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime241 from "react/jsx-runtime";
2
2
  import { Separator as Separator$1 } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/separator.d.ts
@@ -7,7 +7,7 @@ declare function Separator({
7
7
  orientation,
8
8
  decorative,
9
9
  ...props
10
- }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime221.JSX.Element;
10
+ }: React.ComponentProps<typeof Separator$1.Root>): react_jsx_runtime241.JSX.Element;
11
11
  //#endregion
12
12
  export { Separator };
13
13
  //# sourceMappingURL=separator.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as react_jsx_runtime239 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime201 from "react/jsx-runtime";
2
2
  import { Dialog } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/sheet.d.ts
5
5
  declare function Sheet({
6
6
  ...props
7
- }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime239.JSX.Element;
7
+ }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime201.JSX.Element;
8
8
  declare function SheetTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime239.JSX.Element;
10
+ }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime201.JSX.Element;
11
11
  declare function SheetClose({
12
12
  ...props
13
- }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime239.JSX.Element;
13
+ }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime201.JSX.Element;
14
14
  declare function SheetContent({
15
15
  className,
16
16
  children,
@@ -18,23 +18,23 @@ declare function SheetContent({
18
18
  ...props
19
19
  }: React.ComponentProps<typeof Dialog.Content> & {
20
20
  side?: 'top' | 'right' | 'bottom' | 'left';
21
- }): react_jsx_runtime239.JSX.Element;
21
+ }): react_jsx_runtime201.JSX.Element;
22
22
  declare function SheetHeader({
23
23
  className,
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime239.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime201.JSX.Element;
26
26
  declare function SheetFooter({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'div'>): react_jsx_runtime239.JSX.Element;
29
+ }: React.ComponentProps<'div'>): react_jsx_runtime201.JSX.Element;
30
30
  declare function SheetTitle({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime239.JSX.Element;
33
+ }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime201.JSX.Element;
34
34
  declare function SheetDescription({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime239.JSX.Element;
37
+ }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime201.JSX.Element;
38
38
  //#endregion
39
39
  export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
40
40
  //# sourceMappingURL=sheet.d.cts.map
@@ -1,16 +1,16 @@
1
- import * as react_jsx_runtime226 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime216 from "react/jsx-runtime";
2
2
  import { Dialog } from "radix-ui";
3
3
 
4
4
  //#region packages/components/ui/sheet.d.ts
5
5
  declare function Sheet({
6
6
  ...props
7
- }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime226.JSX.Element;
7
+ }: React.ComponentProps<typeof Dialog.Root>): react_jsx_runtime216.JSX.Element;
8
8
  declare function SheetTrigger({
9
9
  ...props
10
- }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime226.JSX.Element;
10
+ }: React.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime216.JSX.Element;
11
11
  declare function SheetClose({
12
12
  ...props
13
- }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime226.JSX.Element;
13
+ }: React.ComponentProps<typeof Dialog.Close>): react_jsx_runtime216.JSX.Element;
14
14
  declare function SheetContent({
15
15
  className,
16
16
  children,
@@ -18,23 +18,23 @@ declare function SheetContent({
18
18
  ...props
19
19
  }: React.ComponentProps<typeof Dialog.Content> & {
20
20
  side?: 'top' | 'right' | 'bottom' | 'left';
21
- }): react_jsx_runtime226.JSX.Element;
21
+ }): react_jsx_runtime216.JSX.Element;
22
22
  declare function SheetHeader({
23
23
  className,
24
24
  ...props
25
- }: React.ComponentProps<'div'>): react_jsx_runtime226.JSX.Element;
25
+ }: React.ComponentProps<'div'>): react_jsx_runtime216.JSX.Element;
26
26
  declare function SheetFooter({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<'div'>): react_jsx_runtime226.JSX.Element;
29
+ }: React.ComponentProps<'div'>): react_jsx_runtime216.JSX.Element;
30
30
  declare function SheetTitle({
31
31
  className,
32
32
  ...props
33
- }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime226.JSX.Element;
33
+ }: React.ComponentProps<typeof Dialog.Title>): react_jsx_runtime216.JSX.Element;
34
34
  declare function SheetDescription({
35
35
  className,
36
36
  ...props
37
- }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime226.JSX.Element;
37
+ }: React.ComponentProps<typeof Dialog.Description>): react_jsx_runtime216.JSX.Element;
38
38
  //#endregion
39
39
  export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
40
40
  //# sourceMappingURL=sheet.d.mts.map
@@ -1,2 +1,2 @@
1
- "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-rdXrPUao.cjs`);const t=require(`../button-C58TS8Pc.cjs`),n=require(`../skeleton-CHympz8k.cjs`),r=require(`../tooltip-DC6i1A25.cjs`),i=require(`../separator-C3ip6sbh.cjs`),a=require(`../input-BFWWaN-v.cjs`),o=require(`./drawer.cjs`);let s=require(`@customafk/react-toolkit/utils`),c=require(`class-variance-authority`),l=require(`react`),u=require(`react/jsx-runtime`),d=require(`lucide-react`),f=require(`radix-ui`),p=require(`@customafk/react-toolkit/hooks/useMobile`);const m=`sidebar_state`,h=3600*24*7,g=`16rem`,_=`18rem`,v=`3rem`,y=`b`,b=(0,l.createContext)(null);function x(){let e=(0,l.use)(b);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function S({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:o,...c}){let d=(0,p.useIsMobile)(),[f,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(e),_=t??h,v=(0,l.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),y=(0,l.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,l.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]);let x=_?`expanded`:`collapsed`,S=(0,l.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:y,open:_,setOpen:v,openMobile:f,setOpenMobile:m}),[x,_,v,d,f,m,y]);return(0,u.jsx)(b.Provider,{value:S,children:(0,u.jsx)(r.r,{delayDuration:0,children:(0,u.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,i),...c,children:o})})})}function C({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=x();return n===`none`?(0,u.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):c?(0,u.jsx)(o.Drawer,{open:d,onOpenChange:f,direction:`left`,children:(0,u.jsxs)(o.DrawerContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},children:[(0,u.jsxs)(o.DrawerHeader,{className:`sr-only`,children:[(0,u.jsx)(o.DrawerContent,{children:`Sidebar`}),(0,u.jsx)(o.DrawerDescription,{children:`Displays the mobile sidebar.`})]}),(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,u.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":l,"data-collapsible":l===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,u.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,u.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,s.cn)(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,u.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function w({className:e,onClick:n,...r}){let{toggleSidebar:i}=x();return(0,u.jsxs)(t.t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,u.jsx)(d.MenuIcon,{className:`!size-6`}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function T({className:e,...t}){let{toggleSidebar:n}=x();return(0,u.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function E({className:e,children:t,...n}){return(0,u.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[(0,u.jsx)(`div`,{className:`h-14 w-full`}),(0,u.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function D({className:e,...t}){return(0,u.jsx)(a.t,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:(0,s.cn)(`bg-background h-8 w-full shadow-none`,e),...t})}function O({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function k({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function A({className:e,...t}){return(0,u.jsx)(i.t,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function j({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function M({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function N({className:e,asChild:t=!1,...n}){return(0,u.jsx)(t?f.Slot.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function P({className:e,asChild:t=!1,...n}){return(0,u.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function F({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function I({className:e,...t}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function L({className:e,...t}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const R=(0,c.cva)([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-accent-foreground`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`],{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function z({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:i=`default`,tooltip:a,className:o,...c}){let l=e?f.Slot.Slot:`button`,{isMobile:d,state:p}=x(),m=(0,u.jsx)(l,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":t,className:(0,s.cn)(R({variant:n,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,u.jsxs)(r.t,{children:[(0,u.jsx)(r.i,{asChild:!0,children:m}),(0,u.jsx)(r.n,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...a})]})):m}function B({className:e,asChild:t=!1,showOnHover:n=!1,...r}){return(0,u.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function V({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function H({className:e,showIcon:t=!1,...r}){let i=(0,l.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,u.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,u.jsx)(n.t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,u.jsx)(n.t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function U({className:e,...t}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function W({className:e,...t}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function G({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,u.jsx)(e?f.Slot.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}exports.Sidebar=C,exports.SidebarContent=j,exports.SidebarFooter=k,exports.SidebarGroup=M,exports.SidebarGroupAction=P,exports.SidebarGroupContent=F,exports.SidebarGroupLabel=N,exports.SidebarHeader=O,exports.SidebarInput=D,exports.SidebarInset=E,exports.SidebarMenu=I,exports.SidebarMenuAction=B,exports.SidebarMenuBadge=V,exports.SidebarMenuButton=z,exports.SidebarMenuItem=L,exports.SidebarMenuSkeleton=H,exports.SidebarMenuSub=U,exports.SidebarMenuSubButton=G,exports.SidebarMenuSubItem=W,exports.SidebarProvider=S,exports.SidebarRail=T,exports.SidebarSeparator=A,exports.SidebarTrigger=w,exports.useSidebar=x;
1
+ "use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-rdXrPUao.cjs`);const t=require(`../button-CYw2AqT0.cjs`),n=require(`../skeleton-CHympz8k.cjs`),r=require(`../tooltip-DC6i1A25.cjs`),i=require(`../separator-C3ip6sbh.cjs`),a=require(`../input-BFWWaN-v.cjs`),o=require(`./drawer.cjs`);let s=require(`@customafk/react-toolkit/utils`),c=require(`class-variance-authority`),l=require(`react`),u=require(`react/jsx-runtime`),d=require(`lucide-react`),f=require(`radix-ui`),p=require(`@customafk/react-toolkit/hooks/useMobile`);const m=`sidebar_state`,h=3600*24*7,g=`16rem`,_=`18rem`,v=`3rem`,y=`b`,b=(0,l.createContext)(null);function x(){let e=(0,l.use)(b);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function S({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:a,children:o,...c}){let d=(0,p.useIsMobile)(),[f,m]=(0,l.useState)(!1),[h,g]=(0,l.useState)(e),_=t??h,v=(0,l.useCallback)(e=>{let t=typeof e==`function`?e(_):e;n?n(t):g(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,_]),y=(0,l.useCallback)(()=>d?m(e=>!e):v(e=>!e),[d,v,m]);(0,l.useEffect)(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]);let x=_?`expanded`:`collapsed`,S=(0,l.useMemo)(()=>({state:x,isMobile:d,toggleSidebar:y,open:_,setOpen:v,openMobile:f,setOpenMobile:m}),[x,_,v,d,f,m,y]);return(0,u.jsx)(b.Provider,{value:S,children:(0,u.jsx)(r.r,{delayDuration:0,children:(0,u.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...a},className:(0,s.cn)(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,i),...c,children:o})})})}function C({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:c,state:l,openMobile:d,setOpenMobile:f}=x();return n===`none`?(0,u.jsx)(`aside`,{"data-slot":`sidebar`,className:(0,s.cn)(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,`border-r`,r),...a,children:i}):c?(0,u.jsx)(o.Drawer,{open:d,onOpenChange:f,direction:`left`,children:(0,u.jsxs)(o.DrawerContent,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":`18rem`},children:[(0,u.jsxs)(o.DrawerHeader,{className:`sr-only`,children:[(0,u.jsx)(o.DrawerContent,{children:`Sidebar`}),(0,u.jsx)(o.DrawerDescription,{children:`Displays the mobile sidebar.`})]}),(0,u.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,u.jsxs)(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":l,"data-collapsible":l===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,u.jsx)(`div`,{"data-slot":`sidebar-gap`,className:(0,s.cn)(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-14 w-(--sidebar-width)`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,u.jsx)(`div`,{"data-slot":`sidebar-container`,className:(0,s.cn)(`hidden md:flex`,`fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`border-r`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0`,e===`left`&&`group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0`,e===`right`&&`group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,u.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:(0,s.cn)(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function w({className:e,onClick:n,...r}){let{toggleSidebar:i}=x();return(0,u.jsxs)(t.t,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:(0,s.cn)(`size-10 rounded-full`,e),onClick:e=>{n?.(e),i()},...r,children:[(0,u.jsx)(d.MenuIcon,{className:`!size-6`}),(0,u.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function T({className:e,...t}){let{toggleSidebar:n}=x();return(0,u.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:(0,s.cn)(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear sm:flex`,`after:absolute`,`after:inset-y-0`,`after:left-1/2`,`after:w-0.5`,`group-data-[side=left]:-right-4`,`group-data-[side=right]:left-0`,`in-data-[side=left]:cursor-w-resize`,`in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize`,`[[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:after:bg-sidebar-border`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`group-data-[collapsible=offcanvas]:translate-x-0`,`group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function E({className:e,children:t,...n}){return(0,u.jsxs)(`main`,{"data-slot":`sidebar-inset`,className:(0,s.cn)(`w-full`,`relative`,`flex flex-1 flex-col`,e),...n,children:[(0,u.jsx)(`div`,{className:`h-14 w-full`}),(0,u.jsx)(`div`,{className:(0,s.cn)(`flex-1 inset-shadow-sm`),children:t})]})}function D({className:e,...t}){return(0,u.jsx)(a.t,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:(0,s.cn)(`bg-background h-8 w-full shadow-none`,e),...t})}function O({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function k({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:(0,s.cn)(`flex flex-col gap-2 p-2`,e),...t})}function A({className:e,...t}){return(0,u.jsx)(i.t,{"data-slot":`sidebar-separator`,"data-sidebar":`separator`,className:(0,s.cn)(`bg-sidebar-border mx-2 w-auto`,e),...t})}function j({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:(0,s.cn)(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function M({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:(0,s.cn)(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function N({className:e,asChild:t=!1,...n}){return(0,u.jsx)(t?f.Slot.Slot:`div`,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:(0,s.cn)(`text-sidebar-foreground/70`,`ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function P({className:e,asChild:t=!1,...n}){return(0,u.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-group-action`,"data-sidebar":`group-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring`,`absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n})}function F({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:(0,s.cn)(`w-full text-sm`,e),...t})}function I({className:e,...t}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:(0,s.cn)(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function L({className:e,...t}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:(0,s.cn)(`group/menu-item relative`,e),...t})}const R=(0,c.cva)([`peer/menu-button cursor-pointer flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding]`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`disabled:pointer-events-none`,`disabled:opacity-50`,`group-has-data-[sidebar=menu-action]/menu-item:pr-8`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:font-medium`,`data-[active=true]:text-sidebar-accent-foreground`,`data-[state=open]:hover:bg-sidebar-accent`,`data-[state=open]:hover:text-sidebar-accent-foreground`,`group-data-[collapsible=icon]:size-8!`,`group-data-[collapsible=icon]:p-2!`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`],{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function z({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:i=`default`,tooltip:a,className:o,...c}){let l=e?f.Slot.Slot:`button`,{isMobile:d,state:p}=x(),m=(0,u.jsx)(l,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":i,"data-active":t,className:(0,s.cn)(R({variant:n,size:i}),o),...c});return a?(typeof a==`string`&&(a={children:a}),(0,u.jsxs)(r.t,{children:[(0,u.jsx)(r.i,{asChild:!0,children:m}),(0,u.jsx)(r.n,{side:`right`,align:`center`,hidden:p!==`collapsed`||d,...a})]})):m}function B({className:e,asChild:t=!1,showOnHover:n=!1,...r}){return(0,u.jsx)(t?f.Slot.Slot:`button`,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform`,`focus-visible:ring-2`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,n&&`group-focus-within/menu-item:opacity-100`,n&&`group-hover/menu-item:opacity-100`,n&&`data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function V({className:e,...t}){return(0,u.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:(0,s.cn)(`text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none`,`peer-hover/menu-button:text-sidebar-accent-foreground`,`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function H({className:e,showIcon:t=!1,...r}){let i=(0,l.useMemo)(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,u.jsxs)(`div`,{"data-slot":`sidebar-menu-skeleton`,"data-sidebar":`menu-skeleton`,className:(0,s.cn)(`flex h-8 items-center gap-2 rounded-md px-2`,e),...r,children:[t&&(0,u.jsx)(n.t,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,u.jsx)(n.t,{className:`h-4 max-w-(--skeleton-width) flex-1`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})}function U({className:e,...t}){return(0,u.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:(0,s.cn)(`border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t})}function W({className:e,...t}){return(0,u.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:(0,s.cn)(`group/menu-sub-item relative`,e),...t})}function G({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,u.jsx)(e?f.Slot.Slot:`a`,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:(0,s.cn)(`text-sidebar-foreground ring-sidebar-ring`,`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden`,`hover:bg-sidebar-accent`,`hover:text-sidebar-accent-foreground`,`active:bg-sidebar-accent`,`active:text-sidebar-accent-foreground`,`focus-visible:ring-2`,`disabled:pointer-events-none`,`disabled:opacity-50`,`aria-disabled:pointer-events-none`,`aria-disabled:opacity-50`,`[&>span:last-child]:truncate`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`[&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent`,`data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i})}exports.Sidebar=C,exports.SidebarContent=j,exports.SidebarFooter=k,exports.SidebarGroup=M,exports.SidebarGroupAction=P,exports.SidebarGroupContent=F,exports.SidebarGroupLabel=N,exports.SidebarHeader=O,exports.SidebarInput=D,exports.SidebarInset=E,exports.SidebarMenu=I,exports.SidebarMenuAction=B,exports.SidebarMenuBadge=V,exports.SidebarMenuButton=z,exports.SidebarMenuItem=L,exports.SidebarMenuSkeleton=H,exports.SidebarMenuSub=U,exports.SidebarMenuSubButton=G,exports.SidebarMenuSubItem=W,exports.SidebarProvider=S,exports.SidebarRail=T,exports.SidebarSeparator=A,exports.SidebarTrigger=w,exports.useSidebar=x;
2
2
  //# sourceMappingURL=sidebar.cjs.map