@sqlrooms/ui 0.29.0-rc.0 → 0.29.0-rc.10

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 (114) hide show
  1. package/LICENSE.md +2 -1
  2. package/README.md +98 -4
  3. package/dist/components/accordion.d.ts +2 -2
  4. package/dist/components/accordion.d.ts.map +1 -1
  5. package/dist/components/accordion.js +3 -3
  6. package/dist/components/accordion.js.map +1 -1
  7. package/dist/components/alert.js +1 -1
  8. package/dist/components/alert.js.map +1 -1
  9. package/dist/components/card.js +1 -1
  10. package/dist/components/card.js.map +1 -1
  11. package/dist/components/combobox.d.ts +67 -1
  12. package/dist/components/combobox.d.ts.map +1 -1
  13. package/dist/components/combobox.js +58 -32
  14. package/dist/components/combobox.js.map +1 -1
  15. package/dist/components/editable-text.d.ts +2 -1
  16. package/dist/components/editable-text.d.ts.map +1 -1
  17. package/dist/components/editable-text.js +38 -11
  18. package/dist/components/editable-text.js.map +1 -1
  19. package/dist/components/error-pane.d.ts.map +1 -1
  20. package/dist/components/error-pane.js +2 -2
  21. package/dist/components/error-pane.js.map +1 -1
  22. package/dist/components/hover-card.d.ts +7 -0
  23. package/dist/components/hover-card.d.ts.map +1 -0
  24. package/dist/components/hover-card.js +15 -0
  25. package/dist/components/hover-card.js.map +1 -0
  26. package/dist/components/modifier-scroll-overlay.d.ts +16 -0
  27. package/dist/components/modifier-scroll-overlay.d.ts.map +1 -0
  28. package/dist/components/modifier-scroll-overlay.js +31 -0
  29. package/dist/components/modifier-scroll-overlay.js.map +1 -0
  30. package/dist/components/progress-modal.d.ts +2 -0
  31. package/dist/components/progress-modal.d.ts.map +1 -1
  32. package/dist/components/progress-modal.js +2 -2
  33. package/dist/components/progress-modal.js.map +1 -1
  34. package/dist/components/progress.d.ts.map +1 -1
  35. package/dist/components/progress.js.map +1 -1
  36. package/dist/components/resizable.d.ts +302 -20
  37. package/dist/components/resizable.d.ts.map +1 -1
  38. package/dist/components/resizable.js +12 -5
  39. package/dist/components/resizable.js.map +1 -1
  40. package/dist/components/run-button.d.ts +19 -0
  41. package/dist/components/run-button.d.ts.map +1 -0
  42. package/dist/components/run-button.js +17 -0
  43. package/dist/components/run-button.js.map +1 -0
  44. package/dist/components/settings-panel-header.d.ts +16 -0
  45. package/dist/components/settings-panel-header.d.ts.map +1 -0
  46. package/dist/components/settings-panel-header.js +9 -0
  47. package/dist/components/settings-panel-header.js.map +1 -0
  48. package/dist/components/sidebar.d.ts +3 -2
  49. package/dist/components/sidebar.d.ts.map +1 -1
  50. package/dist/components/sidebar.js +16 -12
  51. package/dist/components/sidebar.js.map +1 -1
  52. package/dist/components/sonner.d.ts +4 -0
  53. package/dist/components/sonner.d.ts.map +1 -0
  54. package/dist/components/sonner.js +37 -0
  55. package/dist/components/sonner.js.map +1 -0
  56. package/dist/components/switch.d.ts +5 -1
  57. package/dist/components/switch.d.ts.map +1 -1
  58. package/dist/components/switch.js +7 -2
  59. package/dist/components/switch.js.map +1 -1
  60. package/dist/components/tab-strip.d.ts +27 -7
  61. package/dist/components/tab-strip.d.ts.map +1 -1
  62. package/dist/components/tab-strip.js +165 -26
  63. package/dist/components/tab-strip.js.map +1 -1
  64. package/dist/components/textarea.d.ts +3 -0
  65. package/dist/components/textarea.d.ts.map +1 -1
  66. package/dist/components/textarea.js +87 -11
  67. package/dist/components/textarea.js.map +1 -1
  68. package/dist/components/theme-switch.d.ts.map +1 -1
  69. package/dist/components/theme-switch.js +3 -3
  70. package/dist/components/theme-switch.js.map +1 -1
  71. package/dist/components/tree.d.ts.map +1 -1
  72. package/dist/components/tree.js +4 -3
  73. package/dist/components/tree.js.map +1 -1
  74. package/dist/hooks/use-mobile.d.ts.map +1 -1
  75. package/dist/hooks/use-mobile.js +1 -0
  76. package/dist/hooks/use-mobile.js.map +1 -1
  77. package/dist/hooks/useCombobox.d.ts +33 -0
  78. package/dist/hooks/useCombobox.d.ts.map +1 -0
  79. package/dist/hooks/useCombobox.js +30 -0
  80. package/dist/hooks/useCombobox.js.map +1 -0
  81. package/dist/hooks/useDebounce.d.ts +33 -0
  82. package/dist/hooks/useDebounce.d.ts.map +1 -0
  83. package/dist/hooks/useDebounce.js +45 -0
  84. package/dist/hooks/useDebounce.js.map +1 -0
  85. package/dist/hooks/useDebouncedCallback.d.ts +45 -0
  86. package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
  87. package/dist/hooks/useDebouncedCallback.js +70 -0
  88. package/dist/hooks/useDebouncedCallback.js.map +1 -0
  89. package/dist/hooks/useDebouncedValue.d.ts +23 -0
  90. package/dist/hooks/useDebouncedValue.d.ts.map +1 -0
  91. package/dist/hooks/useDebouncedValue.js +41 -0
  92. package/dist/hooks/useDebouncedValue.js.map +1 -0
  93. package/dist/index.d.ts +36 -29
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/index.js +34 -28
  96. package/dist/index.js.map +1 -1
  97. package/dist/theme/theme-provider.d.ts +22 -1
  98. package/dist/theme/theme-provider.d.ts.map +1 -1
  99. package/dist/theme/theme-provider.js +59 -20
  100. package/dist/theme/theme-provider.js.map +1 -1
  101. package/package.json +16 -16
  102. package/tailwind-preset.css +78 -0
  103. package/dist/components/toast.d.ts +0 -16
  104. package/dist/components/toast.d.ts.map +0 -1
  105. package/dist/components/toast.js +0 -35
  106. package/dist/components/toast.js.map +0 -1
  107. package/dist/components/toaster.d.ts +0 -3
  108. package/dist/components/toaster.d.ts.map +0 -1
  109. package/dist/components/toaster.js +0 -24
  110. package/dist/components/toaster.js.map +0 -1
  111. package/dist/hooks/use-toast.d.ts +0 -45
  112. package/dist/hooks/use-toast.d.ts.map +0 -1
  113. package/dist/hooks/use-toast.js +0 -129
  114. package/dist/hooks/use-toast.js.map +0 -1
