@mayor_grd/centry-ui 0.1.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 +100 -0
- package/dist/components/ui/accordion.cjs +2 -0
- package/dist/components/ui/accordion.cjs.map +1 -0
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +47 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.cjs +2 -0
- package/dist/components/ui/alert-dialog.cjs.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +108 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.cjs +2 -0
- package/dist/components/ui/alert.cjs.map +1 -0
- package/dist/components/ui/alert.d.ts +12 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +55 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.cjs +2 -0
- package/dist/components/ui/aspect-ratio.cjs.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +6 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.cjs +2 -0
- package/dist/components/ui/avatar.cjs.map +1 -0
- package/dist/components/ui/avatar.d.ts +13 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +57 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.cjs +2 -0
- package/dist/components/ui/badge.cjs.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +38 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.cjs +2 -0
- package/dist/components/ui/breadcrumb.cjs.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +23 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +97 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.cjs +2 -0
- package/dist/components/ui/button.cjs.map +1 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.figma.d.ts +2 -0
- package/dist/components/ui/button.figma.d.ts.map +1 -0
- package/dist/components/ui/button.js +73 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.cjs +2 -0
- package/dist/components/ui/calendar.cjs.map +1 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +56 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.cjs +2 -0
- package/dist/components/ui/card.cjs.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +51 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.cjs +2 -0
- package/dist/components/ui/carousel.cjs.map +1 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +156 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/checkbox.cjs +2 -0
- package/dist/components/ui/checkbox.cjs.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +53 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.cjs +2 -0
- package/dist/components/ui/collapsible.cjs.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +8 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.cjs +2 -0
- package/dist/components/ui/combobox.cjs.map +1 -0
- package/dist/components/ui/combobox.d.ts +22 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +70 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.cjs +2 -0
- package/dist/components/ui/command.cjs.map +1 -0
- package/dist/components/ui/command.d.ts +82 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +107 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/data-table.cjs +2 -0
- package/dist/components/ui/data-table.cjs.map +1 -0
- package/dist/components/ui/data-table.d.ts +11 -0
- package/dist/components/ui/data-table.d.ts.map +1 -0
- package/dist/components/ui/data-table.js +26 -0
- package/dist/components/ui/data-table.js.map +1 -0
- package/dist/components/ui/date-picker.cjs +2 -0
- package/dist/components/ui/date-picker.cjs.map +1 -0
- package/dist/components/ui/date-picker.d.ts +15 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +49 -0
- package/dist/components/ui/date-picker.js.map +1 -0
- package/dist/components/ui/dialog.cjs +2 -0
- package/dist/components/ui/dialog.cjs.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +96 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/drawer.cjs +2 -0
- package/dist/components/ui/drawer.cjs.map +1 -0
- package/dist/components/ui/drawer.d.ts +23 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +84 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.cjs +2 -0
- package/dist/components/ui/dropdown-menu.cjs.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +34 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +153 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/form.cjs +2 -0
- package/dist/components/ui/form.cjs.map +1 -0
- package/dist/components/ui/form.d.ts +23 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +93 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/hover-card.cjs +2 -0
- package/dist/components/ui/hover-card.cjs.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +24 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/index.d.ts +45 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/input-otp.cjs +2 -0
- package/dist/components/ui/input-otp.cjs.map +1 -0
- package/dist/components/ui/input-otp.d.ts +36 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +55 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.cjs +2 -0
- package/dist/components/ui/input.cjs.map +1 -0
- package/dist/components/ui/input.d.ts +10 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +32 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.cjs +2 -0
- package/dist/components/ui/label.cjs.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +13 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/navigation-menu.cjs +2 -0
- package/dist/components/ui/navigation-menu.cjs.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +13 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +100 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.cjs +2 -0
- package/dist/components/ui/pagination.cjs.map +1 -0
- package/dist/components/ui/pagination.d.ts +29 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +100 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.cjs +2 -0
- package/dist/components/ui/popover.cjs.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +25 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.cjs +2 -0
- package/dist/components/ui/progress.cjs.map +1 -0
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +24 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.cjs +2 -0
- package/dist/components/ui/radio-group.cjs.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +31 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/select.cjs +2 -0
- package/dist/components/ui/select.cjs.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +116 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.cjs +2 -0
- package/dist/components/ui/separator.cjs.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +23 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.cjs +2 -0
- package/dist/components/ui/sheet.cjs.map +1 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +87 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.cjs +2 -0
- package/dist/components/ui/sidebar.cjs.map +1 -0
- package/dist/components/ui/sidebar.d.ts +70 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +541 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.cjs +2 -0
- package/dist/components/ui/skeleton.cjs.map +1 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +18 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.cjs +2 -0
- package/dist/components/ui/slider.cjs.map +1 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +21 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.cjs +2 -0
- package/dist/components/ui/sonner.cjs.map +1 -0
- package/dist/components/ui/sonner.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +27 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/switch.cjs +2 -0
- package/dist/components/ui/switch.cjs.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +28 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.cjs +2 -0
- package/dist/components/ui/table.cjs.map +1 -0
- package/dist/components/ui/table.d.ts +17 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +86 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tag.cjs +2 -0
- package/dist/components/ui/tag.cjs.map +1 -0
- package/dist/components/ui/tag.d.ts +11 -0
- package/dist/components/ui/tag.d.ts.map +1 -0
- package/dist/components/ui/tag.js +50 -0
- package/dist/components/ui/tag.js.map +1 -0
- package/dist/components/ui/textarea.cjs +2 -0
- package/dist/components/ui/textarea.cjs.map +1 -0
- package/dist/components/ui/textarea.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +31 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.cjs +2 -0
- package/dist/components/ui/toggle-group.cjs.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +17 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +57 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.cjs +2 -0
- package/dist/components/ui/toggle.cjs.map +1 -0
- package/dist/components/ui/toggle.d.ts +13 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +35 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.cjs +2 -0
- package/dist/components/ui/tooltip.cjs.map +1 -0
- package/dist/components/ui/tooltip.d.ts +14 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +34 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +264 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.cjs +2 -0
- package/dist/lib/utils.cjs.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles/library.css +174 -0
- package/dist/tokens/generated/primitives.css +541 -0
- package/dist/tokens/generated/tailwind-theme.cjs +2 -0
- package/dist/tokens/generated/tailwind-theme.cjs.map +1 -0
- package/dist/tokens/generated/tailwind-theme.d.ts +870 -0
- package/dist/tokens/generated/tailwind-theme.d.ts.map +1 -0
- package/dist/tokens/generated/tailwind-theme.js +872 -0
- package/dist/tokens/generated/tailwind-theme.js.map +1 -0
- package/dist/tokens/generated/tokens.cjs +2 -0
- package/dist/tokens/generated/tokens.cjs.map +1 -0
- package/dist/tokens/generated/tokens.d.ts +891 -0
- package/dist/tokens/generated/tokens.d.ts.map +1 -0
- package/dist/tokens/generated/tokens.js +1596 -0
- package/dist/tokens/generated/tokens.js.map +1 -0
- package/dist/tokens/generated/variables.css +919 -0
- package/dist/tokens/index.cjs +2 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.ts +3 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +15 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +140 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
3
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Progress };
|
|
5
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAG9D,QAAA,MAAM,QAAQ,2JAcZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import * as r from "@radix-ui/react-progress";
|
|
4
|
+
import { cn as i } from "../../lib/utils.js";
|
|
5
|
+
const m = s.forwardRef(({ className: a, value: l, ...t }, e) => /* @__PURE__ */ o(
|
|
6
|
+
r.Root,
|
|
7
|
+
{
|
|
8
|
+
ref: e,
|
|
9
|
+
className: i("relative h-2 w-full overflow-hidden rounded-full bg-bg-strong", a),
|
|
10
|
+
...t,
|
|
11
|
+
children: /* @__PURE__ */ o(
|
|
12
|
+
r.Indicator,
|
|
13
|
+
{
|
|
14
|
+
className: "h-full w-full flex-1 bg-action-primary-bg transition-all",
|
|
15
|
+
style: { transform: `translateX(-${100 - (l || 0)}%)` }
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
));
|
|
20
|
+
m.displayName = r.Root.displayName;
|
|
21
|
+
export {
|
|
22
|
+
m as Progress
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sources":["../../../src/components/ui/progress.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\nimport { cn } from '@/lib/utils';\n\nconst Progress = React.forwardRef<\n React.ComponentRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn('relative h-2 w-full overflow-hidden rounded-full bg-bg-strong', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-action-primary-bg transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive","cn"],"mappings":";;;;AAIA,MAAMA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGC,KAASC,MACjC,gBAAAC;AAAA,EAACC,EAAkB;AAAA,EAAlB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,iEAAiEN,CAAS;AAAA,IACvF,GAAGE;AAAA,IAEJ,UAAA,gBAAAE;AAAA,MAACC,EAAkB;AAAA,MAAlB;AAAA,QACC,WAAU;AAAA,QACV,OAAO,EAAE,WAAW,eAAe,OAAOJ,KAAS,EAAE,KAAA;AAAA,MAAK;AAAA,IAAA;AAAA,EAC5D;AACF,CACD;AACDH,EAAS,cAAcO,EAAkB,KAAK;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),u=require("react"),f=require("@radix-ui/react-radio-group"),s=require("../../lib/utils.cjs");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=c(u),o=c(f),d=n.forwardRef(({className:e,...t},r)=>i.jsx(o.Root,{ref:r,className:s.cn("grid gap-2",e),...t}));d.displayName=o.Root.displayName;const l=n.forwardRef(({className:e,...t},r)=>i.jsx(o.Item,{ref:r,className:s.cn("aspect-square h-4 w-4 rounded-full border border-field-border bg-field-bg text-action-primary-bg ring-offset-focus-offset focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-action-primary-bg",e),...t,children:i.jsx(o.Indicator,{className:"flex items-center justify-center",children:i.jsx("span",{className:"h-2 w-2 rounded-full bg-action-primary-bg"})})}));l.displayName=o.Item.displayName;exports.RadioGroup=d;exports.RadioGroupItem=l;
|
|
2
|
+
//# sourceMappingURL=radio-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.cjs","sources":["../../../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '@/lib/utils';\n\nconst RadioGroup = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Root\n ref={ref}\n className={cn('grid gap-2', className)}\n {...props}\n />\n));\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'aspect-square h-4 w-4 rounded-full border border-field-border bg-field-bg text-action-primary-bg ring-offset-focus-offset focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-action-primary-bg',\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <span className=\"h-2 w-2 rounded-full bg-action-primary-bg\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n));\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem"],"mappings":"mfAIMA,EAAaC,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,IAACC,EAAoB,KAApB,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,aAAcL,CAAS,EACpC,GAAGC,CAAA,CACN,CACD,EACDH,EAAW,YAAcM,EAAoB,KAAK,YAElD,MAAME,EAAiBP,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,IAACC,EAAoB,KAApB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,oUACAL,CAAA,EAED,GAAGC,EAEJ,SAAAE,EAAAA,IAACC,EAAoB,UAApB,CAA8B,UAAU,mCACvC,SAAAD,EAAAA,IAAC,OAAA,CAAK,UAAU,2CAAA,CAA4C,CAAA,CAC9D,CAAA,CACF,CACD,EACDG,EAAe,YAAcF,EAAoB,KAAK"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
6
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAGnE,QAAA,MAAM,UAAU,+JASd,CAAC;AAGH,QAAA,MAAM,cAAc,yKAgBlB,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-radio-group";
|
|
4
|
+
import { cn as t } from "../../lib/utils.js";
|
|
5
|
+
const d = s.forwardRef(({ className: r, ...i }, a) => /* @__PURE__ */ o(
|
|
6
|
+
e.Root,
|
|
7
|
+
{
|
|
8
|
+
ref: a,
|
|
9
|
+
className: t("grid gap-2", r),
|
|
10
|
+
...i
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
d.displayName = e.Root.displayName;
|
|
14
|
+
const c = s.forwardRef(({ className: r, ...i }, a) => /* @__PURE__ */ o(
|
|
15
|
+
e.Item,
|
|
16
|
+
{
|
|
17
|
+
ref: a,
|
|
18
|
+
className: t(
|
|
19
|
+
"aspect-square h-4 w-4 rounded-full border border-field-border bg-field-bg text-action-primary-bg ring-offset-focus-offset focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-action-primary-bg",
|
|
20
|
+
r
|
|
21
|
+
),
|
|
22
|
+
...i,
|
|
23
|
+
children: /* @__PURE__ */ o(e.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ o("span", { className: "h-2 w-2 rounded-full bg-action-primary-bg" }) })
|
|
24
|
+
}
|
|
25
|
+
));
|
|
26
|
+
c.displayName = e.Item.displayName;
|
|
27
|
+
export {
|
|
28
|
+
d as RadioGroup,
|
|
29
|
+
c as RadioGroupItem
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../../../src/components/ui/radio-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '@/lib/utils';\n\nconst RadioGroup = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Root\n ref={ref}\n className={cn('grid gap-2', className)}\n {...props}\n />\n));\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'aspect-square h-4 w-4 rounded-full border border-field-border bg-field-bg text-action-primary-bg ring-offset-focus-offset focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-action-primary-bg',\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <span className=\"h-2 w-2 rounded-full bg-action-primary-bg\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n));\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem"],"mappings":";;;;AAIA,MAAMA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACC,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,cAAcL,CAAS;AAAA,IACpC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAW,cAAcM,EAAoB,KAAK;AAElD,MAAME,IAAiBP,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACC,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEJ,UAAA,gBAAAE,EAACC,EAAoB,WAApB,EAA8B,WAAU,oCACvC,UAAA,gBAAAD,EAAC,QAAA,EAAK,WAAU,4CAAA,CAA4C,EAAA,CAC9D;AAAA,EAAA;AACF,CACD;AACDG,EAAe,cAAcF,EAAoB,KAAK;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),b=require("react"),g=require("@radix-ui/react-select"),n=require("iconsax-react"),s=require("../../lib/utils.cjs");function u(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,l.get?l:{enumerable:!0,get:()=>r[t]})}}return o.default=r,Object.freeze(o)}const c=u(b),e=u(g),w=e.Root,j=e.Group,N=e.Value,p=c.forwardRef(({className:r,children:o,...t},l)=>a.jsxs(e.Trigger,{ref:l,className:s.cn("flex h-10 w-full items-center justify-between rounded-md border border-field-border bg-field-bg px-3 py-2 text-sm text-field-text ring-offset-focus-offset placeholder:text-field-placeholder focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...t,children:[o,a.jsx(e.Icon,{asChild:!0,children:a.jsx(n.ArrowDown2,{size:16,color:"currentColor",className:"h-4 w-4 text-icon-muted opacity-50"})})]}));p.displayName=e.Trigger.displayName;const i=c.forwardRef(({className:r,...o},t)=>a.jsx(e.ScrollUpButton,{ref:t,className:s.cn("flex cursor-default items-center justify-center py-1",r),...o,children:a.jsx(n.ArrowUp2,{size:16,color:"currentColor"})}));i.displayName=e.ScrollUpButton.displayName;const d=c.forwardRef(({className:r,...o},t)=>a.jsx(e.ScrollDownButton,{ref:t,className:s.cn("flex cursor-default items-center justify-center py-1",r),...o,children:a.jsx(n.ArrowDown2,{size:16,color:"currentColor"})}));d.displayName=e.ScrollDownButton.displayName;const m=c.forwardRef(({className:r,children:o,position:t="popper",...l},y)=>a.jsx(e.Portal,{children:a.jsxs(e.Content,{ref:y,className:s.cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border-default bg-bg-popover text-text-popover shadow-popover 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",t==="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",r),position:t,...l,children:[a.jsx(i,{}),a.jsx(e.Viewport,{className:s.cn("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),a.jsx(d,{})]})}));m.displayName=e.Content.displayName;const f=c.forwardRef(({className:r,...o},t)=>a.jsx(e.Label,{ref:t,className:s.cn("py-1.5 pl-8 pr-2 text-xs font-medium text-text-muted",r),...o}));f.displayName=e.Label.displayName;const x=c.forwardRef(({className:r,children:o,...t},l)=>a.jsxs(e.Item,{ref:l,className:s.cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-bg-accent focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...t,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(e.ItemIndicator,{children:a.jsx(n.TickCircle,{size:14,color:"currentColor",variant:"Bold"})})}),a.jsx(e.ItemText,{children:o})]}));x.displayName=e.Item.displayName;const S=c.forwardRef(({className:r,...o},t)=>a.jsx(e.Separator,{ref:t,className:s.cn("-mx-1 my-1 h-px bg-border-muted",r),...o}));S.displayName=e.Separator.displayName;exports.Select=w;exports.SelectContent=m;exports.SelectGroup=j;exports.SelectItem=x;exports.SelectLabel=f;exports.SelectScrollDownButton=d;exports.SelectScrollUpButton=i;exports.SelectSeparator=S;exports.SelectTrigger=p;exports.SelectValue=N;
|
|
2
|
+
//# sourceMappingURL=select.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.cjs","sources":["../../../src/components/ui/select.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { ArrowDown2, ArrowUp2, TickCircle } from 'iconsax-react';\nimport { cn } from '@/lib/utils';\n\nconst Select = SelectPrimitive.Root;\nconst SelectGroup = SelectPrimitive.Group;\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-field-border bg-field-bg px-3 py-2 text-sm text-field-text ring-offset-focus-offset placeholder:text-field-placeholder focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ArrowDown2 size={16} color=\"currentColor\" className=\"h-4 w-4 text-icon-muted opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ArrowUp2 size={16} color=\"currentColor\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ArrowDown2 size={16} color=\"currentColor\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border-default bg-bg-popover text-text-popover shadow-popover 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',\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-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-1.5 pl-8 pr-2 text-xs font-medium text-text-muted', className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-bg-accent focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <TickCircle size={14} color=\"currentColor\" variant=\"Bold\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-border-muted', className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","jsxs","cn","jsx","ArrowDown2","SelectScrollUpButton","ArrowUp2","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","TickCircle","SelectSeparator"],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
14
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AACpC,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAC1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,qKAWxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,uKAW1B,CAAC;AAGH,QAAA,MAAM,aAAa,8JA6BjB,CAAC;AAGH,QAAA,MAAM,WAAW,4JASf,CAAC;AAGH,QAAA,MAAM,UAAU,2JAmBd,CAAC;AAGH,QAAA,MAAM,eAAe,gKASnB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-select";
|
|
4
|
+
import { TickCircle as f, ArrowDown2 as i, ArrowUp2 as u } from "iconsax-react";
|
|
5
|
+
import { cn as l } from "../../lib/utils.js";
|
|
6
|
+
const v = e.Root, C = e.Group, R = e.Value, x = s.forwardRef(({ className: a, children: o, ...r }, d) => /* @__PURE__ */ c(
|
|
7
|
+
e.Trigger,
|
|
8
|
+
{
|
|
9
|
+
ref: d,
|
|
10
|
+
className: l(
|
|
11
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-field-border bg-field-bg px-3 py-2 text-sm text-field-text ring-offset-focus-offset placeholder:text-field-placeholder focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
12
|
+
a
|
|
13
|
+
),
|
|
14
|
+
...r,
|
|
15
|
+
children: [
|
|
16
|
+
o,
|
|
17
|
+
/* @__PURE__ */ t(e.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { size: 16, color: "currentColor", className: "h-4 w-4 text-icon-muted opacity-50" }) })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
));
|
|
21
|
+
x.displayName = e.Trigger.displayName;
|
|
22
|
+
const n = s.forwardRef(({ className: a, ...o }, r) => /* @__PURE__ */ t(
|
|
23
|
+
e.ScrollUpButton,
|
|
24
|
+
{
|
|
25
|
+
ref: r,
|
|
26
|
+
className: l("flex cursor-default items-center justify-center py-1", a),
|
|
27
|
+
...o,
|
|
28
|
+
children: /* @__PURE__ */ t(u, { size: 16, color: "currentColor" })
|
|
29
|
+
}
|
|
30
|
+
));
|
|
31
|
+
n.displayName = e.ScrollUpButton.displayName;
|
|
32
|
+
const p = s.forwardRef(({ className: a, ...o }, r) => /* @__PURE__ */ t(
|
|
33
|
+
e.ScrollDownButton,
|
|
34
|
+
{
|
|
35
|
+
ref: r,
|
|
36
|
+
className: l("flex cursor-default items-center justify-center py-1", a),
|
|
37
|
+
...o,
|
|
38
|
+
children: /* @__PURE__ */ t(i, { size: 16, color: "currentColor" })
|
|
39
|
+
}
|
|
40
|
+
));
|
|
41
|
+
p.displayName = e.ScrollDownButton.displayName;
|
|
42
|
+
const y = s.forwardRef(({ className: a, children: o, position: r = "popper", ...d }, m) => /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ c(
|
|
43
|
+
e.Content,
|
|
44
|
+
{
|
|
45
|
+
ref: m,
|
|
46
|
+
className: l(
|
|
47
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border-default bg-bg-popover text-text-popover shadow-popover 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",
|
|
48
|
+
r === "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",
|
|
49
|
+
a
|
|
50
|
+
),
|
|
51
|
+
position: r,
|
|
52
|
+
...d,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ t(n, {}),
|
|
55
|
+
/* @__PURE__ */ t(
|
|
56
|
+
e.Viewport,
|
|
57
|
+
{
|
|
58
|
+
className: l(
|
|
59
|
+
"p-1",
|
|
60
|
+
r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
61
|
+
),
|
|
62
|
+
children: o
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ t(p, {})
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
) }));
|
|
69
|
+
y.displayName = e.Content.displayName;
|
|
70
|
+
const w = s.forwardRef(({ className: a, ...o }, r) => /* @__PURE__ */ t(
|
|
71
|
+
e.Label,
|
|
72
|
+
{
|
|
73
|
+
ref: r,
|
|
74
|
+
className: l("py-1.5 pl-8 pr-2 text-xs font-medium text-text-muted", a),
|
|
75
|
+
...o
|
|
76
|
+
}
|
|
77
|
+
));
|
|
78
|
+
w.displayName = e.Label.displayName;
|
|
79
|
+
const b = s.forwardRef(({ className: a, children: o, ...r }, d) => /* @__PURE__ */ c(
|
|
80
|
+
e.Item,
|
|
81
|
+
{
|
|
82
|
+
ref: d,
|
|
83
|
+
className: l(
|
|
84
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-bg-accent focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
85
|
+
a
|
|
86
|
+
),
|
|
87
|
+
...r,
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(e.ItemIndicator, { children: /* @__PURE__ */ t(f, { size: 14, color: "currentColor", variant: "Bold" }) }) }),
|
|
90
|
+
/* @__PURE__ */ t(e.ItemText, { children: o })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
));
|
|
94
|
+
b.displayName = e.Item.displayName;
|
|
95
|
+
const g = s.forwardRef(({ className: a, ...o }, r) => /* @__PURE__ */ t(
|
|
96
|
+
e.Separator,
|
|
97
|
+
{
|
|
98
|
+
ref: r,
|
|
99
|
+
className: l("-mx-1 my-1 h-px bg-border-muted", a),
|
|
100
|
+
...o
|
|
101
|
+
}
|
|
102
|
+
));
|
|
103
|
+
g.displayName = e.Separator.displayName;
|
|
104
|
+
export {
|
|
105
|
+
v as Select,
|
|
106
|
+
y as SelectContent,
|
|
107
|
+
C as SelectGroup,
|
|
108
|
+
b as SelectItem,
|
|
109
|
+
w as SelectLabel,
|
|
110
|
+
p as SelectScrollDownButton,
|
|
111
|
+
n as SelectScrollUpButton,
|
|
112
|
+
g as SelectSeparator,
|
|
113
|
+
x as SelectTrigger,
|
|
114
|
+
R as SelectValue
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../../src/components/ui/select.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { ArrowDown2, ArrowUp2, TickCircle } from 'iconsax-react';\nimport { cn } from '@/lib/utils';\n\nconst Select = SelectPrimitive.Root;\nconst SelectGroup = SelectPrimitive.Group;\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n 'flex h-10 w-full items-center justify-between rounded-md border border-field-border bg-field-bg px-3 py-2 text-sm text-field-text ring-offset-focus-offset placeholder:text-field-placeholder focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ArrowDown2 size={16} color=\"currentColor\" className=\"h-4 w-4 text-icon-muted opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ArrowUp2 size={16} color=\"currentColor\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn('flex cursor-default items-center justify-center py-1', className)}\n {...props}\n >\n <ArrowDown2 size={16} color=\"currentColor\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = 'popper', ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border-default bg-bg-popover text-text-popover shadow-popover 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',\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-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn('py-1.5 pl-8 pr-2 text-xs font-medium text-text-muted', className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-bg-accent focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <TickCircle size={14} color=\"currentColor\" variant=\"Bold\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ComponentRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-border-muted', className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","jsxs","cn","jsx","ArrowDown2","SelectScrollUpButton","ArrowUp2","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","TickCircle","SelectSeparator"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("react"),l=require("@radix-ui/react-separator"),p=require("../../lib/utils.cjs");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=a(u),n=a(l),c=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...o},i)=>s.jsx(n.Root,{ref:i,decorative:r,orientation:t,className:p.cn("shrink-0 bg-border-muted",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));c.displayName=n.Root.displayName;exports.Separator=c;
|
|
2
|
+
//# sourceMappingURL=separator.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.cjs","sources":["../../../src/components/ui/separator.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '@/lib/utils';\n\nconst Separator = React.forwardRef<\n React.ComponentRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-border-muted',\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\n className\n )}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive","cn"],"mappings":"ifAIMA,EAAYC,EAAM,WAGtB,CAAC,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAA,EAASC,IACzEC,EAAAA,IAACC,EAAmB,KAAnB,CACC,IAAAF,EACA,WAAAF,EACA,YAAAD,EACA,UAAWM,EAAAA,GACT,2BACAN,IAAgB,aAAe,iBAAmB,iBAClDD,CAAA,EAED,GAAGG,CAAA,CACN,CACD,EACDL,EAAU,YAAcQ,EAAmB,KAAK"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Separator };
|
|
5
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,SAAS,6JAeb,CAAC;AAGH,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import * as o from "@radix-ui/react-separator";
|
|
4
|
+
import { cn as l } from "../../lib/utils.js";
|
|
5
|
+
const s = i.forwardRef(({ className: a, orientation: r = "horizontal", decorative: t = !0, ...m }, e) => /* @__PURE__ */ p(
|
|
6
|
+
o.Root,
|
|
7
|
+
{
|
|
8
|
+
ref: e,
|
|
9
|
+
decorative: t,
|
|
10
|
+
orientation: r,
|
|
11
|
+
className: l(
|
|
12
|
+
"shrink-0 bg-border-muted",
|
|
13
|
+
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
14
|
+
a
|
|
15
|
+
),
|
|
16
|
+
...m
|
|
17
|
+
}
|
|
18
|
+
));
|
|
19
|
+
s.displayName = o.Root.displayName;
|
|
20
|
+
export {
|
|
21
|
+
s as Separator
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=separator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.js","sources":["../../../src/components/ui/separator.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '@/lib/utils';\n\nconst Separator = React.forwardRef<\n React.ComponentRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n 'shrink-0 bg-border-muted',\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\n className\n )}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"names":["Separator","React","className","orientation","decorative","props","ref","jsx","SeparatorPrimitive","cn"],"mappings":";;;;AAIA,MAAMA,IAAYC,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAC,IAAc,cAAc,YAAAC,IAAa,IAAM,GAAGC,EAAA,GAASC,MACzE,gBAAAC;AAAA,EAACC,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAF;AAAA,IACA,YAAAF;AAAA,IACA,aAAAD;AAAA,IACA,WAAWM;AAAA,MACT;AAAA,MACAN,MAAgB,eAAe,mBAAmB;AAAA,MAClDD;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,EAAA;AACN,CACD;AACDL,EAAU,cAAcQ,EAAmB,KAAK;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),h=require("react"),b=require("@radix-ui/react-dialog"),S=require("class-variance-authority"),o=require("../../lib/utils.cjs");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const n=c(h),s=c(b),g=s.Root,N=s.Trigger,j=s.Close,d=s.Portal,i=n.forwardRef(({className:e,...t},a)=>r.jsx(s.Overlay,{ref:a,className:o.cn("fixed inset-0 z-50 bg-bg-scrim transition-opacity duration-300","data-[state=open]:opacity-100 data-[state=closed]:opacity-0",e),...t}));i.displayName=s.Overlay.displayName;const v=S.cva("fixed z-50 gap-4 bg-bg-surface p-6 shadow-modal transition-all ease-in-out duration-300",{variants:{side:{top:"inset-x-0 top-0 border-b border-border-default data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0",bottom:"inset-x-0 bottom-0 border-t border-border-default data-[state=closed]:translate-y-full data-[state=open]:translate-y-0",left:"inset-y-0 left-0 h-full w-3/4 border-r border-border-default data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l border-border-default data-[state=closed]:translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm"}},defaultVariants:{side:"right"}}),f=n.forwardRef(({side:e="right",className:t,children:a,...l},y)=>r.jsxs(d,{children:[r.jsx(i,{}),r.jsx(s.Content,{ref:y,className:o.cn(v({side:e}),t),...l,children:a})]}));f.displayName=s.Content.displayName;const m=({className:e,...t})=>r.jsx("div",{className:o.cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});m.displayName="SheetHeader";const p=({className:e,...t})=>r.jsx("div",{className:o.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});p.displayName="SheetFooter";const u=n.forwardRef(({className:e,...t},a)=>r.jsx(s.Title,{ref:a,className:o.cn("text-lg font-semibold text-text-primary",e),...t}));u.displayName=s.Title.displayName;const x=n.forwardRef(({className:e,...t},a)=>r.jsx(s.Description,{ref:a,className:o.cn("text-sm text-text-secondary",e),...t}));x.displayName=s.Description.displayName;exports.Sheet=g;exports.SheetClose=j;exports.SheetContent=f;exports.SheetDescription=x;exports.SheetFooter=p;exports.SheetHeader=m;exports.SheetOverlay=i;exports.SheetPortal=d;exports.SheetTitle=u;exports.SheetTrigger=N;
|
|
2
|
+
//# sourceMappingURL=sheet.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.cjs","sources":["../../../src/components/ui/sheet.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/lib/utils';\n\nconst Sheet = SheetPrimitive.Root;\nconst SheetTrigger = SheetPrimitive.Trigger;\nconst SheetClose = SheetPrimitive.Close;\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-bg-scrim transition-opacity duration-300',\n 'data-[state=open]:opacity-100 data-[state=closed]:opacity-0',\n className\n )}\n {...props}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-bg-surface p-6 shadow-modal transition-all ease-in-out duration-300',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b border-border-default data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0',\n bottom: 'inset-x-0 bottom-0 border-t border-border-default data-[state=closed]:translate-y-full data-[state=open]:translate-y-0',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r border-border-default data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm',\n right: 'inset-y-0 right-0 h-full w-3/4 border-l border-border-default data-[state=closed]:translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n }\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold text-text-primary', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-sm text-text-secondary', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"names":["Sheet","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","React","className","props","ref","jsx","cn","sheetVariants","cva","SheetContent","side","children","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"mappings":"ohBAKMA,EAAQC,EAAe,KACvBC,EAAeD,EAAe,QAC9BE,EAAaF,EAAe,MAC5BG,EAAcH,EAAe,OAE7BI,EAAeC,EAAM,WAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,IAACT,EAAe,QAAf,CACC,IAAAQ,EACA,UAAWE,EAAAA,GACT,iEACA,8DACAJ,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDH,EAAa,YAAcJ,EAAe,QAAQ,YAElD,MAAMW,EAAgBC,EAAAA,IACpB,0FACA,CACE,SAAU,CACR,KAAM,CACJ,IAAK,uHACL,OAAQ,yHACR,KAAM,iJACN,MAAO,gJAAA,CACT,EAEF,gBAAiB,CACf,KAAM,OAAA,CACR,CAEJ,EAMMC,EAAeR,EAAM,WAGzB,CAAC,CAAE,KAAAS,EAAO,QAAS,UAAAR,EAAW,SAAAS,EAAU,GAAGR,CAAA,EAASC,WACnDL,EAAA,CACC,SAAA,CAAAM,EAAAA,IAACL,EAAA,EAAa,EACdK,EAAAA,IAACT,EAAe,QAAf,CACC,IAAAQ,EACA,UAAWE,EAAAA,GAAGC,EAAc,CAAE,KAAAG,CAAA,CAAM,EAAGR,CAAS,EAC/C,GAAGC,EAEH,SAAAQ,CAAA,CAAA,CACH,EACF,CACD,EACDF,EAAa,YAAcb,EAAe,QAAQ,YAElD,MAAMgB,EAAc,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAA,IACnCE,EAAAA,IAAC,MAAA,CAAI,UAAWC,EAAAA,GAAG,mDAAoDJ,CAAS,EAAI,GAAGC,CAAA,CAAO,EAEhGS,EAAY,YAAc,cAE1B,MAAMC,EAAc,CAAC,CAAE,UAAAX,EAAW,GAAGC,KACnCE,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,GAAG,gEAAiEJ,CAAS,EACvF,GAAGC,CAAA,CACN,EAEFU,EAAY,YAAc,cAE1B,MAAMC,EAAab,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,IAACT,EAAe,MAAf,CACC,IAAAQ,EACA,UAAWE,EAAAA,GAAG,0CAA2CJ,CAAS,EACjE,GAAGC,CAAA,CACN,CACD,EACDW,EAAW,YAAclB,EAAe,MAAM,YAE9C,MAAMmB,EAAmBd,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,IAACT,EAAe,YAAf,CACC,IAAAQ,EACA,UAAWE,EAAAA,GAAG,8BAA+BJ,CAAS,EACrD,GAAGC,CAAA,CACN,CACD,EACDY,EAAiB,YAAcnB,EAAe,YAAY"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
5
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const sheetVariants: (props?: ({
|
|
10
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
|
+
}
|
|
14
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const SheetHeader: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const SheetFooter: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
26
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,KAAK,sCAAsB,CAAC;AAClC,QAAA,MAAM,YAAY,6GAAyB,CAAC;AAC5C,QAAA,MAAM,UAAU,2GAAuB,CAAC;AACxC,QAAA,MAAM,WAAW,4CAAwB,CAAC;AAE1C,QAAA,MAAM,YAAY,6JAahB,CAAC;AAGH,QAAA,MAAM,aAAa;;8EAelB,CAAC;AAEF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAchB,CAAC;AAGH,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEjF,CAAC;AAGF,QAAA,MAAM,WAAW;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKjF,CAAC;AAGF,QAAA,MAAM,UAAU,mKASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6KASpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva as c } from "class-variance-authority";
|
|
5
|
+
import { cn as o } from "../../lib/utils.js";
|
|
6
|
+
const w = e.Root, v = e.Trigger, R = e.Close, f = e.Portal, i = l.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ r(
|
|
7
|
+
e.Overlay,
|
|
8
|
+
{
|
|
9
|
+
ref: s,
|
|
10
|
+
className: o(
|
|
11
|
+
"fixed inset-0 z-50 bg-bg-scrim transition-opacity duration-300",
|
|
12
|
+
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0",
|
|
13
|
+
t
|
|
14
|
+
),
|
|
15
|
+
...a
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
i.displayName = e.Overlay.displayName;
|
|
19
|
+
const p = c(
|
|
20
|
+
"fixed z-50 gap-4 bg-bg-surface p-6 shadow-modal transition-all ease-in-out duration-300",
|
|
21
|
+
{
|
|
22
|
+
variants: {
|
|
23
|
+
side: {
|
|
24
|
+
top: "inset-x-0 top-0 border-b border-border-default data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0",
|
|
25
|
+
bottom: "inset-x-0 bottom-0 border-t border-border-default data-[state=closed]:translate-y-full data-[state=open]:translate-y-0",
|
|
26
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r border-border-default data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm",
|
|
27
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l border-border-default data-[state=closed]:translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
side: "right"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
), x = l.forwardRef(({ side: t = "right", className: a, children: s, ...d }, n) => /* @__PURE__ */ m(f, { children: [
|
|
35
|
+
/* @__PURE__ */ r(i, {}),
|
|
36
|
+
/* @__PURE__ */ r(
|
|
37
|
+
e.Content,
|
|
38
|
+
{
|
|
39
|
+
ref: n,
|
|
40
|
+
className: o(p({ side: t }), a),
|
|
41
|
+
...d,
|
|
42
|
+
children: s
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }));
|
|
46
|
+
x.displayName = e.Content.displayName;
|
|
47
|
+
const y = ({ className: t, ...a }) => /* @__PURE__ */ r("div", { className: o("flex flex-col space-y-2 text-center sm:text-left", t), ...a });
|
|
48
|
+
y.displayName = "SheetHeader";
|
|
49
|
+
const h = ({ className: t, ...a }) => /* @__PURE__ */ r(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
53
|
+
...a
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
h.displayName = "SheetFooter";
|
|
57
|
+
const b = l.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ r(
|
|
58
|
+
e.Title,
|
|
59
|
+
{
|
|
60
|
+
ref: s,
|
|
61
|
+
className: o("text-lg font-semibold text-text-primary", t),
|
|
62
|
+
...a
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
b.displayName = e.Title.displayName;
|
|
66
|
+
const u = l.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ r(
|
|
67
|
+
e.Description,
|
|
68
|
+
{
|
|
69
|
+
ref: s,
|
|
70
|
+
className: o("text-sm text-text-secondary", t),
|
|
71
|
+
...a
|
|
72
|
+
}
|
|
73
|
+
));
|
|
74
|
+
u.displayName = e.Description.displayName;
|
|
75
|
+
export {
|
|
76
|
+
w as Sheet,
|
|
77
|
+
R as SheetClose,
|
|
78
|
+
x as SheetContent,
|
|
79
|
+
u as SheetDescription,
|
|
80
|
+
h as SheetFooter,
|
|
81
|
+
y as SheetHeader,
|
|
82
|
+
i as SheetOverlay,
|
|
83
|
+
f as SheetPortal,
|
|
84
|
+
b as SheetTitle,
|
|
85
|
+
v as SheetTrigger
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","sources":["../../../src/components/ui/sheet.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/lib/utils';\n\nconst Sheet = SheetPrimitive.Root;\nconst SheetTrigger = SheetPrimitive.Trigger;\nconst SheetClose = SheetPrimitive.Close;\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-bg-scrim transition-opacity duration-300',\n 'data-[state=open]:opacity-100 data-[state=closed]:opacity-0',\n className\n )}\n {...props}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-bg-surface p-6 shadow-modal transition-all ease-in-out duration-300',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b border-border-default data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0',\n bottom: 'inset-x-0 bottom-0 border-t border-border-default data-[state=closed]:translate-y-full data-[state=open]:translate-y-0',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r border-border-default data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm',\n right: 'inset-y-0 right-0 h-full w-3/4 border-l border-border-default data-[state=closed]:translate-x-full data-[state=open]:translate-x-0 sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n }\n);\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n {children}\n </SheetPrimitive.Content>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold text-text-primary', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-sm text-text-secondary', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"names":["Sheet","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","React","className","props","ref","jsx","cn","sheetVariants","cva","SheetContent","side","children","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"mappings":";;;;;AAKA,MAAMA,IAAQC,EAAe,MACvBC,IAAeD,EAAe,SAC9BE,IAAaF,EAAe,OAC5BG,IAAcH,EAAe,QAE7BI,IAAeC,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACT,EAAe;AAAA,EAAf;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACA;AAAA,MACAJ;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAa,cAAcJ,EAAe,QAAQ;AAElD,MAAMW,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAEF,iBAAiB;AAAA,MACf,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAMMC,IAAeR,EAAM,WAGzB,CAAC,EAAE,MAAAS,IAAO,SAAS,WAAAR,GAAW,UAAAS,GAAU,GAAGR,EAAA,GAASC,wBACnDL,GAAA,EACC,UAAA;AAAA,EAAA,gBAAAM,EAACL,GAAA,EAAa;AAAA,EACd,gBAAAK;AAAA,IAACT,EAAe;AAAA,IAAf;AAAA,MACC,KAAAQ;AAAA,MACA,WAAWE,EAAGC,EAAc,EAAE,MAAAG,EAAA,CAAM,GAAGR,CAAS;AAAA,MAC/C,GAAGC;AAAA,MAEH,UAAAQ;AAAA,IAAA;AAAA,EAAA;AACH,GACF,CACD;AACDF,EAAa,cAAcb,EAAe,QAAQ;AAElD,MAAMgB,IAAc,CAAC,EAAE,WAAAV,GAAW,GAAGC,EAAA,MACnC,gBAAAE,EAAC,OAAA,EAAI,WAAWC,EAAG,oDAAoDJ,CAAS,GAAI,GAAGC,EAAA,CAAO;AAEhGS,EAAY,cAAc;AAE1B,MAAMC,IAAc,CAAC,EAAE,WAAAX,GAAW,GAAGC,QACnC,gBAAAE;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAG,iEAAiEJ,CAAS;AAAA,IACvF,GAAGC;AAAA,EAAA;AACN;AAEFU,EAAY,cAAc;AAE1B,MAAMC,IAAab,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACT,EAAe;AAAA,EAAf;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE,EAAG,2CAA2CJ,CAAS;AAAA,IACjE,GAAGC;AAAA,EAAA;AACN,CACD;AACDW,EAAW,cAAclB,EAAe,MAAM;AAE9C,MAAMmB,IAAmBd,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACT,EAAe;AAAA,EAAf;AAAA,IACC,KAAAQ;AAAA,IACA,WAAWE,EAAG,+BAA+BJ,CAAS;AAAA,IACrD,GAAGC;AAAA,EAAA;AACN,CACD;AACDY,EAAiB,cAAcnB,EAAe,YAAY;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),Q=require("react"),x=require("@radix-ui/react-slot"),Z=require("class-variance-authority"),d=require("../../lib/utils.cjs"),M=require("./sheet.cjs"),ee=require("./separator.cjs"),y=require("./tooltip.cjs"),ae=require("./input.cjs");function te(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const i=te(Q),re="sidebar_state",ie=3600*24*7,se="280px",ne="72px",de="18rem",oe="b",R=i.createContext(null);function h(){const a=i.useContext(R);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}function le(a=768){const[e,t]=i.useState(!1);return i.useEffect(()=>{const s=window.matchMedia(`(max-width: ${a-1}px)`),n=()=>t(s.matches);return s.addEventListener("change",n),t(s.matches),()=>s.removeEventListener("change",n)},[a]),e}const I=i.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:s,style:n,children:o,...b},g)=>{const c=le(),[f,p]=i.useState(!1),[v,N]=i.useState(a),m=e??v,S=i.useCallback(l=>{const u=typeof l=="function"?l(m):l;t?t(u):N(u),document.cookie=`${re}=${u}; path=/; max-age=${ie}`},[t,m]),w=i.useCallback(()=>c?p(l=>!l):S(l=>!l),[c,S]);i.useEffect(()=>{const l=u=>{u.key===oe&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),w())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[w]);const j=m?"expanded":"collapsed",J=i.useMemo(()=>({state:j,open:m,setOpen:S,isMobile:c,openMobile:f,setOpenMobile:p,toggleSidebar:w}),[j,m,S,c,f,p,w]);return r.jsx(R.Provider,{value:J,children:r.jsx(y.TooltipProvider,{delayDuration:0,children:r.jsx("div",{ref:g,style:{"--sidebar-width":se,"--sidebar-width-icon":ne,...n},className:d.cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-bg-sidebar",s),...b,children:o})})})});I.displayName="SidebarProvider";const _=i.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:s,children:n,...o},b)=>{const{isMobile:g,state:c,openMobile:f,setOpenMobile:p}=h();return t==="none"?r.jsx("div",{ref:b,className:d.cn("flex h-full w-(--sidebar-width) flex-col bg-bg-sidebar text-text-sidebar",s),...o,children:n}):g?r.jsx(M.Sheet,{open:f,onOpenChange:p,children:r.jsx(M.SheetContent,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-bg-sidebar p-0 text-text-sidebar [&>button]:hidden",style:{"--sidebar-width":de},side:a,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:n})})}):r.jsxs("div",{ref:b,className:"group peer hidden md:block","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r.jsx("div",{className:d.cn("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),r.jsx("div",{className:d.cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[collapsible=icon]:overflow-hidden",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[side=left]:border-r group-data-[side=right]:border-l border-border-default",s),...o,children:r.jsx("div",{"data-sidebar":"sidebar",className:d.cn("flex h-full w-full flex-col bg-bg-sidebar text-text-sidebar",e==="floating"||e==="inset"?"rounded-lg border border-border-default shadow-card":""),children:n})})]})});_.displayName="Sidebar";const C=i.forwardRef(({className:a,onClick:e,...t},s)=>{const{toggleSidebar:n}=h();return r.jsxs("button",{ref:s,"data-sidebar":"trigger",className:d.cn("h-7 w-7",a),onClick:o=>{e==null||e(o),n()},...t,children:[r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:[r.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),r.jsx("path",{d:"M9 3v18"})]}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});C.displayName="SidebarTrigger";const k=i.forwardRef(({className:a,...e},t)=>{const{toggleSidebar:s}=h();return r.jsx("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:d.cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-border-strong group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});k.displayName="SidebarRail";const B=i.forwardRef(({className:a,...e},t)=>r.jsx("main",{ref:t,className:d.cn("relative flex min-h-svh flex-1 flex-col bg-bg-canvas","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-card",a),...e}));B.displayName="SidebarInset";const E=i.forwardRef(({className:a,...e},t)=>r.jsx(ae.Input,{ref:t,"data-sidebar":"input",className:d.cn("h-8 w-full bg-bg-canvas shadow-none focus-visible:ring-2 focus-visible:ring-focus-ring",a),...e}));E.displayName="SidebarInput";const O=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"header",className:d.cn("flex flex-col gap-2 p-2",a),...e}));O.displayName="SidebarHeader";const T=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"footer",className:d.cn("flex flex-col gap-2 p-2",a),...e}));T.displayName="SidebarFooter";const A=i.forwardRef(({className:a,...e},t)=>r.jsx(ee.Separator,{ref:t,"data-sidebar":"separator",className:d.cn("mx-2 w-auto bg-border-muted",a),...e}));A.displayName="SidebarSeparator";const z=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"content",className:d.cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));z.displayName="SidebarContent";const D=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"group",className:d.cn("relative flex w-full min-w-0 flex-col p-2",a),...e}));D.displayName="SidebarGroup";const G=i.forwardRef(({className:a,asChild:e=!1,...t},s)=>{const n=e?x.Slot:"div";return r.jsx(n,{ref:s,"data-sidebar":"group-label",className:d.cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-text-muted outline-none ring-focus-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t})});G.displayName="SidebarGroupLabel";const q=i.forwardRef(({className:a,asChild:e=!1,...t},s)=>{const n=e?x.Slot:"button";return r.jsx(n,{ref:s,"data-sidebar":"group-action",className:d.cn("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-text-secondary outline-none ring-focus-ring transition-transform hover:bg-bg-accent hover:text-text-primary focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t})});q.displayName="SidebarGroupAction";const L=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"group-content",className:d.cn("w-full text-sm",a),...e}));L.displayName="SidebarGroupContent";const P=i.forwardRef(({className:a,...e},t)=>r.jsx("ul",{ref:t,"data-sidebar":"menu",className:d.cn("flex w-full min-w-0 flex-col gap-1",a),...e}));P.displayName="SidebarMenu";const H=i.forwardRef(({className:a,...e},t)=>r.jsx("li",{ref:t,"data-sidebar":"menu-item",className:d.cn("group/menu-item relative",a),...e}));H.displayName="SidebarMenuItem";const K=Z.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-focus-ring transition-[width,height,padding] hover:bg-bg-sidebar-accent hover:text-text-sidebar active:bg-bg-sidebar-accent active:text-text-sidebar disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-text-sidebar data-[state=open]:hover:bg-bg-sidebar-accent data-[state=open]:hover:text-text-sidebar group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-bg-sidebar-accent hover:text-text-sidebar",outline:"bg-bg-canvas shadow-input hover:bg-bg-sidebar-accent hover:text-text-sidebar hover:shadow-none"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),V=i.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t,size:s,tooltip:n,className:o,...b},g)=>{const c=a?x.Slot:"button",{isMobile:f,state:p}=h(),v=r.jsx(c,{ref:g,"data-sidebar":"menu-button","data-size":s,"data-active":e,className:d.cn(K({variant:t,size:s}),o),...b});if(!n)return v;const N=typeof n=="string"?{children:n}:n;return r.jsxs(y.Tooltip,{children:[r.jsx(y.TooltipTrigger,{asChild:!0,children:v}),r.jsx(y.TooltipContent,{side:"right",align:"center",hidden:p!=="collapsed"||f,...N})]})});V.displayName="SidebarMenuButton";const W=i.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...s},n)=>{const o=e?x.Slot:"button";return r.jsx(o,{ref:n,"data-sidebar":"menu-action",className:d.cn("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-text-secondary outline-none ring-focus-ring transition-transform hover:bg-bg-accent hover:text-text-primary focus-visible:ring-2 peer-hover/menu-button:text-text-primary [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-text-primary md:opacity-0",a),...s})});W.displayName="SidebarMenuAction";const F=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"menu-badge",className:d.cn("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-text-secondary","peer-hover/menu-button:text-text-primary peer-data-[active=true]/menu-button:text-text-primary","group-data-[collapsible=icon]:hidden",a),...e}));F.displayName="SidebarMenuBadge";const $=i.forwardRef(({className:a,...e},t)=>r.jsx("ul",{ref:t,"data-sidebar":"menu-sub",className:d.cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-border-muted px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));$.displayName="SidebarMenuSub";const U=i.forwardRef(({...a},e)=>r.jsx("li",{ref:e,...a}));U.displayName="SidebarMenuSubItem";const X=i.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:s,...n},o)=>{const b=a?x.Slot:"a";return r.jsx(b,{ref:o,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:d.cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-text-secondary outline-none ring-focus-ring hover:bg-bg-sidebar-accent hover:text-text-sidebar focus-visible:ring-2 active:bg-bg-sidebar-accent active:text-text-sidebar disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-icon-sidebar","data-[active=true]:bg-bg-sidebar-accent data-[active=true]:text-text-sidebar",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...n})});X.displayName="SidebarMenuSubButton";const Y=i.forwardRef(({className:a,showIcon:e=!1,...t},s)=>{const n=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:d.cn("flex h-8 items-center gap-2 rounded-md px-2",a),...t,children:[e&&r.jsx("div",{className:"size-4 rounded-md bg-bg-muted animate-pulse"}),r.jsx("div",{className:"h-4 max-w-(--skeleton-width) flex-1 rounded-md bg-bg-muted animate-pulse",style:{"--skeleton-width":n}})]})});Y.displayName="SidebarMenuSkeleton";exports.Sidebar=_;exports.SidebarContent=z;exports.SidebarFooter=T;exports.SidebarGroup=D;exports.SidebarGroupAction=q;exports.SidebarGroupContent=L;exports.SidebarGroupLabel=G;exports.SidebarHeader=O;exports.SidebarInput=E;exports.SidebarInset=B;exports.SidebarMenu=P;exports.SidebarMenuAction=W;exports.SidebarMenuBadge=F;exports.SidebarMenuButton=V;exports.SidebarMenuItem=H;exports.SidebarMenuSkeleton=Y;exports.SidebarMenuSub=$;exports.SidebarMenuSubButton=X;exports.SidebarMenuSubItem=U;exports.SidebarProvider=I;exports.SidebarRail=k;exports.SidebarSeparator=A;exports.SidebarTrigger=C;exports.sidebarMenuButtonVariants=K;exports.useSidebar=h;
|
|
2
|
+
//# sourceMappingURL=sidebar.cjs.map
|