@jarllyng/nostromo 3.4.0 → 3.6.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/dist/animations.css +144 -0
- package/dist/chunk-3FY7LZ3B.js +3 -0
- package/dist/chunk-3FY7LZ3B.js.map +1 -0
- package/dist/chunk-BX4VBLKZ.cjs +3 -0
- package/dist/chunk-BX4VBLKZ.cjs.map +1 -0
- package/dist/chunk-E44BBSLT.js +3 -0
- package/dist/chunk-E44BBSLT.js.map +1 -0
- package/dist/chunk-E53C3RDD.cjs +3 -0
- package/dist/chunk-E53C3RDD.cjs.map +1 -0
- package/dist/chunk-EEGXD4HC.cjs +3 -0
- package/dist/chunk-EEGXD4HC.cjs.map +1 -0
- package/dist/chunk-ESUSGG6O.js +3 -0
- package/dist/chunk-ESUSGG6O.js.map +1 -0
- package/dist/chunk-HCYZ3LZP.js +3 -0
- package/dist/chunk-HCYZ3LZP.js.map +1 -0
- package/dist/chunk-MQUHAWJ2.cjs +3 -0
- package/dist/chunk-MQUHAWJ2.cjs.map +1 -0
- package/dist/components/core/alert.d.cts +1 -1
- package/dist/components/core/alert.d.ts +1 -1
- package/dist/components/core/badge.d.cts +1 -1
- package/dist/components/core/badge.d.ts +1 -1
- package/dist/components/core/breadcrumb.d.cts +1 -1
- package/dist/components/core/breadcrumb.d.ts +1 -1
- package/dist/components/core/button.d.cts +2 -2
- package/dist/components/core/button.d.ts +2 -2
- package/dist/components/core/checkbox.d.cts +1 -1
- package/dist/components/core/checkbox.d.ts +1 -1
- package/dist/components/core/collapsible.cjs +3 -0
- package/dist/components/core/collapsible.cjs.map +1 -0
- package/dist/components/core/collapsible.d.cts +17 -0
- package/dist/components/core/collapsible.d.ts +17 -0
- package/dist/components/core/collapsible.js +3 -0
- package/dist/components/core/collapsible.js.map +1 -0
- package/dist/components/core/dialog.d.cts +1 -1
- package/dist/components/core/dialog.d.ts +1 -1
- package/dist/components/core/dropdown-menu.cjs +3 -0
- package/dist/components/core/dropdown-menu.cjs.map +1 -0
- package/dist/components/core/dropdown-menu.d.cts +43 -0
- package/dist/components/core/dropdown-menu.d.ts +43 -0
- package/dist/components/core/dropdown-menu.js +3 -0
- package/dist/components/core/dropdown-menu.js.map +1 -0
- package/dist/components/core/error-message.d.cts +1 -1
- package/dist/components/core/error-message.d.ts +1 -1
- package/dist/components/core/helper-text.d.cts +1 -1
- package/dist/components/core/helper-text.d.ts +1 -1
- package/dist/components/core/icon.d.cts +2 -2
- package/dist/components/core/icon.d.ts +2 -2
- package/dist/components/core/input.d.cts +1 -1
- package/dist/components/core/input.d.ts +1 -1
- package/dist/components/core/label.d.cts +1 -1
- package/dist/components/core/label.d.ts +1 -1
- package/dist/components/core/pagination.d.cts +1 -1
- package/dist/components/core/pagination.d.ts +1 -1
- package/dist/components/core/popover.cjs +3 -0
- package/dist/components/core/popover.cjs.map +1 -0
- package/dist/components/core/popover.d.cts +39 -0
- package/dist/components/core/popover.d.ts +39 -0
- package/dist/components/core/popover.js +3 -0
- package/dist/components/core/popover.js.map +1 -0
- package/dist/components/core/progress.d.cts +3 -3
- package/dist/components/core/progress.d.ts +3 -3
- package/dist/components/core/radio-group.d.cts +1 -1
- package/dist/components/core/radio-group.d.ts +1 -1
- package/dist/components/core/select.d.cts +3 -3
- package/dist/components/core/select.d.ts +3 -3
- package/dist/components/core/sheet.cjs +3 -0
- package/dist/components/core/sheet.cjs.map +1 -0
- package/dist/components/core/sheet.d.cts +55 -0
- package/dist/components/core/sheet.d.ts +55 -0
- package/dist/components/core/sheet.js +3 -0
- package/dist/components/core/sheet.js.map +1 -0
- package/dist/components/core/skeleton.d.cts +1 -1
- package/dist/components/core/skeleton.d.ts +1 -1
- package/dist/components/core/switch.d.cts +1 -1
- package/dist/components/core/switch.d.ts +1 -1
- package/dist/components/core/textarea.d.cts +1 -1
- package/dist/components/core/textarea.d.ts +1 -1
- package/dist/components/core/toast.d.cts +2 -2
- package/dist/components/core/toast.d.ts +2 -2
- package/dist/components/core/tooltip.d.cts +2 -2
- package/dist/components/core/tooltip.d.ts +2 -2
- package/dist/components/marketing/features.d.cts +2 -2
- package/dist/components/marketing/features.d.ts +2 -2
- package/dist/components/marketing/gallery.d.cts +1 -1
- package/dist/components/marketing/gallery.d.ts +1 -1
- package/dist/components/marketing/pricing.d.cts +1 -1
- package/dist/components/marketing/pricing.d.ts +1 -1
- package/dist/components/marketing/testimonials.d.cts +1 -1
- package/dist/components/marketing/testimonials.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css +4 -0
- package/dist/themes/lv-426.css +6 -0
- package/dist/themes/mother.css +6 -0
- package/dist/themes/nostromo.css +6 -0
- package/dist/themes/sulaco.css +6 -0
- package/package.json +40 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enter/exit animation utilities.
|
|
3
|
+
*
|
|
4
|
+
* Dialog, Calendar and Toast have carried `animate-in`, `fade-in-0`,
|
|
5
|
+
* `zoom-in-95` and `slide-in-from-*` in their class lists since they were
|
|
6
|
+
* written, and none of those utilities existed: `tailwindcss-animate` is a
|
|
7
|
+
* Tailwind v3 plugin, this package is CSS-first on v4 with no plugin to
|
|
8
|
+
* register, and nothing defined them here. They were inert strings, so those
|
|
9
|
+
* three components have never actually animated in or out.
|
|
10
|
+
*
|
|
11
|
+
* Written out rather than pulled from `tw-animate-css`, which is the maintained
|
|
12
|
+
* v4 successor. A consumer imports `@jarllyng/nostromo/tailwind.css` from their
|
|
13
|
+
* own project, so a bare `@import "tw-animate-css"` in here would have to
|
|
14
|
+
* resolve from *their* bundler against *our* node_modules - which works with
|
|
15
|
+
* some setups and not others. A published stylesheet should be self-contained.
|
|
16
|
+
*
|
|
17
|
+
* Only the utilities the components actually use are defined. Anything else
|
|
18
|
+
* would be more dead classes, which is the problem being fixed.
|
|
19
|
+
*
|
|
20
|
+
* The per-element variables are `--na-*`, not `--nostromo-*`, on purpose. The
|
|
21
|
+
* consumer CSS contract test asserts that every `--nostromo-*` the generated CSS
|
|
22
|
+
* references is defined as a theme token - that invariant is worth keeping, and
|
|
23
|
+
* these are locals a utility sets for its own keyframe to read, not tokens
|
|
24
|
+
* anyone should theme. `--nostromo-animate-duration` *is* a token, and is
|
|
25
|
+
* declared in all four themes.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
@keyframes nostromo-enter {
|
|
29
|
+
from {
|
|
30
|
+
opacity: var(--na-enter-opacity, 1);
|
|
31
|
+
transform: translate3d(
|
|
32
|
+
var(--na-enter-translate-x, 0),
|
|
33
|
+
var(--na-enter-translate-y, 0),
|
|
34
|
+
0
|
|
35
|
+
)
|
|
36
|
+
scale3d(
|
|
37
|
+
var(--na-enter-scale, 1),
|
|
38
|
+
var(--na-enter-scale, 1),
|
|
39
|
+
var(--na-enter-scale, 1)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes nostromo-exit {
|
|
45
|
+
to {
|
|
46
|
+
opacity: var(--na-exit-opacity, 1);
|
|
47
|
+
transform: translate3d(
|
|
48
|
+
var(--na-exit-translate-x, 0),
|
|
49
|
+
var(--na-exit-translate-y, 0),
|
|
50
|
+
0
|
|
51
|
+
)
|
|
52
|
+
scale3d(
|
|
53
|
+
var(--na-exit-scale, 1),
|
|
54
|
+
var(--na-exit-scale, 1),
|
|
55
|
+
var(--na-exit-scale, 1)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@utility animate-in {
|
|
61
|
+
animation-name: nostromo-enter;
|
|
62
|
+
animation-duration: var(--nostromo-animate-duration, 150ms);
|
|
63
|
+
animation-fill-mode: both;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility animate-out {
|
|
67
|
+
animation-name: nostromo-exit;
|
|
68
|
+
animation-duration: var(--nostromo-animate-duration, 150ms);
|
|
69
|
+
animation-fill-mode: both;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@utility fade-in-* {
|
|
73
|
+
--na-enter-opacity: calc(--value(integer) / 100);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@utility fade-out-* {
|
|
77
|
+
--na-exit-opacity: calc(--value(integer) / 100);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility zoom-in-* {
|
|
81
|
+
--na-enter-scale: calc(--value(integer) / 100);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@utility zoom-out-* {
|
|
85
|
+
--na-exit-scale: calc(--value(integer) / 100);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Direction is the side the element comes *from*, so the sign is inverted
|
|
89
|
+
relative to a translate utility: sliding in from the top starts above. */
|
|
90
|
+
@utility slide-in-from-top-* {
|
|
91
|
+
--na-enter-translate-y: calc(--value(integer) * var(--spacing) * -1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@utility slide-in-from-bottom-* {
|
|
95
|
+
--na-enter-translate-y: calc(--value(integer) * var(--spacing));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@utility slide-in-from-left-* {
|
|
99
|
+
--na-enter-translate-x: calc(--value(integer) * var(--spacing) * -1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@utility slide-in-from-right-* {
|
|
103
|
+
--na-enter-translate-x: calc(--value(integer) * var(--spacing));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Collapsible and Accordion animate to a height Radix measures at runtime and
|
|
107
|
+
exposes as a custom property on the content element. */
|
|
108
|
+
@keyframes nostromo-collapsible-down {
|
|
109
|
+
from {
|
|
110
|
+
height: 0;
|
|
111
|
+
}
|
|
112
|
+
to {
|
|
113
|
+
height: var(--radix-collapsible-content-height);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@keyframes nostromo-collapsible-up {
|
|
118
|
+
from {
|
|
119
|
+
height: var(--radix-collapsible-content-height);
|
|
120
|
+
}
|
|
121
|
+
to {
|
|
122
|
+
height: 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@utility animate-collapsible-down {
|
|
127
|
+
animation: nostromo-collapsible-down var(--nostromo-animate-duration, 150ms)
|
|
128
|
+
ease-out;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@utility animate-collapsible-up {
|
|
132
|
+
animation: nostromo-collapsible-up var(--nostromo-animate-duration, 150ms)
|
|
133
|
+
ease-out;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Respect the user's setting. Every animation above is decorative. */
|
|
137
|
+
@media (prefers-reduced-motion: reduce) {
|
|
138
|
+
.animate-in,
|
|
139
|
+
.animate-out,
|
|
140
|
+
.animate-collapsible-down,
|
|
141
|
+
.animate-collapsible-up {
|
|
142
|
+
animation: none;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as o from'react';import*as e from'@radix-ui/react-popover';import {cva}from'class-variance-authority';var l=cva("z-50 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{sm:"w-56",default:"w-72",lg:"w-96",auto:"w-auto"}},defaultVariants:{size:"default"}}),c=e.Root,b=e.Trigger,g=e.Anchor,u=e.Close,v=o.forwardRef(({className:t,align:r="center",sideOffset:a$1=8,size:n,...p},s)=>o.createElement(e.Portal,null,o.createElement(e.Content,{ref:s,align:r,sideOffset:a$1,className:a(l({size:n}),t),...p})));v.displayName=e.Content.displayName;var d=o.forwardRef(({className:t,...r},a$1)=>o.createElement(e.Arrow,{ref:a$1,className:a("fill-background",t),...r}));d.displayName=e.Arrow.displayName;export{l as a,c as b,b as c,g as d,u as e,v as f,d as g};//# sourceMappingURL=chunk-3FY7LZ3B.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-3FY7LZ3B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/popover.tsx"],"names":["popoverContentVariants","cva","Popover","PopoverTrigger","PopoverAnchor","PopoverClose","PopoverContent","className","align","sideOffset","size","props","ref","cn","PopoverArrow"],"mappings":"iJAWA,IAAMA,CAAAA,CAAyBC,GAAAA,CAC7B,gbAAA,CAMA,CACE,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,EAAA,CAAI,MAAA,CACJ,OAAA,CAAS,MAAA,CACT,EAAA,CAAI,MAAA,CACJ,IAAA,CAAM,QACR,CACF,CAAA,CACA,gBAAiB,CACf,IAAA,CAAM,SACR,CACF,CACF,CAAA,CAEMC,CAAAA,CAA2B,CAAA,CAAA,IAAA,CAC3BC,CAAAA,CAAkC,CAAA,CAAA,OAAA,CAClCC,CAAAA,CAAiC,CAAA,CAAA,MAAA,CACjCC,CAAAA,CAAgC,CAAA,CAAA,KAAA,CAwBhCC,CAAAA,CAAuB,CAAA,CAAA,UAAA,CAG3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAU,UAAA,CAAAC,GAAAA,CAAa,CAAA,CAAG,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,EAAGC,CAAAA,GAIlE,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,MAAA,CAAjB,IAAA,CACC,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKA,CAAAA,CACL,KAAA,CAAOJ,CAAAA,CACP,UAAA,CAAYC,GAAAA,CACZ,SAAA,CAAWI,CAAAA,CAAGb,CAAAA,CAAuB,CAAE,IAAA,CAAAU,CAAK,CAAC,CAAA,CAAGH,CAAS,CAAA,CACxD,GAAGI,CAAAA,CACN,CACF,CACD,EACDL,CAAAA,CAAe,WAAA,CAA+B,UAAQ,WAAA,CAEtD,IAAMQ,CAAAA,CAAqB,CAAA,CAAA,UAAA,CAGzB,CAAC,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGI,CAAM,CAAA,CAAGC,GAAAA,GAC1B,CAAA,CAAA,aAAA,CAAkB,CAAA,CAAA,KAAA,CAAjB,CACC,GAAA,CAAKA,GAAAA,CACL,SAAA,CAAWC,CAAAA,CAAG,iBAAA,CAAmBN,CAAS,CAAA,CACzC,GAAGI,CAAAA,CACN,CACD,EACDG,CAAAA,CAAa,WAAA,CAA+B,CAAA,CAAA,KAAA,CAAM,WAAA","file":"chunk-3FY7LZ3B.js","sourcesContent":["import * as React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * `@radix-ui/react-popover` was already a dependency - Calendar mounts its month\n * grid in one - but it was never exposed, so a consumer wanting a popover had to\n * add the package a second time and theme it themselves.\n */\n\nconst popoverContentVariants = cva(\n \"z-50 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n {\n variants: {\n size: {\n sm: \"w-56\",\n default: \"w-72\",\n lg: \"w-96\",\n auto: \"w-auto\",\n },\n },\n defaultVariants: {\n size: \"default\",\n },\n },\n);\n\nconst Popover = PopoverPrimitive.Root;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\n\ntype PopoverContentBase = Omit<\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>,\n \"aria-label\" | \"aria-labelledby\"\n> &\n VariantProps<typeof popoverContentVariants>;\n\n/**\n * An accessible name is required, not optional.\n *\n * Radix gives the content `role=\"dialog\"`, and a dialog without a name is an\n * `aria-dialog-name` violation - axe flags it, and a screen reader announces\n * \"dialog\" and nothing else. It is not something a default can solve, because a\n * generic \"Popover\" label is worse than useless. So the type asks for one of the\n * two ways to supply it, which turns a runtime audit finding into a compile\n * error.\n */\nexport type PopoverContentProps = PopoverContentBase &\n (\n | { \"aria-label\": string; \"aria-labelledby\"?: never }\n | { \"aria-labelledby\": string; \"aria-label\"?: never }\n );\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n PopoverContentProps\n>(({ className, align = \"center\", sideOffset = 8, size, ...props }, ref) => (\n // Portalled by default: an un-portalled popover inherits `overflow: hidden`\n // and any stacking context from whatever it happens to be nested in, which is\n // how popovers end up clipped inside cards and tables.\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(popoverContentVariants({ size }), className)}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nconst PopoverArrow = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Arrow>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow>\n>(({ className, ...props }, ref) => (\n <PopoverPrimitive.Arrow\n ref={ref}\n className={cn(\"fill-background\", className)}\n {...props}\n />\n));\nPopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverClose,\n PopoverArrow,\n popoverContentVariants,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),o=require('react'),e=require('@radix-ui/react-dropdown-menu');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var e__namespace=/*#__PURE__*/_interopNamespace(e);var R=e__namespace.Root,b=e__namespace.Trigger,y=e__namespace.Group,g=e__namespace.Sub,h=e__namespace.RadioGroup,m="z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",d="relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s=o__namespace.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.Content,{ref:i,sideOffset:n,className:chunkITRGJNWL_cjs.a(m,t),...r})));s.displayName=e__namespace.Content.displayName;var u=o__namespace.forwardRef(({className:t,destructive:n,inset:r,...i},p)=>o__namespace.createElement(e__namespace.Item,{ref:p,className:chunkITRGJNWL_cjs.a(d,r&&"pl-8",n&&"text-destructive focus:bg-destructive/10 focus:text-destructive",t),...i}));u.displayName=e__namespace.Item.displayName;var c=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.CheckboxItem,{ref:i,className:chunkITRGJNWL_cjs.a(d,"pl-8",t),...r},o__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o__namespace.createElement(e__namespace.ItemIndicator,null,o__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},o__namespace.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),n));c.displayName=e__namespace.CheckboxItem.displayName;var l=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.RadioItem,{ref:i,className:chunkITRGJNWL_cjs.a(d,"pl-8",t),...r},o__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o__namespace.createElement(e__namespace.ItemIndicator,null,o__namespace.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),n));l.displayName=e__namespace.RadioItem.displayName;var f=o__namespace.forwardRef(({className:t,inset:n,...r},i)=>o__namespace.createElement(e__namespace.Label,{ref:i,className:chunkITRGJNWL_cjs.a("px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",n&&"pl-8",t),...r}));f.displayName=e__namespace.Label.displayName;var w=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Separator,{ref:r,className:chunkITRGJNWL_cjs.a("-mx-1 my-1 h-px bg-border",t),...n}));w.displayName=e__namespace.Separator.displayName;function M({className:t,...n}){return o__namespace.createElement("span",{className:chunkITRGJNWL_cjs.a("ml-auto text-xs tracking-widest text-muted-foreground",t),...n})}M.displayName="DropdownMenuShortcut";var D=o__namespace.forwardRef(({className:t,inset:n,children:r,...i},p)=>o__namespace.createElement(e__namespace.SubTrigger,{ref:p,className:chunkITRGJNWL_cjs.a(d,"data-[state=open]:bg-muted",n&&"pl-8",t),...i},r,o__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},o__namespace.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));D.displayName=e__namespace.SubTrigger.displayName;var P=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.SubContent,{ref:r,className:chunkITRGJNWL_cjs.a(m,t),...n})));P.displayName=e__namespace.SubContent.displayName;exports.a=R;exports.b=b;exports.c=y;exports.d=g;exports.e=h;exports.f=s;exports.g=u;exports.h=c;exports.i=l;exports.j=f;exports.k=w;exports.l=M;exports.m=D;exports.n=P;//# sourceMappingURL=chunk-BX4VBLKZ.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-BX4VBLKZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","e","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","menuSurface","menuItem","DropdownMenuContent","o","className","sideOffset","props","ref","cn","DropdownMenuItem","destructive","inset","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"0hBAeA,IAAMA,CAAAA,CAAqCC,kBACrCC,CAAAA,CAA4CD,YAAA,CAAA,OAAA,CAC5CE,EAA0CF,YAAA,CAAA,KAAA,CAC1CG,CAAAA,CAAwCH,iBACxCI,CAAAA,CAA+CJ,YAAA,CAAA,UAAA,CAE/CK,EACJ,gcAAA,CAOIC,CAAAA,CACJ,gOAIIC,CAAAA,CAA4BC,YAAA,CAAA,UAAA,CAGhC,CAAC,CAAE,SAAA,CAAAC,EAAW,UAAA,CA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2BAAuBR,YAAA,CAAA,MAAA,CAAtB,IAAA,CACCQ,2BAAuBR,YAAA,CAAA,UAAA,CAAtB,CACC,IAAKY,CAAAA,CACL,SAAA,CAAWC,oBAAGR,CAAAA,CAAaI,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDa,CAAAA,CAAuB,WAAA,CACCxB,YAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-BX4VBLKZ.cjs","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * The menu that hangs off a button: row actions, account menus, overflow.\n *\n * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer\n * versus keyboard intent - so this is styling plus two defaults worth having in\n * one place rather than at every call site.\n *\n * `Select` is the neighbouring component and a different thing: it edits a form\n * value and has a selected state. A dropdown menu runs commands.\n */\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst menuSurface =\n \"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\";\n\nconst menuItem =\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none \" +\n \"transition-colors focus:bg-muted focus:text-foreground \" +\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\";\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n // Portalled: an un-portalled menu is clipped by any ancestor with\n // `overflow: hidden`, which in practice means every card and table it is used\n // in - the single most common way a menu appears half-drawn.\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> {\n /** Pulls the item into the destructive palette. */\n destructive?: boolean;\n /** Indents to line up with checkbox and radio items in the same menu. */\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n DropdownMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && \"pl-8\",\n destructive &&\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n // `checked` rides along in the spread rather than being destructured and\n // re-passed: under exactOptionalPropertyTypes, handing back an explicit\n // `undefined` is not the same as omitting the prop, and Radix's type rejects it.\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/** For a keyboard hint on the right of an item. Not interactive. */\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as o from'react';import*as e from'@radix-ui/react-dropdown-menu';var R=e.Root,b=e.Trigger,y=e.Group,g=e.Sub,h=e.RadioGroup,m="z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",d="relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s=o.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o.createElement(e.Portal,null,o.createElement(e.Content,{ref:i,sideOffset:n,className:a(m,t),...r})));s.displayName=e.Content.displayName;var u=o.forwardRef(({className:t,destructive:n,inset:r,...i},p)=>o.createElement(e.Item,{ref:p,className:a(d,r&&"pl-8",n&&"text-destructive focus:bg-destructive/10 focus:text-destructive",t),...i}));u.displayName=e.Item.displayName;var c=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.CheckboxItem,{ref:i,className:a(d,"pl-8",t),...r},o.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o.createElement(e.ItemIndicator,null,o.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},o.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),n));c.displayName=e.CheckboxItem.displayName;var l=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.RadioItem,{ref:i,className:a(d,"pl-8",t),...r},o.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o.createElement(e.ItemIndicator,null,o.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),n));l.displayName=e.RadioItem.displayName;var f=o.forwardRef(({className:t,inset:n,...r},i)=>o.createElement(e.Label,{ref:i,className:a("px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",n&&"pl-8",t),...r}));f.displayName=e.Label.displayName;var w=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Separator,{ref:r,className:a("-mx-1 my-1 h-px bg-border",t),...n}));w.displayName=e.Separator.displayName;function M({className:t,...n}){return o.createElement("span",{className:a("ml-auto text-xs tracking-widest text-muted-foreground",t),...n})}M.displayName="DropdownMenuShortcut";var D=o.forwardRef(({className:t,inset:n,children:r,...i},p)=>o.createElement(e.SubTrigger,{ref:p,className:a(d,"data-[state=open]:bg-muted",n&&"pl-8",t),...i},r,o.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},o.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));D.displayName=e.SubTrigger.displayName;var P=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Portal,null,o.createElement(e.SubContent,{ref:r,className:a(m,t),...n})));P.displayName=e.SubContent.displayName;export{R as a,b,y as c,g as d,h as e,s as f,u as g,c as h,l as i,f as j,w as k,M as l,D as m,P as n};//# sourceMappingURL=chunk-E44BBSLT.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-E44BBSLT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","menuSurface","menuItem","DropdownMenuContent","className","sideOffset","props","ref","cn","DropdownMenuItem","destructive","inset","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"4GAeA,IAAMA,CAAAA,CAAqC,OACrCC,CAAAA,CAA4C,CAAA,CAAA,OAAA,CAC5CC,EAA0C,CAAA,CAAA,KAAA,CAC1CC,CAAAA,CAAwC,MACxCC,CAAAA,CAA+C,CAAA,CAAA,UAAA,CAE/CC,EACJ,gcAAA,CAOIC,CAAAA,CACJ,gOAIIC,CAAAA,CAA4B,CAAA,CAAA,UAAA,CAGhC,CAAC,CAAE,SAAA,CAAAC,EAAW,UAAA,CAAAC,CAAAA,CAAa,EAAG,GAAGC,CAAM,EAAGC,CAAAA,GAI1C,CAAA,CAAA,aAAA,CAAuB,SAAtB,IAAA,CACC,CAAA,CAAA,aAAA,CAAuB,UAAtB,CACC,GAAA,CAAKA,EACL,UAAA,CAAYF,CAAAA,CACZ,UAAWG,CAAAA,CAAGP,CAAAA,CAAaG,CAAS,CAAA,CACnC,GAAGE,EACN,CACF,CACD,EACDH,CAAAA,CAAoB,WAAA,CAAoC,UAAQ,WAAA,CAWhE,IAAMM,EAAyB,CAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAL,CAAAA,CAAW,YAAAM,CAAAA,CAAa,KAAA,CAAAC,EAAO,GAAGL,CAAM,EAAGC,CAAAA,GAC9C,CAAA,CAAA,aAAA,CAAuB,OAAtB,CACC,GAAA,CAAKA,EACL,SAAA,CAAWC,CAAAA,CACTN,EACAS,CAAAA,EA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CACC,GAAA,CAAKA,CAAAA,CACL,UAAWC,CAAAA,CACTN,CAAAA,CACA,6BACAS,CAAAA,EAAS,MAAA,CACTP,CACF,CAAA,CACC,GAAGE,GAEHO,CAAAA,CACD,CAAA,CAAA,aAAA,CAAC,OACC,OAAA,CAAQ,WAAA,CACR,KAAK,MAAA,CACL,SAAA,CAAU,sBACV,aAAA,CAAY,MAAA,CAAA,CAEZ,CAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,CAAA,CAAE,cAAA,CACF,OAAO,cAAA,CACP,WAAA,CAAY,IACZ,aAAA,CAAc,OAAA,CACd,eAAe,OAAA,CACjB,CACF,CACF,CACD,EACDK,EAAuB,WAAA,CACC,CAAA,CAAA,UAAA,CAAW,YAEnC,IAAMC,CAAAA,CAA+B,aAGnC,CAAC,CAAE,UAAAf,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1B,gBAAuB,CAAA,CAAA,MAAA,CAAtB,IAAA,CACC,gBAAuB,CAAA,CAAA,UAAA,CAAtB,CACC,IAAKA,CAAAA,CACL,SAAA,CAAWC,EAAGP,CAAAA,CAAaG,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDa,CAAAA,CAAuB,WAAA,CACC,CAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-E44BBSLT.js","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * The menu that hangs off a button: row actions, account menus, overflow.\n *\n * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer\n * versus keyboard intent - so this is styling plus two defaults worth having in\n * one place rather than at every call site.\n *\n * `Select` is the neighbouring component and a different thing: it edits a form\n * value and has a selected state. A dropdown menu runs commands.\n */\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst menuSurface =\n \"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\";\n\nconst menuItem =\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none \" +\n \"transition-colors focus:bg-muted focus:text-foreground \" +\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\";\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n // Portalled: an un-portalled menu is clipped by any ancestor with\n // `overflow: hidden`, which in practice means every card and table it is used\n // in - the single most common way a menu appears half-drawn.\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> {\n /** Pulls the item into the destructive palette. */\n destructive?: boolean;\n /** Indents to line up with checkbox and radio items in the same menu. */\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n DropdownMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && \"pl-8\",\n destructive &&\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n // `checked` rides along in the spread rather than being destructured and\n // re-passed: under exactOptionalPropertyTypes, handing back an explicit\n // `undefined` is not the same as omitting the prop, and Radix's type rejects it.\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/** For a keyboard hint on the right of an item. Not interactive. */\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),o=require('react'),e=require('@radix-ui/react-popover'),classVarianceAuthority=require('class-variance-authority');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var e__namespace=/*#__PURE__*/_interopNamespace(e);var l=classVarianceAuthority.cva("z-50 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{sm:"w-56",default:"w-72",lg:"w-96",auto:"w-auto"}},defaultVariants:{size:"default"}}),c=e__namespace.Root,b=e__namespace.Trigger,g=e__namespace.Anchor,u=e__namespace.Close,v=o__namespace.forwardRef(({className:t,align:r="center",sideOffset:a=8,size:n,...p},s)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.Content,{ref:s,align:r,sideOffset:a,className:chunkITRGJNWL_cjs.a(l({size:n}),t),...p})));v.displayName=e__namespace.Content.displayName;var d=o__namespace.forwardRef(({className:t,...r},a)=>o__namespace.createElement(e__namespace.Arrow,{ref:a,className:chunkITRGJNWL_cjs.a("fill-background",t),...r}));d.displayName=e__namespace.Arrow.displayName;exports.a=l;exports.b=c;exports.c=b;exports.d=g;exports.e=u;exports.f=v;exports.g=d;//# sourceMappingURL=chunk-E53C3RDD.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-E53C3RDD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/popover.tsx"],"names":["popoverContentVariants","cva","Popover","e","PopoverTrigger","PopoverAnchor","PopoverClose","PopoverContent","o","className","align","sideOffset","size","props","ref","cn","PopoverArrow"],"mappings":"+kBAWA,IAAMA,CAAAA,CAAyBC,0BAAAA,CAC7B,gbAAA,CAMA,CACE,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,EAAA,CAAI,MAAA,CACJ,OAAA,CAAS,MAAA,CACT,EAAA,CAAI,MAAA,CACJ,IAAA,CAAM,QACR,CACF,CAAA,CACA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"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * `@radix-ui/react-popover` was already a dependency - Calendar mounts its month\n * grid in one - but it was never exposed, so a consumer wanting a popover had to\n * add the package a second time and theme it themselves.\n */\n\nconst popoverContentVariants = cva(\n \"z-50 rounded-lg border border-border bg-background p-4 text-foreground shadow-lg outline-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n {\n variants: {\n size: {\n sm: \"w-56\",\n default: \"w-72\",\n lg: \"w-96\",\n auto: \"w-auto\",\n },\n },\n defaultVariants: {\n size: \"default\",\n },\n },\n);\n\nconst Popover = PopoverPrimitive.Root;\nconst PopoverTrigger = PopoverPrimitive.Trigger;\nconst PopoverAnchor = PopoverPrimitive.Anchor;\nconst PopoverClose = PopoverPrimitive.Close;\n\ntype PopoverContentBase = Omit<\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>,\n \"aria-label\" | \"aria-labelledby\"\n> &\n VariantProps<typeof popoverContentVariants>;\n\n/**\n * An accessible name is required, not optional.\n *\n * Radix gives the content `role=\"dialog\"`, and a dialog without a name is an\n * `aria-dialog-name` violation - axe flags it, and a screen reader announces\n * \"dialog\" and nothing else. It is not something a default can solve, because a\n * generic \"Popover\" label is worse than useless. So the type asks for one of the\n * two ways to supply it, which turns a runtime audit finding into a compile\n * error.\n */\nexport type PopoverContentProps = PopoverContentBase &\n (\n | { \"aria-label\": string; \"aria-labelledby\"?: never }\n | { \"aria-labelledby\": string; \"aria-label\"?: never }\n );\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n PopoverContentProps\n>(({ className, align = \"center\", sideOffset = 8, size, ...props }, ref) => (\n // Portalled by default: an un-portalled popover inherits `overflow: hidden`\n // and any stacking context from whatever it happens to be nested in, which is\n // how popovers end up clipped inside cards and tables.\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(popoverContentVariants({ size }), className)}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nconst PopoverArrow = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Arrow>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Arrow>\n>(({ className, ...props }, ref) => (\n <PopoverPrimitive.Arrow\n ref={ref}\n className={cn(\"fill-background\", className)}\n {...props}\n />\n));\nPopoverArrow.displayName = PopoverPrimitive.Arrow.displayName;\n\nexport {\n Popover,\n PopoverTrigger,\n PopoverContent,\n PopoverAnchor,\n PopoverClose,\n PopoverArrow,\n popoverContentVariants,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),e=require('react'),l=require('@radix-ui/react-collapsible');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var e__namespace=/*#__PURE__*/_interopNamespace(e);var l__namespace=/*#__PURE__*/_interopNamespace(l);var n=l__namespace.Root,C=l__namespace.CollapsibleTrigger,p=e__namespace.forwardRef(({className:o,children:t,...a},s)=>e__namespace.createElement(l__namespace.CollapsibleContent,{ref:s,className:chunkITRGJNWL_cjs.a("overflow-hidden text-foreground","data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",o),...a},t));p.displayName=l__namespace.CollapsibleContent.displayName;exports.a=n;exports.b=C;exports.c=p;//# sourceMappingURL=chunk-EEGXD4HC.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-EEGXD4HC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/collapsible.tsx"],"names":["Collapsible","l","CollapsibleTrigger","CollapsibleContent","e","className","children","props","ref","cn"],"mappings":"whBAcA,IAAMA,EAAmCC,YAAA,CAAA,IAAA,CACnCC,CAAAA,CAA0CD,YAAA,CAAA,kBAAA,CAE1CE,CAAAA,CAA2BC,wBAG/B,CAAC,CAAE,UAAAC,CAAAA,CAAW,QAAA,CAAAC,EAAU,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GACpCJ,2BAAsBH,YAAA,CAAA,kBAAA,CAArB,CACC,IAAKO,CAAAA,CACL,SAAA,CAAWC,oBACT,iCAAA,CACA,uFAAA,CACAJ,CACF,CAAA,CACC,GAAGE,CAAAA,CAAAA,CAEHD,CACH,CACD,EACDH,CAAAA,CAAmB,YACIF,YAAA,CAAA,kBAAA,CAAmB,WAAA","file":"chunk-EEGXD4HC.cjs","sourcesContent":["import * as React from \"react\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * Accordion answers \"one of several sections open at a time\". Collapsible is the\n * single-region case - a filter panel, a sidebar group, a \"show more\" - where\n * there is nothing to coordinate with.\n *\n * The height animation needs Radix's `--radix-collapsible-content-height`, which\n * only exists on the content element, so the transition lives on the wrapper\n * here rather than being left to every caller to rediscover.\n */\n\nconst Collapsible = CollapsiblePrimitive.Root;\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;\n\nconst CollapsibleContent = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.CollapsibleContent>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleContent>\n>(({ className, children, ...props }, ref) => (\n <CollapsiblePrimitive.CollapsibleContent\n ref={ref}\n className={cn(\n \"overflow-hidden text-foreground\",\n \"data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down\",\n className,\n )}\n {...props}\n >\n {children}\n </CollapsiblePrimitive.CollapsibleContent>\n));\nCollapsibleContent.displayName =\n CollapsiblePrimitive.CollapsibleContent.displayName;\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as e from'react';import*as l from'@radix-ui/react-collapsible';var n=l.Root,C=l.CollapsibleTrigger,p=e.forwardRef(({className:o,children:t,...a$1},s)=>e.createElement(l.CollapsibleContent,{ref:s,className:a("overflow-hidden text-foreground","data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",o),...a$1},t));p.displayName=l.CollapsibleContent.displayName;export{n as a,C as b,p as c};//# sourceMappingURL=chunk-ESUSGG6O.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-ESUSGG6O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/collapsible.tsx"],"names":["Collapsible","CollapsibleTrigger","CollapsibleContent","className","children","props","ref","cn"],"mappings":"0GAcA,IAAMA,EAAmC,CAAA,CAAA,IAAA,CACnCC,CAAAA,CAA0C,CAAA,CAAA,kBAAA,CAE1CC,CAAAA,CAA2B,aAG/B,CAAC,CAAE,UAAAC,CAAAA,CAAW,QAAA,CAAAC,EAAU,GAAGC,GAAM,CAAA,CAAGC,CAAAA,GACpC,gBAAsB,CAAA,CAAA,kBAAA,CAArB,CACC,IAAKA,CAAAA,CACL,SAAA,CAAWC,EACT,iCAAA,CACA,uFAAA,CACAJ,CACF,CAAA,CACC,GAAGE,GAAAA,CAAAA,CAEHD,CACH,CACD,EACDF,CAAAA,CAAmB,YACI,CAAA,CAAA,kBAAA,CAAmB,WAAA","file":"chunk-ESUSGG6O.js","sourcesContent":["import * as React from \"react\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * Accordion answers \"one of several sections open at a time\". Collapsible is the\n * single-region case - a filter panel, a sidebar group, a \"show more\" - where\n * there is nothing to coordinate with.\n *\n * The height animation needs Radix's `--radix-collapsible-content-height`, which\n * only exists on the content element, so the transition lives on the wrapper\n * here rather than being left to every caller to rediscover.\n */\n\nconst Collapsible = CollapsiblePrimitive.Root;\nconst CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;\n\nconst CollapsibleContent = React.forwardRef<\n React.ElementRef<typeof CollapsiblePrimitive.CollapsibleContent>,\n React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.CollapsibleContent>\n>(({ className, children, ...props }, ref) => (\n <CollapsiblePrimitive.CollapsibleContent\n ref={ref}\n className={cn(\n \"overflow-hidden text-foreground\",\n \"data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down\",\n className,\n )}\n {...props}\n >\n {children}\n </CollapsiblePrimitive.CollapsibleContent>\n));\nCollapsibleContent.displayName =\n CollapsiblePrimitive.CollapsibleContent.displayName;\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {a}from'./chunk-AC2JBXHQ.js';import*as t from'react';import*as e from'@radix-ui/react-dialog';import {cva}from'class-variance-authority';var d=cva("fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2",bottom:"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2",left:"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2",right:"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2"}},defaultVariants:{side:"right"}}),R=e.Root,b=e.Trigger,u=e.Close,f=e.Portal,n=t.forwardRef(({className:i,...o},a$1)=>t.createElement(e.Overlay,{ref:a$1,className:a("fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...o}));n.displayName=e.Overlay.displayName;var p=t.forwardRef(({side:i,className:o,children:a$1,...s},m)=>t.createElement(f,null,t.createElement(n,null),t.createElement(e.Content,{ref:m,className:a(d({side:i}),o),...s},a$1)));p.displayName=e.Content.displayName;function h({className:i,...o}){return t.createElement("div",{className:a("flex flex-col gap-1.5",i),...o})}h.displayName="SheetHeader";function c({className:i,...o}){return t.createElement("div",{className:a("mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...o})}c.displayName="SheetFooter";var S=t.forwardRef(({className:i,srOnly:o,...a$1},s)=>t.createElement(e.Title,{ref:s,className:a(o?"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]":"text-lg font-semibold text-foreground",i),...a$1}));S.displayName=e.Title.displayName;var v=t.forwardRef(({className:i,...o},a$1)=>t.createElement(e.Description,{ref:a$1,className:a("text-sm text-muted-foreground",i),...o}));v.displayName=e.Description.displayName;export{d as a,R as b,b as c,u as d,f as e,n as f,p as g,h,c as i,S as j,v as k};//# sourceMappingURL=chunk-HCYZ3LZP.js.map
|
|
3
|
+
//# sourceMappingURL=chunk-HCYZ3LZP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/sheet.tsx"],"names":["sheetVariants","cva","Sheet","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","props","ref","cn","SheetContent","side","children","SheetHeader","SheetFoo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GC,CAAAA,CACN,CACD,EACDU,CAAAA,CAAiB,WAAA,CAA6B,CAAA,CAAA,WAAA,CAAY,WAAA","file":"chunk-HCYZ3LZP.js","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\n/**\n * A panel that slides in from an edge: mobile navigation, a filter drawer, a\n * detail pane beside a table.\n *\n * Built on `@radix-ui/react-dialog` rather than on this package's own `Dialog`.\n * They are the same primitive underneath and a sheet is a dialog - but ours is\n * hand-rolled around a centred box, and bending it into an edge-anchored panel\n * would mean two layout modes in one component and a `variant` that changes what\n * every other prop means. Radix brings the focus trap, scroll lock and inert\n * background that a hand-rolled overlay has to get right on its own.\n */\n\nconst sheetVariants = cva(\n \"fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2\",\n bottom:\n \"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\nconst Sheet = SheetPrimitive.Root;\nconst SheetTrigger = SheetPrimitive.Trigger;\nconst SheetClose = SheetPrimitive.Close;\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<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-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nexport interface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\n/**\n * A `SheetTitle` is required, not decorative.\n *\n * Radix warns at runtime when a dialog has no title, and axe reports\n * `aria-dialog-name` - a screen reader announces \"dialog\" and nothing else. The\n * title can be visually hidden if the design has no room for one, which is what\n * `SheetTitle`'s `srOnly` is for; what it cannot be is absent.\n */\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side, 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\nfunction SheetHeader({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"flex flex-col gap-1.5\", className)} {...props} />;\n}\nSheetHeader.displayName = \"SheetHeader\";\n\nfunction SheetFooter({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\n \"mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\nSheetFooter.displayName = \"SheetFooter\";\n\nexport interface SheetTitleProps extends React.ComponentPropsWithoutRef<\n typeof SheetPrimitive.Title\n> {\n /**\n * Keeps the title for assistive technology while removing it visually, for\n * designs with no room for a heading. The accessible name still exists, which\n * is the part that is not optional.\n */\n srOnly?: boolean;\n}\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n SheetTitleProps\n>(({ className, srOnly, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\n srOnly\n ? \"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]\"\n : \"text-lg font-semibold text-foreground\",\n className,\n )}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<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-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetPortal,\n SheetOverlay,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n sheetVariants,\n};\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),t=require('react'),e=require('@radix-ui/react-dialog'),classVarianceAuthority=require('class-variance-authority');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var e__namespace=/*#__PURE__*/_interopNamespace(e);var d=classVarianceAuthority.cva("fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2",bottom:"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2",left:"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2",right:"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2"}},defaultVariants:{side:"right"}}),R=e__namespace.Root,b=e__namespace.Trigger,u=e__namespace.Close,f=e__namespace.Portal,n=t__namespace.forwardRef(({className:i,...o},a)=>t__namespace.createElement(e__namespace.Overlay,{ref:a,className:chunkITRGJNWL_cjs.a("fixed inset-0 z-50 bg-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i),...o}));n.displayName=e__namespace.Overlay.displayName;var p=t__namespace.forwardRef(({side:i,className:o,children:a,...s},m)=>t__namespace.createElement(f,null,t__namespace.createElement(n,null),t__namespace.createElement(e__namespace.Content,{ref:m,className:chunkITRGJNWL_cjs.a(d({side:i}),o),...s},a)));p.displayName=e__namespace.Content.displayName;function h({className:i,...o}){return t__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("flex flex-col gap-1.5",i),...o})}h.displayName="SheetHeader";function c({className:i,...o}){return t__namespace.createElement("div",{className:chunkITRGJNWL_cjs.a("mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...o})}c.displayName="SheetFooter";var S=t__namespace.forwardRef(({className:i,srOnly:o,...a},s)=>t__namespace.createElement(e__namespace.Title,{ref:s,className:chunkITRGJNWL_cjs.a(o?"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]":"text-lg font-semibold text-foreground",i),...a}));S.displayName=e__namespace.Title.displayName;var v=t__namespace.forwardRef(({className:i,...o},a)=>t__namespace.createElement(e__namespace.Description,{ref:a,className:chunkITRGJNWL_cjs.a("text-sm text-muted-foreground",i),...o}));v.displayName=e__namespace.Description.displayName;exports.a=d;exports.b=R;exports.c=b;exports.d=u;exports.e=f;exports.f=n;exports.g=p;exports.h=h;exports.i=c;exports.j=S;exports.k=v;//# sourceMappingURL=chunk-MQUHAWJ2.cjs.map
|
|
3
|
+
//# sourceMappingURL=chunk-MQUHAWJ2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/core/sheet.tsx"],"names":["sheetVariants","cva","Sheet","e","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","t","className","props","ref","cn","SheetContent","side","children","SheetHeader","SheetFooter","SheetTitle","srOnly","SheetDescription"],"mappings":"8kBAiBA,IAAMA,CAAAA,CAAgBC,0BAAAA,CACpB,0IAEA,CACE,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,GAAA,CAAK,uHACL,MAAA,CACE,+HAAA,CACF,IAAA,CAAM,kJAAA,CACN,KAAA,CACE,qJACJ,CACF,CAAA,CACA,eAAA,CAAiB,CACf,IAAA,CAAM,OACR,CACF,CACF,CAAA,CAEMC,CAAAA,CAAuBC,YAAA,CAAA,IAAA,CACvBC,CAAAA,CAA8BD,YAAA,CAAA,OAAA,CAC9BE,CAAAA,CAA4BF,mBAC5BG,CAAAA,CAA6BH,YAAA,CAAA,MAAA,CAE7BI,CAAAA,CAAqBC,YAAA,CAAA,UAAA,CAGzB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAgBL,YAAA,CAAA,OAAA,CAAf,CACC,GAAA,CAAKQ,CAAAA,CACL,SAAA,CAAWC,mBAAAA,CACT,8JAAA,CAEAH,CACF,EACC,GAAGC,CAAAA,CACN,CACD,EACDH,CAAAA,CAAa,WAAA,CAA6BJ,qBAAQ,WAAA,CAelD,IAAMU,CAAAA,CAAqBL,YAAA,CAAA,UAAA,CAGzB,CAAC,CAAE,IAAA,CAAAM,CAAAA,CA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,mBAAAA,CACTO,CAAAA,CACI,wFAAA,CACA,uCAAA,CACJV,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CACD,EACDQ,CAAAA,CAAW,WAAA,CAA6Bf,YAAA,CAAA,KAAA,CAAM,WAAA,KAExCiB,CAAAA,CAAyBZ,YAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,GAC1BH,YAAA,CAAA,aAAA,CAAgBL,YAAA,CAAA,WAAA,CAAf,CACC,IAAKQ,CAAAA,CACL,SAAA,CAAWC,mBAAAA,CAAG,+BAAA,CAAiCH,CAAS,CAAA,CACvD,GAAGC,CAAAA,CACN,CACD,EACDU,CAAAA,CAAiB,WAAA,CAA6BjB,YAAA,CAAA,WAAA,CAAY,WAAA","file":"chunk-MQUHAWJ2.cjs","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\n/**\n * A panel that slides in from an edge: mobile navigation, a filter drawer, a\n * detail pane beside a table.\n *\n * Built on `@radix-ui/react-dialog` rather than on this package's own `Dialog`.\n * They are the same primitive underneath and a sheet is a dialog - but ours is\n * hand-rolled around a centred box, and bending it into an edge-anchored panel\n * would mean two layout modes in one component and a `variant` that changes what\n * every other prop means. Radix brings the focus trap, scroll lock and inert\n * background that a hand-rolled overlay has to get right on its own.\n */\n\nconst sheetVariants = cva(\n \"fixed z-50 flex flex-col gap-4 bg-background p-6 shadow-lg transition-none \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-in-from-top-2 data-[state=open]:slide-in-from-top-2\",\n bottom:\n \"inset-x-0 bottom-0 border-t border-border data-[state=closed]:slide-in-from-bottom-2 data-[state=open]:slide-in-from-bottom-2\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r border-border sm:max-w-sm data-[state=closed]:slide-in-from-left-2 data-[state=open]:slide-in-from-left-2\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l border-border sm:max-w-sm data-[state=closed]:slide-in-from-right-2 data-[state=open]:slide-in-from-right-2\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\nconst Sheet = SheetPrimitive.Root;\nconst SheetTrigger = SheetPrimitive.Trigger;\nconst SheetClose = SheetPrimitive.Close;\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<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-neutral-950/50 data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nexport interface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\n/**\n * A `SheetTitle` is required, not decorative.\n *\n * Radix warns at runtime when a dialog has no title, and axe reports\n * `aria-dialog-name` - a screen reader announces \"dialog\" and nothing else. The\n * title can be visually hidden if the design has no room for one, which is what\n * `SheetTitle`'s `srOnly` is for; what it cannot be is absent.\n */\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side, 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\nfunction SheetHeader({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"flex flex-col gap-1.5\", className)} {...props} />;\n}\nSheetHeader.displayName = \"SheetHeader\";\n\nfunction SheetFooter({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\n \"mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className,\n )}\n {...props}\n />\n );\n}\nSheetFooter.displayName = \"SheetFooter\";\n\nexport interface SheetTitleProps extends React.ComponentPropsWithoutRef<\n typeof SheetPrimitive.Title\n> {\n /**\n * Keeps the title for assistive technology while removing it visually, for\n * designs with no room for a heading. The accessible name still exists, which\n * is the part that is not optional.\n */\n srOnly?: boolean;\n}\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n SheetTitleProps\n>(({ className, srOnly, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\n srOnly\n ? \"absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]\"\n : \"text-lg font-semibold text-foreground\",\n className,\n )}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<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-muted-foreground\", className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetPortal,\n SheetOverlay,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n sheetVariants,\n};\n"]}
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const alertVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare const alertTitleVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const alertVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare const alertTitleVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "destructive" | "success" | "error" | "warning" | "info" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "destructive" | "success" | "error" | "warning" | "info" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
/**
|
|
@@ -7,7 +7,7 @@ declare const breadcrumbVariants: (props?: ({
|
|
|
7
7
|
separator?: "default" | "slash" | "arrow" | "dot" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare const breadcrumbItemVariants: (props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "default" | "link" | "current" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
12
|
declare const breadcrumbSeparatorVariants: (props?: ({
|
|
13
13
|
variant?: "default" | "compact" | null | undefined;
|
|
@@ -7,7 +7,7 @@ declare const breadcrumbVariants: (props?: ({
|
|
|
7
7
|
separator?: "default" | "slash" | "arrow" | "dot" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare const breadcrumbItemVariants: (props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "default" | "link" | "current" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
12
|
declare const breadcrumbSeparatorVariants: (props?: ({
|
|
13
13
|
variant?: "default" | "compact" | null | undefined;
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "subtle" | "link" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | "xl" | "icon" | null | undefined;
|
|
8
|
-
state?: "
|
|
8
|
+
state?: "default" | "loading" | "success" | "error" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
11
11
|
/**
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "subtle" | "link" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | "xl" | "icon" | null | undefined;
|
|
8
|
-
state?: "
|
|
8
|
+
state?: "default" | "loading" | "success" | "error" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
11
11
|
/**
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const checkboxVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "success" | "error" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof checkboxVariants> {
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const checkboxVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "success" | "error" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof checkboxVariants> {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkEEGXD4HC_cjs=require('../../chunk-EEGXD4HC.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"Collapsible",{enumerable:true,get:function(){return chunkEEGXD4HC_cjs.a}});Object.defineProperty(exports,"CollapsibleContent",{enumerable:true,get:function(){return chunkEEGXD4HC_cjs.c}});Object.defineProperty(exports,"CollapsibleTrigger",{enumerable:true,get:function(){return chunkEEGXD4HC_cjs.b}});//# sourceMappingURL=collapsible.cjs.map
|
|
3
|
+
//# sourceMappingURL=collapsible.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"collapsible.cjs"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Accordion answers "one of several sections open at a time". Collapsible is the
|
|
6
|
+
* single-region case - a filter panel, a sidebar group, a "show more" - where
|
|
7
|
+
* there is nothing to coordinate with.
|
|
8
|
+
*
|
|
9
|
+
* The height animation needs Radix's `--radix-collapsible-content-height`, which
|
|
10
|
+
* only exists on the content element, so the transition lives on the wrapper
|
|
11
|
+
* here rather than being left to every caller to rediscover.
|
|
12
|
+
*/
|
|
13
|
+
declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
|
|
17
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Accordion answers "one of several sections open at a time". Collapsible is the
|
|
6
|
+
* single-region case - a filter panel, a sidebar group, a "show more" - where
|
|
7
|
+
* there is nothing to coordinate with.
|
|
8
|
+
*
|
|
9
|
+
* The height animation needs Radix's `--radix-collapsible-content-height`, which
|
|
10
|
+
* only exists on the content element, so the transition lives on the wrapper
|
|
11
|
+
* here rather than being left to every caller to rediscover.
|
|
12
|
+
*/
|
|
13
|
+
declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
|
|
17
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"collapsible.js"}
|
|
@@ -8,7 +8,7 @@ declare const dialogVariants: (props?: ({
|
|
|
8
8
|
animation?: "default" | "none" | "scale" | "slide" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare const backdropVariants: (props?: ({
|
|
11
|
-
variant?: "
|
|
11
|
+
variant?: "default" | "subtle" | "strong" | "colored" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
13
|
interface DialogProps {
|
|
14
14
|
open?: boolean;
|
|
@@ -8,7 +8,7 @@ declare const dialogVariants: (props?: ({
|
|
|
8
8
|
animation?: "default" | "none" | "scale" | "slide" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare const backdropVariants: (props?: ({
|
|
11
|
-
variant?: "
|
|
11
|
+
variant?: "default" | "subtle" | "strong" | "colored" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
13
|
interface DialogProps {
|
|
14
14
|
open?: boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkBX4VBLKZ_cjs=require('../../chunk-BX4VBLKZ.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"DropdownMenu",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.a}});Object.defineProperty(exports,"DropdownMenuCheckboxItem",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.h}});Object.defineProperty(exports,"DropdownMenuContent",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.f}});Object.defineProperty(exports,"DropdownMenuGroup",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.c}});Object.defineProperty(exports,"DropdownMenuItem",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.g}});Object.defineProperty(exports,"DropdownMenuLabel",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.j}});Object.defineProperty(exports,"DropdownMenuRadioGroup",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.e}});Object.defineProperty(exports,"DropdownMenuRadioItem",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.i}});Object.defineProperty(exports,"DropdownMenuSeparator",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.k}});Object.defineProperty(exports,"DropdownMenuShortcut",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.l}});Object.defineProperty(exports,"DropdownMenuSub",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.d}});Object.defineProperty(exports,"DropdownMenuSubContent",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.n}});Object.defineProperty(exports,"DropdownMenuSubTrigger",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.m}});Object.defineProperty(exports,"DropdownMenuTrigger",{enumerable:true,get:function(){return chunkBX4VBLKZ_cjs.b}});//# sourceMappingURL=dropdown-menu.cjs.map
|
|
3
|
+
//# sourceMappingURL=dropdown-menu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"dropdown-menu.cjs"}
|