@@ -1,24 +1,306 @@
1
1
  import * as ResizablePrimitive from 'react-resizable-panels';
2
- declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
- className?: string;
5
- collapsedSize?: number | undefined;
6
- collapsible?: boolean | undefined;
7
- defaultSize?: number | undefined;
8
- id?: string;
9
- maxSize?: number | undefined;
10
- minSize?: number | undefined;
11
- onCollapse?: ResizablePrimitive.PanelOnCollapse;
12
- onExpand?: ResizablePrimitive.PanelOnExpand;
13
- onResize?: ResizablePrimitive.PanelOnResize;
14
- order?: number;
15
- style?: object;
16
- tagName?: keyof HTMLElementTagNameMap | undefined;
2
+ type ResizablePanelOrientation = Exclude<ResizablePrimitive.GroupProps['orientation'], undefined>;
3
+ declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react/jsx-runtime").JSX.Element;
4
+ declare const ResizablePanel: import("react").ForwardRefExoticComponent<{
5
+ slot?: string | undefined | undefined;
6
+ style?: import("react").CSSProperties | undefined;
7
+ title?: string | undefined | undefined;
8
+ defaultChecked?: boolean | undefined | undefined;
9
+ defaultValue?: string | number | readonly string[] | undefined;
10
+ suppressContentEditableWarning?: boolean | undefined | undefined;
11
+ suppressHydrationWarning?: boolean | undefined | undefined;
12
+ accessKey?: string | undefined | undefined;
13
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
14
+ autoFocus?: boolean | undefined | undefined;
15
+ className?: string | undefined | undefined;
16
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
17
+ contextMenu?: string | undefined | undefined;
18
+ dir?: string | undefined | undefined;
19
+ draggable?: (boolean | "true" | "false") | undefined;
20
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
21
+ hidden?: boolean | undefined | undefined;
22
+ id?: string | undefined | undefined;
23
+ lang?: string | undefined | undefined;
24
+ nonce?: string | undefined | undefined;
25
+ spellCheck?: (boolean | "true" | "false") | undefined;
26
+ tabIndex?: number | undefined | undefined;
27
+ translate?: "yes" | "no" | undefined | undefined;
28
+ radioGroup?: string | undefined | undefined;
29
+ role?: import("react").AriaRole | undefined;
30
+ about?: string | undefined | undefined;
31
+ content?: string | undefined | undefined;
32
+ datatype?: string | undefined | undefined;
33
+ inlist?: any;
34
+ prefix?: string | undefined | undefined;
35
+ property?: string | undefined | undefined;
36
+ rel?: string | undefined | undefined;
37
+ resource?: string | undefined | undefined;
38
+ rev?: string | undefined | undefined;
39
+ typeof?: string | undefined | undefined;
40
+ vocab?: string | undefined | undefined;
41
+ autoCorrect?: string | undefined | undefined;
42
+ autoSave?: string | undefined | undefined;
43
+ color?: string | undefined | undefined;
44
+ itemProp?: string | undefined | undefined;
45
+ itemScope?: boolean | undefined | undefined;
46
+ itemType?: string | undefined | undefined;
47
+ itemID?: string | undefined | undefined;
48
+ itemRef?: string | undefined | undefined;
49
+ results?: number | undefined | undefined;
50
+ security?: string | undefined | undefined;
51
+ unselectable?: "on" | "off" | undefined | undefined;
52
+ popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
53
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
54
+ popoverTarget?: string | undefined | undefined;
55
+ inert?: boolean | undefined | undefined;
56
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
57
+ is?: string | undefined | undefined;
58
+ exportparts?: string | undefined | undefined;
59
+ part?: string | undefined | undefined;
60
+ "aria-activedescendant"?: string | undefined | undefined;
61
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
62
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
63
+ "aria-braillelabel"?: string | undefined | undefined;
64
+ "aria-brailleroledescription"?: string | undefined | undefined;
65
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
66
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
67
+ "aria-colcount"?: number | undefined | undefined;
68
+ "aria-colindex"?: number | undefined | undefined;
69
+ "aria-colindextext"?: string | undefined | undefined;
70
+ "aria-colspan"?: number | undefined | undefined;
71
+ "aria-controls"?: string | undefined | undefined;
72
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
73
+ "aria-describedby"?: string | undefined | undefined;
74
+ "aria-description"?: string | undefined | undefined;
75
+ "aria-details"?: string | undefined | undefined;
76
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
77
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
78
+ "aria-errormessage"?: string | undefined | undefined;
79
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
80
+ "aria-flowto"?: string | undefined | undefined;
81
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
82
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
83
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
84
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
85
+ "aria-keyshortcuts"?: string | undefined | undefined;
86
+ "aria-label"?: string | undefined | undefined;
87
+ "aria-labelledby"?: string | undefined | undefined;
88
+ "aria-level"?: number | undefined | undefined;
89
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
90
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
91
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
92
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
93
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
94
+ "aria-owns"?: string | undefined | undefined;
95
+ "aria-placeholder"?: string | undefined | undefined;
96
+ "aria-posinset"?: number | undefined | undefined;
97
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
98
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
99
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
100
+ "aria-required"?: (boolean | "true" | "false") | undefined;
101
+ "aria-roledescription"?: string | undefined | undefined;
102
+ "aria-rowcount"?: number | undefined | undefined;
103
+ "aria-rowindex"?: number | undefined | undefined;
104
+ "aria-rowindextext"?: string | undefined | undefined;
105
+ "aria-rowspan"?: number | undefined | undefined;
106
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
107
+ "aria-setsize"?: number | undefined | undefined;
108
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
109
+ "aria-valuemax"?: number | undefined | undefined;
110
+ "aria-valuemin"?: number | undefined | undefined;
111
+ "aria-valuenow"?: number | undefined | undefined;
112
+ "aria-valuetext"?: string | undefined | undefined;
113
+ children?: import("react").ReactNode;
114
+ dangerouslySetInnerHTML?: {
115
+ __html: string | TrustedHTML;
116
+ } | undefined | undefined;
117
+ onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
118
+ onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
119
+ onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
120
+ onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
121
+ onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
122
+ onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
123
+ onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
124
+ onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
125
+ onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
126
+ onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
127
+ onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
128
+ onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
129
+ onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
130
+ onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
131
+ onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
132
+ onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
133
+ onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
134
+ onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
135
+ onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
136
+ onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
137
+ onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
138
+ onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
139
+ onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
140
+ onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
141
+ onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
142
+ onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
143
+ onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
144
+ onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
145
+ onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
146
+ onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
147
+ onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
148
+ onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
149
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
150
+ onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
151
+ onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
152
+ onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
153
+ onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
154
+ onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
155
+ onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
156
+ onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
157
+ onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
158
+ onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
159
+ onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
160
+ onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
161
+ onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
162
+ onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
163
+ onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
164
+ onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
165
+ onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
166
+ onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
167
+ onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
168
+ onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
169
+ onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
170
+ onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
171
+ onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
172
+ onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
173
+ onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
174
+ onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
175
+ onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
176
+ onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
177
+ onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
178
+ onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
179
+ onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
180
+ onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
181
+ onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
182
+ onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
183
+ onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
184
+ onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
185
+ onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
186
+ onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
187
+ onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
188
+ onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
189
+ onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
190
+ onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
191
+ onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
192
+ onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
193
+ onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
194
+ onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
195
+ onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
196
+ onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
197
+ onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
198
+ onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
199
+ onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
200
+ onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
201
+ onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
202
+ onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
203
+ onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
204
+ onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
205
+ onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
206
+ onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
207
+ onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
208
+ onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
209
+ onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
210
+ onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
211
+ onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
212
+ onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
213
+ onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
214
+ onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
215
+ onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
216
+ onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
217
+ onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
218
+ onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
219
+ onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
220
+ onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
221
+ onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
222
+ onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
223
+ onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
224
+ onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
225
+ onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
226
+ onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
227
+ onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
228
+ onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
229
+ onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
230
+ onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
231
+ onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
232
+ onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
233
+ onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
234
+ onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
235
+ onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
236
+ onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
237
+ onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
238
+ onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
239
+ onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
240
+ onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
241
+ onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
242
+ onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
243
+ onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
244
+ onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
245
+ onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
246
+ onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
247
+ onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
248
+ onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
249
+ onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
250
+ onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
251
+ onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
252
+ onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
253
+ onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
254
+ onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
255
+ onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
256
+ onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
257
+ onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
258
+ onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
259
+ onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
260
+ onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
261
+ onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
262
+ onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
263
+ onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
264
+ onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
265
+ onScrollEnd?: import("react").UIEventHandler<HTMLDivElement> | undefined;
266
+ onScrollEndCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
267
+ onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
268
+ onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
269
+ onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
270
+ onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
271
+ onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
272
+ onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
273
+ onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
274
+ onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
275
+ onToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
276
+ onBeforeToggle?: import("react").ToggleEventHandler<HTMLDivElement> | undefined;
277
+ onTransitionCancel?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
278
+ onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
279
+ onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
280
+ onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
281
+ onTransitionRun?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
282
+ onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
283
+ onTransitionStart?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
284
+ onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
17
285
  } & {
18
- children?: import("react").ReactNode | undefined;
19
- } & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
- declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
286
+ className?: string | undefined;
287
+ collapsedSize?: number | string | undefined;
288
+ collapsible?: boolean | undefined;
289
+ defaultSize?: number | string | undefined;
290
+ disabled?: boolean | undefined;
291
+ elementRef?: import("react").Ref<HTMLDivElement | null> | undefined;
292
+ groupResizeBehavior?: "preserve-relative-size" | "preserve-pixel-size" | undefined;
293
+ id?: string | number | undefined;
294
+ maxSize?: number | string | undefined;
295
+ minSize?: number | string | undefined;
296
+ onResize?: ((panelSize: ResizablePrimitive.PanelSize, id: string | number | undefined, prevPanelSize: ResizablePrimitive.PanelSize | undefined) => void) | undefined;
297
+ panelRef?: import("react").Ref<ResizablePrimitive.PanelImperativeHandle | null> | undefined;
298
+ style?: import("react").CSSProperties | undefined;
299
+ } & import("react").RefAttributes<ResizablePrimitive.PanelImperativeHandle>>;
300
+ declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
21
301
  withHandle?: boolean;
