@lssm/lib.ui-kit-web 1.7.3 → 1.9.0
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.
- package/README.md +80 -0
- package/dist/node_modules/sonner/dist/index.js +1 -2
- package/dist/node_modules/sonner/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.d.ts +5 -5
- package/dist/ui/accordion.js +3 -4
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.js +8 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +6 -6
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +3 -3
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/aspect-ratio.js +0 -1
- package/dist/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +3 -4
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +6 -6
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button.d.ts +6 -6
- package/dist/ui/button.js +1 -1
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/calendar.d.ts +3 -3
- package/dist/ui/calendar.js +5 -6
- package/dist/ui/calendar.js.map +1 -1
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/card.js +7 -7
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/carousel.d.ts +6 -6
- package/dist/ui/carousel.js +5 -6
- package/dist/ui/carousel.js.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -2
- package/dist/ui/checkbox.js +1 -2
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/collapsible.js +0 -1
- package/dist/ui/collapsible.js.map +1 -1
- package/dist/ui/command.d.ts +10 -10
- package/dist/ui/command.js +8 -9
- package/dist/ui/command.js.map +1 -1
- package/dist/ui/confirm-dialog.d.ts +2 -2
- package/dist/ui/context-menu.d.ts +2 -2
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +9 -10
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/cta.d.ts +1 -1
- package/dist/ui/cta.js +1 -1
- package/dist/ui/cta.js.map +1 -1
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-picker.js +0 -1
- package/dist/ui/date-picker.js.map +1 -1
- package/dist/ui/date-range-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.js +0 -1
- package/dist/ui/date-range-picker.js.map +1 -1
- package/dist/ui/datetime-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/datetime-picker.js +0 -1
- package/dist/ui/datetime-picker.js.map +1 -1
- package/dist/ui/dialog.d.ts +11 -11
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +6 -7
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/drawer.d.ts +11 -11
- package/dist/ui/drawer.js +6 -7
- package/dist/ui/drawer.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.js +9 -10
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/empty-state.d.ts +4 -4
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/empty.js +6 -6
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/field.d.ts +11 -11
- package/dist/ui/field.js +10 -11
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.js +4 -5
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/hover-card.js +1 -2
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/input-group.d.ts +11 -11
- package/dist/ui/input-group.js +6 -7
- package/dist/ui/input-group.js.map +1 -1
- package/dist/ui/input-otp.d.ts +2 -2
- package/dist/ui/input-otp.js +3 -4
- package/dist/ui/input-otp.js.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/input.js +1 -1
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.js +1 -2
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/link.d.ts +3 -3
- package/dist/ui/link.js +1 -1
- package/dist/ui/link.js.map +1 -1
- package/dist/ui/live-region.d.ts +2 -2
- package/dist/ui/live-region.js +0 -1
- package/dist/ui/live-region.js.map +1 -1
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/loading-button.js +1 -1
- package/dist/ui/loading-button.js.map +1 -1
- package/dist/ui/map/MapBase.d.ts +2 -2
- package/dist/ui/map/MapBase.js +0 -1
- package/dist/ui/map/MapBase.js.map +1 -1
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +2 -2
- package/dist/ui/map/MapGeoJsonOverlay.js +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.js.map +1 -1
- package/dist/ui/map/MapHeatmapH3.d.ts +2 -2
- package/dist/ui/map/MapHeatmapH3.js +0 -1
- package/dist/ui/map/MapHeatmapH3.js.map +1 -1
- package/dist/ui/map/MapMarkers.d.ts +2 -2
- package/dist/ui/map/MapMarkers.js +0 -1
- package/dist/ui/map/MapMarkers.js.map +1 -1
- package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
- package/dist/ui/marketing/Hero.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts +2 -2
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +11 -12
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts +2 -2
- package/dist/ui/molecules/Autocomplete/index.js +0 -1
- package/dist/ui/molecules/Autocomplete/index.js.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +1 -1
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/nav-layout.d.ts +9 -9
- package/dist/ui/nav-layout.d.ts.map +1 -1
- package/dist/ui/nav-layout.js +1 -1
- package/dist/ui/nav-layout.js.map +1 -1
- package/dist/ui/navigation-menu.d.ts +11 -11
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +8 -8
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/page-header.d.ts +5 -5
- package/dist/ui/pagination.d.ts +6 -6
- package/dist/ui/pagination.js +7 -7
- package/dist/ui/pagination.js.map +1 -1
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/popover.js +1 -2
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/progress.js +1 -2
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +2 -3
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/resizable.d.ts +7 -7
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +2 -3
- package/dist/ui/resizable.js.map +1 -1
- package/dist/ui/route-announcer.d.ts +2 -2
- package/dist/ui/route-announcer.js +0 -1
- package/dist/ui/route-announcer.js.map +1 -1
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/scroll-area.js +2 -3
- package/dist/ui/scroll-area.js.map +1 -1
- package/dist/ui/section.d.ts +7 -7
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/section.js +1 -1
- package/dist/ui/section.js.map +1 -1
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/select.js +7 -8
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/separator.js +1 -2
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sheet.js +6 -7
- package/dist/ui/sheet.js.map +1 -1
- package/dist/ui/sidebar.d.ts +28 -28
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +23 -24
- package/dist/ui/sidebar.js.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/skip-link.d.ts +2 -2
- package/dist/ui/skip-link.js +1 -1
- package/dist/ui/skip-link.js.map +1 -1
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/slider.js +1 -2
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/sonner.js +0 -1
- package/dist/ui/sonner.js.map +1 -1
- package/dist/ui/stack.d.ts +13 -13
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +3 -3
- package/dist/ui/stack.js.map +1 -1
- package/dist/ui/stat-card-group.d.ts +2 -2
- package/dist/ui/stepper.d.ts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.js +1 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/table.js +8 -9
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/tabs.js +4 -5
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/text.js +1 -1
- package/dist/ui/text.js.map +1 -1
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/time-picker.d.ts +2 -2
- package/dist/ui/time-picker.js +0 -1
- package/dist/ui/time-picker.js.map +1 -1
- package/dist/ui/toast.d.ts +2 -2
- package/dist/ui/toast.js +6 -7
- package/dist/ui/toast.js.map +1 -1
- package/dist/ui/toaster.d.ts +2 -2
- package/dist/ui/toaster.js +1 -2
- package/dist/ui/toaster.js.map +1 -1
- package/dist/ui/toggle-group.d.ts +3 -3
- package/dist/ui/toggle-group.js +2 -3
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +4 -4
- package/dist/ui/toggle.js +1 -2
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts +5 -5
- package/dist/ui/tooltip.js +2 -3
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/typography.js +11 -11
- package/dist/ui/typography.js.map +1 -1
- package/dist/ui/use-toast.js +0 -1
- package/dist/ui/use-toast.js.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/visually-hidden.js +1 -1
- package/dist/ui/visually-hidden.js.map +1 -1
- package/package.json +9 -10
- package/dist/ui/sidebar-right.d.ts +0 -165
- package/dist/ui/sidebar-right.d.ts.map +0 -1
- package/dist/ui/sidebar-right.js +0 -380
- package/dist/ui/sidebar-right.js.map +0 -1
package/dist/ui/resizable.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react4 from "react";
|
|
2
|
+
import * as react_jsx_runtime132 from "react/jsx-runtime";
|
|
3
3
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
4
4
|
|
|
5
5
|
//#region ui/resizable.d.ts
|
|
6
6
|
declare const ResizablePanelGroup: ({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) =>
|
|
10
|
-
declare const ResizablePanel:
|
|
9
|
+
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react_jsx_runtime132.JSX.Element;
|
|
10
|
+
declare const ResizablePanel: react4.ForwardRefExoticComponent<Omit<react4.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLInputElement | HTMLAnchorElement | HTMLUListElement | HTMLLIElement | HTMLButtonElement | HTMLSpanElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLabelElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
11
11
|
className?: string;
|
|
12
12
|
collapsedSize?: number | undefined;
|
|
13
13
|
collapsible?: boolean | undefined;
|
|
@@ -22,15 +22,15 @@ declare const ResizablePanel: react2.ForwardRefExoticComponent<Omit<react2.HTMLA
|
|
|
22
22
|
style?: object;
|
|
23
23
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
24
24
|
} & {
|
|
25
|
-
children?:
|
|
26
|
-
} &
|
|
25
|
+
children?: react4.ReactNode | undefined;
|
|
26
|
+
} & react4.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
27
27
|
declare const ResizableHandle: ({
|
|
28
28
|
withHandle,
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
31
|
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
32
32
|
withHandle?: boolean;
|
|
33
|
-
}) =>
|
|
33
|
+
}) => react_jsx_runtime132.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
36
36
|
//# sourceMappingURL=resizable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.d.ts","names":[],"sources":["../../ui/resizable.tsx"],"sourcesContent":[],"mappings":";;;;;cAOM;;;GAGH,KAAA,CAAM,sBAAsB,kBAAA,CAAmB,gBAAW,oBAAA,CAAA,GAAA,CAAA;cAUvD,uBAAc,0BAAA,KAAA,MAAA,CAAA,eAAA,
|
|
1
|
+
{"version":3,"file":"resizable.d.ts","names":[],"sources":["../../ui/resizable.tsx"],"sourcesContent":[],"mappings":";;;;;cAOM;;;GAGH,KAAA,CAAM,sBAAsB,kBAAA,CAAmB,gBAAW,oBAAA,CAAA,GAAA,CAAA;cAUvD,uBAAc,0BAAA,KAAA,MAAA,CAAA,eAAA,iBAAA,cAAA,mBAAA,oBAAA,mBAAA,gBAAA,oBAAA,kBAAA,oBAAA,kBAAA,mBAAA,kBAAA,mBAAA,kBAAA,gBAAA,oBAAA,0BAAA,sBAAA,kBAAA,sBAAA,iBAAA,qBAAA,oBAAA,mBAAA,mBAAA,sBAAA,kBAAA,qBAAA,kBAAA,gBAAA,kBAAA,oBAAA,mBAAA,mBAAA,oBAAA,kBAAA,iBAAA,kBAAA,kBAAA,mBAAA,mBAAA,sBAAA,oBAAA,oBAAA,uBAAA,qBAAA,iBAAA,sBAAA,oBAAA,oBAAA,kBAAA,oBAAA,mBAAA,mBAAA,0BAAA,uBAAA,sBAAA,sBAAA,kBAAA,mBAAA,sBAAA,mBAAA;;;EAbd,WAAA,CAAA,EAAA,OAAA,GAWL,SAAA;EAX4B,WAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAGE,EAAA,CAAA,EAAA,MAAA;EAA5B,OAAM,CAAA,EAAA,MAAA,GAAA,SAAA;EAAoD,OAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAQ5D,UAAA,CAAA,oCAAA;EAEK,QAAA,CAAA,kCAAyC;EAA3B,QAAA,CAAA,kCAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EAAA,OAAA,CAAA,EAAA,2BAAA,GAAA,SAAA;CAAA,GAAA;EAAA,QAAA,CAAA,qBAAA,SAAA;CAAA,uBAAA,yCAAA,CAAA,CAAA;cAEd,eAFc,EAAA,CAAA;EAAA,UAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAMjB,KAAA,CAAM,cANW,CAAA,OAMW,kBAAA,CAAmB,iBAN9B,CAAA,GAAA;EAAA,UAAA,CAAA,EAAA,OAAA;CAAA,EAAA,GAQnB,oBAAA,CAAA,GAAA,CAAA,OARmB"}
|
package/dist/ui/resizable.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import { GripVertical } from "lucide-react";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
8
7
|
|
|
9
8
|
//#region ui/resizable.tsx
|
|
10
|
-
const ResizablePanelGroup = ({ className
|
|
9
|
+
const ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ jsx(ResizablePrimitive.PanelGroup, {
|
|
11
10
|
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
const ResizablePanel = ResizablePrimitive.Panel;
|
|
15
|
-
const ResizableHandle = ({ withHandle, className
|
|
14
|
+
const ResizableHandle = ({ withHandle, className, ...props }) => /* @__PURE__ */ jsx(ResizablePrimitive.PanelResizeHandle, {
|
|
16
15
|
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),
|
|
17
16
|
...props,
|
|
18
17
|
children: withHandle && /* @__PURE__ */ jsx("div", {
|
package/dist/ui/resizable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizable.js","names":[],"sources":["../../ui/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { GripVertical } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from './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-10 flex h-4 w-3 items-center justify-center rounded-xs border\">\n <GripVertical className=\"h-2.5 w-2.5\" />\n </div>\n )}\n </ResizablePrimitive.PanelResizeHandle>\n);\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"resizable.js","names":[],"sources":["../../ui/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { GripVertical } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from './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-10 flex h-4 w-3 items-center justify-center rounded-xs border\">\n <GripVertical className=\"h-2.5 w-2.5\" />\n </div>\n )}\n </ResizablePrimitive.PanelResizeHandle>\n);\n\nexport { ResizablePanelGroup, ResizablePanel, ResizableHandle };\n"],"mappings":";;;;;;;;AAOA,MAAM,uBAAuB,EAC3B,WACA,GAAG,YAEH,oBAAC,mBAAmB;CAClB,WAAW,GACT,qEACA,UACD;CACD,GAAI;EACJ;AAGJ,MAAM,iBAAiB,mBAAmB;AAE1C,MAAM,mBAAmB,EACvB,YACA,WACA,GAAG,YAIH,oBAAC,mBAAmB;CAClB,WAAW,GACT,6oBACA,UACD;CACD,GAAI;WAEH,cACC,oBAAC;EAAI,WAAU;YACb,oBAAC,gBAAa,WAAU,gBAAgB;GACpC;EAE6B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime134 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/route-announcer.d.ts
|
|
4
4
|
declare function RouteAnnouncer({
|
|
5
5
|
title
|
|
6
6
|
}: {
|
|
7
7
|
title?: string;
|
|
8
|
-
}):
|
|
8
|
+
}): react_jsx_runtime134.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { RouteAnnouncer };
|
|
11
11
|
//# sourceMappingURL=route-announcer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-announcer.js","names":["React"],"sources":["../../ui/route-announcer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport function RouteAnnouncer({ title }: { title?: string }) {\n // When title changes, announce it in polite region\n const [message, setMessage] = React.useState('');\n React.useEffect(() => {\n if (title) setMessage(title);\n }, [title]);\n return (\n <div aria-live=\"polite\" aria-atomic=\"true\" className=\"sr-only\">\n {message}\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"route-announcer.js","names":["React"],"sources":["../../ui/route-announcer.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport function RouteAnnouncer({ title }: { title?: string }) {\n // When title changes, announce it in polite region\n const [message, setMessage] = React.useState('');\n React.useEffect(() => {\n if (title) setMessage(title);\n }, [title]);\n return (\n <div aria-live=\"polite\" aria-atomic=\"true\" className=\"sr-only\">\n {message}\n </div>\n );\n}\n"],"mappings":";;;;;;AAIA,SAAgB,eAAe,EAAE,SAA6B;CAE5D,MAAM,CAAC,SAAS,cAAcA,QAAM,SAAS,GAAG;AAChD,SAAM,gBAAgB;AACpB,MAAI,MAAO,YAAW,MAAM;IAC3B,CAAC,MAAM,CAAC;AACX,QACE,oBAAC;EAAI,aAAU;EAAS,eAAY;EAAO,WAAU;YAClD;GACG"}
|
package/dist/ui/scroll-area.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
3
3
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
4
4
|
|
|
5
5
|
//#region ui/scroll-area.d.ts
|
|
@@ -7,12 +7,12 @@ declare function ScrollArea({
|
|
|
7
7
|
className,
|
|
8
8
|
children,
|
|
9
9
|
...props
|
|
10
|
-
}: React$1.ComponentProps<typeof ScrollAreaPrimitive.Root>):
|
|
10
|
+
}: React$1.ComponentProps<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime146.JSX.Element;
|
|
11
11
|
declare function ScrollBar({
|
|
12
12
|
className,
|
|
13
13
|
orientation,
|
|
14
14
|
...props
|
|
15
|
-
}: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>):
|
|
15
|
+
}: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime146.JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { ScrollArea, ScrollBar };
|
|
18
18
|
//# sourceMappingURL=scroll-area.d.ts.map
|
package/dist/ui/scroll-area.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
8
7
|
|
|
9
8
|
//#region ui/scroll-area.tsx
|
|
10
|
-
function ScrollArea({ className, children
|
|
9
|
+
function ScrollArea({ className, children, ...props }) {
|
|
11
10
|
return /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
|
|
12
11
|
"data-slot": "scroll-area",
|
|
13
12
|
className: cn("relative", className),
|
|
@@ -23,7 +22,7 @@ function ScrollArea({ className, children,...props }) {
|
|
|
23
22
|
]
|
|
24
23
|
});
|
|
25
24
|
}
|
|
26
|
-
function ScrollBar({ className, orientation = "vertical"
|
|
25
|
+
function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
27
26
|
return /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
28
27
|
"data-slot": "scroll-area-scrollbar",
|
|
29
28
|
orientation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.js","names":[],"sources":["../../ui/scroll-area.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\n\nimport { cn } from './utils';\n\nfunction ScrollArea({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root\n data-slot=\"scroll-area\"\n className={cn('relative', className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] outline-hidden transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={cn(\n 'flex touch-none p-px transition-colors select-none',\n orientation === 'vertical' &&\n 'h-full w-2.5 border-l border-l-transparent',\n orientation === 'horizontal' &&\n 'h-2.5 flex-col border-t border-t-transparent',\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"scroll-area.js","names":[],"sources":["../../ui/scroll-area.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\n\nimport { cn } from './utils';\n\nfunction ScrollArea({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root\n data-slot=\"scroll-area\"\n className={cn('relative', className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] outline-hidden transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n className={cn(\n 'flex touch-none p-px transition-colors select-none',\n orientation === 'vertical' &&\n 'h-full w-2.5 border-l border-l-transparent',\n orientation === 'horizontal' &&\n 'h-2.5 flex-col border-t border-t-transparent',\n className\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n"],"mappings":";;;;;;;;AAOA,SAAS,WAAW,EAClB,WACA,UACA,GAAG,SACqD;AACxD,QACE,qBAAC,oBAAoB;EACnB,aAAU;EACV,WAAW,GAAG,YAAY,UAAU;EACpC,GAAI;;GAEJ,oBAAC,oBAAoB;IACnB,aAAU;IACV,WAAU;IAET;KAC4B;GAC/B,oBAAC,cAAY;GACb,oBAAC,oBAAoB,WAAS;;GACL;;AAI/B,SAAS,UAAU,EACjB,WACA,cAAc,YACd,GAAG,SACoE;AACvE,QACE,oBAAC,oBAAoB;EACnB,aAAU;EACG;EACb,WAAW,GACT,sDACA,gBAAgB,cACd,8CACF,gBAAgB,gBACd,gDACF,UACD;EACD,GAAI;YAEJ,oBAAC,oBAAoB;GACnB,aAAU;GACV,WAAU;IACV;GACsC"}
|
package/dist/ui/section.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region ui/section.d.ts
|
|
6
6
|
declare const sectionVariants: (props?: ({
|
|
7
7
|
width?: "container" | "narrow" | "wide" | "fluid" | null | undefined;
|
|
8
|
-
px?: "
|
|
9
|
-
py?: "
|
|
8
|
+
px?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
9
|
+
py?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
10
10
|
tone?: "plain" | "tint" | "subtle" | null | undefined;
|
|
11
11
|
text?: "base" | "lg" | null | undefined;
|
|
12
|
-
} &
|
|
12
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
13
13
|
type SectionProps = React$1.HTMLAttributes<HTMLElement> & VariantProps<typeof sectionVariants> & {
|
|
14
14
|
as?: 'section' | 'div' | 'main' | 'header' | 'footer' | 'aside' | 'article' | 'nav';
|
|
15
15
|
};
|
|
16
16
|
declare const Section: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
17
17
|
width?: "container" | "narrow" | "wide" | "fluid" | null | undefined;
|
|
18
|
-
px?: "
|
|
19
|
-
py?: "
|
|
18
|
+
px?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
19
|
+
py?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
20
20
|
tone?: "plain" | "tint" | "subtle" | null | undefined;
|
|
21
21
|
text?: "base" | "lg" | null | undefined;
|
|
22
|
-
} &
|
|
22
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string> & {
|
|
23
23
|
as?: "section" | "div" | "main" | "header" | "footer" | "aside" | "article" | "nav";
|
|
24
24
|
} & React$1.RefAttributes<HTMLElement>>;
|
|
25
25
|
//#endregion
|
package/dist/ui/section.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.d.ts","names":[],"sources":["../../ui/section.tsx"],"sourcesContent":[],"mappings":";;;;;cAIM,uBAwC2B;;;EAxC3B,EAAA,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"section.d.ts","names":[],"sources":["../../ui/section.tsx"],"sourcesContent":[],"mappings":";;;;;cAIM,uBAwC2B;;;EAxC3B,EAAA,CAAA,EAAA,MAAA,GAAA,IAsCJ,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAEU,IAAA,CAAA,EAAA,OAAA,GAAY,MAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;EAAwB,IAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CAArB,GAFzB,+BAAA,CAAA,SAE+B,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;AACX,KADV,YAAA,GAAe,OAAA,CAAM,cACX,CAD0B,WAC1B,CAAA,GAApB,YAAoB,CAAA,OAAA,eAAA,CAAA,GAAA;EAApB,EAAA,CAAA,EAAA,SAAA,GAAA,KAAA,GAAA,MAAA,GAAA,QAAA,GAAA,QAAA,GAAA,OAAA,GAAA,SAAA,GAAA,KAAA;CAAY;AAYD,cAAA,OAcZ,EAdmB,OAAA,CAAA,yBAcnB,CAdmB,OAAA,CAAA,cAcnB,CAdmB,WAcnB,CAAA,GAdmB,YAcnB,CAAA,CAAA,MAAA,EAAA,CAAA;EAdmB,KAAA,CAAA,EAAA,WAAA,GAAA,QAAA,GAAA,MAAA,GAAA,OAAA,GAAA,IAAA,GAAA,SAAA;EAAA,EAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAAA,EAAA,CAAA,EAAA,MAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;EAAA,IAAA,CAAA,EAAA,OAAA,GAAA,MAAA,GAAA,QAAA,GAAA,IAAA,GAAA,SAAA;;IAAA,+BAAA,CAAA;EAAA,EAAA,CAAA,EAAA,SAAA,GAAA,KAAA,GAAA,MAAA,GAAA,QAAA,GAAA,QAAA,GAAA,OAAA,GAAA,SAAA,GAAA,KAAA;CAAA,wBAAA,YAAA,CAAA,CAAA"}
|
package/dist/ui/section.js
CHANGED
|
@@ -43,7 +43,7 @@ const sectionVariants = cva("", {
|
|
|
43
43
|
text: "lg"
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
const Section = React$1.forwardRef(({ as = "section", className, width, px, py, tone, text
|
|
46
|
+
const Section = React$1.forwardRef(({ as = "section", className, width, px, py, tone, text, ...props }, ref) => {
|
|
47
47
|
return /* @__PURE__ */ jsx(as, {
|
|
48
48
|
ref,
|
|
49
49
|
className: cn(sectionVariants({
|
package/dist/ui/section.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.js","names":["React"],"sources":["../../ui/section.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from './utils';\n\nconst sectionVariants = cva('', {\n variants: {\n width: {\n container: 'container mx-auto',\n narrow: 'mx-auto max-w-3xl',\n wide: 'mx-auto max-w-7xl',\n fluid: 'w-full',\n },\n px: {\n none: 'px-0',\n sm: 'px-3',\n md: 'px-4 sm:px-6',\n lg: 'px-4 sm:px-6 lg:px-32',\n },\n py: {\n none: 'py-0',\n sm: 'py-6',\n md: 'py-12',\n lg: 'py-20',\n xl: 'py-32',\n },\n tone: {\n plain: '',\n tint: 'bg-muted/50',\n subtle: 'bg-secondary/10',\n },\n text: {\n lg: 'text-lg',\n base: 'text-base',\n },\n },\n defaultVariants: {\n width: 'container',\n px: 'lg',\n py: 'lg',\n tone: 'plain',\n text: 'lg',\n },\n});\n\nexport type SectionProps = React.HTMLAttributes<HTMLElement> &\n VariantProps<typeof sectionVariants> & {\n as?:\n | 'section'\n | 'div'\n | 'main'\n | 'header'\n | 'footer'\n | 'aside'\n | 'article'\n | 'nav';\n };\n\nexport const Section = React.forwardRef<HTMLElement, SectionProps>(\n ({ as = 'section', className, width, px, py, tone, text, ...props }, ref) => {\n const Comp: any = as;\n return (\n <Comp\n ref={ref}\n className={cn(\n sectionVariants({ width, px, py, tone, text }),\n className\n )}\n {...props}\n />\n );\n }\n);\nSection.displayName = 'Section';\n\nexport { sectionVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,IAAI;CAC9B,UAAU;EACR,OAAO;GACL,WAAW;GACX,QAAQ;GACR,MAAM;GACN,OAAO;GACR;EACD,IAAI;GACF,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,IAAI;GACF,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,MAAM;GACJ,OAAO;GACP,MAAM;GACN,QAAQ;GACT;EACD,MAAM;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,MAAM;EACP;CACF,CAAC;AAeF,MAAa,UAAUA,QAAM,YAC1B,EAAE,KAAK,WAAW,WAAW,OAAO,IAAI,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"section.js","names":["React"],"sources":["../../ui/section.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from './utils';\n\nconst sectionVariants = cva('', {\n variants: {\n width: {\n container: 'container mx-auto',\n narrow: 'mx-auto max-w-3xl',\n wide: 'mx-auto max-w-7xl',\n fluid: 'w-full',\n },\n px: {\n none: 'px-0',\n sm: 'px-3',\n md: 'px-4 sm:px-6',\n lg: 'px-4 sm:px-6 lg:px-32',\n },\n py: {\n none: 'py-0',\n sm: 'py-6',\n md: 'py-12',\n lg: 'py-20',\n xl: 'py-32',\n },\n tone: {\n plain: '',\n tint: 'bg-muted/50',\n subtle: 'bg-secondary/10',\n },\n text: {\n lg: 'text-lg',\n base: 'text-base',\n },\n },\n defaultVariants: {\n width: 'container',\n px: 'lg',\n py: 'lg',\n tone: 'plain',\n text: 'lg',\n },\n});\n\nexport type SectionProps = React.HTMLAttributes<HTMLElement> &\n VariantProps<typeof sectionVariants> & {\n as?:\n | 'section'\n | 'div'\n | 'main'\n | 'header'\n | 'footer'\n | 'aside'\n | 'article'\n | 'nav';\n };\n\nexport const Section = React.forwardRef<HTMLElement, SectionProps>(\n ({ as = 'section', className, width, px, py, tone, text, ...props }, ref) => {\n const Comp: any = as;\n return (\n <Comp\n ref={ref}\n className={cn(\n sectionVariants({ width, px, py, tone, text }),\n className\n )}\n {...props}\n />\n );\n }\n);\nSection.displayName = 'Section';\n\nexport { sectionVariants };\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,IAAI,IAAI;CAC9B,UAAU;EACR,OAAO;GACL,WAAW;GACX,QAAQ;GACR,MAAM;GACN,OAAO;GACR;EACD,IAAI;GACF,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,IAAI;GACF,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,MAAM;GACJ,OAAO;GACP,MAAM;GACN,QAAQ;GACT;EACD,MAAM;GACJ,IAAI;GACJ,MAAM;GACP;EACF;CACD,iBAAiB;EACf,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,MAAM;EACN,MAAM;EACP;CACF,CAAC;AAeF,MAAa,UAAUA,QAAM,YAC1B,EAAE,KAAK,WAAW,WAAW,OAAO,IAAI,IAAI,MAAM,MAAM,GAAG,SAAS,QAAQ;AAE3E,QACE,oBAFgB;EAGT;EACL,WAAW,GACT,gBAAgB;GAAE;GAAO;GAAI;GAAI;GAAM;GAAM,CAAC,EAC9C,UACD;EACD,GAAI;GACJ;EAGP;AACD,QAAQ,cAAc"}
|
package/dist/ui/select.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime264 from "react/jsx-runtime";
|
|
3
3
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
4
4
|
|
|
5
5
|
//#region ui/select.d.ts
|
|
6
6
|
declare function Select({
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Root>):
|
|
8
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime264.JSX.Element;
|
|
9
9
|
declare function SelectGroup({
|
|
10
10
|
...props
|
|
11
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Group>):
|
|
11
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime264.JSX.Element;
|
|
12
12
|
declare function SelectValue({
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Value>):
|
|
14
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime264.JSX.Element;
|
|
15
15
|
declare function SelectTrigger({
|
|
16
16
|
className,
|
|
17
17
|
size,
|
|
@@ -19,34 +19,34 @@ declare function SelectTrigger({
|
|
|
19
19
|
...props
|
|
20
20
|
}: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
21
21
|
size?: 'sm' | 'default';
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime264.JSX.Element;
|
|
23
23
|
declare function SelectContent({
|
|
24
24
|
className,
|
|
25
25
|
children,
|
|
26
26
|
position,
|
|
27
27
|
...props
|
|
28
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Content>):
|
|
28
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime264.JSX.Element;
|
|
29
29
|
declare function SelectLabel({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Label>):
|
|
32
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime264.JSX.Element;
|
|
33
33
|
declare function SelectItem({
|
|
34
34
|
className,
|
|
35
35
|
children,
|
|
36
36
|
...props
|
|
37
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Item>):
|
|
37
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime264.JSX.Element;
|
|
38
38
|
declare function SelectSeparator({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
41
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime264.JSX.Element;
|
|
42
42
|
declare function SelectScrollUpButton({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>):
|
|
45
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime264.JSX.Element;
|
|
46
46
|
declare function SelectScrollDownButton({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>):
|
|
49
|
+
}: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime264.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
52
52
|
//# sourceMappingURL=select.d.ts.map
|
package/dist/ui/select.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
@@ -26,7 +25,7 @@ function SelectValue({ ...props }) {
|
|
|
26
25
|
...props
|
|
27
26
|
});
|
|
28
27
|
}
|
|
29
|
-
function SelectTrigger({ className, size = "default", children
|
|
28
|
+
function SelectTrigger({ className, size = "default", children, ...props }) {
|
|
30
29
|
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
31
30
|
"data-slot": "select-trigger",
|
|
32
31
|
"data-size": size,
|
|
@@ -38,7 +37,7 @@ function SelectTrigger({ className, size = "default", children,...props }) {
|
|
|
38
37
|
})]
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
|
-
function SelectContent({ className, children, position = "popper"
|
|
40
|
+
function SelectContent({ className, children, position = "popper", ...props }) {
|
|
42
41
|
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
|
|
43
42
|
"data-slot": "select-content",
|
|
44
43
|
className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
@@ -54,14 +53,14 @@ function SelectContent({ className, children, position = "popper",...props }) {
|
|
|
54
53
|
]
|
|
55
54
|
}) });
|
|
56
55
|
}
|
|
57
|
-
function SelectLabel({ className
|
|
56
|
+
function SelectLabel({ className, ...props }) {
|
|
58
57
|
return /* @__PURE__ */ jsx(SelectPrimitive.Label, {
|
|
59
58
|
"data-slot": "select-label",
|
|
60
59
|
className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
61
60
|
...props
|
|
62
61
|
});
|
|
63
62
|
}
|
|
64
|
-
function SelectItem({ className, children
|
|
63
|
+
function SelectItem({ className, children, ...props }) {
|
|
65
64
|
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
66
65
|
"data-slot": "select-item",
|
|
67
66
|
className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
|
|
@@ -72,14 +71,14 @@ function SelectItem({ className, children,...props }) {
|
|
|
72
71
|
}), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })]
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
|
-
function SelectSeparator({ className
|
|
74
|
+
function SelectSeparator({ className, ...props }) {
|
|
76
75
|
return /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
|
|
77
76
|
"data-slot": "select-separator",
|
|
78
77
|
className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
79
78
|
...props
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
|
-
function SelectScrollUpButton({ className
|
|
81
|
+
function SelectScrollUpButton({ className, ...props }) {
|
|
83
82
|
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
|
|
84
83
|
"data-slot": "select-scroll-up-button",
|
|
85
84
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
@@ -87,7 +86,7 @@ function SelectScrollUpButton({ className,...props }) {
|
|
|
87
86
|
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
88
87
|
});
|
|
89
88
|
}
|
|
90
|
-
function SelectScrollDownButton({ className
|
|
89
|
+
function SelectScrollDownButton({ className, ...props }) {
|
|
91
90
|
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
|
|
92
91
|
"data-slot": "select-scroll-down-button",
|
|
93
92
|
className: cn("flex cursor-default items-center justify-center py-1", className),
|
package/dist/ui/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","names":[],"sources":["../../ui/select.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { cn } from './utils';\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n size = 'default',\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: 'sm' | 'default';\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input focus-visible:border-ring focus-visible:ring-ring/50 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('text-muted-foreground px-2 py-1.5 text-xs', className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.js","names":[],"sources":["../../ui/select.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { cn } from './utils';\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n size = 'default',\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: 'sm' | 'default';\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input focus-visible:border-ring focus-visible:ring-ring/50 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n 'p-1',\n position === 'popper' &&\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('text-muted-foreground px-2 py-1.5 text-xs', className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-1',\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,OAAO,EACd,GAAG,SACiD;AACpD,QAAO,oBAAC,gBAAgB;EAAK,aAAU;EAAS,GAAI;GAAS;;AAG/D,SAAS,YAAY,EACnB,GAAG,SACkD;AACrD,QAAO,oBAAC,gBAAgB;EAAM,aAAU;EAAe,GAAI;GAAS;;AAGtE,SAAS,YAAY,EACnB,GAAG,SACkD;AACrD,QAAO,oBAAC,gBAAgB;EAAM,aAAU;EAAe,GAAI;GAAS;;AAGtE,SAAS,cAAc,EACrB,WACA,OAAO,WACP,UACA,GAAG,SAGF;AACD,QACE,qBAAC,gBAAgB;EACf,aAAU;EACV,aAAW;EACX,WAAW,GACT,izBACA,UACD;EACD,GAAI;aAEH,UACD,oBAAC,gBAAgB;GAAK;aACpB,oBAAC,mBAAgB,WAAU,sBAAsB;IAC5B;GACC;;AAI9B,SAAS,cAAc,EACrB,WACA,UACA,WAAW,UACX,GAAG,SACoD;AACvD,QACE,oBAAC,gBAAgB,oBACf,qBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT,6iBACA,aAAa,YACX,mIACF,UACD;EACS;EACV,GAAI;;GAEJ,oBAAC,yBAAuB;GACxB,oBAAC,gBAAgB;IACf,WAAW,GACT,OACA,aAAa,YACX,4FACH;IAEA;KACwB;GAC3B,oBAAC,2BAAyB;;GACF,GACH;;AAI7B,SAAS,YAAY,EACnB,WACA,GAAG,SACkD;AACrD,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,6CAA6C,UAAU;EACrE,GAAI;GACJ;;AAIN,SAAS,WAAW,EAClB,WACA,UACA,GAAG,SACiD;AACpD,QACE,qBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT,yaACA,UACD;EACD,GAAI;aAEJ,oBAAC;GAAK,WAAU;aACd,oBAAC,gBAAgB,2BACf,oBAAC,aAAU,WAAU,WAAW,GACF;IAC3B,EACP,oBAAC,gBAAgB,YAAU,WAAoC;GAC1C;;AAI3B,SAAS,gBAAgB,EACvB,WACA,GAAG,SACsD;AACzD,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GAAG,iDAAiD,UAAU;EACzE,GAAI;GACJ;;AAIN,SAAS,qBAAqB,EAC5B,WACA,GAAG,SAC2D;AAC9D,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT,wDACA,UACD;EACD,GAAI;YAEJ,oBAAC,iBAAc,WAAU,WAAW;GACL;;AAIrC,SAAS,uBAAuB,EAC9B,WACA,GAAG,SAC6D;AAChE,QACE,oBAAC,gBAAgB;EACf,aAAU;EACV,WAAW,GACT,wDACA,UACD;EACD,GAAI;YAEJ,oBAAC,mBAAgB,WAAU,WAAW;GACL"}
|
package/dist/ui/separator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime149 from "react/jsx-runtime";
|
|
3
3
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
4
|
|
|
5
5
|
//#region ui/separator.d.ts
|
|
@@ -8,7 +8,7 @@ declare function Separator({
|
|
|
8
8
|
orientation,
|
|
9
9
|
decorative,
|
|
10
10
|
...props
|
|
11
|
-
}: React$1.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
11
|
+
}: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime149.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Separator };
|
|
14
14
|
//# sourceMappingURL=separator.d.ts.map
|
package/dist/ui/separator.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
8
7
|
|
|
9
8
|
//#region ui/separator.tsx
|
|
10
|
-
function Separator({ className, orientation = "horizontal", decorative = true
|
|
9
|
+
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
11
10
|
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
12
11
|
"data-slot": "separator",
|
|
13
12
|
decorative,
|
package/dist/ui/separator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","names":[],"sources":["../../ui/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from './utils';\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"separator.js","names":[],"sources":["../../ui/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from './utils';\n\nfunction Separator({\n className,\n orientation = 'horizontal',\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Separator };\n"],"mappings":";;;;;;;;AAOA,SAAS,UAAU,EACjB,WACA,cAAc,cACd,aAAa,MACb,GAAG,SACoD;AACvD,QACE,oBAAC,mBAAmB;EAClB,aAAU;EACE;EACC;EACb,WAAW,GACT,kKACA,UACD;EACD,GAAI;GACJ"}
|
package/dist/ui/sheet.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime159 from "react/jsx-runtime";
|
|
3
3
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
4
4
|
|
|
5
5
|
//#region ui/sheet.d.ts
|
|
6
6
|
declare function Sheet({
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof SheetPrimitive.Root>):
|
|
8
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime159.JSX.Element;
|
|
9
9
|
declare function SheetTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React$1.ComponentProps<typeof SheetPrimitive.Trigger>):
|
|
11
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Trigger>): react_jsx_runtime159.JSX.Element;
|
|
12
12
|
declare function SheetClose({
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentProps<typeof SheetPrimitive.Close>):
|
|
14
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Close>): react_jsx_runtime159.JSX.Element;
|
|
15
15
|
declare function SheetContent({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
@@ -19,23 +19,23 @@ declare function SheetContent({
|
|
|
19
19
|
...props
|
|
20
20
|
}: React$1.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
21
21
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime159.JSX.Element;
|
|
23
23
|
declare function SheetHeader({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React$1.ComponentProps<'div'>):
|
|
26
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime159.JSX.Element;
|
|
27
27
|
declare function SheetFooter({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React$1.ComponentProps<'div'>):
|
|
30
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime159.JSX.Element;
|
|
31
31
|
declare function SheetTitle({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React$1.ComponentProps<typeof SheetPrimitive.Title>):
|
|
34
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Title>): react_jsx_runtime159.JSX.Element;
|
|
35
35
|
declare function SheetDescription({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React$1.ComponentProps<typeof SheetPrimitive.Description>):
|
|
38
|
+
}: React$1.ComponentProps<typeof SheetPrimitive.Description>): react_jsx_runtime159.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
41
41
|
//# sourceMappingURL=sheet.d.ts.map
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { cn } from "./utils.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import { XIcon } from "lucide-react";
|
|
@@ -32,14 +31,14 @@ function SheetPortal({ ...props }) {
|
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
|
-
function SheetOverlay({ className
|
|
34
|
+
function SheetOverlay({ className, ...props }) {
|
|
36
35
|
return /* @__PURE__ */ jsx(SheetPrimitive.Overlay, {
|
|
37
36
|
"data-slot": "sheet-overlay",
|
|
38
37
|
className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
|
|
39
38
|
...props
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
|
-
function SheetContent({ className, children, side = "right"
|
|
41
|
+
function SheetContent({ className, children, side = "right", ...props }) {
|
|
43
42
|
return /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(SheetPrimitive.Content, {
|
|
44
43
|
"data-slot": "sheet-content",
|
|
45
44
|
className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className),
|
|
@@ -53,28 +52,28 @@ function SheetContent({ className, children, side = "right",...props }) {
|
|
|
53
52
|
})]
|
|
54
53
|
})] });
|
|
55
54
|
}
|
|
56
|
-
function SheetHeader({ className
|
|
55
|
+
function SheetHeader({ className, ...props }) {
|
|
57
56
|
return /* @__PURE__ */ jsx("div", {
|
|
58
57
|
"data-slot": "sheet-header",
|
|
59
58
|
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
60
59
|
...props
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
|
-
function SheetFooter({ className
|
|
62
|
+
function SheetFooter({ className, ...props }) {
|
|
64
63
|
return /* @__PURE__ */ jsx("div", {
|
|
65
64
|
"data-slot": "sheet-footer",
|
|
66
65
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
67
66
|
...props
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
|
-
function SheetTitle({ className
|
|
69
|
+
function SheetTitle({ className, ...props }) {
|
|
71
70
|
return /* @__PURE__ */ jsx(SheetPrimitive.Title, {
|
|
72
71
|
"data-slot": "sheet-title",
|
|
73
72
|
className: cn("text-foreground font-semibold", className),
|
|
74
73
|
...props
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
|
-
function SheetDescription({ className
|
|
76
|
+
function SheetDescription({ className, ...props }) {
|
|
78
77
|
return /* @__PURE__ */ jsx(SheetPrimitive.Description, {
|
|
79
78
|
"data-slot": "sheet-description",
|
|
80
79
|
className: cn("text-muted-foreground text-sm", className),
|
package/dist/ui/sheet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","names":[],"sources":["../../ui/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from './utils';\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />;\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />;\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />;\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction SheetContent({\n className,\n children,\n side = 'right',\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left';\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n side === 'right' &&\n 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n side === 'left' &&\n 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n side === 'top' &&\n 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n side === 'bottom' &&\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',\n className\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none\">\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n );\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn('flex flex-col gap-1.5 p-4', className)}\n {...props}\n />\n );\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn('mt-auto flex flex-col gap-2 p-4', className)}\n {...props}\n />\n );\n}\n\nfunction SheetTitle({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n className={cn('text-foreground font-semibold', className)}\n {...props}\n />\n );\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheet.js","names":[],"sources":["../../ui/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from './utils';\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />;\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />;\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />;\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction SheetContent({\n className,\n children,\n side = 'right',\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left';\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n side === 'right' &&\n 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n side === 'left' &&\n 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n side === 'top' &&\n 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n side === 'bottom' &&\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',\n className\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none\">\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n );\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn('flex flex-col gap-1.5 p-4', className)}\n {...props}\n />\n );\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn('mt-auto flex flex-col gap-2 p-4', className)}\n {...props}\n />\n );\n}\n\nfunction SheetTitle({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n className={cn('text-foreground font-semibold', className)}\n {...props}\n />\n );\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":";;;;;;;;;AAQA,SAAS,MAAM,EAAE,GAAG,SAA2D;AAC7E,QAAO,oBAAC,eAAe;EAAK,aAAU;EAAQ,GAAI;GAAS;;AAG7D,SAAS,aAAa,EACpB,GAAG,SACmD;AACtD,QAAO,oBAAC,eAAe;EAAQ,aAAU;EAAgB,GAAI;GAAS;;AAGxE,SAAS,WAAW,EAClB,GAAG,SACiD;AACpD,QAAO,oBAAC,eAAe;EAAM,aAAU;EAAc,GAAI;GAAS;;AAGpE,SAAS,YAAY,EACnB,GAAG,SACkD;AACrD,QAAO,oBAAC,eAAe;EAAO,aAAU;EAAe,GAAI;GAAS;;AAGtE,SAAS,aAAa,EACpB,WACA,GAAG,SACmD;AACtD,QACE,oBAAC,eAAe;EACd,aAAU;EACV,WAAW,GACT,0JACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,aAAa,EACpB,WACA,UACA,OAAO,SACP,GAAG,SAGF;AACD,QACE,qBAAC,0BACC,oBAAC,iBAAe,EAChB,qBAAC,eAAe;EACd,aAAU;EACV,WAAW,GACT,8MACA,SAAS,WACP,oIACF,SAAS,UACP,iIACF,SAAS,SACP,4GACF,SAAS,YACP,qHACF,UACD;EACD,GAAI;aAEH,UACD,qBAAC,eAAe;GAAM,WAAU;cAC9B,oBAAC,SAAM,WAAU,WAAW,EAC5B,oBAAC;IAAK,WAAU;cAAU;KAAY;IACjB;GACA,IACb;;AAIlB,SAAS,YAAY,EAAE,WAAW,GAAG,SAAsC;AACzE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,6BAA6B,UAAU;EACrD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,WAAW,GAAG,SAAsC;AACzE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,mCAAmC,UAAU;EAC3D,GAAI;GACJ;;AAIN,SAAS,WAAW,EAClB,WACA,GAAG,SACiD;AACpD,QACE,oBAAC,eAAe;EACd,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,GAAG,SACuD;AAC1D,QACE,oBAAC,eAAe;EACd,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ"}
|