@jarllyng/nostromo 3.4.0 → 3.5.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.
Files changed (83) hide show
  1. package/dist/animations.css +144 -0
  2. package/dist/chunk-3FY7LZ3B.js +3 -0
  3. package/dist/chunk-3FY7LZ3B.js.map +1 -0
  4. package/dist/chunk-E53C3RDD.cjs +3 -0
  5. package/dist/chunk-E53C3RDD.cjs.map +1 -0
  6. package/dist/chunk-EEGXD4HC.cjs +3 -0
  7. package/dist/chunk-EEGXD4HC.cjs.map +1 -0
  8. package/dist/chunk-ESUSGG6O.js +3 -0
  9. package/dist/chunk-ESUSGG6O.js.map +1 -0
  10. package/dist/components/core/alert.d.cts +1 -1
  11. package/dist/components/core/alert.d.ts +1 -1
  12. package/dist/components/core/badge.d.cts +1 -1
  13. package/dist/components/core/badge.d.ts +1 -1
  14. package/dist/components/core/breadcrumb.d.cts +1 -1
  15. package/dist/components/core/breadcrumb.d.ts +1 -1
  16. package/dist/components/core/button.d.cts +2 -2
  17. package/dist/components/core/button.d.ts +2 -2
  18. package/dist/components/core/checkbox.d.cts +1 -1
  19. package/dist/components/core/checkbox.d.ts +1 -1
  20. package/dist/components/core/collapsible.cjs +3 -0
  21. package/dist/components/core/collapsible.cjs.map +1 -0
  22. package/dist/components/core/collapsible.d.cts +17 -0
  23. package/dist/components/core/collapsible.d.ts +17 -0
  24. package/dist/components/core/collapsible.js +3 -0
  25. package/dist/components/core/collapsible.js.map +1 -0
  26. package/dist/components/core/dialog.d.cts +1 -1
  27. package/dist/components/core/dialog.d.ts +1 -1
  28. package/dist/components/core/error-message.d.cts +1 -1
  29. package/dist/components/core/error-message.d.ts +1 -1
  30. package/dist/components/core/helper-text.d.cts +1 -1
  31. package/dist/components/core/helper-text.d.ts +1 -1
  32. package/dist/components/core/icon.d.cts +2 -2
  33. package/dist/components/core/icon.d.ts +2 -2
  34. package/dist/components/core/input.d.cts +1 -1
  35. package/dist/components/core/input.d.ts +1 -1
  36. package/dist/components/core/label.d.cts +1 -1
  37. package/dist/components/core/label.d.ts +1 -1
  38. package/dist/components/core/pagination.d.cts +1 -1
  39. package/dist/components/core/pagination.d.ts +1 -1
  40. package/dist/components/core/popover.cjs +3 -0
  41. package/dist/components/core/popover.cjs.map +1 -0
  42. package/dist/components/core/popover.d.cts +39 -0
  43. package/dist/components/core/popover.d.ts +39 -0
  44. package/dist/components/core/popover.js +3 -0
  45. package/dist/components/core/popover.js.map +1 -0
  46. package/dist/components/core/progress.d.cts +3 -3
  47. package/dist/components/core/progress.d.ts +3 -3
  48. package/dist/components/core/radio-group.d.cts +1 -1
  49. package/dist/components/core/radio-group.d.ts +1 -1
  50. package/dist/components/core/select.d.cts +3 -3
  51. package/dist/components/core/select.d.ts +3 -3
  52. package/dist/components/core/skeleton.d.cts +1 -1
  53. package/dist/components/core/skeleton.d.ts +1 -1
  54. package/dist/components/core/switch.d.cts +1 -1
  55. package/dist/components/core/switch.d.ts +1 -1
  56. package/dist/components/core/textarea.d.cts +1 -1
  57. package/dist/components/core/textarea.d.ts +1 -1
  58. package/dist/components/core/toast.d.cts +2 -2
  59. package/dist/components/core/toast.d.ts +2 -2
  60. package/dist/components/core/tooltip.d.cts +2 -2
  61. package/dist/components/core/tooltip.d.ts +2 -2
  62. package/dist/components/marketing/features.d.cts +2 -2
  63. package/dist/components/marketing/features.d.ts +2 -2
  64. package/dist/components/marketing/gallery.d.cts +1 -1
  65. package/dist/components/marketing/gallery.d.ts +1 -1
  66. package/dist/components/marketing/pricing.d.cts +1 -1
  67. package/dist/components/marketing/pricing.d.ts +1 -1
  68. package/dist/components/marketing/testimonials.d.cts +1 -1
  69. package/dist/components/marketing/testimonials.d.ts +1 -1
  70. package/dist/index.cjs +1 -1
  71. package/dist/index.cjs.map +1 -1
  72. package/dist/index.css +1 -1
  73. package/dist/index.css.map +1 -1
  74. package/dist/index.d.cts +4 -0
  75. package/dist/index.d.ts +4 -0
  76. package/dist/index.js +1 -1
  77. package/dist/index.js.map +1 -1
  78. package/dist/tailwind.css +4 -0
  79. package/dist/themes/lv-426.css +6 -0
  80. package/dist/themes/mother.css +6 -0
  81. package/dist/themes/nostromo.css +6 -0
  82. package/dist/themes/sulaco.css +6 -0
  83. package/package.json +22 -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-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,gBAAiB,CACf,IAAA,CAAM,SACR,CACF,CACF,CAAA,CAEMC,CAAAA,CAA2BC,YAAA,CAAA,IAAA,CAC3BC,CAAAA,CAAkCD,YAAA,CAAA,OAAA,CAClCE,CAAAA,CAAiCF,YAAA,CAAA,MAAA,CACjCG,CAAAA,CAAgCH,YAAA,CAAA,KAAA,CAwBhCI,CAAAA,CAAuBC,YAAA,CAAA,UAAA,CAG3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAU,UAAA,CAAAC,CAAAA,CAAa,CAAA,CAAG,IAAA,CAAAC,CAAAA,CAAM,GAAGC,CAAM,EAAGC,CAAAA,GAIlEN,YAAA,CAAA,aAAA,CAAkBL,YAAA,CAAA,MAAA,CAAjB,IAAA,CACCK,YAAA,CAAA,aAAA,CAAkBL,YAAA,CAAA,OAAA,CAAjB,CACC,GAAA,CAAKW,CAAAA,CACL,KAAA,CAAOJ,CAAAA,CACP,UAAA,CAAYC,CAAAA,CACZ,SAAA,CAAWI,mBAAAA,CAAGf,CAAAA,CAAuB,CAAE,IAAA,CAAAY,CAAK,CAAC,CAAA,CAAGH,CAAS,CAAA,CACxD,GAAGI,CAAAA,CACN,CACF,CACD,EACDN,CAAAA,CAAe,WAAA,CAA+BJ,qBAAQ,WAAA,CAEtD,IAAMa,CAAAA,CAAqBR,YAAA,CAAA,UAAA,CAGzB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGI,CAAM,CAAA,CAAGC,CAAAA,GAC1BN,YAAA,CAAA,aAAA,CAAkBL,YAAA,CAAA,KAAA,CAAjB,CACC,GAAA,CAAKW,CAAAA,CACL,SAAA,CAAWC,mBAAAA,CAAG,iBAAA,CAAmBN,CAAS,CAAA,CACzC,GAAGI,CAAAA,CACN,CACD,EACDG,CAAAA,CAAa,WAAA,CAA+Bb,YAAA,CAAA,KAAA,CAAM,WAAA","file":"chunk-E53C3RDD.cjs","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'),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"]}