22
- }) => import("react/jsx-runtime").JSX.Element;
23
- export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
302
+ }): import("react/jsx-runtime").JSX.Element;
303
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
304
+ export type { ResizablePanelOrientation };
305
+ export type { PanelImperativeHandle as ResizablePanelHandle } from 'react-resizable-panels';
24
306
  //# sourceMappingURL=resizable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAG1B,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,4CAQ5D,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;4EAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,4CAcA,CAAC;AAEF,OAAO,EAAC,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAC,CAAC"}
1
+ {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAK7D,KAAK,yBAAyB,GAAG,OAAO,CACtC,kBAAkB,CAAC,UAAU,CAAC,aAAa,CAAC,EAC5C,SAAS,CACV,CAAC;AAEF,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,UAAU,2CAW/B;AAED,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAWlB,CAAC;AAIH,iBAAS,eAAe,CAAC,EACvB,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,cAAc,GAAG;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,2CAeA;AAED,OAAO,EAAC,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAC,CAAC;AAC9D,YAAY,EAAC,yBAAyB,EAAC,CAAC;AACxC,YAAY,EAAC,qBAAqB,IAAI,oBAAoB,EAAC,MAAM,wBAAwB,CAAC"}
@@ -1,10 +1,17 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { GripVertical } from 'lucide-react';
4
3
  import * as ResizablePrimitive from 'react-resizable-panels';
5
4
  import { cn } from '../lib/utils';
6
- const ResizablePanelGroup = ({ className, ...props }) => (_jsx(ResizablePrimitive.PanelGroup, { className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className), ...props }));
7
- const ResizablePanel = ResizablePrimitive.Panel;
8
- const ResizableHandle = ({ withHandle, className, ...props }) => (_jsx(ResizablePrimitive.PanelResizeHandle, { className: cn('bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90', className), ...props, children: withHandle && (_jsx("div", { className: "bg-border z-20 flex h-4 w-3 items-center justify-center rounded-sm border", children: _jsx(GripVertical, { className: "h-2.5 w-2.5" }) })) }));
9
- export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
5
+ import { forwardRef } from 'react';
6
+ function ResizablePanelGroup({ className, ...props }) {
7
+ return (_jsx(ResizablePrimitive.Group, { "data-slot": "resizable-panel-group", className: cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className), ...props }));
8
+ }
9
+ const ResizablePanel = forwardRef(({ ...props }, ref) => {
10
+ return (_jsx(ResizablePrimitive.Panel, { panelRef: ref, "data-slot": "resizable-panel", ...props }));
11
+ });
12
+ ResizablePanel.displayName = 'ResizablePanel';
13
+ function ResizableHandle({ withHandle, className, ...props }) {
14
+ return (_jsx(ResizablePrimitive.Separator, { "data-slot": "resizable-handle", className: cn('bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90', className), ...props, children: withHandle && (_jsx("div", { className: "bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg" })) }));
15
+ }
16
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
10
17
  //# sourceMappingURL=resizable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.js","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAEhC,MAAM,mBAAmB,GAAG,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACmD,EAAE,EAAE,CAAC,CAChE,KAAC,kBAAkB,CAAC,UAAU,IAC5B,SAAS,EAAE,EAAE,CACX,mEAAmE,EACnE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AAEF,MAAM,cAAc,GAAG,kBAAkB,CAAC,KAAK,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,EACvB,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EAGT,EAAE,EAAE,CAAC,CACJ,KAAC,kBAAkB,CAAC,iBAAiB,IACnC,SAAS,EAAE,EAAE,CACX,2oBAA2oB,EAC3oB,SAAS,CACV,KACG,KAAK,YAER,UAAU,IAAI,CACb,cAAK,SAAS,EAAC,2EAA2E,YACxF,KAAC,YAAY,IAAC,SAAS,EAAC,aAAa,GAAG,GACpC,CACP,GACoC,CACxC,CAAC;AAEF,OAAO,EAAC,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAC,CAAC","sourcesContent":["'use client';\n\nimport {GripVertical} from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport {cn} from '../lib/utils';\n\nconst ResizablePanelGroup = ({\n className,\n ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (\n <ResizablePrimitive.PanelGroup\n className={cn(\n 'flex h-full w-full data-[panel-group-direction=vertical]:flex-col',\n className,\n )}\n {...props}\n />\n);\n\nconst ResizablePanel = ResizablePrimitive.Panel;\n\nconst ResizableHandle = ({\n withHandle,\n className,\n ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}) => (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"bg-border z-20 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <GripVertical className=\"h-2.5 w-2.5\" />\n </div>\n )}\n </ResizablePrimitive.PanelResizeHandle>\n);\n\nexport {ResizablePanelGroup, ResizablePanel, ResizableHandle};\n"]}
