@payglocal_ui/flux-ui 0.3.4 → 0.3.5
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/index.cjs +172 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +171 -81
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/alert.tsx +2 -1
- package/src/button-group.tsx +7 -5
- package/src/button.tsx +5 -4
- package/src/calendar.tsx +5 -2
- package/src/card.tsx +4 -1
- package/src/chart-templates.tsx +9 -7
- package/src/checkbox-select.tsx +9 -4
- package/src/checkbox.tsx +3 -1
- package/src/command.tsx +2 -1
- package/src/country-select.tsx +5 -2
- package/src/data-table.tsx +4 -2
- package/src/date-picker.tsx +9 -4
- package/src/dialog.tsx +3 -1
- package/src/drawer.tsx +2 -1
- package/src/dropdown-menu.tsx +5 -2
- package/src/elevation.ts +54 -0
- package/src/flag.tsx +3 -1
- package/src/icon-button.tsx +5 -4
- package/src/index.ts +1 -0
- package/src/inline-dialog.tsx +3 -1
- package/src/inline-edit.tsx +3 -1
- package/src/input-group.tsx +3 -1
- package/src/input.tsx +3 -1
- package/src/otp-input.tsx +3 -1
- package/src/pagination.tsx +2 -1
- package/src/popover.tsx +3 -1
- package/src/radio-group.tsx +3 -1
- package/src/section-message.tsx +3 -1
- package/src/select.tsx +5 -2
- package/src/single-select.tsx +7 -3
- package/src/skeleton.tsx +7 -1
- package/src/slider.tsx +5 -1
- package/src/sonner.tsx +2 -1
- package/src/spotlight.tsx +2 -1
- package/src/switch.tsx +3 -1
- package/src/textarea.tsx +3 -1
- package/src/time-picker.tsx +5 -2
- package/src/tooltip.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -7,6 +7,42 @@ function cn(...inputs) {
|
|
|
7
7
|
return twMerge(clsx(inputs));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
// src/elevation.ts
|
|
11
|
+
var elevation = {
|
|
12
|
+
/**
|
|
13
|
+
* Flat surfaces that sit ON the page and are delineated by their border:
|
|
14
|
+
* Card, chart surfaces, DataTableCard, Alert, SectionMessage, Skeleton.
|
|
15
|
+
* This is the shadow on the mca-home revenue card, and the reference the
|
|
16
|
+
* rest of the library was pulled onto.
|
|
17
|
+
*/
|
|
18
|
+
surface: "shadow-sm",
|
|
19
|
+
/**
|
|
20
|
+
* Button-shaped things: Button, IconButton, ButtonGroup segments, the
|
|
21
|
+
* pagination page buttons, a table's row CTA. Just enough lift to read as
|
|
22
|
+
* pressable. Ghost and link variants stay flat and do not use this.
|
|
23
|
+
*/
|
|
24
|
+
control: "shadow-sm",
|
|
25
|
+
/**
|
|
26
|
+
* Anything you type into or pick from: Input, Textarea, every select
|
|
27
|
+
* trigger, the date and time pickers, OTP boxes, Checkbox, Radio.
|
|
28
|
+
*
|
|
29
|
+
* Deliberately flat. A field is a well, not a raised object, and a form of
|
|
30
|
+
* ten shadowed controls reads as clutter. Emitted as an explicit
|
|
31
|
+
* `shadow-none` rather than by omitting the class so that a caller passing
|
|
32
|
+
* `shadow-sm` through `className` still wins under tailwind-merge.
|
|
33
|
+
*/
|
|
34
|
+
field: "shadow-none",
|
|
35
|
+
/**
|
|
36
|
+
* Things that genuinely float above the page, where depth is the signal that
|
|
37
|
+
* says "this is detached and dismissible". Kept heavier than `surface` on
|
|
38
|
+
* purpose — flattening these is what makes a dropdown look painted on.
|
|
39
|
+
*/
|
|
40
|
+
tooltip: "shadow-md",
|
|
41
|
+
popover: "shadow-lg",
|
|
42
|
+
drawer: "shadow-xl",
|
|
43
|
+
modal: "shadow-2xl"
|
|
44
|
+
};
|
|
45
|
+
|
|
10
46
|
// src/layout.tsx
|
|
11
47
|
import { jsx } from "react/jsx-runtime";
|
|
12
48
|
var gapClass = {
|
|
@@ -259,11 +295,11 @@ import { Loader2 } from "lucide-react";
|
|
|
259
295
|
import { forwardRef as forwardRef2 } from "react";
|
|
260
296
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
261
297
|
var variantClasses = {
|
|
262
|
-
primary:
|
|
263
|
-
secondary:
|
|
298
|
+
primary: `bg-primary text-primary-foreground border border-primary ${elevation.control} hover:bg-[var(--primary-hover)]`,
|
|
299
|
+
secondary: `bg-muted text-foreground border border-border ${elevation.control} hover:bg-muted/85 dark:bg-muted/35 dark:text-foreground dark:border-border dark:hover:bg-muted/55`,
|
|
264
300
|
ghost: "bg-transparent text-foreground border border-transparent hover:bg-muted focus-visible:bg-muted/80 active:bg-muted/90",
|
|
265
|
-
danger:
|
|
266
|
-
outline:
|
|
301
|
+
danger: `bg-red-600 text-white border border-red-600 ${elevation.control} hover:bg-red-700`,
|
|
302
|
+
outline: `bg-card text-foreground border border-border ${elevation.control} hover:bg-muted`,
|
|
267
303
|
link: "h-auto min-h-0 rounded-md border border-transparent bg-transparent px-2 py-2 text-[15px] font-medium text-primary shadow-none underline-offset-4 hover:bg-primary/5 hover:underline focus-visible:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35 disabled:pointer-events-none disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:no-underline"
|
|
268
304
|
};
|
|
269
305
|
var sizes = {
|
|
@@ -429,11 +465,11 @@ var SplitButton = forwardRef3(
|
|
|
429
465
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
430
466
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
431
467
|
// Match variant styling
|
|
432
|
-
variant === "primary" &&
|
|
433
|
-
variant === "secondary" &&
|
|
434
|
-
variant === "outline" &&
|
|
468
|
+
variant === "primary" && `bg-primary text-primary-foreground border border-primary ${elevation.control} hover:bg-[var(--primary-hover)] border-l border-l-primary-foreground/20`,
|
|
469
|
+
variant === "secondary" && `bg-muted text-foreground border border-border ${elevation.control} hover:bg-muted/85 dark:bg-muted/35 dark:hover:bg-muted/55 border-l-0`,
|
|
470
|
+
variant === "outline" && `bg-card text-foreground border border-border ${elevation.control} hover:bg-muted border-l-0`,
|
|
435
471
|
variant === "ghost" && "bg-transparent text-foreground border border-transparent hover:bg-muted border-l-0",
|
|
436
|
-
variant === "danger" &&
|
|
472
|
+
variant === "danger" && `bg-red-600 text-white border border-red-600 ${elevation.control} hover:bg-red-700 border-l border-l-white/20`,
|
|
437
473
|
// Size heights to match Button
|
|
438
474
|
size === "sm" && "h-9 min-h-9 rounded-lg",
|
|
439
475
|
size === "md" && "h-10 min-h-10 rounded-lg",
|
|
@@ -457,7 +493,8 @@ var SplitButton = forwardRef3(
|
|
|
457
493
|
role: "menu",
|
|
458
494
|
className: cn(
|
|
459
495
|
"absolute right-0 top-full mt-1 z-50",
|
|
460
|
-
"bg-card border border-border rounded-lg
|
|
496
|
+
"bg-card border border-border rounded-lg py-1 min-w-32",
|
|
497
|
+
elevation.popover
|
|
461
498
|
),
|
|
462
499
|
children
|
|
463
500
|
}
|
|
@@ -501,7 +538,8 @@ var Input = React2.forwardRef(
|
|
|
501
538
|
{
|
|
502
539
|
type,
|
|
503
540
|
className: cn(
|
|
504
|
-
"flex h-11 min-h-11 w-full rounded-lg border border-border bg-card px-4 py-2 text-[15px] leading-tight
|
|
541
|
+
"flex h-11 min-h-11 w-full rounded-lg border border-border bg-card px-4 py-2 text-[15px] leading-tight transition-colors",
|
|
542
|
+
elevation.field,
|
|
505
543
|
"file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground",
|
|
506
544
|
"placeholder:text-muted-foreground",
|
|
507
545
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -635,7 +673,8 @@ function OtpInput({
|
|
|
635
673
|
onKeyDown: (e) => handleKeyDown(i, e),
|
|
636
674
|
onPaste: handlePaste,
|
|
637
675
|
className: cn(
|
|
638
|
-
"h-12 w-11 rounded-lg border bg-card text-center text-lg font-semibold text-foreground
|
|
676
|
+
"h-12 w-11 rounded-lg border bg-card text-center text-lg font-semibold text-foreground transition-colors",
|
|
677
|
+
elevation.field,
|
|
639
678
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35 focus-visible:border-primary",
|
|
640
679
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
641
680
|
invalid ? "border-destructive ring-destructive/20" : "border-input"
|
|
@@ -739,7 +778,8 @@ var CheckboxSelect = React6.forwardRef(
|
|
|
739
778
|
"aria-expanded": open,
|
|
740
779
|
"aria-haspopup": "listbox",
|
|
741
780
|
className: cn(
|
|
742
|
-
"flex h-11 w-full items-center justify-between gap-2.5 rounded-lg border border-border bg-card px-4 py-2 text-[15px]
|
|
781
|
+
"flex h-11 w-full items-center justify-between gap-2.5 rounded-lg border border-border bg-card px-4 py-2 text-[15px] outline-none",
|
|
782
|
+
elevation.field,
|
|
743
783
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
744
784
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
745
785
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -767,7 +807,8 @@ var CheckboxSelect = React6.forwardRef(
|
|
|
767
807
|
sideOffset: 6,
|
|
768
808
|
collisionPadding: 8,
|
|
769
809
|
className: cn(
|
|
770
|
-
"z-[120] min-w-[var(--radix-popover-trigger-width)] w-full rounded-xl border border-border bg-popover text-popover-foreground
|
|
810
|
+
"z-[120] min-w-[var(--radix-popover-trigger-width)] w-full rounded-xl border border-border bg-popover text-popover-foreground outline-none p-1",
|
|
811
|
+
elevation.popover,
|
|
771
812
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150"
|
|
772
813
|
),
|
|
773
814
|
children: [
|
|
@@ -782,7 +823,8 @@ var CheckboxSelect = React6.forwardRef(
|
|
|
782
823
|
placeholder: searchPlaceholder,
|
|
783
824
|
"aria-label": searchPlaceholder,
|
|
784
825
|
className: cn(
|
|
785
|
-
"flex h-9 w-full rounded-md border border-border bg-card pl-8 pr-3 text-sm
|
|
826
|
+
"flex h-9 w-full rounded-md border border-border bg-card pl-8 pr-3 text-sm placeholder:text-muted-foreground",
|
|
827
|
+
elevation.field,
|
|
786
828
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
787
829
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35"
|
|
788
830
|
)
|
|
@@ -836,7 +878,8 @@ var CheckboxSelect = React6.forwardRef(
|
|
|
836
878
|
onCheckedChange: () => !option.disabled && handleToggle(option.value),
|
|
837
879
|
onClick: (e) => e.stopPropagation(),
|
|
838
880
|
className: cn(
|
|
839
|
-
"peer h-4 w-4 shrink-0 rounded-md border border-border bg-card
|
|
881
|
+
"peer h-4 w-4 shrink-0 rounded-md border border-border bg-card",
|
|
882
|
+
elevation.field,
|
|
840
883
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
841
884
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
842
885
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -924,7 +967,8 @@ var SingleSelect = React7.forwardRef(
|
|
|
924
967
|
"aria-haspopup": "listbox",
|
|
925
968
|
"aria-invalid": invalid || void 0,
|
|
926
969
|
className: cn(
|
|
927
|
-
"flex h-11 w-full items-center justify-between gap-2.5 rounded-lg border border-border bg-card px-4 py-2 text-[15px]
|
|
970
|
+
"flex h-11 w-full items-center justify-between gap-2.5 rounded-lg border border-border bg-card px-4 py-2 text-[15px] outline-none",
|
|
971
|
+
elevation.field,
|
|
928
972
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
929
973
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
930
974
|
"aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/25 dark:aria-invalid:ring-destructive/40",
|
|
@@ -956,7 +1000,8 @@ var SingleSelect = React7.forwardRef(
|
|
|
956
1000
|
sideOffset: 6,
|
|
957
1001
|
collisionPadding: 8,
|
|
958
1002
|
className: cn(
|
|
959
|
-
"z-[120] min-w-[var(--radix-popover-trigger-width)] w-full rounded-xl border border-border bg-popover text-popover-foreground
|
|
1003
|
+
"z-[120] min-w-[var(--radix-popover-trigger-width)] w-full rounded-xl border border-border bg-popover text-popover-foreground outline-none p-1",
|
|
1004
|
+
elevation.popover,
|
|
960
1005
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150"
|
|
961
1006
|
),
|
|
962
1007
|
children: [
|
|
@@ -971,7 +1016,8 @@ var SingleSelect = React7.forwardRef(
|
|
|
971
1016
|
placeholder: searchPlaceholder,
|
|
972
1017
|
"aria-label": searchPlaceholder,
|
|
973
1018
|
className: cn(
|
|
974
|
-
"flex h-9 w-full rounded-md border border-border bg-card pl-8 pr-3 text-sm
|
|
1019
|
+
"flex h-9 w-full rounded-md border border-border bg-card pl-8 pr-3 text-sm placeholder:text-muted-foreground",
|
|
1020
|
+
elevation.field,
|
|
975
1021
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
976
1022
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35"
|
|
977
1023
|
)
|
|
@@ -1040,7 +1086,8 @@ var Textarea = React8.forwardRef(
|
|
|
1040
1086
|
"textarea",
|
|
1041
1087
|
{
|
|
1042
1088
|
className: cn(
|
|
1043
|
-
"flex min-h-[5.5rem] w-full rounded-lg border border-border bg-card px-4 py-3 text-[15px] leading-relaxed
|
|
1089
|
+
"flex min-h-[5.5rem] w-full rounded-lg border border-border bg-card px-4 py-3 text-[15px] leading-relaxed transition-colors",
|
|
1090
|
+
elevation.field,
|
|
1044
1091
|
"placeholder:text-muted-foreground",
|
|
1045
1092
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
1046
1093
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -1086,7 +1133,8 @@ var Checkbox = React10.forwardRef(({ className, size = "md", ...props }, ref) =>
|
|
|
1086
1133
|
{
|
|
1087
1134
|
ref,
|
|
1088
1135
|
className: cn(
|
|
1089
|
-
"peer shrink-0 border border-border bg-card
|
|
1136
|
+
"peer shrink-0 border border-border bg-card transition-colors duration-pg-fast ease-pg-standard",
|
|
1137
|
+
elevation.field,
|
|
1090
1138
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
1091
1139
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1092
1140
|
"data-[state=checked]:bg-primary data-[state=checked]:border-primary",
|
|
@@ -1118,7 +1166,8 @@ var RadioGroupItem = React11.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1118
1166
|
{
|
|
1119
1167
|
ref,
|
|
1120
1168
|
className: cn(
|
|
1121
|
-
"size-4 shrink-0 rounded-full border border-border bg-card
|
|
1169
|
+
"size-4 shrink-0 rounded-full border border-border bg-card",
|
|
1170
|
+
elevation.field,
|
|
1122
1171
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
1123
1172
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
1124
1173
|
"data-[state=checked]:border-primary",
|
|
@@ -1160,7 +1209,8 @@ var switchRootVariants = cva2(
|
|
|
1160
1209
|
);
|
|
1161
1210
|
var switchThumbVariants = cva2(
|
|
1162
1211
|
[
|
|
1163
|
-
"pointer-events-none block rounded-full bg-white
|
|
1212
|
+
"pointer-events-none block rounded-full bg-white",
|
|
1213
|
+
elevation.control,
|
|
1164
1214
|
"transition-transform duration-pg-fast ease-pg-standard",
|
|
1165
1215
|
"ring-0"
|
|
1166
1216
|
],
|
|
@@ -1201,7 +1251,10 @@ var Slider = React13.forwardRef(
|
|
|
1201
1251
|
...props,
|
|
1202
1252
|
children: [
|
|
1203
1253
|
/* @__PURE__ */ jsx16(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-muted", children: /* @__PURE__ */ jsx16(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
1204
|
-
/* @__PURE__ */ jsx16(SliderPrimitive.Thumb, { className:
|
|
1254
|
+
/* @__PURE__ */ jsx16(SliderPrimitive.Thumb, { className: cn(
|
|
1255
|
+
"block h-[18px] w-[18px] rounded-full border-2 border-primary bg-card transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35 disabled:pointer-events-none disabled:opacity-50",
|
|
1256
|
+
elevation.control
|
|
1257
|
+
) })
|
|
1205
1258
|
]
|
|
1206
1259
|
}
|
|
1207
1260
|
)
|
|
@@ -1539,7 +1592,8 @@ function InputGroup({ className, ...props }) {
|
|
|
1539
1592
|
"data-slot": "input-group",
|
|
1540
1593
|
role: "group",
|
|
1541
1594
|
className: cn(
|
|
1542
|
-
"group/input-group relative flex w-full items-stretch rounded-xl border border-border bg-card
|
|
1595
|
+
"group/input-group relative flex w-full items-stretch rounded-xl border border-border bg-card outline-none transition-[color,box-shadow] dark:bg-card/50",
|
|
1596
|
+
elevation.field,
|
|
1543
1597
|
"min-h-11 h-11 has-[>textarea]:h-auto",
|
|
1544
1598
|
"has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
1545
1599
|
"has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
@@ -1723,17 +1777,20 @@ function CurrencyAmountInput({
|
|
|
1723
1777
|
// src/card.tsx
|
|
1724
1778
|
import { cva as cva5 } from "class-variance-authority";
|
|
1725
1779
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1726
|
-
var cardVariants = cva5(
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1780
|
+
var cardVariants = cva5(
|
|
1781
|
+
cn("flex flex-col rounded-xl border border-border bg-card text-card-foreground", elevation.surface),
|
|
1782
|
+
{
|
|
1783
|
+
variants: {
|
|
1784
|
+
size: {
|
|
1785
|
+
default: "gap-10 px-10 py-10",
|
|
1786
|
+
sm: "gap-6 px-7 py-7"
|
|
1787
|
+
}
|
|
1788
|
+
},
|
|
1789
|
+
defaultVariants: {
|
|
1790
|
+
size: "default"
|
|
1731
1791
|
}
|
|
1732
|
-
},
|
|
1733
|
-
defaultVariants: {
|
|
1734
|
-
size: "default"
|
|
1735
1792
|
}
|
|
1736
|
-
|
|
1793
|
+
);
|
|
1737
1794
|
function Card({
|
|
1738
1795
|
className,
|
|
1739
1796
|
size,
|
|
@@ -2126,7 +2183,7 @@ var PaginationLink = forwardRef19(
|
|
|
2126
2183
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
2127
2184
|
"cursor-pointer select-none",
|
|
2128
2185
|
// active
|
|
2129
|
-
isActive ?
|
|
2186
|
+
isActive ? `bg-primary text-primary-foreground border-primary ${elevation.control}` : "text-muted-foreground border-border hover:bg-muted hover:text-foreground",
|
|
2130
2187
|
className
|
|
2131
2188
|
),
|
|
2132
2189
|
...props
|
|
@@ -2678,7 +2735,7 @@ import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs17 } from "react/jsx-r
|
|
|
2678
2735
|
var SpotlightCard = React25.forwardRef(
|
|
2679
2736
|
({ title, body, image, currentStep, totalSteps, onNext, onBack, onDismiss, nextLabel, className }, ref) => {
|
|
2680
2737
|
const isLast = currentStep !== void 0 && totalSteps !== void 0 && currentStep >= totalSteps - 1;
|
|
2681
|
-
return /* @__PURE__ */ jsxs17("div", { ref, className: cn("bg-card border border-border rounded-xl
|
|
2738
|
+
return /* @__PURE__ */ jsxs17("div", { ref, className: cn("bg-card border border-border rounded-xl p-5 w-72", elevation.surface, className), children: [
|
|
2682
2739
|
onDismiss && /* @__PURE__ */ jsx33(
|
|
2683
2740
|
"button",
|
|
2684
2741
|
{
|
|
@@ -2808,7 +2865,8 @@ function DialogContent({
|
|
|
2808
2865
|
"fixed left-1/2 top-1/2 z-[101] w-[calc(100%-1.5rem)] max-w-[min(100%,26rem)] -translate-x-1/2 -translate-y-1/2",
|
|
2809
2866
|
// Default padding reserves space for the close button.
|
|
2810
2867
|
// Pass p-0 in className to opt out (manage padding per section).
|
|
2811
|
-
"rounded-2xl border border-border bg-card p-6 pt-10 text-card-foreground
|
|
2868
|
+
"rounded-2xl border border-border bg-card p-6 pt-10 text-card-foreground outline-none",
|
|
2869
|
+
elevation.modal,
|
|
2812
2870
|
"max-h-[min(90vh,720px)] overflow-y-auto",
|
|
2813
2871
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 data-[state=open]:scale-100 data-[state=closed]:scale-[0.98]",
|
|
2814
2872
|
"transition-[opacity,transform] duration-200 ease-out",
|
|
@@ -2876,7 +2934,7 @@ var DrawerContent = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
2876
2934
|
DialogPrimitive2.Content,
|
|
2877
2935
|
{
|
|
2878
2936
|
ref,
|
|
2879
|
-
className: cn("fixed z-50 flex flex-col bg-card border-border
|
|
2937
|
+
className: cn(elevation.drawer, "fixed z-50 flex flex-col bg-card border-border transition-all duration-pg-normal ease-pg-standard data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200", sideClasses[side], className),
|
|
2880
2938
|
...props,
|
|
2881
2939
|
children: [
|
|
2882
2940
|
children,
|
|
@@ -2918,7 +2976,8 @@ var PopoverContent = React27.forwardRef(({ className, align = "center", sideOffs
|
|
|
2918
2976
|
sideOffset,
|
|
2919
2977
|
collisionPadding,
|
|
2920
2978
|
className: cn(
|
|
2921
|
-
"z-[120] w-72 rounded-xl border border-border bg-popover p-4 text-popover-foreground
|
|
2979
|
+
"z-[120] w-72 rounded-xl border border-border bg-popover p-4 text-popover-foreground outline-none",
|
|
2980
|
+
elevation.popover,
|
|
2922
2981
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150",
|
|
2923
2982
|
className
|
|
2924
2983
|
),
|
|
@@ -2940,7 +2999,8 @@ var TooltipContent = React28.forwardRef(({ className, sideOffset = 6, ...props }
|
|
|
2940
2999
|
ref,
|
|
2941
3000
|
sideOffset,
|
|
2942
3001
|
className: cn(
|
|
2943
|
-
"z-[130] max-w-xs overflow-hidden rounded-lg border border-border bg-popover px-3 py-2 text-sm leading-snug text-popover-foreground
|
|
3002
|
+
"z-[130] max-w-xs overflow-hidden rounded-lg border border-border bg-popover px-3 py-2 text-sm leading-snug text-popover-foreground",
|
|
3003
|
+
elevation.tooltip,
|
|
2944
3004
|
className
|
|
2945
3005
|
),
|
|
2946
3006
|
...props
|
|
@@ -3071,7 +3131,8 @@ var DropdownMenuSubContent = React29.forwardRef(({ className, ...props }, ref) =
|
|
|
3071
3131
|
{
|
|
3072
3132
|
ref,
|
|
3073
3133
|
className: cn(
|
|
3074
|
-
"z-[130] min-w-[8rem] overflow-hidden rounded-xl border border-border bg-popover p-1.5 text-popover-foreground
|
|
3134
|
+
"z-[130] min-w-[8rem] overflow-hidden rounded-xl border border-border bg-popover p-1.5 text-popover-foreground",
|
|
3135
|
+
elevation.popover,
|
|
3075
3136
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150",
|
|
3076
3137
|
className
|
|
3077
3138
|
),
|
|
@@ -3085,7 +3146,8 @@ var DropdownMenuContent = React29.forwardRef(({ className, sideOffset = 8, ...pr
|
|
|
3085
3146
|
ref,
|
|
3086
3147
|
sideOffset,
|
|
3087
3148
|
className: cn(
|
|
3088
|
-
"z-[130] min-w-[11rem] overflow-hidden rounded-xl border border-border bg-popover p-1.5 text-popover-foreground
|
|
3149
|
+
"z-[130] min-w-[11rem] overflow-hidden rounded-xl border border-border bg-popover p-1.5 text-popover-foreground",
|
|
3150
|
+
elevation.popover,
|
|
3089
3151
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150",
|
|
3090
3152
|
className
|
|
3091
3153
|
),
|
|
@@ -3181,7 +3243,8 @@ var SelectTrigger = React30.forwardRef(({ className, children, size = "md", ...p
|
|
|
3181
3243
|
{
|
|
3182
3244
|
ref,
|
|
3183
3245
|
className: cn(
|
|
3184
|
-
"flex w-full items-center justify-between rounded-lg border border-border bg-card text-foreground
|
|
3246
|
+
"flex w-full items-center justify-between rounded-lg border border-border bg-card text-foreground outline-none",
|
|
3247
|
+
elevation.field,
|
|
3185
3248
|
selectTriggerSizes[size],
|
|
3186
3249
|
"ring-ring/50 focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
3187
3250
|
"[&>span]:line-clamp-1",
|
|
@@ -3220,7 +3283,8 @@ var SelectContent = React30.forwardRef(({ className, children, position = "poppe
|
|
|
3220
3283
|
{
|
|
3221
3284
|
ref,
|
|
3222
3285
|
className: cn(
|
|
3223
|
-
"relative z-[120] max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground
|
|
3286
|
+
"relative z-[120] max-h-[min(24rem,var(--radix-select-content-available-height))] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground",
|
|
3287
|
+
elevation.popover,
|
|
3224
3288
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150",
|
|
3225
3289
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
3226
3290
|
className
|
|
@@ -3270,7 +3334,7 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
|
3270
3334
|
import * as React31 from "react";
|
|
3271
3335
|
import { Search as Search3 } from "lucide-react";
|
|
3272
3336
|
import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3273
|
-
var Command = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41("div", { ref, className: cn("bg-card rounded-xl border border-border
|
|
3337
|
+
var Command = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx41("div", { ref, className: cn("bg-card rounded-xl border border-border overflow-hidden", elevation.popover, className), ...props }));
|
|
3274
3338
|
Command.displayName = "Command";
|
|
3275
3339
|
var CommandInput = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 border-b border-border px-3 h-11", children: [
|
|
3276
3340
|
/* @__PURE__ */ jsx41(Search3, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": true }),
|
|
@@ -3527,7 +3591,7 @@ var Alert = React34.forwardRef(
|
|
|
3527
3591
|
{
|
|
3528
3592
|
ref,
|
|
3529
3593
|
role: "alert",
|
|
3530
|
-
className: cn("relative flex gap-3 rounded-xl border p-4
|
|
3594
|
+
className: cn("relative flex gap-3 rounded-xl border p-4", elevation.surface, variantStyles[variant], className),
|
|
3531
3595
|
...props,
|
|
3532
3596
|
children: [
|
|
3533
3597
|
/* @__PURE__ */ jsx45(Icon2, { className: "mt-0.5 size-4 shrink-0", "aria-hidden": true }),
|
|
@@ -3673,7 +3737,8 @@ var SectionMessage = React36.forwardRef(
|
|
|
3673
3737
|
ref,
|
|
3674
3738
|
role: "region",
|
|
3675
3739
|
className: cn(
|
|
3676
|
-
"flex w-full gap-4 rounded-xl border border-l-4 border-border p-5
|
|
3740
|
+
"flex w-full gap-4 rounded-xl border border-l-4 border-border p-5 transition-colors duration-pg-fast ease-pg-standard",
|
|
3741
|
+
elevation.surface,
|
|
3677
3742
|
config.border,
|
|
3678
3743
|
config.bg,
|
|
3679
3744
|
className
|
|
@@ -3835,14 +3900,23 @@ function Shimmer({ className, rounded = "md" }) {
|
|
|
3835
3900
|
return /* @__PURE__ */ jsx50("div", { className: cn("shimmer", r, className) });
|
|
3836
3901
|
}
|
|
3837
3902
|
function StatCardSkeleton() {
|
|
3838
|
-
return /* @__PURE__ */ jsxs30(
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3903
|
+
return /* @__PURE__ */ jsxs30(
|
|
3904
|
+
"div",
|
|
3905
|
+
{
|
|
3906
|
+
className: cn(
|
|
3907
|
+
"bg-card text-card-foreground rounded-xl p-5 flex flex-col gap-3 border border-border",
|
|
3908
|
+
elevation.surface
|
|
3909
|
+
),
|
|
3910
|
+
children: [
|
|
3911
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex items-center justify-between", children: [
|
|
3912
|
+
/* @__PURE__ */ jsx50(Shimmer, { className: "h-3 w-28" }),
|
|
3913
|
+
/* @__PURE__ */ jsx50(Shimmer, { className: "h-10 w-10", rounded: "full" })
|
|
3914
|
+
] }),
|
|
3915
|
+
/* @__PURE__ */ jsx50(Shimmer, { className: "h-9 w-44 mt-1" }),
|
|
3916
|
+
/* @__PURE__ */ jsx50(Shimmer, { className: "h-3 w-32" })
|
|
3917
|
+
]
|
|
3918
|
+
}
|
|
3919
|
+
);
|
|
3846
3920
|
}
|
|
3847
3921
|
function TableRowSkeleton({
|
|
3848
3922
|
cols = 6,
|
|
@@ -4383,7 +4457,8 @@ function DataTable({
|
|
|
4383
4457
|
type: "button",
|
|
4384
4458
|
onClick: () => rowCta?.onClick?.(row),
|
|
4385
4459
|
className: cn(
|
|
4386
|
-
"inline-flex items-center font-medium text-foreground bg-card rounded-lg border border-border hover:border-muted-foreground/50 whitespace-nowrap
|
|
4460
|
+
"inline-flex items-center font-medium text-foreground bg-card rounded-lg border border-border hover:border-muted-foreground/50 whitespace-nowrap",
|
|
4461
|
+
elevation.control,
|
|
4387
4462
|
compact ? "px-2.5 py-1 text-[11px]" : "px-3 py-1.5 text-[12px]"
|
|
4388
4463
|
),
|
|
4389
4464
|
children: rowCta?.label
|
|
@@ -4458,7 +4533,7 @@ function DataTable({
|
|
|
4458
4533
|
}
|
|
4459
4534
|
var PAGE_BUTTON = "w-7 h-7 rounded-md flex items-center justify-center text-[12px] font-medium tabular-nums transition-colors";
|
|
4460
4535
|
var PAGE_BUTTON_IDLE = "text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-30 disabled:cursor-not-allowed";
|
|
4461
|
-
var PAGE_BUTTON_ACTIVE =
|
|
4536
|
+
var PAGE_BUTTON_ACTIVE = `bg-primary text-primary-foreground ${elevation.control}`;
|
|
4462
4537
|
function DataTableFooter({
|
|
4463
4538
|
pad: pad3,
|
|
4464
4539
|
summary,
|
|
@@ -5711,7 +5786,8 @@ function navButtonClasses(variant) {
|
|
|
5711
5786
|
case "outline":
|
|
5712
5787
|
return cn(
|
|
5713
5788
|
base,
|
|
5714
|
-
|
|
5789
|
+
elevation.control,
|
|
5790
|
+
"border-border bg-card text-foreground hover:bg-muted"
|
|
5715
5791
|
);
|
|
5716
5792
|
case "ghost":
|
|
5717
5793
|
default:
|
|
@@ -5783,7 +5859,8 @@ function Calendar({
|
|
|
5783
5859
|
defaultClassNames.dropdowns
|
|
5784
5860
|
),
|
|
5785
5861
|
dropdown_root: cn(
|
|
5786
|
-
"relative rounded-md border border-border bg-card
|
|
5862
|
+
"relative rounded-md border border-border bg-card focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/35",
|
|
5863
|
+
elevation.field,
|
|
5787
5864
|
defaultClassNames.dropdown_root
|
|
5788
5865
|
),
|
|
5789
5866
|
dropdown: cn("absolute inset-0 cursor-pointer opacity-0", defaultClassNames.dropdown),
|
|
@@ -6210,7 +6287,7 @@ function DatePicker({ value, onChange, placeholder = "Select date", className, m
|
|
|
6210
6287
|
animate: { opacity: 1, y: 0 },
|
|
6211
6288
|
exit: { opacity: 0, y: -4 },
|
|
6212
6289
|
transition: { duration: 0.12 },
|
|
6213
|
-
className:
|
|
6290
|
+
className: `absolute top-full left-0 z-[10000] mt-1 max-h-[220px] min-w-[130px] overflow-y-auto rounded-xl border border-border bg-popover py-1 ${elevation.popover}`,
|
|
6214
6291
|
children: MONTHS.map((mn, mi) => /* @__PURE__ */ jsx64(
|
|
6215
6292
|
"button",
|
|
6216
6293
|
{
|
|
@@ -6251,7 +6328,7 @@ function DatePicker({ value, onChange, placeholder = "Select date", className, m
|
|
|
6251
6328
|
animate: { opacity: 1, y: 0 },
|
|
6252
6329
|
exit: { opacity: 0, y: -4 },
|
|
6253
6330
|
transition: { duration: 0.12 },
|
|
6254
|
-
className:
|
|
6331
|
+
className: `absolute top-full left-0 z-[10000] mt-1 max-h-[200px] min-w-[90px] overflow-y-auto rounded-xl border border-border bg-popover py-1 ${elevation.popover}`,
|
|
6255
6332
|
children: years.map((yr) => /* @__PURE__ */ jsx64(
|
|
6256
6333
|
"button",
|
|
6257
6334
|
{
|
|
@@ -6371,7 +6448,10 @@ function DatePicker({ value, onChange, placeholder = "Select date", className, m
|
|
|
6371
6448
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
6372
6449
|
exit: { opacity: 0, scale: 0.97, y: -6 },
|
|
6373
6450
|
transition: { duration: 0.16, ease: [0.16, 1, 0.3, 1] },
|
|
6374
|
-
className:
|
|
6451
|
+
className: cn(
|
|
6452
|
+
"isolate rounded-2xl border border-border bg-popover text-popover-foreground select-none dark:shadow-black/40",
|
|
6453
|
+
elevation.popover
|
|
6454
|
+
),
|
|
6375
6455
|
style: {
|
|
6376
6456
|
position: "fixed",
|
|
6377
6457
|
top: panelPos.top,
|
|
@@ -6402,7 +6482,8 @@ function DatePicker({ value, onChange, placeholder = "Select date", className, m
|
|
|
6402
6482
|
type: "button",
|
|
6403
6483
|
onClick: () => open ? closePanel() : openPanel(),
|
|
6404
6484
|
className: cn(
|
|
6405
|
-
"flex h-12 min-h-12 w-full items-center gap-3 rounded-xl border border-border bg-card px-5 text-left text-[15px]
|
|
6485
|
+
"flex h-12 min-h-12 w-full items-center gap-3 rounded-xl border border-border bg-card px-5 text-left text-[15px] transition-colors",
|
|
6486
|
+
elevation.field,
|
|
6406
6487
|
open ? "border-ring ring-2 ring-ring/20" : "hover:border-muted-foreground/45"
|
|
6407
6488
|
),
|
|
6408
6489
|
children: [
|
|
@@ -6701,7 +6782,8 @@ function MetricSparklineCard({
|
|
|
6701
6782
|
"div",
|
|
6702
6783
|
{
|
|
6703
6784
|
className: cn(
|
|
6704
|
-
"relative overflow-hidden rounded-xl border border-border bg-card p-5 text-card-foreground
|
|
6785
|
+
"relative overflow-hidden rounded-xl border border-border bg-card p-5 text-card-foreground",
|
|
6786
|
+
elevation.surface,
|
|
6705
6787
|
className
|
|
6706
6788
|
),
|
|
6707
6789
|
children: [
|
|
@@ -6764,7 +6846,7 @@ function DashboardAreaChartTemplate({
|
|
|
6764
6846
|
className
|
|
6765
6847
|
}) {
|
|
6766
6848
|
const areaGid = React44.useId().replace(/:/g, "");
|
|
6767
|
-
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card text-card-foreground
|
|
6849
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card text-card-foreground", elevation.surface, className), children: [
|
|
6768
6850
|
/* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-4 border-b border-border px-5 pt-4 pb-3 sm:flex-row sm:items-start sm:justify-between", children: [
|
|
6769
6851
|
/* @__PURE__ */ jsx66("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
6770
6852
|
/* @__PURE__ */ jsx66("div", { className: "flex flex-wrap gap-1 rounded-lg border border-border bg-muted/30 p-0.5", children: tabs.map((t) => /* @__PURE__ */ jsx66(
|
|
@@ -6861,7 +6943,7 @@ function GroupedBarChartTemplate({
|
|
|
6861
6943
|
formatYAxis = (v) => v >= 1e6 ? `${(v / 1e6).toFixed(1)}M` : v >= 1e3 ? `${(v / 1e3).toFixed(0)}K` : `${v}`,
|
|
6862
6944
|
className
|
|
6863
6945
|
}) {
|
|
6864
|
-
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card px-5 pt-4 pb-3 text-card-foreground
|
|
6946
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card px-5 pt-4 pb-3 text-card-foreground", elevation.surface, className), children: [
|
|
6865
6947
|
/* @__PURE__ */ jsxs44("div", { className: "mb-3 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
6866
6948
|
/* @__PURE__ */ jsxs44("div", { children: [
|
|
6867
6949
|
/* @__PURE__ */ jsx66("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
@@ -6909,7 +6991,7 @@ function RankedBarListTemplate({
|
|
|
6909
6991
|
barTo = "var(--chart-3)",
|
|
6910
6992
|
className
|
|
6911
6993
|
}) {
|
|
6912
|
-
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card p-5 text-card-foreground
|
|
6994
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card p-5 text-card-foreground", elevation.surface, className), children: [
|
|
6913
6995
|
/* @__PURE__ */ jsxs44("div", { className: "mb-4 flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between", children: [
|
|
6914
6996
|
/* @__PURE__ */ jsxs44("div", { children: [
|
|
6915
6997
|
/* @__PURE__ */ jsx66("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
@@ -6946,7 +7028,7 @@ function CategoryBarChartTemplate({
|
|
|
6946
7028
|
className
|
|
6947
7029
|
}) {
|
|
6948
7030
|
const chartData = data.map((d) => ({ name: d.category, v: d.value }));
|
|
6949
|
-
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card px-5 pt-4 pb-3 text-card-foreground
|
|
7031
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card px-5 pt-4 pb-3 text-card-foreground", elevation.surface, className), children: [
|
|
6950
7032
|
/* @__PURE__ */ jsxs44("div", { className: "mb-3", children: [
|
|
6951
7033
|
/* @__PURE__ */ jsx66("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
6952
7034
|
subtitle ? /* @__PURE__ */ jsx66("p", { className: "mt-0.5 text-xs text-muted-foreground", children: subtitle }) : null
|
|
@@ -6992,7 +7074,7 @@ function MiniSparklineChartCard({
|
|
|
6992
7074
|
}) {
|
|
6993
7075
|
const gid = React44.useId().replace(/:/g, "");
|
|
6994
7076
|
const hasCompare = data.some((d) => d.compare != null);
|
|
6995
|
-
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card p-5 text-card-foreground
|
|
7077
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card p-5 text-card-foreground", elevation.surface, className), children: [
|
|
6996
7078
|
/* @__PURE__ */ jsx66("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
6997
7079
|
/* @__PURE__ */ jsx66("div", { className: "mt-2 text-2xl font-semibold tabular-nums", children: value }),
|
|
6998
7080
|
/* @__PURE__ */ jsx66("div", { className: "mt-2", style: { height }, children: /* @__PURE__ */ jsx66(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs44(AreaChart, { data, margin: { top: 4, right: 8, left: 0, bottom: 0 }, children: [
|
|
@@ -7029,7 +7111,7 @@ var toneCls = {
|
|
|
7029
7111
|
danger: "text-red-600 dark:text-red-400"
|
|
7030
7112
|
};
|
|
7031
7113
|
function AttentionListTemplate({ title, items, className }) {
|
|
7032
|
-
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card p-5 text-card-foreground
|
|
7114
|
+
return /* @__PURE__ */ jsxs44("div", { className: cn("rounded-xl border border-border bg-card p-5 text-card-foreground", elevation.surface, className), children: [
|
|
7033
7115
|
/* @__PURE__ */ jsx66("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
7034
7116
|
/* @__PURE__ */ jsx66("ul", { className: "mt-4 space-y-4", children: items.map((item) => /* @__PURE__ */ jsxs44(
|
|
7035
7117
|
"li",
|
|
@@ -7080,7 +7162,7 @@ function Toaster({ theme, ...props }) {
|
|
|
7080
7162
|
position: "bottom-right",
|
|
7081
7163
|
toastOptions: {
|
|
7082
7164
|
classNames: {
|
|
7083
|
-
toast:
|
|
7165
|
+
toast: `bg-[var(--popover)] text-[var(--popover-foreground)] border-[var(--border)] ${elevation.popover} rounded-[10px] text-[13px]`,
|
|
7084
7166
|
description: "text-[var(--muted-foreground)]"
|
|
7085
7167
|
}
|
|
7086
7168
|
},
|
|
@@ -7159,7 +7241,8 @@ var InlineEdit = React45.forwardRef(
|
|
|
7159
7241
|
setEditing(true);
|
|
7160
7242
|
};
|
|
7161
7243
|
const sharedInputClass = cn(
|
|
7162
|
-
"w-full rounded-md border border-border bg-card px-2 py-1 text-[15px] leading-tight text-foreground
|
|
7244
|
+
"w-full rounded-md border border-border bg-card px-2 py-1 text-[15px] leading-tight text-foreground",
|
|
7245
|
+
elevation.field,
|
|
7163
7246
|
"placeholder:text-muted-foreground",
|
|
7164
7247
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
7165
7248
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
@@ -7326,7 +7409,8 @@ var InlineDialogContent = React46.forwardRef(
|
|
|
7326
7409
|
className: cn(
|
|
7327
7410
|
// Base card
|
|
7328
7411
|
"relative z-[120] max-w-xs overflow-visible",
|
|
7329
|
-
"rounded-xl border border-border bg-card p-4 text-foreground
|
|
7412
|
+
"rounded-xl border border-border bg-card p-4 text-foreground",
|
|
7413
|
+
elevation.popover,
|
|
7330
7414
|
// Animation
|
|
7331
7415
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0",
|
|
7332
7416
|
"transition-opacity duration-pg-fast ease-pg-standard",
|
|
@@ -7449,7 +7533,8 @@ var Flag = React47.forwardRef(
|
|
|
7449
7533
|
onMouseEnter: handleMouseEnter,
|
|
7450
7534
|
onMouseLeave: handleMouseLeave,
|
|
7451
7535
|
className: cn(
|
|
7452
|
-
"relative w-80 overflow-hidden rounded-xl border border-border bg-card
|
|
7536
|
+
"relative w-80 overflow-hidden rounded-xl border border-border bg-card",
|
|
7537
|
+
elevation.popover,
|
|
7453
7538
|
"border-l-4",
|
|
7454
7539
|
variantBorder[variant],
|
|
7455
7540
|
className
|
|
@@ -7790,7 +7875,8 @@ var CountrySelect = React49.forwardRef(
|
|
|
7790
7875
|
"aria-expanded": open,
|
|
7791
7876
|
"aria-haspopup": "listbox",
|
|
7792
7877
|
className: cn(
|
|
7793
|
-
"flex h-11 min-h-11 w-full items-center justify-between gap-2.5 rounded-lg border border-border bg-card px-4 text-[15px] text-foreground
|
|
7878
|
+
"flex h-11 min-h-11 w-full items-center justify-between gap-2.5 rounded-lg border border-border bg-card px-4 text-[15px] text-foreground",
|
|
7879
|
+
elevation.field,
|
|
7794
7880
|
"transition-colors duration-pg-fast ease-pg-standard",
|
|
7795
7881
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
7796
7882
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -7822,7 +7908,8 @@ var CountrySelect = React49.forwardRef(
|
|
|
7822
7908
|
align: "start",
|
|
7823
7909
|
sideOffset: 6,
|
|
7824
7910
|
className: cn(
|
|
7825
|
-
"z-[120] w-[var(--radix-popover-trigger-width)] min-w-[260px] rounded-xl border border-border bg-popover text-popover-foreground
|
|
7911
|
+
"z-[120] w-[var(--radix-popover-trigger-width)] min-w-[260px] rounded-xl border border-border bg-popover text-popover-foreground outline-none",
|
|
7912
|
+
elevation.popover,
|
|
7826
7913
|
"data-[state=open]:opacity-100 data-[state=closed]:opacity-0 transition-opacity duration-150"
|
|
7827
7914
|
),
|
|
7828
7915
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
@@ -7911,11 +7998,11 @@ import { Loader2 as Loader23 } from "lucide-react";
|
|
|
7911
7998
|
import { forwardRef as forwardRef51 } from "react";
|
|
7912
7999
|
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
7913
8000
|
var variantClasses4 = {
|
|
7914
|
-
primary:
|
|
7915
|
-
secondary:
|
|
8001
|
+
primary: `bg-primary text-primary-foreground border border-primary ${elevation.control} hover:bg-[var(--primary-hover)]`,
|
|
8002
|
+
secondary: `bg-muted text-foreground border border-border ${elevation.control} hover:bg-muted/85 dark:bg-muted/35 dark:text-foreground dark:border-border dark:hover:bg-muted/55`,
|
|
7916
8003
|
ghost: "bg-transparent text-foreground border border-transparent hover:bg-muted focus-visible:bg-muted/80 active:bg-muted/90",
|
|
7917
|
-
outline:
|
|
7918
|
-
danger:
|
|
8004
|
+
outline: `bg-card text-foreground border border-border ${elevation.control} hover:bg-muted`,
|
|
8005
|
+
danger: `bg-red-600 text-white border border-red-600 ${elevation.control} hover:bg-red-700`
|
|
7919
8006
|
};
|
|
7920
8007
|
var sizeClasses5 = {
|
|
7921
8008
|
xs: "size-7 min-w-7",
|
|
@@ -8207,7 +8294,8 @@ var TimePicker = React50.forwardRef(
|
|
|
8207
8294
|
{
|
|
8208
8295
|
ref: panelRef,
|
|
8209
8296
|
className: cn(
|
|
8210
|
-
"isolate rounded-xl border border-border bg-popover text-popover-foreground
|
|
8297
|
+
"isolate rounded-xl border border-border bg-popover text-popover-foreground",
|
|
8298
|
+
elevation.popover,
|
|
8211
8299
|
"flex flex-col gap-0"
|
|
8212
8300
|
),
|
|
8213
8301
|
style: {
|
|
@@ -8292,7 +8380,8 @@ var TimePicker = React50.forwardRef(
|
|
|
8292
8380
|
disabled,
|
|
8293
8381
|
onClick: () => open ? setOpen(false) : openPanel(),
|
|
8294
8382
|
className: cn(
|
|
8295
|
-
"flex h-11 min-h-11 w-full items-center gap-3 rounded-lg border border-border bg-card px-4 text-left text-[15px]
|
|
8383
|
+
"flex h-11 min-h-11 w-full items-center gap-3 rounded-lg border border-border bg-card px-4 text-left text-[15px]",
|
|
8384
|
+
elevation.field,
|
|
8296
8385
|
"transition-colors duration-150",
|
|
8297
8386
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/35",
|
|
8298
8387
|
open && "border-ring ring-2 ring-ring/35",
|
|
@@ -10178,6 +10267,7 @@ export {
|
|
|
10178
10267
|
applyColumnPreferences,
|
|
10179
10268
|
cn,
|
|
10180
10269
|
defaultOptionFilter,
|
|
10270
|
+
elevation,
|
|
10181
10271
|
formatDateOnly,
|
|
10182
10272
|
formatDateStamp,
|
|
10183
10273
|
formatDateTime,
|