@@ -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?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
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?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
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?: "error" | "default" | "secondary" | "outline" | "destructive" | "success" | "warning" | "info" | null | undefined;
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?: "error" | "default" | "secondary" | "outline" | "destructive" | "success" | "warning" | "info" | null | undefined;
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?: "link" | "default" | "current" | null | undefined;
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?: "link" | "default" | "current" | null | undefined;
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?: "link" | "default" | "secondary" | "outline" | "ghost" | "destructive" | "subtle" | null | undefined;
6
+ variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "subtle" | "link" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | "xl" | "icon" | null | undefined;
8
- state?: "error" | "default" | "loading" | "success" | null | undefined;
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?: "link" | "default" | "secondary" | "outline" | "ghost" | "destructive" | "subtle" | null | undefined;
6
+ variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "subtle" | "link" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | "xl" | "icon" | null | undefined;
8
- state?: "error" | "default" | "loading" | "success" | null | undefined;
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?: "error" | "default" | "success" | null | undefined;
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?: "error" | "default" | "success" | null | undefined;
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,3 @@
1
+ "use client";
2
+ export{a as Collapsible,c as CollapsibleContent,b as CollapsibleTrigger}from'../../chunk-ESUSGG6O.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=collapsible.js.map
3
+ //# sourceMappingURL=collapsible.js.map
@@ -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?: "strong" | "default" | "subtle" | "colored" | null | undefined;
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?: "strong" | "default" | "subtle" | "colored" | null | undefined;
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;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const errorMessageVariants: (props?: ({
6
- variant?: "strong" | "default" | "subtle" | "inline" | null | undefined;
6
+ variant?: "default" | "subtle" | "strong" | "inline" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ErrorMessageProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof errorMessageVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const errorMessageVariants: (props?: ({
6
- variant?: "strong" | "default" | "subtle" | "inline" | null | undefined;
6
+ variant?: "default" | "subtle" | "strong" | "inline" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface ErrorMessageProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof errorMessageVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const helperTextVariants: (props?: ({
6
- variant?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
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
  interface HelperTextProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof helperTextVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const helperTextVariants: (props?: ({
6
- variant?: "error" | "default" | "success" | "warning" | "info" | null | undefined;
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
  interface HelperTextProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof helperTextVariants> {
@@ -6,8 +6,8 @@ declare const iconMap: Record<string, React__default.ElementType>;
6
6
  type IconName = keyof typeof iconMap;
7
7
  declare const iconVariants: (props?: ({
8
8
  size?: "sm" | "lg" | "xl" | "xs" | "md" | "2xl" | "3xl" | null | undefined;
9
- weight?: "fill" | "bold" | "light" | "thin" | "regular" | "duotone" | null | undefined;
10
- color?: "error" | "secondary" | "success" | "current" | "warning" | "muted" | "primary" | null | undefined;
9
+ weight?: "light" | "fill" | "bold" | "thin" | "regular" | "duotone" | null | undefined;
10
+ color?: "secondary" | "success" | "error" | "current" | "warning" | "muted" | "primary" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  interface IconProps extends Omit<React__default.HTMLAttributes<SVGSVGElement>, "color">, VariantProps<typeof iconVariants> {
13
13
  name: IconName;
@@ -6,8 +6,8 @@ declare const iconMap: Record<string, React__default.ElementType>;
6
6
  type IconName = keyof typeof iconMap;
7
7
  declare const iconVariants: (props?: ({
8
8
  size?: "sm" | "lg" | "xl" | "xs" | "md" | "2xl" | "3xl" | null | undefined;
9
- weight?: "fill" | "bold" | "light" | "thin" | "regular" | "duotone" | null | undefined;
10
- color?: "error" | "secondary" | "success" | "current" | "warning" | "muted" | "primary" | null | undefined;
9
+ weight?: "light" | "fill" | "bold" | "thin" | "regular" | "duotone" | null | undefined;
10
+ color?: "secondary" | "success" | "error" | "current" | "warning" | "muted" | "primary" | null | undefined;
11
11
  } & class_variance_authority_types.ClassProp) | undefined) => string;
12
12
  interface IconProps extends Omit<React__default.HTMLAttributes<SVGSVGElement>, "color">, VariantProps<typeof iconVariants> {
13
13
  name: IconName;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const inputVariants: (props?: ({
6
- variant?: "error" | "default" | "subtle" | "success" | null | undefined;
6
+ variant?: "default" | "subtle" | "success" | "error" | null | undefined;
7
7
  inputSize?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const inputVariants: (props?: ({
6
- variant?: "error" | "default" | "subtle" | "success" | null | undefined;
6
+ variant?: "default" | "subtle" | "success" | "error" | null | undefined;
7
7
  inputSize?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const labelVariants: (props?: ({
6
- variant?: "error" | "default" | "success" | "warning" | "info" | "muted" | null | undefined;
6
+ variant?: "default" | "success" | "error" | "warning" | "info" | "muted" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
9
9
  } & 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 labelVariants: (props?: ({
6
- variant?: "error" | "default" | "success" | "warning" | "info" | "muted" | null | undefined;
6
+ variant?: "default" | "success" | "error" | "warning" | "info" | "muted" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -7,7 +7,7 @@ declare const paginationVariants: (props?: ({
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const paginationItemVariants: (props?: ({
10
- variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
10
+ variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
11
11
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
13
  interface PaginationProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
@@ -7,7 +7,7 @@ declare const paginationVariants: (props?: ({
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  declare const paginationItemVariants: (props?: ({
10
- variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
10
+ variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
11
11
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
13
13
  interface PaginationProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
@@ -0,0 +1,3 @@
1
+ "use client";
2
+ 'use strict';var chunkE53C3RDD_cjs=require('../../chunk-E53C3RDD.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"Popover",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.b}});Object.defineProperty(exports,"PopoverAnchor",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.d}});Object.defineProperty(exports,"PopoverArrow",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.g}});Object.defineProperty(exports,"PopoverClose",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.e}});Object.defineProperty(exports,"PopoverContent",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.f}});Object.defineProperty(exports,"PopoverTrigger",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.c}});Object.defineProperty(exports,"popoverContentVariants",{enumerable:true,get:function(){return chunkE53C3RDD_cjs.a}});//# sourceMappingURL=popover.cjs.map
3
+ //# sourceMappingURL=popover.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"popover.cjs"}
@@ -0,0 +1,39 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ /**
7
+ * `@radix-ui/react-popover` was already a dependency - Calendar mounts its month
8
+ * grid in one - but it was never exposed, so a consumer wanting a popover had to
9
+ * add the package a second time and theme it themselves.
10
+ */
11
+ declare const popoverContentVariants: (props?: ({
12
+ size?: "default" | "sm" | "lg" | "auto" | null | undefined;
13
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
14
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
15
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
16
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
18
+ type PopoverContentBase = Omit<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "aria-label" | "aria-labelledby"> & VariantProps<typeof popoverContentVariants>;
19
+ /**
20
+ * An accessible name is required, not optional.
21
+ *
22
+ * Radix gives the content `role="dialog"`, and a dialog without a name is an
23
+ * `aria-dialog-name` violation - axe flags it, and a screen reader announces
24
+ * "dialog" and nothing else. It is not something a default can solve, because a
25
+ * generic "Popover" label is worse than useless. So the type asks for one of the
26
+ * two ways to supply it, which turns a runtime audit finding into a compile
27
+ * error.
28
+ */
29
+ type PopoverContentProps = PopoverContentBase & ({
30
+ "aria-label": string;
31
+ "aria-labelledby"?: never;
32
+ } | {
33
+ "aria-labelledby": string;
34
+ "aria-label"?: never;
35
+ });
36
+ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
37
+ declare const PopoverArrow: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
38
+
39
+ export { Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, type PopoverContentProps, PopoverTrigger, popoverContentVariants };