1
+ {"version":3,"file":"resizable.js","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAChC,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAOjC,SAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACsB;IAC9B,OAAO,CACL,KAAC,kBAAkB,CAAC,KAAK,iBACb,uBAAuB,EACjC,SAAS,EAAE,EAAE,CACX,yDAAyD,EACzD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,MAAM,cAAc,GAAG,UAAU,CAG/B,CAAC,EAAC,GAAG,KAAK,EAAC,EAAE,GAAG,EAAE,EAAE;IACpB,OAAO,CACL,KAAC,kBAAkB,CAAC,KAAK,IACvB,QAAQ,EAAE,GAAG,eACH,iBAAiB,KACvB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAE9C,SAAS,eAAe,CAAC,EACvB,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EAGT;IACC,OAAO,CACL,KAAC,kBAAkB,CAAC,SAAS,iBACjB,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CACX,skBAAskB,EACtkB,SAAS,CACV,KACG,KAAK,YAER,UAAU,IAAI,CACb,cAAK,SAAS,EAAC,iDAAiD,GAAG,CACpE,GAC4B,CAChC,CAAC;AACJ,CAAC;AAED,OAAO,EAAC,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAC,CAAC","sourcesContent":["'use client';\n\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport {cn} from '../lib/utils';\nimport {forwardRef} from 'react';\n\ntype ResizablePanelOrientation = Exclude<\n ResizablePrimitive.GroupProps['orientation'],\n undefined\n>;\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n data-slot=\"resizable-panel-group\"\n className={cn(\n 'flex h-full w-full aria-[orientation=vertical]:flex-col',\n className,\n )}\n {...props}\n />\n );\n}\n\nconst ResizablePanel = forwardRef<\n ResizablePrimitive.PanelImperativeHandle,\n ResizablePrimitive.PanelProps\n>(({...props}, ref) => {\n return (\n <ResizablePrimitive.Panel\n panelRef={ref}\n data-slot=\"resizable-panel\"\n {...props}\n />\n );\n});\n\nResizablePanel.displayName = 'ResizablePanel';\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean;\n}) {\n return (\n <ResizablePrimitive.Separator\n data-slot=\"resizable-handle\"\n className={cn(\n 'bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg\" />\n )}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport {ResizableHandle, ResizablePanel, ResizablePanelGroup};\nexport type {ResizablePanelOrientation};\nexport type {PanelImperativeHandle as ResizablePanelHandle} from 'react-resizable-panels';\n"]}
@@ -0,0 +1,19 @@
1
+ import { FC } from 'react';
2
+ import { type ButtonProps } from './button';
3
+ type RunButtonState = 'idle' | 'running' | 'cancelling';
4
+ export type RunButtonProps = {
5
+ state?: RunButtonState;
6
+ onRun: () => void;
7
+ onCancel?: () => void;
8
+ runLabel?: string;
9
+ disabled?: boolean;
10
+ variant?: ButtonProps['variant'];
11
+ cancelVariant?: ButtonProps['variant'];
12
+ className?: string;
13
+ };
14
+ /**
15
+ * A fixed-width run/cancel button that doesn't shift layout between states.
16
+ */
17
+ export declare const RunButton: FC<RunButtonProps>;
18
+ export {};
19
+ //# sourceMappingURL=run-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-button.d.ts","sourceRoot":"","sources":["../../src/components/run-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAEzB,OAAO,EAAS,KAAK,WAAW,EAAC,MAAM,UAAU,CAAC;AAIlD,KAAK,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAwCxC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Play } from 'lucide-react';
3
+ import { Button } from './button';
4
+ import { Spinner } from './spinner';
5
+ import { cn } from '../lib/utils';
6
+ /**
7
+ * A fixed-width run/cancel button that doesn't shift layout between states.
8
+ */
9
+ export const RunButton = ({ state = 'idle', onRun, onCancel, runLabel = 'Run', disabled, variant = 'secondary', cancelVariant = 'destructive', className, }) => {
10
+ const isRunning = state === 'running';
11
+ const isCancelling = state === 'cancelling';
12
+ if (isRunning || isCancelling) {
13
+ return (_jsxs(Button, { size: "xs", variant: cancelVariant, className: cn('flex h-7 w-20 gap-1', className), onClick: onCancel, disabled: isCancelling || !onCancel, children: [_jsx(Spinner, { className: "h-3.5 w-3.5 text-current" }), isCancelling ? 'Stopping' : 'Cancel'] }));
14
+ }
15
+ return (_jsxs(Button, { size: "xs", variant: variant, className: cn('flex h-7 w-20 gap-1', className), onClick: onRun, disabled: disabled, children: [_jsx(Play, { className: "h-3 w-3" }), runLabel] }));
16
+ };
17
+ //# sourceMappingURL=run-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-button.js","sourceRoot":"","sources":["../../src/components/run-button.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,MAAM,EAAmB,MAAM,UAAU,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAehC;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAuB,CAAC,EAC5C,KAAK,GAAG,MAAM,EACd,KAAK,EACL,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,GAAG,WAAW,EACrB,aAAa,GAAG,aAAa,EAC7B,SAAS,GACV,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,KAAK,KAAK,SAAS,CAAC;IACtC,MAAM,YAAY,GAAG,KAAK,KAAK,YAAY,CAAC;IAE5C,IAAI,SAAS,IAAI,YAAY,EAAE,CAAC;QAC9B,OAAO,CACL,MAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,EAC/C,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,YAAY,IAAI,CAAC,QAAQ,aAEnC,KAAC,OAAO,IAAC,SAAS,EAAC,0BAA0B,GAAG,EAC/C,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,IAC9B,CACV,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,EAC/C,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,QAAQ,aAElB,KAAC,IAAI,IAAC,SAAS,EAAC,SAAS,GAAG,EAC3B,QAAQ,IACF,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {FC} from 'react';\nimport {Play} from 'lucide-react';\nimport {Button, type ButtonProps} from './button';\nimport {Spinner} from './spinner';\nimport {cn} from '../lib/utils';\n\ntype RunButtonState = 'idle' | 'running' | 'cancelling';\n\nexport type RunButtonProps = {\n state?: RunButtonState;\n onRun: () => void;\n onCancel?: () => void;\n runLabel?: string;\n disabled?: boolean;\n variant?: ButtonProps['variant'];\n cancelVariant?: ButtonProps['variant'];\n className?: string;\n};\n\n/**\n * A fixed-width run/cancel button that doesn't shift layout between states.\n */\nexport const RunButton: FC<RunButtonProps> = ({\n state = 'idle',\n onRun,\n onCancel,\n runLabel = 'Run',\n disabled,\n variant = 'secondary',\n cancelVariant = 'destructive',\n className,\n}) => {\n const isRunning = state === 'running';\n const isCancelling = state === 'cancelling';\n\n if (isRunning || isCancelling) {\n return (\n <Button\n size=\"xs\"\n variant={cancelVariant}\n className={cn('flex h-7 w-20 gap-1', className)}\n onClick={onCancel}\n disabled={isCancelling || !onCancel}\n >\n <Spinner className=\"h-3.5 w-3.5 text-current\" />\n {isCancelling ? 'Stopping' : 'Cancel'}\n </Button>\n );\n }\n\n return (\n <Button\n size=\"xs\"\n variant={variant}\n className={cn('flex h-7 w-20 gap-1', className)}\n onClick={onRun}\n disabled={disabled}\n >\n <Play className=\"h-3 w-3\" />\n {runLabel}\n </Button>\n );\n};\n"]}
@@ -0,0 +1,16 @@
1
+ import type { FC, ReactNode } from 'react';
2
+ export type SettingsPanelHeaderProps = {
3
+ /** Header title. Defaults to "Settings". */
4
+ title?: ReactNode;
5
+ /** Optional actions rendered before the close button. */
6
+ actions?: ReactNode;
7
+ /** Optional close action for collapsible settings shells. */
8
+ onClose?: () => void;
9
+ /** Accessible label for the close button. */
10
+ closeLabel?: string;
11
+ /** Additional classes for the header container. */
12
+ className?: string;
13
+ };
14
+ /** Compact settings panel header with the shared settings icon and close affordance. */
15
+ export declare const SettingsPanelHeader: FC<SettingsPanelHeaderProps>;
16
+ //# sourceMappingURL=settings-panel-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-panel-header.d.ts","sourceRoot":"","sources":["../../src/components/settings-panel-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,EAAE,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAKzC,MAAM,MAAM,wBAAwB,GAAG;IACrC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,yDAAyD;IACzD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAgC5D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SlidersVerticalIcon, XIcon } from 'lucide-react';
3
+ import { cn } from '../lib/utils';
4
+ import { Button } from './button';
5
+ /** Compact settings panel header with the shared settings icon and close affordance. */
6
+ export const SettingsPanelHeader = ({ title = 'Settings', actions, onClose, closeLabel = 'Close settings panel', className, }) => {
7
+ return (_jsxs("div", { className: cn('flex items-center justify-between', className), children: [_jsxs("h3", { className: "flex items-center gap-1.5 text-sm font-semibold", children: [_jsx(SlidersVerticalIcon, { className: "h-3.5 w-3.5", "aria-hidden": true }), title] }), actions || onClose ? (_jsxs("div", { className: "flex items-center gap-1", children: [actions, onClose ? (_jsx(Button, { type: "button", variant: "ghost", size: "icon", className: "h-6 w-6", "aria-label": closeLabel, onClick: onClose, children: _jsx(XIcon, { className: "h-3.5 w-3.5", "aria-hidden": true }) })) : null] })) : null] }));
8
+ };
9
+ //# sourceMappingURL=settings-panel-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-panel-header.js","sourceRoot":"","sources":["../../src/components/settings-panel-header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,mBAAmB,EAAE,KAAK,EAAC,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAChC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAehC,wFAAwF;AACxF,MAAM,CAAC,MAAM,mBAAmB,GAAiC,CAAC,EAChE,KAAK,GAAG,UAAU,EAClB,OAAO,EACP,OAAO,EACP,UAAU,GAAG,sBAAsB,EACnC,SAAS,GACV,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,aAChE,cAAI,SAAS,EAAC,iDAAiD,aAC7D,KAAC,mBAAmB,IAAC,SAAS,EAAC,aAAa,wBAAe,EAC1D,KAAK,IACH,EACJ,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CACpB,eAAK,SAAS,EAAC,yBAAyB,aACrC,OAAO,EACP,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,SAAS,gBACP,UAAU,EACtB,OAAO,EAAE,OAAO,YAEhB,KAAC,KAAK,IAAC,SAAS,EAAC,aAAa,wBAAe,GACtC,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type {FC, ReactNode} from 'react';\nimport {SlidersVerticalIcon, XIcon} from 'lucide-react';\nimport {cn} from '../lib/utils';\nimport {Button} from './button';\n\nexport type SettingsPanelHeaderProps = {\n /** Header title. Defaults to \"Settings\". */\n title?: ReactNode;\n /** Optional actions rendered before the close button. */\n actions?: ReactNode;\n /** Optional close action for collapsible settings shells. */\n onClose?: () => void;\n /** Accessible label for the close button. */\n closeLabel?: string;\n /** Additional classes for the header container. */\n className?: string;\n};\n\n/** Compact settings panel header with the shared settings icon and close affordance. */\nexport const SettingsPanelHeader: FC<SettingsPanelHeaderProps> = ({\n title = 'Settings',\n actions,\n onClose,\n closeLabel = 'Close settings panel',\n className,\n}) => {\n return (\n <div className={cn('flex items-center justify-between', className)}>\n <h3 className=\"flex items-center gap-1.5 text-sm font-semibold\">\n <SlidersVerticalIcon className=\"h-3.5 w-3.5\" aria-hidden />\n {title}\n </h3>\n {actions || onClose ? (\n <div className=\"flex items-center gap-1\">\n {actions}\n {onClose ? (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"h-6 w-6\"\n aria-label={closeLabel}\n onClick={onClose}\n >\n <XIcon className=\"h-3.5 w-3.5\" aria-hidden />\n </Button>\n ) : null}\n </div>\n ) : null}\n </div>\n );\n};\n"]}
@@ -46,11 +46,12 @@ declare const sidebarMenuButtonVariants: (props?: ({
46
46
  variant?: "default" | "outline" | null | undefined;
47
47
  size?: "default" | "sm" | "lg" | null | undefined;
48
48
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
49
- declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<'button'> & {
49
+ type SidebarMenuButtonProps = React.ComponentProps<'button'> & {
50
50
  asChild?: boolean;
51
51
  isActive?: boolean;
52
52
  tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
- } & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
53
+ } & VariantProps<typeof sidebarMenuButtonVariants>;
54
+ declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<SidebarMenuButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
54
55
  declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<'button'> & {
55
56
  asChild?: boolean;
56
57
  showOnHover?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAM,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAIhE,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAStC,OAAO,EAAU,cAAc,EAAkC,MAAM,WAAW,CAAC;AASnF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;IAChE,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7D,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAIF,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACvB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,C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jB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,CAAC"}
@@ -11,7 +11,7 @@ import { Input } from './input';
11
11
  import { Separator } from './separator';
12
12
  import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, } from './sheet';
13
13
  import { Skeleton } from './skeleton';
14
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip';
14
+ import { Tooltip, TooltipContent, TooltipTrigger, } from './tooltip';
15
15
  const SIDEBAR_COOKIE_NAME = 'sidebar_state';
16
16
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
17
17
  const SIDEBAR_WIDTH = '16rem';
@@ -42,11 +42,14 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
42
42
  document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
43
43
  }, [setOpenProp, open]);
44
44
  const toggleSidebar = React.useCallback(() => {
45
- return isMobile ? setOpenMobile((nextOpen) => !nextOpen) : setOpen((nextOpen) => !nextOpen);
45
+ return isMobile
46
+ ? setOpenMobile((nextOpen) => !nextOpen)
47
+ : setOpen((nextOpen) => !nextOpen);
46
48
  }, [isMobile, setOpen, setOpenMobile]);
47
49
  React.useEffect(() => {
48
50
  const handleKeyDown = (event) => {
49
- if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
51
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
52
+ (event.metaKey || event.ctrlKey)) {
50
53
  event.preventDefault();
51
54
  toggleSidebar();
52
55
  }
@@ -64,11 +67,11 @@ function SidebarProvider({ defaultOpen = true, open: openProp, onOpenChange: set
64
67
  setOpenMobile,
65
68
  toggleSidebar,
66
69
  }), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
67
- return (_jsx(SidebarContext.Provider, { value: contextValue, children: _jsx(TooltipProvider, { delayDuration: 0, children: _jsx("div", { "data-slot": "sidebar-wrapper", style: {
68
- '--sidebar-width': SIDEBAR_WIDTH,
69
- '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
70
- ...style,
71
- }, className: cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className), ...props, children: children }) }) }));
70
+ return (_jsx(SidebarContext.Provider, { value: contextValue, children: _jsx("div", { "data-slot": "sidebar-wrapper", style: {
71
+ '--sidebar-width': SIDEBAR_WIDTH,
72
+ '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
73
+ ...style,
74
+ }, className: cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className), ...props, children: children }) }));
72
75
  }
