ixia-ui-react 1.8.0 → 2.0.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 +24 -1
- package/dist/accordion/index.d.ts +41 -0
- package/dist/accordion/index.js +142 -0
- package/dist/accordion/index.js.map +1 -0
- package/dist/alert/index.d.ts +22 -0
- package/dist/alert/index.js +1 -0
- package/dist/alert-Dcu9R8CY.js +73 -0
- package/dist/alert-Dcu9R8CY.js.map +1 -0
- package/dist/alert-dialog/index.d.ts +39 -0
- package/dist/alert-dialog/index.js +134 -0
- package/dist/alert-dialog/index.js.map +1 -0
- package/dist/autocomplete/index.d.ts +2 -0
- package/dist/autocomplete/index.js +1 -0
- package/dist/autocomplete-BfpWVO1l.js +169 -0
- package/dist/autocomplete-BfpWVO1l.js.map +1 -0
- package/dist/avatar/index.d.ts +2 -0
- package/dist/avatar/index.js +1 -0
- package/dist/avatar-Bp4gZh21.js +93 -0
- package/dist/avatar-Bp4gZh21.js.map +1 -0
- package/dist/badge/index.d.ts +2 -0
- package/dist/badge/index.js +1 -0
- package/dist/badge-Cl-9WTW-.js +160 -0
- package/dist/badge-Cl-9WTW-.js.map +1 -0
- package/dist/bento-box/index.d.ts +30 -0
- package/dist/bento-box/index.js +103 -0
- package/dist/bento-box/index.js.map +1 -0
- package/dist/breadcrumb/index.d.ts +18 -0
- package/dist/breadcrumb/index.js +58 -0
- package/dist/breadcrumb/index.js.map +1 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.js +1 -0
- package/dist/button-BpUC-R1J.js +307 -0
- package/dist/button-BpUC-R1J.js.map +1 -0
- package/dist/button-group/index.d.ts +2 -0
- package/dist/button-group/index.js +1 -0
- package/dist/button-group-7azbqlcO.js +269 -0
- package/dist/button-group-7azbqlcO.js.map +1 -0
- package/dist/button.types-BFKrBCGd.d.ts +10 -0
- package/dist/calendar/index.d.ts +63 -0
- package/dist/calendar/index.js +292 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/chart/index.d.ts +87 -0
- package/dist/chart/index.js +262 -0
- package/dist/chart/index.js.map +1 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +1 -0
- package/dist/checkbox-BuUZ1Lly.js +54 -0
- package/dist/checkbox-BuUZ1Lly.js.map +1 -0
- package/dist/checkbox-group/index.d.ts +6 -0
- package/dist/checkbox-group/index.js +17 -0
- package/dist/checkbox-group/index.js.map +1 -0
- package/dist/cn-BDi0DfT5.js +29 -0
- package/dist/cn-BDi0DfT5.js.map +1 -0
- package/dist/code-block/index.d.ts +50 -0
- package/dist/code-block/index.js +208 -0
- package/dist/code-block/index.js.map +1 -0
- package/dist/collapsible/index.d.ts +2 -0
- package/dist/collapsible/index.js +1 -0
- package/dist/collapsible-BVqrh0Q0.js +44 -0
- package/dist/collapsible-BVqrh0Q0.js.map +1 -0
- package/dist/color-channel-slider/index.d.ts +2 -0
- package/dist/color-channel-slider/index.js +1 -0
- package/dist/color-channel-slider-h8mUPJ35.js +70 -0
- package/dist/color-channel-slider-h8mUPJ35.js.map +1 -0
- package/dist/color-picker/index.d.ts +137 -0
- package/dist/color-picker/index.js +621 -0
- package/dist/color-picker/index.js.map +1 -0
- package/dist/combobox/index.d.ts +64 -0
- package/dist/combobox/index.js +289 -0
- package/dist/combobox/index.js.map +1 -0
- package/dist/context-menu/index.d.ts +49 -0
- package/dist/context-menu/index.js +166 -0
- package/dist/context-menu/index.js.map +1 -0
- package/dist/dialog/index.d.ts +36 -0
- package/dist/dialog/index.js +119 -0
- package/dist/dialog/index.js.map +1 -0
- package/dist/drawer/index.d.ts +31 -0
- package/dist/drawer/index.js +95 -0
- package/dist/drawer/index.js.map +1 -0
- package/dist/dropzone/index.d.ts +70 -0
- package/dist/dropzone/index.js +479 -0
- package/dist/dropzone/index.js.map +1 -0
- package/dist/field/index.d.ts +2 -0
- package/dist/field/index.js +1 -0
- package/dist/field-DTL7eA5y.js +254 -0
- package/dist/field-DTL7eA5y.js.map +1 -0
- package/dist/form/index.d.ts +220 -0
- package/dist/form/index.js +3 -0
- package/dist/form-BxMg796f.js +192 -0
- package/dist/form-BxMg796f.js.map +1 -0
- package/dist/has-single-element-child-DLGI0Dh2.js +12 -0
- package/dist/has-single-element-child-DLGI0Dh2.js.map +1 -0
- package/dist/hooks/index.d.ts +26 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks-DUm-q_ig.js +68 -0
- package/dist/hooks-DUm-q_ig.js.map +1 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.js +1 -0
- package/dist/icon-D3JWfCa2.js +85 -0
- package/dist/icon-D3JWfCa2.js.map +1 -0
- package/dist/icon-container/index.d.ts +10 -0
- package/dist/icon-container/index.js +64 -0
- package/dist/icon-container/index.js.map +1 -0
- package/dist/index-0ZQzIKoE.d.ts +11 -0
- package/dist/index-B3MK1QYh.d.ts +11 -0
- package/dist/index-BJVMIPq4.d.ts +54 -0
- package/dist/index-BsV-u_jc.d.ts +4 -0
- package/dist/index-BygR7cUT.d.ts +22 -0
- package/dist/index-BzTOLSgZ.d.ts +9 -0
- package/dist/index-C15xiG9O.d.ts +14 -0
- package/dist/index-C2zco6-C.d.ts +15 -0
- package/dist/index-CIDOd4Z8.d.ts +56 -0
- package/dist/index-CQti9gFb.d.ts +49 -0
- package/dist/index-CiE-Rqit.d.ts +70 -0
- package/dist/index-D1kkOg9k.d.ts +14 -0
- package/dist/index-DLfdAked.d.ts +34 -0
- package/dist/index-DMaW_XF1.d.ts +24 -0
- package/dist/index-Db_QGr6S.d.ts +5 -0
- package/dist/index-DdFxZ3Xr.d.ts +22 -0
- package/dist/index-DfNHJF0t.d.ts +33 -0
- package/dist/index-DyQYoAUf.d.ts +29 -0
- package/dist/index-N2CBSUDu.d.ts +14 -0
- package/dist/index-PuhTRMce.d.ts +11 -0
- package/dist/index-Wb_tILYa.d.ts +24 -0
- package/dist/index-bVyqfhJS.d.ts +4 -0
- package/dist/index-x4f8gnaI.d.ts +15 -0
- package/dist/input/index.d.ts +3 -0
- package/dist/input/index.js +1 -0
- package/dist/input-Laj6dwtK.js +179 -0
- package/dist/input-Laj6dwtK.js.map +1 -0
- package/dist/input-group/index.d.ts +2 -0
- package/dist/input-group/index.js +1 -0
- package/dist/input-group-CgdazGrY.js +111 -0
- package/dist/input-group-CgdazGrY.js.map +1 -0
- package/dist/input-otp/index.d.ts +13 -0
- package/dist/input-otp/index.js +44 -0
- package/dist/input-otp/index.js.map +1 -0
- package/dist/input.types-816rEVWU.d.ts +20 -0
- package/dist/input.types-D0gyoaQv.js +48 -0
- package/dist/input.types-D0gyoaQv.js.map +1 -0
- package/dist/kbd/index.d.ts +9 -0
- package/dist/kbd/index.js +25 -0
- package/dist/kbd/index.js.map +1 -0
- package/dist/label/index.d.ts +8 -0
- package/dist/label/index.js +1 -0
- package/dist/label-BgpayDvN.js +27 -0
- package/dist/label-BgpayDvN.js.map +1 -0
- package/dist/layer-tree/index.d.ts +728 -0
- package/dist/layer-tree/index.js +685 -0
- package/dist/layer-tree/index.js.map +1 -0
- package/dist/map/google/index.d.ts +143 -0
- package/dist/map/google/index.js +445 -0
- package/dist/map/google/index.js.map +1 -0
- package/dist/map/index.d.ts +94 -0
- package/dist/map/index.js +208 -0
- package/dist/map/index.js.map +1 -0
- package/dist/map.context-Dw1D7E8m.js +11 -0
- package/dist/map.context-Dw1D7E8m.js.map +1 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +1 -0
- package/dist/menu-sf13cnGp.js +173 -0
- package/dist/menu-sf13cnGp.js.map +1 -0
- package/dist/menu-tone-DWBEHoX2.js +22 -0
- package/dist/menu-tone-DWBEHoX2.js.map +1 -0
- package/dist/meter/index.d.ts +2 -0
- package/dist/meter/index.js +1 -0
- package/dist/meter-HD5taq57.js +116 -0
- package/dist/meter-HD5taq57.js.map +1 -0
- package/dist/nav-bar/index.d.ts +25 -0
- package/dist/nav-bar/index.js +133 -0
- package/dist/nav-bar/index.js.map +1 -0
- package/dist/navigation-menu/index.d.ts +43 -0
- package/dist/navigation-menu/index.js +176 -0
- package/dist/navigation-menu/index.js.map +1 -0
- package/dist/number-field/index.d.ts +14 -0
- package/dist/number-field/index.js +116 -0
- package/dist/number-field/index.js.map +1 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +1 -0
- package/dist/popover-B1s4xXrX.js +114 -0
- package/dist/popover-B1s4xXrX.js.map +1 -0
- package/dist/preview-card/index.d.ts +13 -0
- package/dist/preview-card/index.js +35 -0
- package/dist/preview-card/index.js.map +1 -0
- package/dist/profile/index.d.ts +21 -0
- package/dist/profile/index.js +52 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/progress/index.d.ts +23 -0
- package/dist/progress/index.js +97 -0
- package/dist/progress/index.js.map +1 -0
- package/dist/radar-ping/index.d.ts +11 -0
- package/dist/radar-ping/index.js +49 -0
- package/dist/radar-ping/index.js.map +1 -0
- package/dist/radio-group/index.d.ts +2 -0
- package/dist/radio-group/index.js +1 -0
- package/dist/radio-group-Dj43u35Z.js +47 -0
- package/dist/radio-group-Dj43u35Z.js.map +1 -0
- package/dist/resizeable/index.d.ts +11 -0
- package/dist/resizeable/index.js +31 -0
- package/dist/resizeable/index.js.map +1 -0
- package/dist/scroll-area/index.d.ts +11 -0
- package/dist/scroll-area/index.js +51 -0
- package/dist/scroll-area/index.js.map +1 -0
- package/dist/select/index.d.ts +2 -0
- package/dist/select/index.js +1 -0
- package/dist/select-DncJXYim.js +159 -0
- package/dist/select-DncJXYim.js.map +1 -0
- package/dist/separator/index.d.ts +2 -0
- package/dist/separator/index.js +1 -0
- package/dist/separator-DgIQp1cB.js +97 -0
- package/dist/separator-DgIQp1cB.js.map +1 -0
- package/dist/sidebar/index.d.ts +80 -0
- package/dist/sidebar/index.js +334 -0
- package/dist/sidebar/index.js.map +1 -0
- package/dist/site-header/index.d.ts +22 -0
- package/dist/site-header/index.js +55 -0
- package/dist/site-header/index.js.map +1 -0
- package/dist/skeleton/index.d.ts +4 -0
- package/dist/skeleton/index.js +1 -0
- package/dist/skeleton-DSG3FWby.js +13 -0
- package/dist/skeleton-DSG3FWby.js.map +1 -0
- package/dist/slider/index.d.ts +2 -0
- package/dist/slider/index.js +1 -0
- package/dist/slider-D_XlV4OW.js +114 -0
- package/dist/slider-D_XlV4OW.js.map +1 -0
- package/dist/slider-group/index.d.ts +46 -0
- package/dist/slider-group/index.js +198 -0
- package/dist/slider-group/index.js.map +1 -0
- package/dist/styles.css +4 -1
- package/dist/switch/index.d.ts +2 -0
- package/dist/switch/index.js +1 -0
- package/dist/switch-DXHixGHe.js +23 -0
- package/dist/switch-DXHixGHe.js.map +1 -0
- package/dist/table/index.d.ts +920 -0
- package/dist/table/index.js +1544 -0
- package/dist/table/index.js.map +1 -0
- package/dist/tabs/index.d.ts +2 -0
- package/dist/tabs/index.js +1 -0
- package/dist/tabs-DTC7coap.js +270 -0
- package/dist/tabs-DTC7coap.js.map +1 -0
- package/dist/text-area/index.d.ts +2 -0
- package/dist/text-area/index.js +1 -0
- package/dist/text-area-H6HjKnv_.js +50 -0
- package/dist/text-area-H6HjKnv_.js.map +1 -0
- package/dist/toast/index.d.ts +65 -0
- package/dist/toast/index.js +216 -0
- package/dist/toast/index.js.map +1 -0
- package/dist/toggle/index.d.ts +2 -0
- package/dist/toggle/index.js +1 -0
- package/dist/toggle-ZT9thVmz.js +73 -0
- package/dist/toggle-ZT9thVmz.js.map +1 -0
- package/dist/toggle-group/index.d.ts +10 -0
- package/dist/toggle-group/index.js +63 -0
- package/dist/toggle-group/index.js.map +1 -0
- package/dist/toggle-group-context-CBNZEf1I.js +6 -0
- package/dist/toggle-group-context-CBNZEf1I.js.map +1 -0
- package/dist/tooltip/index.d.ts +18 -0
- package/dist/tooltip/index.js +1 -0
- package/dist/tooltip-B6z3tDbW.js +41 -0
- package/dist/tooltip-B6z3tDbW.js.map +1 -0
- package/dist/trim-text-children-CQRFg2fL.js +33 -0
- package/dist/trim-text-children-CQRFg2fL.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils-BI2x7nW5.js +5 -0
- package/dist/utils-BI2x7nW5.js.map +1 -0
- package/package.json +100 -31
- package/dist/index.d.ts +0 -8000
- package/dist/index.js +0 -17274
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["BaseResizableSeparator","BaseResizablePanel","BaseResizableGroup"],"sources":["../../src/components/resizeable/resizeable-handle.tsx","../../src/components/resizeable/resizeable-panel.tsx","../../src/components/resizeable/resizeable-panel-group.tsx"],"sourcesContent":["import { Separator as BaseResizableSeparator } from 'react-resizable-panels'\n\nimport { cn } from '@/utils/cn'\n\nimport type { ResizeableHandleProps } from './resizeable.types'\n\nexport function ResizeableHandle({\n withHandle = false,\n className,\n ...props\n}: ResizeableHandleProps) {\n return (\n <BaseResizableSeparator\n className={cn(\n 'relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-[0px] after:left-1/2 after:w-px after:-translate-x-1/2 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:left-[0px] after:aria-[orientation=horizontal]:h-px after:aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:translate-x-[0px] after:aria-[orientation=horizontal]:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n data-slot=\"resizable-handle\"\n {...props}\n >\n {withHandle && <div className=\"z-10 flex h-md w-3xs shrink-0 rounded-lg bg-border-strong\" />}\n </BaseResizableSeparator>\n )\n}\n","import { Panel as BaseResizablePanel } from 'react-resizable-panels'\n\nimport { cn } from '@/utils/cn'\n\nimport type { ResizeablePanelProps } from './resizeable.types'\n\nexport function ResizeablePanel({ className, ...props }: ResizeablePanelProps) {\n return <BaseResizablePanel className={cn('', className)} data-slot=\"resizable-panel\" {...props} />\n}\n","import { Group as BaseResizableGroup } from 'react-resizable-panels'\n\nimport { cn } from '@/utils/cn'\n\nimport type { ResizeablePanelGroupProps } from './resizeable.types'\n\nexport function ResizeablePanelGroup({ className, ...props }: ResizeablePanelGroupProps) {\n return (\n <BaseResizableGroup\n className={cn('flex h-full aria-[orientation=vertical]:flex-col', className)}\n data-slot=\"resizable-panel-group\"\n {...props}\n />\n )\n}\n"],"mappings":";;;;AAMA,SAAgB,iBAAiB,EAC/B,aAAa,OACb,WACA,GAAG,SACqB;CACxB,OACE,oBAACA,WAAD;EACE,WAAW,GACT,khBACA,SACF;EACA,aAAU;EACV,GAAI;EAEH,UAAA,cAAc,oBAAC,OAAD,EAAK,WAAU,4DAA6D,CAAA;CACrE,CAAA;AAE5B;;ACjBA,SAAgB,gBAAgB,EAAE,WAAW,GAAG,SAA+B;CAC7E,OAAO,oBAACC,OAAD;EAAoB,WAAW,GAAG,IAAI,SAAS;EAAG,aAAU;EAAkB,GAAI;CAAQ,CAAA;AACnG;;ACFA,SAAgB,qBAAqB,EAAE,WAAW,GAAG,SAAoC;CACvF,OACE,oBAACC,OAAD;EACE,WAAW,GAAG,oDAAoD,SAAS;EAC3E,aAAU;EACV,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
4
|
+
declare const scrollAreaVariants: (props?: ({
|
|
5
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
+
variant?: "default" | "ghost" | "outline" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type ScrollAreaProps = ComponentProps<typeof ScrollArea$1.Root> & VariantProps<typeof scrollAreaVariants>;
|
|
9
|
+
export declare function ScrollArea({ orientation, variant, className, children, ref, ...props }: ScrollAreaProps): import("react").JSX.Element;
|
|
10
|
+
export type { ScrollAreaProps };
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { t as cn } from "../cn-BDi0DfT5.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
5
|
+
// src/components/scroll-area/scroll-area.types.ts
|
|
6
|
+
const scrollAreaVariants = cva("overflow-hidden rounded-xl", {
|
|
7
|
+
defaultVariants: {
|
|
8
|
+
orientation: "vertical",
|
|
9
|
+
variant: "default"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
orientation: {
|
|
13
|
+
horizontal: "h-full",
|
|
14
|
+
vertical: ""
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
default: "bg-surface-low **:data-viewport:rounded-xl **:data-viewport:bg-surface-low **:data-viewport:p-sm **:data-viewport:inset-shadow-2xs **:data-viewport:before:pointer-events-none **:data-viewport:before:absolute **:data-viewport:before:top-0 **:data-viewport:before:left-0 **:data-viewport:before:block **:data-viewport:before:h-[min(40px,var(--scroll-area-overflow-y-start))] **:data-viewport:before:w-full **:data-viewport:before:bg-linear-to-b **:data-viewport:before:from-shadow **:data-viewport:before:to-transparent **:data-viewport:before:transition-[height] **:data-viewport:before:duration-100 **:data-viewport:before:ease-out **:data-viewport:before:content-[\"\"] **:data-viewport:before:[--scroll-area-overflow-y-start:inherit] **:data-viewport:after:pointer-events-none **:data-viewport:after:absolute **:data-viewport:after:bottom-0 **:data-viewport:after:left-0 **:data-viewport:after:block **:data-viewport:after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] **:data-viewport:after:w-full **:data-viewport:after:bg-linear-to-t **:data-viewport:after:from-shadow **:data-viewport:after:to-transparent **:data-viewport:after:transition-[height] **:data-viewport:after:duration-100 **:data-viewport:after:ease-out **:data-viewport:after:content-[\"\"] **:data-viewport:after:[--scroll-area-overflow-y-end:inherit]",
|
|
18
|
+
ghost: "",
|
|
19
|
+
outline: "border border-border **:data-viewport:p-sm"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
// src/components/scroll-area/scroll-area.tsx
|
|
24
|
+
function ScrollArea({ orientation, variant, className, children, ref, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsxs(ScrollArea$1.Root, {
|
|
26
|
+
className: cn(className, scrollAreaVariants({
|
|
27
|
+
orientation,
|
|
28
|
+
variant
|
|
29
|
+
})),
|
|
30
|
+
ref,
|
|
31
|
+
...props,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
|
|
34
|
+
"data-viewport": true,
|
|
35
|
+
tabIndex: 0,
|
|
36
|
+
className: cn("flex h-full gap-xs overscroll-contain", orientation === "horizontal" && "flex-row pb-md", orientation === "vertical" && "flex-col"),
|
|
37
|
+
children
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ jsx(ScrollArea$1.Scrollbar, {
|
|
40
|
+
"data-scrollbar": true,
|
|
41
|
+
className: cn("ml-sm opacity-0 transition-opacity delay-300 hover:cursor-pointer data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75", orientation === "vertical" && "my-2xs mr-3xs w-2xs", orientation === "horizontal" && "mx-xs mb-xs h-2xs"),
|
|
42
|
+
orientation,
|
|
43
|
+
children: /* @__PURE__ */ jsx(ScrollArea$1.Thumb, { className: "size-full rounded-full bg-accent-default shadow-xs" })
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ jsx(ScrollArea$1.Corner, {})
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export { ScrollArea };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["BaseScrollArea"],"sources":["../../src/components/scroll-area/scroll-area.types.ts","../../src/components/scroll-area/scroll-area.tsx"],"sourcesContent":["import type { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area'\nimport { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\nimport type { ComponentProps } from 'react'\n\nexport const scrollAreaVariants = cva('overflow-hidden rounded-xl', {\n defaultVariants: {\n orientation: 'vertical',\n variant: 'default',\n },\n variants: {\n orientation: {\n horizontal: 'h-full',\n vertical: '',\n },\n variant: {\n default:\n 'bg-surface-low **:data-viewport:rounded-xl **:data-viewport:bg-surface-low **:data-viewport:p-sm **:data-viewport:inset-shadow-2xs **:data-viewport:before:pointer-events-none **:data-viewport:before:absolute **:data-viewport:before:top-0 **:data-viewport:before:left-0 **:data-viewport:before:block **:data-viewport:before:h-[min(40px,var(--scroll-area-overflow-y-start))] **:data-viewport:before:w-full **:data-viewport:before:bg-linear-to-b **:data-viewport:before:from-shadow **:data-viewport:before:to-transparent **:data-viewport:before:transition-[height] **:data-viewport:before:duration-100 **:data-viewport:before:ease-out **:data-viewport:before:content-[\"\"] **:data-viewport:before:[--scroll-area-overflow-y-start:inherit] **:data-viewport:after:pointer-events-none **:data-viewport:after:absolute **:data-viewport:after:bottom-0 **:data-viewport:after:left-0 **:data-viewport:after:block **:data-viewport:after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] **:data-viewport:after:w-full **:data-viewport:after:bg-linear-to-t **:data-viewport:after:from-shadow **:data-viewport:after:to-transparent **:data-viewport:after:transition-[height] **:data-viewport:after:duration-100 **:data-viewport:after:ease-out **:data-viewport:after:content-[\"\"] **:data-viewport:after:[--scroll-area-overflow-y-end:inherit]',\n ghost: '',\n outline: 'border border-border **:data-viewport:p-sm',\n },\n },\n})\n\nexport type ScrollAreaProps = ComponentProps<typeof BaseScrollArea.Root> &\n VariantProps<typeof scrollAreaVariants>\n","import { ScrollArea as BaseScrollArea } from '@base-ui/react/scroll-area'\n\nimport { cn } from '@/utils/cn'\n\nimport { scrollAreaVariants } from './scroll-area.types'\nimport type { ScrollAreaProps } from './scroll-area.types'\n\nexport function ScrollArea({\n orientation,\n variant,\n className,\n children,\n ref,\n ...props\n}: ScrollAreaProps) {\n return (\n <BaseScrollArea.Root\n className={cn(className, scrollAreaVariants({ orientation, variant }))}\n ref={ref}\n {...props}\n >\n <BaseScrollArea.Viewport\n data-viewport\n tabIndex={0}\n className={cn(\n 'flex h-full gap-xs overscroll-contain',\n orientation === 'horizontal' && 'flex-row pb-md',\n orientation === 'vertical' && 'flex-col',\n )}\n >\n {children}\n </BaseScrollArea.Viewport>\n <BaseScrollArea.Scrollbar\n data-scrollbar\n className={cn(\n 'ml-sm opacity-0 transition-opacity delay-300 hover:cursor-pointer data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75',\n orientation === 'vertical' && 'my-2xs mr-3xs w-2xs',\n orientation === 'horizontal' && 'mx-xs mb-xs h-2xs',\n )}\n orientation={orientation!}\n >\n <BaseScrollArea.Thumb className=\"size-full rounded-full bg-accent-default shadow-xs\" />\n </BaseScrollArea.Scrollbar>\n <BaseScrollArea.Corner />\n </BaseScrollArea.Root>\n )\n}\n"],"mappings":";;;;;AAKA,MAAa,qBAAqB,IAAI,8BAA8B;CAClE,iBAAiB;EACf,aAAa;EACb,SAAS;CACX;CACA,UAAU;EACR,aAAa;GACX,YAAY;GACZ,UAAU;EACZ;EACA,SAAS;GACP,SACE;GACF,OAAO;GACP,SAAS;EACX;CACF;AACF,CAAC;;ACfD,SAAgB,WAAW,EACzB,aACA,SACA,WACA,UACA,KACA,GAAG,SACe;CAClB,OACE,qBAACA,aAAe,MAAhB;EACE,WAAW,GAAG,WAAW,mBAAmB;GAAE;GAAa;EAAQ,CAAC,CAAC;EAChE;EACL,GAAI;EAHN,UAAA;GAKE,oBAACA,aAAe,UAAhB;IACE,iBAAA;IACA,UAAU;IACV,WAAW,GACT,yCACA,gBAAgB,gBAAgB,kBAChC,gBAAgB,cAAc,UAChC;IAEC;GACsB,CAAA;GACzB,oBAACA,aAAe,WAAhB;IACE,kBAAA;IACA,WAAW,GACT,4NACA,gBAAgB,cAAc,uBAC9B,gBAAgB,gBAAgB,mBAClC;IACa;IAEb,UAAA,oBAACA,aAAe,OAAhB,EAAsB,WAAU,qDAAsD,CAAA;GAC9D,CAAA;GAC1B,oBAACA,aAAe,QAAhB,CAAwB,CAAA;EACL;;AAEzB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { S as SelectValueProps, _ as SelectListProps, a as SelectPopup, b as SelectTitleProps, c as SelectIcon, d as SelectDescription, f as SelectDescriptionProps, g as SelectItemProps, h as SelectIconProps, i as SelectTitle, l as SelectGroupLabel, m as SelectGroupProps, n as SelectValue, o as SelectList, p as SelectGroupLabelProps, r as SelectTrigger, s as SelectItem, t as Select, u as SelectGroup, v as SelectPopupProps, x as SelectTriggerProps, y as SelectProps } from "../index-CIDOd4Z8.js";
|
|
2
|
+
export { Select, SelectDescription, type SelectDescriptionProps, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, type SelectItemProps, SelectList, type SelectListProps, SelectPopup, type SelectPopupProps, type SelectProps, SelectTitle, type SelectTitleProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as Select, d as SelectDescription, u as SelectGroup, l as SelectGroupLabel, c as SelectIcon, s as SelectItem, o as SelectList, a as SelectPopup, i as SelectTitle, r as SelectTrigger, n as SelectValue } from "../select-DncJXYim.js";
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { t as cn } from "./cn-BDi0DfT5.js";
|
|
2
|
+
import { n as Icon } from "./icon-D3JWfCa2.js";
|
|
3
|
+
import { t as trimTextChildren } from "./trim-text-children-CQRFg2fL.js";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Select } from "@base-ui/react/select";
|
|
7
|
+
// src/components/select/select.tsx
|
|
8
|
+
function Select$2(props) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Select.Root, { ...props });
|
|
10
|
+
}
|
|
11
|
+
// src/components/select/select-description.tsx
|
|
12
|
+
function SelectDescription({ className, ref, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx("span", {
|
|
14
|
+
className: cn("style-text-prose--1 text-on-surface-variant transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default", className),
|
|
15
|
+
ref,
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
// src/components/select/select-group.tsx
|
|
20
|
+
function SelectGroup({ className, ref, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Select.Group, {
|
|
22
|
+
className: cn("block space-y-3xs border-border-strong not-last:border-b not-last:pb-xs", className),
|
|
23
|
+
ref,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
// src/components/select/select-group-label.tsx
|
|
28
|
+
function SelectGroupLabel({ className, ref, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsx(Select.GroupLabel, {
|
|
30
|
+
className: cn("sticky top-[0px] z-1 cursor-default bg-surface-2 px-2xs py-3xs style-text-default--2 text-on-surface-variant select-none", className),
|
|
31
|
+
ref,
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// src/components/select/select-icon.tsx
|
|
36
|
+
function SelectIcon({ className, ref, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ jsx(Select.Icon, {
|
|
38
|
+
"data-slot": "select-icon",
|
|
39
|
+
className: cn("flex text-on-surface-muted", className),
|
|
40
|
+
ref,
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
// src/components/select/select-item.tsx
|
|
45
|
+
function SelectItem({ className, children, ref, ...props }) {
|
|
46
|
+
return /* @__PURE__ */ jsxs(Select.Item, {
|
|
47
|
+
className: cn("group/item grid min-h-lg cursor-default grid-cols-[1fr_0.75rem] items-center gap-xs rounded-lg px-2xs py-3xs transition-colors outline-none select-none group-data-[side=none]:pr-xs hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:bg-neutral-container-high data-highlighted:text-neutral-on-container data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-sm data-selected:bg-neutral-default data-selected:text-neutral-on-default [&_svg]:size-md", className),
|
|
48
|
+
ref,
|
|
49
|
+
...props,
|
|
50
|
+
children: [/* @__PURE__ */ jsx(Select.ItemText, {
|
|
51
|
+
className: "flex flex-col",
|
|
52
|
+
children
|
|
53
|
+
}), /* @__PURE__ */ jsx(Select.ItemIndicator, {
|
|
54
|
+
className: "place-self-end self-center [&>svg]:size-sm",
|
|
55
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "selected" })
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// src/components/select/select-list.tsx
|
|
60
|
+
function SelectList({ className, ref, ...props }) {
|
|
61
|
+
return /* @__PURE__ */ jsx(Select.List, {
|
|
62
|
+
className: cn("relative max-h-(--available-height) scroll-py-md space-y-3xs overflow-y-auto", className),
|
|
63
|
+
ref,
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
// src/components/select/select-popup.tsx
|
|
68
|
+
function SelectPopup({ className, children, ref, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
|
|
70
|
+
className: cn("z-9999 outline-none select-none", className),
|
|
71
|
+
ref,
|
|
72
|
+
...props,
|
|
73
|
+
children: /* @__PURE__ */ jsxs(Select.Popup, {
|
|
74
|
+
className: "group min-w-(--anchor-width) origin-(--transform-origin) rounded-xl bg-surface-2 bg-clip-padding p-2xs shadow-md transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0 data-[side=none]:data-ending-style:scale-90 data-[side=none]:data-ending-style:opacity-0 data-[side=none]:data-starting-style:scale-90 data-[side=none]:data-starting-style:opacity-0",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ jsx(Select.ScrollUpArrow, {
|
|
77
|
+
className: "top-0 right-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-top-full",
|
|
78
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
79
|
+
name: "chevronUp",
|
|
80
|
+
className: "size-sm"
|
|
81
|
+
})
|
|
82
|
+
}),
|
|
83
|
+
children,
|
|
84
|
+
/* @__PURE__ */ jsx(Select.ScrollDownArrow, {
|
|
85
|
+
className: "right-0 bottom-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-bottom-full",
|
|
86
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
87
|
+
name: "chevronDown",
|
|
88
|
+
className: "size-sm"
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
})
|
|
93
|
+
}) });
|
|
94
|
+
}
|
|
95
|
+
// src/components/select/select-title.tsx
|
|
96
|
+
function SelectTitle({ className, children, ref, ...props }) {
|
|
97
|
+
return /* @__PURE__ */ jsx("span", {
|
|
98
|
+
className: cn("flex h-lg items-center gap-2xs font-body text-base leading-none font-medium text-on-surface transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default", className),
|
|
99
|
+
ref,
|
|
100
|
+
...props,
|
|
101
|
+
children: trimTextChildren(children)
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
// src/components/select/select.types.ts
|
|
105
|
+
const selectVariants = cva("flex items-center justify-between outline outline-transparent transition-all duration-100 hover:cursor-pointer aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:outline-error-border data-disabled:cursor-not-allowed [&_[data-value]]:min-w-0 [&_[data-value]]:flex-1 [&:has([data-value]>svg:only-child)]:aspect-square [&:has([data-value]>svg:only-child)]:justify-center [&:has([data-value]>svg:only-child)]:p-0 [&:has([data-value]>svg:only-child)_[data-value]]:flex-none", {
|
|
106
|
+
defaultVariants: {
|
|
107
|
+
size: "medium",
|
|
108
|
+
variant: "primary"
|
|
109
|
+
},
|
|
110
|
+
variants: {
|
|
111
|
+
size: {
|
|
112
|
+
large: "h-2xl gap-xl rounded-2xl px-md font-body text-lg leading-none font-medium [&_[data-slot=select-icon]_svg]:size-md [&_[data-value]]:gap-xs [&_svg]:size-lg",
|
|
113
|
+
medium: "h-xl gap-lg rounded-xl px-sm font-body text-base leading-none font-medium [&_[data-slot=select-icon]_svg]:size-sm [&_[data-value]]:gap-2xs [&_svg]:size-md",
|
|
114
|
+
small: "h-lg gap-md rounded-lg px-xs font-body text-sm leading-none font-medium [&_[data-slot=select-icon]_svg]:size-xs [&_[data-value]]:gap-3xs [&_svg]:size-sm"
|
|
115
|
+
},
|
|
116
|
+
variant: {
|
|
117
|
+
ghost: "bg-transparent hover:bg-neutral-container",
|
|
118
|
+
primary: "bg-surface shadow-2xs hover:outline-border-strong",
|
|
119
|
+
secondary: "bg-neutral-container hover:outline-border-strong"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
// src/components/select/select-trigger.tsx
|
|
124
|
+
function SelectTrigger({ variant, size, className, ref, ...props }) {
|
|
125
|
+
return /* @__PURE__ */ jsx(Select.Trigger, {
|
|
126
|
+
className: cn(selectVariants({
|
|
127
|
+
className,
|
|
128
|
+
size,
|
|
129
|
+
variant
|
|
130
|
+
})),
|
|
131
|
+
ref,
|
|
132
|
+
...props
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
// src/components/select/select-value.tsx
|
|
136
|
+
function SelectValue({ className, ref, ...props }) {
|
|
137
|
+
return /* @__PURE__ */ jsx(Select.Value, {
|
|
138
|
+
"data-value": true,
|
|
139
|
+
className: cn("flex h-lg min-w-0 flex-1 items-center gap-2xs overflow-hidden text-left text-ellipsis whitespace-nowrap data-placeholder:opacity-70", className),
|
|
140
|
+
ref,
|
|
141
|
+
...props
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
// src/components/select/index.ts
|
|
145
|
+
const Select$1 = Object.assign(Select$2, {
|
|
146
|
+
Description: SelectDescription,
|
|
147
|
+
Group: SelectGroup,
|
|
148
|
+
GroupLabel: SelectGroupLabel,
|
|
149
|
+
Icon: SelectIcon,
|
|
150
|
+
Item: SelectItem,
|
|
151
|
+
List: SelectList,
|
|
152
|
+
Popup: SelectPopup,
|
|
153
|
+
Title: SelectTitle,
|
|
154
|
+
Trigger: SelectTrigger,
|
|
155
|
+
Value: SelectValue
|
|
156
|
+
});
|
|
157
|
+
export { SelectPopup as a, SelectIcon as c, SelectDescription as d, SelectTitle as i, SelectGroupLabel as l, SelectValue as n, SelectList as o, SelectTrigger as r, SelectItem as s, Select$1 as t, SelectGroup as u };
|
|
158
|
+
|
|
159
|
+
//# sourceMappingURL=select-DncJXYim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-DncJXYim.js","names":["Select","BaseSelect","BaseSelect","BaseSelect","BaseSelect","BaseSelect","BaseSelect","BaseSelect","BaseSelect","BaseSelect","Select","SelectRoot"],"sources":["../src/components/select/select.tsx","../src/components/select/select-description.tsx","../src/components/select/select-group.tsx","../src/components/select/select-group-label.tsx","../src/components/select/select-icon.tsx","../src/components/select/select-item.tsx","../src/components/select/select-list.tsx","../src/components/select/select-popup.tsx","../src/components/select/select-title.tsx","../src/components/select/select.types.ts","../src/components/select/select-trigger.tsx","../src/components/select/select-value.tsx","../src/components/select/index.ts"],"sourcesContent":["import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport type { SelectProps } from './select.types'\n\nexport function Select<Value, Multiple extends boolean | undefined = false>(\n props: SelectProps<Value, Multiple>,\n) {\n return <BaseSelect.Root {...props} />\n}\n","import { cn } from '@/utils/cn'\n\nimport type { SelectDescriptionProps } from './select.types'\n\nexport function SelectDescription({ className, ref, ...props }: SelectDescriptionProps) {\n return (\n <span\n className={cn(\n 'style-text-prose--1 text-on-surface-variant transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default',\n className,\n )}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport type { SelectGroupProps } from './select.types'\n\nexport function SelectGroup({ className, ref, ...props }: SelectGroupProps) {\n return (\n <BaseSelect.Group\n className={cn(\n 'block space-y-3xs border-border-strong not-last:border-b not-last:pb-xs',\n className,\n )}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport type { SelectGroupLabelProps } from './select.types'\n\nexport function SelectGroupLabel({ className, ref, ...props }: SelectGroupLabelProps) {\n return (\n <BaseSelect.GroupLabel\n className={cn(\n 'sticky top-[0px] z-1 cursor-default bg-surface-2 px-2xs py-3xs style-text-default--2 text-on-surface-variant select-none',\n className,\n )}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport type { SelectIconProps } from './select.types'\n\nexport function SelectIcon({ className, ref, ...props }: SelectIconProps) {\n return (\n <BaseSelect.Icon\n data-slot=\"select-icon\"\n className={cn('flex text-on-surface-muted', className)}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport { Icon } from '../icon'\nimport type { SelectItemProps } from './select.types'\n\nexport function SelectItem({ className, children, ref, ...props }: SelectItemProps) {\n return (\n <BaseSelect.Item\n className={cn(\n 'group/item grid min-h-lg cursor-default grid-cols-[1fr_0.75rem] items-center gap-xs rounded-lg px-2xs py-3xs transition-colors outline-none select-none group-data-[side=none]:pr-xs hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:bg-neutral-container-high data-highlighted:text-neutral-on-container data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-sm data-selected:bg-neutral-default data-selected:text-neutral-on-default [&_svg]:size-md',\n className,\n )}\n ref={ref}\n {...props}\n >\n <BaseSelect.ItemText className=\"flex flex-col\">{children}</BaseSelect.ItemText>\n <BaseSelect.ItemIndicator className=\"place-self-end self-center [&>svg]:size-sm\">\n <Icon name=\"selected\" />\n </BaseSelect.ItemIndicator>\n </BaseSelect.Item>\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport type { SelectListProps } from './select.types'\n\nexport function SelectList({ className, ref, ...props }: SelectListProps) {\n return (\n <BaseSelect.List\n className={cn(\n 'relative max-h-(--available-height) scroll-py-md space-y-3xs overflow-y-auto',\n className,\n )}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport { Icon } from '../icon'\nimport type { SelectPopupProps } from './select.types'\n\nexport function SelectPopup({ className, children, ref, ...props }: SelectPopupProps) {\n return (\n <BaseSelect.Portal>\n <BaseSelect.Positioner\n className={cn('z-9999 outline-none select-none', className)}\n ref={ref}\n {...props}\n >\n <BaseSelect.Popup className=\"group min-w-(--anchor-width) origin-(--transform-origin) rounded-xl bg-surface-2 bg-clip-padding p-2xs shadow-md transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0 data-[side=none]:data-ending-style:scale-90 data-[side=none]:data-ending-style:opacity-0 data-[side=none]:data-starting-style:scale-90 data-[side=none]:data-starting-style:opacity-0\">\n <BaseSelect.ScrollUpArrow className=\"top-0 right-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-top-full\">\n <Icon name=\"chevronUp\" className=\"size-sm\" />\n </BaseSelect.ScrollUpArrow>\n {children}\n <BaseSelect.ScrollDownArrow className=\"right-0 bottom-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-bottom-full\">\n <Icon name=\"chevronDown\" className=\"size-sm\" />\n </BaseSelect.ScrollDownArrow>\n </BaseSelect.Popup>\n </BaseSelect.Positioner>\n </BaseSelect.Portal>\n )\n}\n","import { cn } from '@/utils/cn'\nimport { trimTextChildren } from '@/utils/trim-text-children'\n\nimport type { SelectTitleProps } from './select.types'\n\nexport function SelectTitle({ className, children, ref, ...props }: SelectTitleProps) {\n return (\n <span\n className={cn(\n 'flex h-lg items-center gap-2xs font-body text-base leading-none font-medium text-on-surface transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default',\n className,\n )}\n ref={ref}\n {...props}\n >\n {trimTextChildren(children)}\n </span>\n )\n}\n","import type { Select as BaseSelect } from '@base-ui/react/select'\nimport { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\nimport type { ReactNode } from 'react'\n\nconst selectVariants = cva(\n 'flex items-center justify-between outline outline-transparent transition-all duration-100 hover:cursor-pointer aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:outline-error-border data-disabled:cursor-not-allowed [&_[data-value]]:min-w-0 [&_[data-value]]:flex-1 [&:has([data-value]>svg:only-child)]:aspect-square [&:has([data-value]>svg:only-child)]:justify-center [&:has([data-value]>svg:only-child)]:p-0 [&:has([data-value]>svg:only-child)_[data-value]]:flex-none',\n {\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n variants: {\n size: {\n large:\n 'h-2xl gap-xl rounded-2xl px-md font-body text-lg leading-none font-medium [&_[data-slot=select-icon]_svg]:size-md [&_[data-value]]:gap-xs [&_svg]:size-lg',\n medium:\n 'h-xl gap-lg rounded-xl px-sm font-body text-base leading-none font-medium [&_[data-slot=select-icon]_svg]:size-sm [&_[data-value]]:gap-2xs [&_svg]:size-md',\n small:\n 'h-lg gap-md rounded-lg px-xs font-body text-sm leading-none font-medium [&_[data-slot=select-icon]_svg]:size-xs [&_[data-value]]:gap-3xs [&_svg]:size-sm',\n },\n variant: {\n ghost: 'bg-transparent hover:bg-neutral-container',\n primary: 'bg-surface shadow-2xs hover:outline-border-strong',\n secondary: 'bg-neutral-container hover:outline-border-strong',\n },\n },\n },\n)\n\ntype SelectChangeEventDetails =\n NonNullable<React.ComponentProps<typeof BaseSelect.Root>['onValueChange']> extends (\n value: never,\n details: infer Details,\n ) => void\n ? Details\n : never\n\ntype SelectValue<Value, Multiple extends boolean | undefined> = Multiple extends true\n ? Value[]\n : Value\n\ninterface SelectProps<Value, Multiple extends boolean | undefined = false> extends Omit<\n BaseSelect.Root.Props<Value, Multiple>,\n | 'defaultValue'\n | 'isItemEqualToValue'\n | 'items'\n | 'itemToStringLabel'\n | 'itemToStringValue'\n | 'onValueChange'\n | 'value'\n> {\n defaultValue?: SelectValue<Value, Multiple> | null\n isItemEqualToValue?: (itemValue: Value, value: Value) => boolean\n items?: Record<string, ReactNode> | readonly { label: ReactNode; value: Value }[]\n itemToStringLabel?: (itemValue: Value) => string\n itemToStringValue?: (itemValue: Value) => string\n onValueChange?: (\n value: SelectValue<Value, Multiple> | (Multiple extends true ? never : null),\n eventDetails: SelectChangeEventDetails,\n ) => void\n value?: SelectValue<Value, Multiple> | null\n}\ntype SelectTriggerProps = React.ComponentProps<typeof BaseSelect.Trigger> &\n VariantProps<typeof selectVariants>\ntype SelectValueProps = React.ComponentProps<typeof BaseSelect.Value>\ntype SelectIconProps = React.ComponentProps<typeof BaseSelect.Icon>\ntype SelectPopupProps = React.ComponentProps<typeof BaseSelect.Positioner>\ntype SelectItemProps = React.ComponentProps<typeof BaseSelect.Item>\ntype SelectListProps = React.ComponentProps<typeof BaseSelect.List>\ntype SelectGroupProps = React.ComponentProps<typeof BaseSelect.Group>\ntype SelectGroupLabelProps = React.ComponentProps<typeof BaseSelect.GroupLabel>\ntype SelectDescriptionProps = React.ComponentProps<'span'>\ntype SelectTitleProps = React.ComponentProps<'span'>\ninterface SelectFilter {\n id: number\n label: string\n value: string\n}\n\nexport type {\n SelectProps,\n SelectTriggerProps,\n SelectValueProps,\n SelectIconProps,\n SelectPopupProps,\n SelectItemProps,\n SelectListProps,\n SelectGroupProps,\n SelectGroupLabelProps,\n SelectDescriptionProps,\n SelectTitleProps,\n SelectFilter,\n}\nexport { selectVariants }\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport { selectVariants } from './select.types'\nimport type { SelectTriggerProps } from './select.types'\n\nexport function SelectTrigger({ variant, size, className, ref, ...props }: SelectTriggerProps) {\n return (\n <BaseSelect.Trigger\n className={cn(selectVariants({ className, size, variant }))}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as BaseSelect } from '@base-ui/react/select'\n\nimport { cn } from '@/utils/cn'\n\nimport type { SelectValueProps } from './select.types'\n\nexport function SelectValue({ className, ref, ...props }: SelectValueProps) {\n return (\n <BaseSelect.Value\n data-value\n className={cn(\n 'flex h-lg min-w-0 flex-1 items-center gap-2xs overflow-hidden text-left text-ellipsis whitespace-nowrap data-placeholder:opacity-70',\n className,\n )}\n ref={ref}\n {...props}\n />\n )\n}\n","import { Select as SelectRoot } from './select'\nimport { SelectDescription } from './select-description'\nimport { SelectGroup } from './select-group'\nimport { SelectGroupLabel } from './select-group-label'\nimport { SelectIcon } from './select-icon'\nimport { SelectItem } from './select-item'\nimport { SelectList } from './select-list'\nimport { SelectPopup } from './select-popup'\nimport { SelectTitle } from './select-title'\nimport { SelectTrigger } from './select-trigger'\nimport { SelectValue } from './select-value'\n\nconst Select = Object.assign(SelectRoot, {\n Description: SelectDescription,\n Group: SelectGroup,\n GroupLabel: SelectGroupLabel,\n Icon: SelectIcon,\n Item: SelectItem,\n List: SelectList,\n Popup: SelectPopup,\n Title: SelectTitle,\n Trigger: SelectTrigger,\n Value: SelectValue,\n})\n\nexport type {\n SelectIconProps,\n SelectItemProps,\n SelectListProps,\n SelectPopupProps,\n SelectProps,\n SelectTriggerProps,\n SelectValueProps,\n SelectGroupProps,\n SelectGroupLabelProps,\n SelectDescriptionProps,\n SelectTitleProps,\n} from './select.types'\nexport { SelectItem } from './select-item'\nexport { SelectList } from './select-list'\nexport { SelectIcon } from './select-icon'\nexport { SelectPopup } from './select-popup'\nexport { SelectTrigger } from './select-trigger'\nexport { SelectValue } from './select-value'\nexport { SelectGroup } from './select-group'\nexport { SelectGroupLabel } from './select-group-label'\nexport { SelectDescription } from './select-description'\nexport { SelectTitle } from './select-title'\n\nexport { Select }\n"],"mappings":";;;;;;;AAIA,SAAgBA,SACd,OACA;CACA,OAAO,oBAACC,OAAW,MAAZ,EAAiB,GAAI,MAAQ,CAAA;AACtC;;ACJA,SAAgB,kBAAkB,EAAE,WAAW,KAAK,GAAG,SAAiC;CACtF,OACE,oBAAC,QAAD;EACE,WAAW,GACT,wKACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL;;ACTA,SAAgB,YAAY,EAAE,WAAW,KAAK,GAAG,SAA2B;CAC1E,OACE,oBAACC,OAAW,OAAZ;EACE,WAAW,GACT,2EACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,iBAAiB,EAAE,WAAW,KAAK,GAAG,SAAgC;CACpF,OACE,oBAACC,OAAW,YAAZ;EACE,WAAW,GACT,4HACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,WAAW,EAAE,WAAW,KAAK,GAAG,SAA0B;CACxE,OACE,oBAACC,OAAW,MAAZ;EACE,aAAU;EACV,WAAW,GAAG,8BAA8B,SAAS;EAChD;EACL,GAAI;CACL,CAAA;AAEL;;ACRA,SAAgB,WAAW,EAAE,WAAW,UAAU,KAAK,GAAG,SAA0B;CAClF,OACE,qBAACC,OAAW,MAAZ;EACE,WAAW,GACT,slBACA,SACF;EACK;EACL,GAAI;EANN,UAAA,CAQE,oBAACA,OAAW,UAAZ;GAAqB,WAAU;GAAiB;EAA8B,CAAA,GAC9E,oBAACA,OAAW,eAAZ;GAA0B,WAAU;GAClC,UAAA,oBAAC,MAAD,EAAM,MAAK,WAAY,CAAA;EACC,CAAA,CACX;;AAErB;;ACjBA,SAAgB,WAAW,EAAE,WAAW,KAAK,GAAG,SAA0B;CACxE,OACE,oBAACC,OAAW,MAAZ;EACE,WAAW,GACT,gFACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL;;ACVA,SAAgB,YAAY,EAAE,WAAW,UAAU,KAAK,GAAG,SAA2B;CACpF,OACE,oBAACC,OAAW,QAAZ,EAAA,UACE,oBAACA,OAAW,YAAZ;EACE,WAAW,GAAG,mCAAmC,SAAS;EACrD;EACL,GAAI;EAEJ,UAAA,qBAACA,OAAW,OAAZ;GAAkB,WAAU;GAA5B,UAAA;IACE,oBAACA,OAAW,eAAZ;KAA0B,WAAU;KAClC,UAAA,oBAAC,MAAD;MAAM,MAAK;MAAY,WAAU;KAAW,CAAA;IACpB,CAAA;IACzB;IACD,oBAACA,OAAW,iBAAZ;KAA4B,WAAU;KACpC,UAAA,oBAAC,MAAD;MAAM,MAAK;MAAc,WAAU;KAAW,CAAA;IACpB,CAAA;GACZ;;CACG,CAAA,EACN,CAAA;AAEvB;;ACtBA,SAAgB,YAAY,EAAE,WAAW,UAAU,KAAK,GAAG,SAA2B;CACpF,OACE,oBAAC,QAAD;EACE,WAAW,GACT,wNACA,SACF;EACK;EACL,GAAI;EAEH,UAAA,iBAAiB,QAAQ;CACtB,CAAA;AAEV;;ACbA,MAAM,iBAAiB,IACrB,ufACA;CACE,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;CACA,UAAU;EACR,MAAM;GACJ,OACE;GACF,QACE;GACF,OACE;EACJ;EACA,SAAS;GACP,OAAO;GACP,SAAS;GACT,WAAW;EACb;CACF;AACF,CACF;;ACrBA,SAAgB,cAAc,EAAE,SAAS,MAAM,WAAW,KAAK,GAAG,SAA6B;CAC7F,OACE,oBAACC,OAAW,SAAZ;EACE,WAAW,GAAG,eAAe;GAAE;GAAW;GAAM;EAAQ,CAAC,CAAC;EACrD;EACL,GAAI;CACL,CAAA;AAEL;;ACTA,SAAgB,YAAY,EAAE,WAAW,KAAK,GAAG,SAA2B;CAC1E,OACE,oBAACC,OAAW,OAAZ;EACE,cAAA;EACA,WAAW,GACT,uIACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL;;ACNA,MAAMC,WAAS,OAAO,OAAOC,UAAY;CACvC,aAAa;CACb,OAAO;CACP,YAAY;CACZ,MAAM;CACN,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACP,SAAS;CACT,OAAO;AACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as Separator } from "../separator-DgIQp1cB.js";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as cn } from "./cn-BDi0DfT5.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Separator } from "@base-ui/react/separator";
|
|
5
|
+
// src/components/separator/separator.types.ts
|
|
6
|
+
const separatorVariants = cva("relative shrink-0 rounded-full", {
|
|
7
|
+
compoundVariants: [
|
|
8
|
+
{
|
|
9
|
+
className: "h-[8px]",
|
|
10
|
+
orientation: "horizontal",
|
|
11
|
+
weight: "thick"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
className: "h-[4px]",
|
|
15
|
+
orientation: "horizontal",
|
|
16
|
+
weight: "medium"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
className: "h-[2px]",
|
|
20
|
+
orientation: "horizontal",
|
|
21
|
+
weight: "thin"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
className: "h-px",
|
|
25
|
+
orientation: "horizontal",
|
|
26
|
+
weight: "thinnest"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
className: "w-[8px]",
|
|
30
|
+
orientation: "vertical",
|
|
31
|
+
weight: "thick"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
className: "w-[4px]",
|
|
35
|
+
orientation: "vertical",
|
|
36
|
+
weight: "medium"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
className: "w-[2px]",
|
|
40
|
+
orientation: "vertical",
|
|
41
|
+
weight: "thin"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
className: "w-px",
|
|
45
|
+
orientation: "vertical",
|
|
46
|
+
weight: "thinnest"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
defaultVariants: {
|
|
50
|
+
orientation: "horizontal",
|
|
51
|
+
style: "rounded",
|
|
52
|
+
variant: "default",
|
|
53
|
+
weight: "thinnest"
|
|
54
|
+
},
|
|
55
|
+
variants: {
|
|
56
|
+
orientation: {
|
|
57
|
+
horizontal: "w-full",
|
|
58
|
+
vertical: "h-full"
|
|
59
|
+
},
|
|
60
|
+
style: {
|
|
61
|
+
rounded: "rounded-full",
|
|
62
|
+
square: "rounded-none"
|
|
63
|
+
},
|
|
64
|
+
variant: {
|
|
65
|
+
default: "bg-neutral-border",
|
|
66
|
+
strong: "bg-neutral-border-strong"
|
|
67
|
+
},
|
|
68
|
+
weight: {
|
|
69
|
+
medium: "[&_[data-label]]:style-text-prose--1",
|
|
70
|
+
thick: "[&_[data-label]]:style-text-prose-0",
|
|
71
|
+
thin: "[&_[data-label]]:style-text-prose--2",
|
|
72
|
+
thinnest: "[&_[data-label]]:style-text-prose--2"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
// src/components/separator/separator.tsx
|
|
77
|
+
function Separator$1({ orientation, weight, style, variant, children, className, labelClassName, ref, ...props }) {
|
|
78
|
+
return /* @__PURE__ */ jsx(Separator, {
|
|
79
|
+
className: cn("relative", separatorVariants({
|
|
80
|
+
orientation,
|
|
81
|
+
style,
|
|
82
|
+
variant,
|
|
83
|
+
weight
|
|
84
|
+
}), className),
|
|
85
|
+
orientation,
|
|
86
|
+
ref,
|
|
87
|
+
...props,
|
|
88
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
89
|
+
"data-label": true,
|
|
90
|
+
className: cn("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-surface-background px-2xs whitespace-nowrap text-on-surface-variant", labelClassName),
|
|
91
|
+
children
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export { Separator$1 as t };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=separator-DgIQp1cB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator-DgIQp1cB.js","names":["Separator","BaseSeparator"],"sources":["../src/components/separator/separator.types.ts","../src/components/separator/separator.tsx"],"sourcesContent":["import type { Separator as BaseSeparator } from '@base-ui/react/separator'\nimport { cva } from 'class-variance-authority'\nimport type { VariantProps } from 'class-variance-authority'\n\nexport const separatorVariants = cva('relative shrink-0 rounded-full', {\n compoundVariants: [\n {\n className: 'h-[8px]',\n orientation: 'horizontal',\n weight: 'thick',\n },\n {\n className: 'h-[4px]',\n orientation: 'horizontal',\n weight: 'medium',\n },\n {\n className: 'h-[2px]',\n orientation: 'horizontal',\n weight: 'thin',\n },\n {\n className: 'h-px',\n orientation: 'horizontal',\n weight: 'thinnest',\n },\n {\n className: 'w-[8px]',\n orientation: 'vertical',\n weight: 'thick',\n },\n {\n className: 'w-[4px]',\n orientation: 'vertical',\n weight: 'medium',\n },\n {\n className: 'w-[2px]',\n orientation: 'vertical',\n weight: 'thin',\n },\n {\n className: 'w-px',\n orientation: 'vertical',\n weight: 'thinnest',\n },\n ],\n defaultVariants: {\n orientation: 'horizontal',\n style: 'rounded',\n variant: 'default',\n weight: 'thinnest',\n },\n variants: {\n orientation: {\n horizontal: 'w-full',\n vertical: 'h-full',\n },\n style: {\n rounded: 'rounded-full',\n square: 'rounded-none',\n },\n variant: {\n default: 'bg-neutral-border',\n strong: 'bg-neutral-border-strong',\n },\n weight: {\n medium: '[&_[data-label]]:style-text-prose--1',\n thick: '[&_[data-label]]:style-text-prose-0',\n thin: '[&_[data-label]]:style-text-prose--2',\n thinnest: '[&_[data-label]]:style-text-prose--2',\n },\n },\n})\n\nexport type SeparatorProps = Omit<React.ComponentProps<typeof BaseSeparator>, 'style'> &\n VariantProps<typeof separatorVariants> & {\n labelClassName?: string\n }\n","import { Separator as BaseSeparator } from '@base-ui/react/separator'\n\nimport { cn } from '@/utils/cn'\n\nimport { separatorVariants } from './separator.types'\nimport type { SeparatorProps } from './separator.types'\n\nexport function Separator({\n orientation,\n weight,\n style,\n variant,\n children,\n className,\n labelClassName,\n ref,\n ...props\n}: SeparatorProps) {\n return (\n <BaseSeparator\n className={cn(\n 'relative',\n separatorVariants({ orientation, style, variant, weight }),\n className,\n )}\n orientation={orientation}\n ref={ref}\n {...props}\n >\n <span\n data-label\n className={cn(\n 'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-surface-background px-2xs whitespace-nowrap text-on-surface-variant',\n labelClassName,\n )}\n >\n {children}\n </span>\n </BaseSeparator>\n )\n}\n"],"mappings":";;;;;AAIA,MAAa,oBAAoB,IAAI,kCAAkC;CACrE,kBAAkB;EAChB;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA;GACE,WAAW;GACX,aAAa;GACb,QAAQ;EACV;CACF;CACA,iBAAiB;EACf,aAAa;EACb,OAAO;EACP,SAAS;EACT,QAAQ;CACV;CACA,UAAU;EACR,aAAa;GACX,YAAY;GACZ,UAAU;EACZ;EACA,OAAO;GACL,SAAS;GACT,QAAQ;EACV;EACA,SAAS;GACP,SAAS;GACT,QAAQ;EACV;EACA,QAAQ;GACN,QAAQ;GACR,OAAO;GACP,MAAM;GACN,UAAU;EACZ;CACF;AACF,CAAC;;AClED,SAAgBA,YAAU,EACxB,aACA,QACA,OACA,SACA,UACA,WACA,gBACA,KACA,GAAG,SACc;CACjB,OACE,oBAACC,WAAD;EACE,WAAW,GACT,YACA,kBAAkB;GAAE;GAAa;GAAO;GAAS;EAAO,CAAC,GACzD,SACF;EACa;EACR;EACL,GAAI;EAEJ,UAAA,oBAAC,QAAD;GACE,cAAA;GACA,WAAW,GACT,sIACA,cACF;GAEC;EACG,CAAA;CACO,CAAA;AAEnB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { t as Badge } from "../index-0ZQzIKoE.js";
|
|
2
|
+
import { t as Button } from "../index-bVyqfhJS.js";
|
|
3
|
+
import { n as CollapsibleTrigger, r as CollapsiblePanel, t as Collapsible } from "../index-N2CBSUDu.js";
|
|
4
|
+
import React$1 from "react";
|
|
5
|
+
type SidebarToggleProps = Omit<React.ComponentProps<typeof Button>, 'children'> & {
|
|
6
|
+
children: React.ReactNode | ((open?: boolean) => React.ReactNode);
|
|
7
|
+
};
|
|
8
|
+
type SidebarContentProps = React.ComponentProps<'div'>;
|
|
9
|
+
type SidebarGroupContentProps = React.ComponentProps<'div'>;
|
|
10
|
+
type SidebarGroupLabelProps = React.ComponentProps<'span'>;
|
|
11
|
+
type SidebarGroupProps = React.ComponentProps<'div'>;
|
|
12
|
+
type SidebarHeaderProps = Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
13
|
+
children: (isExpanded?: boolean) => React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
type SidebarFooterProps = Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
16
|
+
children: (isExpanded?: boolean) => React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
type SidebarMenuProps = React.ComponentProps<'div'>;
|
|
19
|
+
type SidebarProps = React.ComponentProps<'div'> & {
|
|
20
|
+
tone?: 'primary' | 'secondary' | 'ghost';
|
|
21
|
+
width?: string | number;
|
|
22
|
+
};
|
|
23
|
+
type SidebarMenuButtonProps = React.ComponentProps<'button'> & {
|
|
24
|
+
isActive?: boolean;
|
|
25
|
+
};
|
|
26
|
+
type SidebarMenuItemProps = React.ComponentProps<'div'>;
|
|
27
|
+
type SidebarMenuBadgeProps = React.ComponentProps<typeof Badge>;
|
|
28
|
+
type SidebarMenuCollapsibleTriggerProps = React.ComponentProps<typeof CollapsibleTrigger>;
|
|
29
|
+
type SidebarMenuCollapsibleProps = React.ComponentProps<typeof Collapsible>;
|
|
30
|
+
type SidebarMenuCollapsiblePanelProps = React.ComponentProps<typeof CollapsiblePanel>;
|
|
31
|
+
type SidebarInsetProps = React.ComponentProps<'div'>;
|
|
32
|
+
declare function Sidebar$1({ tone, width, className, ...props }: SidebarProps): React$1.JSX.Element;
|
|
33
|
+
export declare function SidebarContent({ className, children, ref, ...props }: SidebarContentProps): import("react").JSX.Element;
|
|
34
|
+
export declare function SidebarFooter({ className, children, ref, ...props }: SidebarFooterProps): import("react").JSX.Element;
|
|
35
|
+
export declare function SidebarGroup({ className, ref, ...props }: SidebarGroupProps): import("react").JSX.Element;
|
|
36
|
+
export declare function SidebarGroupContent({ className, ref, ...props }: SidebarGroupContentProps): import("react").JSX.Element;
|
|
37
|
+
export declare function SidebarGroupLabel({ className, ref, ...props }: SidebarGroupLabelProps): import("react").JSX.Element | undefined;
|
|
38
|
+
export declare function SidebarHeader({ className, children, ref, ...props }: SidebarHeaderProps): import("react").JSX.Element;
|
|
39
|
+
export declare function SidebarInset({ className, children, ref, ...props }: SidebarInsetProps): import("react").JSX.Element;
|
|
40
|
+
export declare function SidebarMenu({ className, ref, ...props }: SidebarMenuProps): import("react").JSX.Element;
|
|
41
|
+
export declare function SidebarMenuBadge({ className, ref, ...props }: SidebarMenuBadgeProps): import("react").JSX.Element;
|
|
42
|
+
export declare function SidebarMenuButton({ isActive, className, ref, ...props }: SidebarMenuButtonProps): import("react").JSX.Element;
|
|
43
|
+
export declare function SidebarMenuCollapsible({ className, children, ref, ...props }: SidebarMenuCollapsibleProps): import("react").JSX.Element;
|
|
44
|
+
export declare function SidebarMenuCollapsiblePanel({ className, children, ref, ...props }: SidebarMenuCollapsiblePanelProps): import("react").JSX.Element;
|
|
45
|
+
export declare function SidebarMenuCollapsibleTrigger({ className, children, ref, style: _style, ...props }: SidebarMenuCollapsibleTriggerProps): import("react").JSX.Element;
|
|
46
|
+
export declare function SidebarMenuItem({ className, ref, ...props }: SidebarMenuItemProps): import("react").JSX.Element;
|
|
47
|
+
type SidebarContextProps = React$1.ComponentProps<'div'> & {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultOpen?: boolean;
|
|
50
|
+
trigger?: () => void;
|
|
51
|
+
open?: boolean;
|
|
52
|
+
setOpen?: (open: boolean) => void;
|
|
53
|
+
isMobile?: boolean;
|
|
54
|
+
side?: 'left' | 'right';
|
|
55
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
56
|
+
};
|
|
57
|
+
declare const useSidebar: () => SidebarContextProps;
|
|
58
|
+
declare function SidebarProvider({ id, defaultOpen, side, collapsible, className, ref, ...props }: SidebarContextProps): React$1.JSX.Element;
|
|
59
|
+
export declare function SidebarToggle({ className, children, ref, ...props }: SidebarToggleProps): import("react").JSX.Element | undefined;
|
|
60
|
+
export declare const getStoredSidebarOpen: (id: string, fallback: boolean) => boolean;
|
|
61
|
+
declare const Sidebar: typeof Sidebar$1 & {
|
|
62
|
+
Content: typeof SidebarContent;
|
|
63
|
+
Footer: typeof SidebarFooter;
|
|
64
|
+
Group: typeof SidebarGroup;
|
|
65
|
+
GroupContent: typeof SidebarGroupContent;
|
|
66
|
+
GroupLabel: typeof SidebarGroupLabel;
|
|
67
|
+
Header: typeof SidebarHeader;
|
|
68
|
+
Inset: typeof SidebarInset;
|
|
69
|
+
Menu: typeof SidebarMenu;
|
|
70
|
+
MenuBadge: typeof SidebarMenuBadge;
|
|
71
|
+
MenuButton: typeof SidebarMenuButton;
|
|
72
|
+
MenuCollapsible: typeof SidebarMenuCollapsible;
|
|
73
|
+
MenuCollapsiblePanel: typeof SidebarMenuCollapsiblePanel;
|
|
74
|
+
MenuCollapsibleTrigger: typeof SidebarMenuCollapsibleTrigger;
|
|
75
|
+
MenuItem: typeof SidebarMenuItem;
|
|
76
|
+
Provider: typeof SidebarProvider;
|
|
77
|
+
Toggle: typeof SidebarToggle;
|
|
78
|
+
};
|
|
79
|
+
export { Sidebar, type SidebarContentProps, type SidebarFooterProps, type SidebarGroupContentProps, type SidebarGroupLabelProps, type SidebarGroupProps, type SidebarHeaderProps, type SidebarInsetProps, type SidebarMenuBadgeProps, type SidebarMenuButtonProps, type SidebarMenuCollapsiblePanelProps, type SidebarMenuCollapsibleProps, type SidebarMenuCollapsibleTriggerProps, type SidebarMenuItemProps, type SidebarMenuProps, type SidebarProps, SidebarProvider, type SidebarToggleProps, useSidebar };
|
|
80
|
+
//# sourceMappingURL=index.d.ts.map
|