73
76
  function Sidebar({ side = 'left', variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }) {
74
77
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
@@ -154,10 +157,10 @@ const sidebarMenuButtonVariants = cva('peer/menu-button ring-sidebar-ring flex w
154
157
  size: 'default',
155
158
  },
156
159
  });
157
- function SidebarMenuButton({ asChild = false, isActive = false, variant = 'default', size = 'default', tooltip, className, ...props }) {
160
+ const SidebarMenuButton = React.forwardRef(({ asChild = false, isActive = false, variant = 'default', size = 'default', tooltip, className, ...props }, ref) => {
158
161
  const Comp = asChild ? Slot : 'button';
159
162
  const { isMobile, state } = useSidebar();
160
- const button = (_jsx(Comp, { "data-slot": "sidebar-menu-button", "data-sidebar": "menu-button", "data-size": size, "data-active": isActive, className: cn(sidebarMenuButtonVariants({ variant, size }), className), ...props }));
163
+ const button = (_jsx(Comp, { ...props, ref: ref, "data-slot": "sidebar-menu-button", "data-sidebar": "menu-button", "data-size": size, "data-active": isActive, className: cn(sidebarMenuButtonVariants({ variant, size }), className) }));
161
164
  if (!tooltip) {
162
165
  return button;
163
166
  }
@@ -167,7 +170,8 @@ function SidebarMenuButton({ asChild = false, isActive = false, variant = 'defau
167
170
  };
168
171
  }
169
172
  return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: button }), _jsx(TooltipContent, { side: "right", align: "center", hidden: state !== 'collapsed' || isMobile, ...tooltip })] }));
170
- }
173
+ });
174
+ SidebarMenuButton.displayName = 'SidebarMenuButton';
171
175
  function SidebarMenuAction({ className, asChild = false, showOnHover = false, ...props }) {
172
176
  const Comp = asChild ? Slot : 'button';
173
177
  return (_jsx(Comp, { "data-slot": "sidebar-menu-action", "data-sidebar": "menu-action", className: 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', showOnHover &&
@@ -186,7 +190,7 @@ function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
186
190
  }
187
191
  return `${50 + (Math.abs(hash) % 40)}%`;
188
192
  }, [skeletonId]);
189
- return (_jsxs("div", { "data-slot": "sidebar-menu-skeleton", "data-sidebar": "menu-skeleton", className: cn('flex h-8 items-center gap-2 rounded-md px-2', className), ...props, children: [showIcon && _jsx(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }), _jsx(Skeleton, { className: "h-4 max-w-(--skeleton-width) flex-1", "data-sidebar": "menu-skeleton-text", style: {
193
+ return (_jsxs("div", { "data-slot": "sidebar-menu-skeleton", "data-sidebar": "menu-skeleton", className: cn('flex h-8 items-center gap-2 rounded-md px-2', className), ...props, children: [showIcon && (_jsx(Skeleton, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" })), _jsx(Skeleton, { className: "h-4 max-w-(--skeleton-width) flex-1", "data-sidebar": "menu-skeleton-text", style: {
190
194
  '--skeleton-width': width,
191
195
  } })] }));
192
196
  }