@ptengine/design-components 0.6.0 → 0.7.1
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/CHANGELOG.md +119 -0
- package/COMPONENTS-DESIGN-SYSTEM.md +14 -2
- package/README.md +32 -13
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/prompt-picker.d.ts +2 -2
- package/dist/components/ui/search-input.d.ts +3 -3
- package/dist/components/ui/select.d.ts +2 -2
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +472 -467
- package/dist/style.css +398 -0
- package/package.json +8 -4
- package/src/components/ui/accordion.tsx +6 -6
- package/src/components/ui/alert-dialog.tsx +9 -7
- package/src/components/ui/alert.tsx +5 -5
- package/src/components/ui/attachment.tsx +15 -15
- package/src/components/ui/avatar.tsx +6 -6
- package/src/components/ui/badge.tsx +8 -8
- package/src/components/ui/breadcrumb.tsx +8 -8
- package/src/components/ui/bubble.tsx +15 -15
- package/src/components/ui/button-group.tsx +5 -5
- package/src/components/ui/button.tsx +16 -16
- package/src/components/ui/calendar.tsx +23 -23
- package/src/components/ui/card.tsx +6 -6
- package/src/components/ui/carousel.tsx +16 -16
- package/src/components/ui/chart.tsx +21 -21
- package/src/components/ui/checkbox.tsx +3 -3
- package/src/components/ui/command.tsx +12 -12
- package/src/components/ui/context-menu.tsx +16 -16
- package/src/components/ui/dialog.tsx +12 -10
- package/src/components/ui/drawer.tsx +9 -7
- package/src/components/ui/dropdown-menu.tsx +17 -17
- package/src/components/ui/empty.tsx +7 -7
- package/src/components/ui/field.tsx +18 -18
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +11 -11
- package/src/components/ui/input-otp.tsx +9 -9
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +18 -18
- package/src/components/ui/kbd.tsx +2 -2
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/marker.tsx +5 -5
- package/src/components/ui/menubar.tsx +18 -18
- package/src/components/ui/message-scroller.tsx +6 -6
- package/src/components/ui/message.tsx +6 -6
- package/src/components/ui/native-select.tsx +3 -3
- package/src/components/ui/navigation-menu.tsx +9 -9
- package/src/components/ui/pagination.tsx +9 -9
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +2 -2
- package/src/components/ui/prompt-picker.tsx +25 -25
- package/src/components/ui/radio-group.tsx +4 -4
- package/src/components/ui/resizable.tsx +4 -4
- package/src/components/ui/scroll-area.tsx +6 -6
- package/src/components/ui/search-input.tsx +12 -12
- package/src/components/ui/select.tsx +17 -17
- package/src/components/ui/separator.tsx +2 -2
- package/src/components/ui/sheet.tsx +15 -13
- package/src/components/ui/sidebar.tsx +70 -70
- package/src/components/ui/skeleton.tsx +12 -1
- package/src/components/ui/slider.tsx +4 -4
- package/src/components/ui/sonner.tsx +4 -4
- package/src/components/ui/spinner.tsx +1 -1
- package/src/components/ui/switch.tsx +2 -2
- package/src/components/ui/table.tsx +9 -9
- package/src/components/ui/tabs.tsx +16 -16
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.tsx +1 -1
- package/src/components/ui/toggle.tsx +6 -6
- package/src/components/ui/tooltip.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -42,26 +42,26 @@ import { DirectionProvider as DirectionProvider$1, useDirection } from "@radix-u
|
|
|
42
42
|
function cn(...P) {
|
|
43
43
|
return twMerge(clsx(P));
|
|
44
44
|
}
|
|
45
|
-
var buttonVariants = cva("inline-flex items-center justify-center gap-[8px] whitespace-nowrap rounded-[var(--
|
|
45
|
+
var buttonVariants = cva("ptx-inline-flex ptx-items-center ptx-justify-center ptx-gap-[8px] ptx-whitespace-nowrap ptx-rounded-[var(--ptx-radius-md)] ptx-text-sm ptx-font-medium ptx-transition-colors focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2 disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 [&_svg]:ptx-pointer-events-none [&_svg]:ptx-size-[16px] [&_svg]:ptx-shrink-0", {
|
|
46
46
|
variants: {
|
|
47
47
|
variant: {
|
|
48
|
-
default: "state-layer-inverse bg-primary text-primary-foreground",
|
|
49
|
-
brand: "state-layer bg-brand text-brand-foreground",
|
|
50
|
-
secondary: "state-layer border border-input bg-background text-foreground [--pt-state-layer-border:1px]",
|
|
51
|
-
tertiary: "state-layer bg-secondary text-secondary-foreground",
|
|
52
|
-
destructive: "state-layer bg-destructive text-destructive-foreground",
|
|
53
|
-
ghost: "state-layer text-foreground",
|
|
54
|
-
"ghost-destructive": "state-layer text-foreground hover:text-[rgb(var(--
|
|
55
|
-
"secondary-destructive": "state-layer border border-input bg-background text-foreground [--pt-state-layer-border:1px] hover:text-[rgb(var(--
|
|
56
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
48
|
+
default: "ptx-state-layer-inverse ptx-bg-primary ptx-text-primary-foreground",
|
|
49
|
+
brand: "ptx-state-layer ptx-bg-brand ptx-text-brand-foreground",
|
|
50
|
+
secondary: "ptx-state-layer ptx-border ptx-border-input ptx-bg-background ptx-text-foreground [--pt-state-layer-border:1px]",
|
|
51
|
+
tertiary: "ptx-state-layer ptx-bg-secondary ptx-text-secondary-foreground",
|
|
52
|
+
destructive: "ptx-state-layer ptx-bg-destructive ptx-text-destructive-foreground",
|
|
53
|
+
ghost: "ptx-state-layer ptx-text-foreground",
|
|
54
|
+
"ghost-destructive": "ptx-state-layer ptx-text-foreground hover:ptx-text-[rgb(var(--ptx-red))] active:ptx-text-[rgb(var(--ptx-red))]",
|
|
55
|
+
"secondary-destructive": "ptx-state-layer ptx-border ptx-border-input ptx-bg-background ptx-text-foreground [--pt-state-layer-border:1px] hover:ptx-text-[rgb(var(--ptx-red))] active:ptx-text-[rgb(var(--ptx-red))]",
|
|
56
|
+
link: "ptx-text-primary ptx-underline-offset-4 hover:ptx-underline"
|
|
57
57
|
},
|
|
58
58
|
size: {
|
|
59
|
-
sm: "h-[24px] gap-[4px] rounded-[var(--
|
|
60
|
-
default: "h-[32px] rounded-[var(--
|
|
61
|
-
lg: "h-[40px] rounded-[var(--
|
|
62
|
-
"icon-sm": "h-[24px] w-[24px] rounded-[var(--
|
|
63
|
-
icon: "h-[32px] w-[32px]",
|
|
64
|
-
"icon-lg": "h-[40px] w-[40px] [&_svg]:size-[20px]"
|
|
59
|
+
sm: "ptx-h-[24px] ptx-gap-[4px] ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-text-2xs",
|
|
60
|
+
default: "ptx-h-[32px] ptx-rounded-[var(--ptx-radius-md)] ptx-px-[12px] ptx-text-xs",
|
|
61
|
+
lg: "ptx-h-[40px] ptx-rounded-[var(--ptx-radius-md)] ptx-px-[16px] ptx-text-sm [&_svg]:ptx-size-[20px]",
|
|
62
|
+
"icon-sm": "ptx-h-[24px] ptx-w-[24px] ptx-rounded-[var(--ptx-radius-sm)]",
|
|
63
|
+
icon: "ptx-h-[32px] ptx-w-[32px]",
|
|
64
|
+
"icon-lg": "ptx-h-[40px] ptx-w-[40px] [&_svg]:ptx-size-[20px]"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
defaultVariants: {
|
|
@@ -80,26 +80,26 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-[8px] whit
|
|
|
80
80
|
Button.displayName = "Button";
|
|
81
81
|
var Input = React.forwardRef(({ className: a, type: N,...P }, F) => /* @__PURE__ */ jsx("input", {
|
|
82
82
|
type: N,
|
|
83
|
-
className: cn("flex h-[32px] w-full rounded-[var(--
|
|
83
|
+
className: cn("ptx-flex ptx-h-[32px] ptx-w-full ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-border-input ptx-bg-transparent ptx-px-[12px] ptx-py-[4px] ptx-text-xs ptx-transition-colors file:ptx-border-0 file:ptx-bg-transparent file:ptx-text-sm file:ptx-font-medium placeholder:ptx-text-muted-foreground enabled:hover:ptx-border-neutral focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 aria-[invalid=true]:ptx-border-destructive aria-[invalid=true]:enabled:hover:ptx-border-destructive aria-[invalid=true]:focus-visible:ptx-ring-destructive/30", a),
|
|
84
84
|
ref: F,
|
|
85
85
|
...P
|
|
86
86
|
}));
|
|
87
87
|
Input.displayName = "Input";
|
|
88
|
-
var labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50"), Label = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(LabelPrimitive.Root, {
|
|
88
|
+
var labelVariants = cva("ptx-text-sm ptx-font-medium ptx-leading-none peer-disabled:ptx-cursor-not-allowed peer-disabled:ptx-opacity-50"), Label = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(LabelPrimitive.Root, {
|
|
89
89
|
ref: P,
|
|
90
90
|
className: cn(labelVariants(), a),
|
|
91
91
|
...N
|
|
92
92
|
}));
|
|
93
93
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
94
|
-
var badgeVariants = cva("inline-flex items-center rounded-full border px-[10px] py-[2px] text-xs font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 [--pt-state-layer-border:1px] [&:is(a,button)]:cursor-pointer", {
|
|
94
|
+
var badgeVariants = cva("ptx-inline-flex ptx-items-center ptx-rounded-full ptx-border ptx-px-[10px] ptx-py-[2px] ptx-text-xs ptx-font-semibold ptx-transition-colors focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2 [--pt-state-layer-border:1px] [&:is(a,button)]:ptx-cursor-pointer", {
|
|
95
95
|
variants: { variant: {
|
|
96
|
-
default: "border-transparent bg-primary text-primary-foreground [&:is(a,button)]:state-layer-inverse",
|
|
97
|
-
secondary: "border-transparent bg-neutral-subtler text-neutral [&:is(a,button)]:state-layer",
|
|
98
|
-
destructive: "border-transparent bg-danger-subtler text-danger [&:is(a,button)]:state-layer",
|
|
99
|
-
success: "border-transparent bg-positive-subtler text-success [&:is(a,button)]:state-layer",
|
|
100
|
-
warning: "border-transparent bg-warning-subtler text-warning [&:is(a,button)]:state-layer",
|
|
101
|
-
information: "border-transparent bg-information-subtler text-information [&:is(a,button)]:state-layer",
|
|
102
|
-
ai: "border-transparent bg-ai-subtler text-ai [&:is(a,button)]:state-layer"
|
|
96
|
+
default: "ptx-border-transparent ptx-bg-primary ptx-text-primary-foreground [&:is(a,button)]:ptx-state-layer-inverse",
|
|
97
|
+
secondary: "ptx-border-transparent ptx-bg-neutral-subtler ptx-text-neutral [&:is(a,button)]:ptx-state-layer",
|
|
98
|
+
destructive: "ptx-border-transparent ptx-bg-danger-subtler ptx-text-danger [&:is(a,button)]:ptx-state-layer",
|
|
99
|
+
success: "ptx-border-transparent ptx-bg-positive-subtler ptx-text-success [&:is(a,button)]:ptx-state-layer",
|
|
100
|
+
warning: "ptx-border-transparent ptx-bg-warning-subtler ptx-text-warning [&:is(a,button)]:ptx-state-layer",
|
|
101
|
+
information: "ptx-border-transparent ptx-bg-information-subtler ptx-text-information [&:is(a,button)]:ptx-state-layer",
|
|
102
|
+
ai: "ptx-border-transparent ptx-bg-ai-subtler ptx-text-ai [&:is(a,button)]:ptx-state-layer"
|
|
103
103
|
} },
|
|
104
104
|
defaultVariants: { variant: "default" }
|
|
105
105
|
});
|
|
@@ -110,41 +110,41 @@ function Badge({ className: a, variant: N,...P }) {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
var Textarea = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("textarea", {
|
|
113
|
-
className: cn("flex min-h-[60px] w-full rounded-[var(--
|
|
113
|
+
className: cn("ptx-flex ptx-min-h-[60px] ptx-w-full ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-border-input ptx-bg-transparent ptx-px-[12px] ptx-py-[8px] ptx-text-sm placeholder:ptx-text-muted-foreground ptx-transition-colors enabled:hover:ptx-border-neutral focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 aria-[invalid=true]:ptx-border-destructive aria-[invalid=true]:enabled:hover:ptx-border-destructive aria-[invalid=true]:focus-visible:ptx-ring-destructive/30", a),
|
|
114
114
|
ref: P,
|
|
115
115
|
...N
|
|
116
116
|
}));
|
|
117
117
|
Textarea.displayName = "Textarea";
|
|
118
118
|
var Checkbox = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
119
119
|
ref: P,
|
|
120
|
-
className: cn("peer h-[16px] w-[16px] shrink-0 rounded-[var(--
|
|
120
|
+
className: cn("peer ptx-h-[16px] ptx-w-[16px] ptx-shrink-0 ptx-rounded-[var(--ptx-radius-sm)] ptx-border ptx-border-neutral ptx-transition-colors enabled:hover:ptx-border-strong data-[state=unchecked]:enabled:active:ptx-bg-press focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-border-weak disabled:ptx-bg-disable disabled:ptx-text-disabled enabled:data-[state=checked]:ptx-border-primary enabled:data-[state=checked]:ptx-bg-primary enabled:data-[state=checked]:ptx-text-primary-foreground", a),
|
|
121
121
|
...N,
|
|
122
122
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
123
|
-
className: cn("flex items-center justify-center text-current"),
|
|
124
|
-
children: /* @__PURE__ */ jsx(Check, { className: "h-[16px] w-[16px]" })
|
|
123
|
+
className: cn("ptx-flex ptx-items-center ptx-justify-center ptx-text-current"),
|
|
124
|
+
children: /* @__PURE__ */ jsx(Check, { className: "ptx-h-[16px] ptx-w-[16px]" })
|
|
125
125
|
})
|
|
126
126
|
}));
|
|
127
127
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
128
128
|
var Switch = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(SwitchPrimitives.Root, {
|
|
129
|
-
className: cn("peer state-layer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input [--pt-state-layer-border:2px]", a),
|
|
129
|
+
className: cn("peer ptx-state-layer ptx-inline-flex ptx-h-[20px] ptx-w-[36px] ptx-shrink-0 ptx-cursor-pointer ptx-items-center ptx-rounded-full ptx-border-2 ptx-border-transparent ptx-transition-colors focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2 focus-visible:ptx-ring-offset-background disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 data-[state=checked]:ptx-bg-primary data-[state=unchecked]:ptx-bg-input [--pt-state-layer-border:2px]", a),
|
|
130
130
|
...N,
|
|
131
131
|
ref: P,
|
|
132
|
-
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn("pointer-events-none block h-[16px] w-[16px] rounded-full border border-neutral bg-background ring-0 transition-transform data-[state=checked]:translate-x-[16px] data-[state=unchecked]:translate-x-0") })
|
|
132
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitives.Thumb, { className: cn("ptx-pointer-events-none ptx-block ptx-h-[16px] ptx-w-[16px] ptx-rounded-full ptx-border ptx-border-neutral ptx-bg-background ptx-ring-0 ptx-transition-transform data-[state=checked]:ptx-translate-x-[16px] data-[state=unchecked]:ptx-translate-x-0") })
|
|
133
133
|
}));
|
|
134
134
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
135
135
|
var RadioGroup = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, {
|
|
136
|
-
className: cn("grid gap-[8px]", a),
|
|
136
|
+
className: cn("ptx-grid ptx-gap-[8px]", a),
|
|
137
137
|
...N,
|
|
138
138
|
ref: P
|
|
139
139
|
}));
|
|
140
140
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
141
141
|
var RadioGroupItem = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
|
|
142
142
|
ref: P,
|
|
143
|
-
className: cn("aspect-square h-[16px] w-[16px] rounded-full border border-neutral text-primary transition-colors enabled:hover:border-strong data-[state=unchecked]:enabled:active:bg-press focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:border-weak disabled:bg-disable disabled:text-disabled enabled:data-[state=checked]:border-primary", a),
|
|
143
|
+
className: cn("ptx-aspect-square ptx-h-[16px] ptx-w-[16px] ptx-rounded-full ptx-border ptx-border-neutral ptx-text-primary ptx-transition-colors enabled:hover:ptx-border-strong data-[state=unchecked]:enabled:active:ptx-bg-press focus:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-border-weak disabled:ptx-bg-disable disabled:ptx-text-disabled enabled:data-[state=checked]:ptx-border-primary", a),
|
|
144
144
|
...N,
|
|
145
145
|
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
|
|
146
|
-
className: "flex items-center justify-center",
|
|
147
|
-
children: /* @__PURE__ */ jsx(Circle, { className: "h-[14px] w-[14px] fill-current" })
|
|
146
|
+
className: "ptx-flex ptx-items-center ptx-justify-center",
|
|
147
|
+
children: /* @__PURE__ */ jsx(Circle, { className: "ptx-h-[14px] ptx-w-[14px] ptx-fill-current" })
|
|
148
148
|
})
|
|
149
149
|
}));
|
|
150
150
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
@@ -153,19 +153,19 @@ var TabsContext = React.createContext({
|
|
|
153
153
|
size: "default"
|
|
154
154
|
}), LIST_SIZE = {
|
|
155
155
|
segmented: {
|
|
156
|
-
sm: "h-[24px] p-[2px]",
|
|
157
|
-
default: "h-[32px] p-[4px]",
|
|
158
|
-
lg: "h-[40px] p-[4px]"
|
|
156
|
+
sm: "ptx-h-[24px] ptx-p-[2px]",
|
|
157
|
+
default: "ptx-h-[32px] ptx-p-[4px]",
|
|
158
|
+
lg: "ptx-h-[40px] ptx-p-[4px]"
|
|
159
159
|
},
|
|
160
160
|
line: {
|
|
161
|
-
sm: "h-[24px] gap-[12px]",
|
|
162
|
-
default: "h-[32px] gap-[16px]",
|
|
163
|
-
lg: "h-[40px] gap-[20px]"
|
|
161
|
+
sm: "ptx-h-[24px] ptx-gap-[12px]",
|
|
162
|
+
default: "ptx-h-[32px] ptx-gap-[16px]",
|
|
163
|
+
lg: "ptx-h-[40px] ptx-gap-[20px]"
|
|
164
164
|
}
|
|
165
165
|
}, TRIGGER_TEXT = {
|
|
166
|
-
sm: "text-2xs",
|
|
167
|
-
default: "text-xs",
|
|
168
|
-
lg: "text-sm"
|
|
166
|
+
sm: "ptx-text-2xs",
|
|
167
|
+
default: "ptx-text-xs",
|
|
168
|
+
lg: "ptx-text-sm"
|
|
169
169
|
}, Tabs = React.forwardRef(({ variant: a = "segmented", size: N = "default",...F }, I) => {
|
|
170
170
|
let L = React.useMemo(() => ({
|
|
171
171
|
variant: a,
|
|
@@ -184,7 +184,7 @@ var TabsList = React.forwardRef(({ className: a,...N }, F) => {
|
|
|
184
184
|
let { variant: I, size: L } = React.useContext(TabsContext);
|
|
185
185
|
return /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
186
186
|
ref: F,
|
|
187
|
-
className: cn("inline-flex items-center text-muted-foreground", I === "segmented" && "justify-center rounded-[var(--
|
|
187
|
+
className: cn("ptx-inline-flex ptx-items-center ptx-text-muted-foreground", I === "segmented" && "ptx-justify-center ptx-rounded-[var(--ptx-radius)] ptx-bg-muted", I === "line" && "ptx-w-full ptx-justify-start ptx-border-b ptx-border-border", LIST_SIZE[I][L], a),
|
|
188
188
|
...N
|
|
189
189
|
});
|
|
190
190
|
});
|
|
@@ -193,37 +193,38 @@ var TabsTrigger = React.forwardRef(({ className: a,...N }, F) => {
|
|
|
193
193
|
let { variant: I, size: L } = React.useContext(TabsContext);
|
|
194
194
|
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
195
195
|
ref: F,
|
|
196
|
-
className: cn("inline-flex items-center justify-center whitespace-nowrap font-medium ring-offset-background transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", TRIGGER_TEXT[L], I === "segmented" && "h-full rounded-[var(--
|
|
196
|
+
className: cn("ptx-inline-flex ptx-items-center ptx-justify-center ptx-whitespace-nowrap ptx-font-medium ptx-ring-offset-background ptx-transition-colors hover:ptx-text-foreground focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2 disabled:ptx-pointer-events-none disabled:ptx-opacity-50", TRIGGER_TEXT[L], I === "segmented" && "ptx-h-full ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[12px] data-[state=active]:ptx-bg-background data-[state=active]:ptx-text-foreground", I === "line" && "-ptx-mb-px ptx-h-full ptx-border-b-2 ptx-border-transparent ptx-px-[2px] data-[state=active]:ptx-border-foreground data-[state=active]:ptx-text-foreground", a),
|
|
197
197
|
...N
|
|
198
198
|
});
|
|
199
199
|
});
|
|
200
200
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
201
201
|
var TabsContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(TabsPrimitive.Content, {
|
|
202
202
|
ref: P,
|
|
203
|
-
className: cn("mt-[8px] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", a),
|
|
203
|
+
className: cn("ptx-mt-[8px] ptx-ring-offset-background focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2", a),
|
|
204
204
|
...N
|
|
205
205
|
}));
|
|
206
206
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
207
207
|
var TooltipProvider = TooltipPrimitive.Provider, Tooltip = TooltipPrimitive.Root, TooltipTrigger = TooltipPrimitive.Trigger, TooltipContent = React.forwardRef(({ className: a, sideOffset: N = 4,...P }, F) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Content, {
|
|
208
208
|
ref: F,
|
|
209
209
|
sideOffset: N,
|
|
210
|
-
className: cn("z-[var(--pt-z-tooltip,50)] overflow-hidden rounded-[var(--
|
|
210
|
+
className: cn("ptx-z-[var(--pt-z-tooltip,50)] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-bg-primary ptx-px-[12px] ptx-py-[6px] ptx-text-xs ptx-text-primary-foreground ptx-animate-in ptx-fade-in-0 ptx-zoom-in-95 data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=closed]:ptx-zoom-out-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
211
211
|
...P
|
|
212
212
|
}) }));
|
|
213
213
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
214
214
|
var Dialog = DialogPrimitive.Root, DialogTrigger = DialogPrimitive.Trigger, DialogPortal = DialogPrimitive.Portal, DialogClose = DialogPrimitive.Close, DialogOverlay = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
215
215
|
ref: P,
|
|
216
|
-
|
|
216
|
+
"data-slot": "dialog-overlay",
|
|
217
|
+
className: cn("ptx-fixed ptx-inset-0 ptx-z-[var(--pt-z-overlay,50)] ptx-bg-[rgb(var(--ptx-black)/0.45)] data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0", a),
|
|
217
218
|
...N
|
|
218
219
|
}));
|
|
219
220
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
220
221
|
var dialogSizeClasses = {
|
|
221
|
-
sm: "max-w-[480px]",
|
|
222
|
-
md: "max-w-[640px]",
|
|
223
|
-
lg: "max-w-[960px]"
|
|
222
|
+
sm: "ptx-max-w-[480px]",
|
|
223
|
+
md: "ptx-max-w-[640px]",
|
|
224
|
+
lg: "ptx-max-w-[960px]"
|
|
224
225
|
}, DialogContent = React.forwardRef(({ className: a, children: N, closeLabel: P = "Close", size: F = "sm",...I }, L) => /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(DialogPrimitive.Content, {
|
|
225
226
|
ref: L,
|
|
226
|
-
className: cn("fixed left-[50%] top-[50%] z-[var(--pt-z-overlay,50)] grid w-full translate-x-[-50%] translate-y-[-50%] gap-[16px] border bg-background p-[24px] shadow-lg outline-none duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[var(--
|
|
227
|
+
className: cn("ptx-fixed ptx-left-[50%] ptx-top-[50%] ptx-z-[var(--pt-z-overlay,50)] ptx-grid ptx-w-full ptx-translate-x-[-50%] ptx-translate-y-[-50%] ptx-gap-[16px] ptx-border ptx-bg-background ptx-p-[24px] ptx-shadow-lg ptx-outline-none ptx-duration-200 data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[state=closed]:ptx-slide-out-to-left-1/2 data-[state=closed]:ptx-slide-out-to-top-[48%] data-[state=open]:ptx-slide-in-from-left-1/2 data-[state=open]:ptx-slide-in-from-top-[48%] sm:ptx-rounded-[var(--ptx-radius)]", dialogSizeClasses[F], a),
|
|
227
228
|
onOpenAutoFocus: (a) => {
|
|
228
229
|
a.preventDefault(), a.currentTarget?.focus();
|
|
229
230
|
},
|
|
@@ -233,7 +234,7 @@ var dialogSizeClasses = {
|
|
|
233
234
|
children: /* @__PURE__ */ jsx(Button, {
|
|
234
235
|
variant: "ghost",
|
|
235
236
|
size: "icon-sm",
|
|
236
|
-
className: "!absolute right-[16px] top-[16px]",
|
|
237
|
+
className: "!ptx-absolute ptx-right-[16px] ptx-top-[16px]",
|
|
237
238
|
"aria-label": P,
|
|
238
239
|
children: /* @__PURE__ */ jsx(X, {})
|
|
239
240
|
})
|
|
@@ -241,63 +242,63 @@ var dialogSizeClasses = {
|
|
|
241
242
|
})] }));
|
|
242
243
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
243
244
|
var DialogHeader = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
244
|
-
className: cn("flex flex-col space-y-[6px] text-center sm:text-left", a),
|
|
245
|
+
className: cn("ptx-flex ptx-flex-col ptx-space-y-[6px] ptx-text-center sm:ptx-text-left", a),
|
|
245
246
|
...N
|
|
246
247
|
});
|
|
247
248
|
DialogHeader.displayName = "DialogHeader";
|
|
248
249
|
var DialogFooter = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
249
|
-
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-[8px]", a),
|
|
250
|
+
className: cn("ptx-flex ptx-flex-col-reverse sm:ptx-flex-row sm:ptx-justify-end sm:ptx-space-x-[8px]", a),
|
|
250
251
|
...N
|
|
251
252
|
});
|
|
252
253
|
DialogFooter.displayName = "DialogFooter";
|
|
253
254
|
var DialogTitle = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
254
255
|
ref: P,
|
|
255
|
-
className: cn("text-lg font-semibold leading-none tracking-tight text-[rgb(var(--
|
|
256
|
+
className: cn("ptx-text-lg ptx-font-semibold ptx-leading-none ptx-tracking-tight ptx-text-[rgb(var(--ptx-text-strong))]", a),
|
|
256
257
|
...N
|
|
257
258
|
}));
|
|
258
259
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
259
260
|
var DialogDescription = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DialogPrimitive.Description, {
|
|
260
261
|
ref: P,
|
|
261
|
-
className: cn("text-sm text-[rgb(var(--
|
|
262
|
+
className: cn("ptx-text-sm ptx-text-[rgb(var(--ptx-text-standard))]", a),
|
|
262
263
|
...N
|
|
263
264
|
}));
|
|
264
265
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
265
266
|
var Select = SelectPrimitive.Root, SelectGroup = SelectPrimitive.Group, SelectValue = SelectPrimitive.Value;
|
|
266
|
-
const selectTriggerClassName = "flex h-[32px] items-center justify-between whitespace-nowrap rounded-[var(--
|
|
267
|
+
const selectTriggerClassName = "ptx-flex ptx-h-[32px] ptx-items-center ptx-justify-between ptx-whitespace-nowrap ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-border-input ptx-bg-transparent ptx-px-[12px] ptx-py-[8px] ptx-text-xs ptx-ring-offset-background ptx-transition-colors placeholder:ptx-text-muted-foreground enabled:hover:ptx-border-neutral focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 aria-[invalid=true]:ptx-border-destructive aria-[invalid=true]:ptx-text-destructive aria-[invalid=true]:enabled:hover:ptx-border-destructive aria-[invalid=true]:focus-visible:ptx-ring-destructive/30 [&>span]:ptx-line-clamp-1";
|
|
267
268
|
var SelectTrigger = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
268
269
|
ref: F,
|
|
269
270
|
"data-slot": "select-trigger",
|
|
270
|
-
className: cn(selectTriggerClassName, "w-full", a),
|
|
271
|
+
className: cn(selectTriggerClassName, "ptx-w-full", a),
|
|
271
272
|
...P,
|
|
272
273
|
children: [N, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
|
|
273
274
|
asChild: !0,
|
|
274
|
-
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-[16px] w-[16px] opacity-50" })
|
|
275
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "ptx-h-[16px] ptx-w-[16px] ptx-opacity-50" })
|
|
275
276
|
})]
|
|
276
277
|
}));
|
|
277
278
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
278
279
|
var SelectScrollUpButton = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
|
|
279
280
|
ref: P,
|
|
280
|
-
className: cn("flex cursor-default items-center justify-center py-[4px]", a),
|
|
281
|
+
className: cn("ptx-flex ptx-cursor-default ptx-items-center ptx-justify-center ptx-py-[4px]", a),
|
|
281
282
|
...N,
|
|
282
|
-
children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-[16px] w-[16px]" })
|
|
283
|
+
children: /* @__PURE__ */ jsx(ChevronUp, { className: "ptx-h-[16px] ptx-w-[16px]" })
|
|
283
284
|
}));
|
|
284
285
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
285
286
|
var SelectScrollDownButton = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
|
|
286
287
|
ref: P,
|
|
287
|
-
className: cn("flex cursor-default items-center justify-center py-[4px]", a),
|
|
288
|
+
className: cn("ptx-flex ptx-cursor-default ptx-items-center ptx-justify-center ptx-py-[4px]", a),
|
|
288
289
|
...N,
|
|
289
|
-
children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-[16px] w-[16px]" })
|
|
290
|
+
children: /* @__PURE__ */ jsx(ChevronDown, { className: "ptx-h-[16px] ptx-w-[16px]" })
|
|
290
291
|
}));
|
|
291
292
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
292
293
|
var SelectContent = React.forwardRef(({ className: a, children: N, position: P = "popper",...F }, I) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
|
|
293
294
|
ref: I,
|
|
294
|
-
className: cn("relative z-[var(--pt-z-popup,50)] max-h-[384px] min-w-[8rem] overflow-hidden rounded-[var(--
|
|
295
|
+
className: cn("ptx-relative ptx-z-[var(--pt-z-popup,50)] ptx-max-h-[384px] ptx-min-w-[8rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-text-popover-foreground ptx-shadow-md data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", P === "popper" && "data-[side=bottom]:ptx-translate-y-[4px] data-[side=left]:-ptx-translate-x-[4px] data-[side=right]:ptx-translate-x-[4px] data-[side=top]:-ptx-translate-y-[4px]", a),
|
|
295
296
|
position: P,
|
|
296
297
|
...F,
|
|
297
298
|
children: [
|
|
298
299
|
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
299
300
|
/* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
|
|
300
|
-
className: cn("p-[4px]", P === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
301
|
+
className: cn("ptx-p-[4px]", P === "popper" && "ptx-h-[var(--radix-select-trigger-height)] ptx-w-full ptx-min-w-[var(--radix-select-trigger-width)]"),
|
|
301
302
|
children: N
|
|
302
303
|
}),
|
|
303
304
|
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
@@ -306,182 +307,182 @@ var SelectContent = React.forwardRef(({ className: a, children: N, position: P =
|
|
|
306
307
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
307
308
|
var SelectLabel = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(SelectPrimitive.Label, {
|
|
308
309
|
ref: P,
|
|
309
|
-
className: cn("px-[8px] py-[6px] text-sm font-semibold", a),
|
|
310
|
+
className: cn("ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-font-semibold", a),
|
|
310
311
|
...N
|
|
311
312
|
}));
|
|
312
313
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
313
314
|
var SelectItem = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
314
315
|
ref: F,
|
|
315
|
-
className: cn("relative flex w-full cursor-default select-none items-center rounded-[var(--
|
|
316
|
+
className: cn("ptx-relative ptx-flex ptx-w-full ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[8px] ptx-pr-[32px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
316
317
|
...P,
|
|
317
318
|
children: [/* @__PURE__ */ jsx("span", {
|
|
318
|
-
className: "absolute right-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
319
|
-
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-[16px] w-[16px]" }) })
|
|
319
|
+
className: "ptx-absolute ptx-right-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
320
|
+
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "ptx-h-[16px] ptx-w-[16px]" }) })
|
|
320
321
|
}), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children: N })]
|
|
321
322
|
}));
|
|
322
323
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
323
324
|
var SelectSeparator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
|
|
324
325
|
ref: P,
|
|
325
|
-
className: cn("-mx-[4px] my-[4px] h-px bg-muted", a),
|
|
326
|
+
className: cn("-ptx-mx-[4px] ptx-my-[4px] ptx-h-px ptx-bg-muted", a),
|
|
326
327
|
...N
|
|
327
328
|
}));
|
|
328
329
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
329
330
|
var DropdownMenu = DropdownMenuPrimitive.Root, DropdownMenuTrigger = DropdownMenuPrimitive.Trigger, DropdownMenuGroup = DropdownMenuPrimitive.Group, DropdownMenuPortal = DropdownMenuPrimitive.Portal, DropdownMenuSub = DropdownMenuPrimitive.Sub, DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup, DropdownMenuSubTrigger = React.forwardRef(({ className: a, inset: N, children: P,...F }, I) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, {
|
|
330
331
|
ref: I,
|
|
331
|
-
className: cn("flex cursor-default select-none items-center rounded-[var(--
|
|
332
|
+
className: cn("ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent data-[state=open]:ptx-bg-accent", N && "ptx-pl-[32px]", a),
|
|
332
333
|
...F,
|
|
333
|
-
children: [P, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-[16px] w-[16px]" })]
|
|
334
|
+
children: [P, /* @__PURE__ */ jsx(ChevronRight, { className: "ptx-ml-auto ptx-h-[16px] ptx-w-[16px]" })]
|
|
334
335
|
}));
|
|
335
336
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
336
337
|
var DropdownMenuSubContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, {
|
|
337
338
|
ref: P,
|
|
338
|
-
className: cn("z-[var(--pt-z-popup,50)] min-w-[8rem] overflow-hidden rounded-[var(--
|
|
339
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-min-w-[8rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[4px] ptx-text-popover-foreground ptx-shadow-lg data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
339
340
|
...N
|
|
340
341
|
}));
|
|
341
342
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
342
343
|
var DropdownMenuContent = React.forwardRef(({ className: a, sideOffset: N = 4,...P }, F) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, {
|
|
343
344
|
ref: F,
|
|
344
345
|
sideOffset: N,
|
|
345
|
-
className: cn("z-[var(--pt-z-popup,50)] min-w-[8rem] overflow-hidden rounded-[var(--
|
|
346
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-min-w-[8rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[4px] ptx-text-popover-foreground ptx-shadow-md", "data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
346
347
|
...P
|
|
347
348
|
}) }));
|
|
348
349
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
349
350
|
var DropdownMenuItem = React.forwardRef(({ className: a, inset: N,...P }, F) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, {
|
|
350
351
|
ref: F,
|
|
351
|
-
className: cn("relative flex cursor-default select-none items-center gap-[8px] rounded-[var(--
|
|
352
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50 [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0", N && "ptx-pl-[32px]", a),
|
|
352
353
|
...P
|
|
353
354
|
}));
|
|
354
355
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
355
356
|
var DropdownMenuCheckboxItem = React.forwardRef(({ className: a, children: N, checked: P,...F }, I) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
356
357
|
ref: I,
|
|
357
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
358
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[32px] ptx-pr-[8px] ptx-text-sm ptx-outline-none ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
358
359
|
checked: P,
|
|
359
360
|
...F,
|
|
360
361
|
children: [/* @__PURE__ */ jsx("span", {
|
|
361
|
-
className: "absolute left-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
362
|
-
children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-[16px] w-[16px]" }) })
|
|
362
|
+
className: "ptx-absolute ptx-left-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
363
|
+
children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "ptx-h-[16px] ptx-w-[16px]" }) })
|
|
363
364
|
}), N]
|
|
364
365
|
}));
|
|
365
366
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
366
367
|
var DropdownMenuRadioItem = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
367
368
|
ref: F,
|
|
368
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
369
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[32px] ptx-pr-[8px] ptx-text-sm ptx-outline-none ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
369
370
|
...P,
|
|
370
371
|
children: [/* @__PURE__ */ jsx("span", {
|
|
371
|
-
className: "absolute left-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
372
|
-
children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-[8px] w-[8px] fill-current" }) })
|
|
372
|
+
className: "ptx-absolute ptx-left-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
373
|
+
children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "ptx-h-[8px] ptx-w-[8px] ptx-fill-current" }) })
|
|
373
374
|
}), N]
|
|
374
375
|
}));
|
|
375
376
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
376
377
|
var DropdownMenuLabel = React.forwardRef(({ className: a, inset: N,...P }, F) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, {
|
|
377
378
|
ref: F,
|
|
378
|
-
className: cn("px-[8px] py-[6px] text-sm font-semibold", N && "pl-[32px]", a),
|
|
379
|
+
className: cn("ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-font-semibold", N && "ptx-pl-[32px]", a),
|
|
379
380
|
...P
|
|
380
381
|
}));
|
|
381
382
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
382
383
|
var DropdownMenuSeparator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, {
|
|
383
384
|
ref: P,
|
|
384
|
-
className: cn("-mx-[4px] my-[4px] h-px bg-muted", a),
|
|
385
|
+
className: cn("-ptx-mx-[4px] ptx-my-[4px] ptx-h-px ptx-bg-muted", a),
|
|
385
386
|
...N
|
|
386
387
|
}));
|
|
387
388
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
388
389
|
var DropdownMenuShortcut = ({ className: a,...N }) => /* @__PURE__ */ jsx("span", {
|
|
389
|
-
className: cn("ml-auto text-xs tracking-widest opacity-60", a),
|
|
390
|
+
className: cn("ptx-ml-auto ptx-text-xs ptx-tracking-widest ptx-opacity-60", a),
|
|
390
391
|
...N
|
|
391
392
|
});
|
|
392
393
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
393
394
|
var Card = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
394
395
|
ref: P,
|
|
395
|
-
className: cn("rounded-12 border bg-card text-card-foreground", a),
|
|
396
|
+
className: cn("ptx-rounded-12 ptx-border ptx-bg-card ptx-text-card-foreground", a),
|
|
396
397
|
...N
|
|
397
398
|
}));
|
|
398
399
|
Card.displayName = "Card";
|
|
399
400
|
var CardHeader = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
400
401
|
ref: P,
|
|
401
|
-
className: cn("flex flex-col space-y-[6px] p-[24px]", a),
|
|
402
|
+
className: cn("ptx-flex ptx-flex-col ptx-space-y-[6px] ptx-p-[24px]", a),
|
|
402
403
|
...N
|
|
403
404
|
}));
|
|
404
405
|
CardHeader.displayName = "CardHeader";
|
|
405
406
|
var CardTitle = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
406
407
|
ref: P,
|
|
407
|
-
className: cn("font-semibold leading-none tracking-tight", a),
|
|
408
|
+
className: cn("ptx-font-semibold ptx-leading-none ptx-tracking-tight", a),
|
|
408
409
|
...N
|
|
409
410
|
}));
|
|
410
411
|
CardTitle.displayName = "CardTitle";
|
|
411
412
|
var CardDescription = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
412
413
|
ref: P,
|
|
413
|
-
className: cn("text-sm text-muted-foreground", a),
|
|
414
|
+
className: cn("ptx-text-sm ptx-text-muted-foreground", a),
|
|
414
415
|
...N
|
|
415
416
|
}));
|
|
416
417
|
CardDescription.displayName = "CardDescription";
|
|
417
418
|
var CardContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
418
419
|
ref: P,
|
|
419
|
-
className: cn("p-[24px] pt-0", a),
|
|
420
|
+
className: cn("ptx-p-[24px] ptx-pt-0", a),
|
|
420
421
|
...N
|
|
421
422
|
}));
|
|
422
423
|
CardContent.displayName = "CardContent";
|
|
423
424
|
var CardFooter = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
424
425
|
ref: P,
|
|
425
|
-
className: cn("flex items-center p-[24px] pt-0", a),
|
|
426
|
+
className: cn("ptx-flex ptx-items-center ptx-p-[24px] ptx-pt-0", a),
|
|
426
427
|
...N
|
|
427
428
|
}));
|
|
428
429
|
CardFooter.displayName = "CardFooter";
|
|
429
430
|
var Table = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
430
|
-
className: "relative w-full overflow-auto",
|
|
431
|
+
className: "ptx-relative ptx-w-full ptx-overflow-auto",
|
|
431
432
|
children: /* @__PURE__ */ jsx("table", {
|
|
432
433
|
ref: P,
|
|
433
|
-
className: cn("w-full caption-bottom text-sm text-foreground", a),
|
|
434
|
+
className: cn("ptx-w-full ptx-caption-bottom ptx-text-sm ptx-text-foreground", a),
|
|
434
435
|
...N
|
|
435
436
|
})
|
|
436
437
|
}));
|
|
437
438
|
Table.displayName = "Table";
|
|
438
439
|
var TableHeader = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("thead", {
|
|
439
440
|
ref: P,
|
|
440
|
-
className: cn("[&_tr]:border-b", a),
|
|
441
|
+
className: cn("[&_tr]:ptx-border-b", a),
|
|
441
442
|
...N
|
|
442
443
|
}));
|
|
443
444
|
TableHeader.displayName = "TableHeader";
|
|
444
445
|
var TableBody = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("tbody", {
|
|
445
446
|
ref: P,
|
|
446
|
-
className: cn("[&_tr:last-child]:border-0", a),
|
|
447
|
+
className: cn("[&_tr:last-child]:ptx-border-0", a),
|
|
447
448
|
...N
|
|
448
449
|
}));
|
|
449
450
|
TableBody.displayName = "TableBody";
|
|
450
451
|
var TableFooter = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("tfoot", {
|
|
451
452
|
ref: P,
|
|
452
|
-
className: cn("border-t bg-secondary font-medium [&>tr]:last:border-b-0", a),
|
|
453
|
+
className: cn("ptx-border-t ptx-bg-secondary ptx-font-medium [&>tr]:last:ptx-border-b-0", a),
|
|
453
454
|
...N
|
|
454
455
|
}));
|
|
455
456
|
TableFooter.displayName = "TableFooter";
|
|
456
457
|
var TableRow = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("tr", {
|
|
457
458
|
ref: P,
|
|
458
|
-
className: cn("state-layer border-b transition-colors data-[state=selected]:bg-selected", a),
|
|
459
|
+
className: cn("ptx-state-layer ptx-border-b ptx-transition-colors data-[state=selected]:ptx-bg-selected", a),
|
|
459
460
|
...N
|
|
460
461
|
}));
|
|
461
462
|
TableRow.displayName = "TableRow";
|
|
462
463
|
var TableHead = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("th", {
|
|
463
464
|
ref: P,
|
|
464
|
-
className: cn("h-[40px] px-[12px] text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", a),
|
|
465
|
+
className: cn("ptx-h-[40px] ptx-px-[12px] ptx-text-left ptx-align-middle ptx-font-medium ptx-text-muted-foreground [&:has([role=checkbox])]:ptx-pr-0", a),
|
|
465
466
|
...N
|
|
466
467
|
}));
|
|
467
468
|
TableHead.displayName = "TableHead";
|
|
468
469
|
var TableCell = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("td", {
|
|
469
470
|
ref: P,
|
|
470
|
-
className: cn("p-[12px] align-middle [&:has([role=checkbox])]:pr-0", a),
|
|
471
|
+
className: cn("ptx-p-[12px] ptx-align-middle [&:has([role=checkbox])]:ptx-pr-0", a),
|
|
471
472
|
...N
|
|
472
473
|
}));
|
|
473
474
|
TableCell.displayName = "TableCell";
|
|
474
475
|
var TableCaption = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("caption", {
|
|
475
476
|
ref: P,
|
|
476
|
-
className: cn("mt-[16px] text-sm text-muted-foreground", a),
|
|
477
|
+
className: cn("ptx-mt-[16px] ptx-text-sm ptx-text-muted-foreground", a),
|
|
477
478
|
...N
|
|
478
479
|
}));
|
|
479
480
|
TableCaption.displayName = "TableCaption";
|
|
480
|
-
var avatarVariants = cva("relative flex shrink-0 overflow-hidden rounded-full", {
|
|
481
|
+
var avatarVariants = cva("ptx-relative ptx-flex ptx-shrink-0 ptx-overflow-hidden ptx-rounded-full", {
|
|
481
482
|
variants: { size: {
|
|
482
|
-
sm: "h-[24px] w-[24px] text-2xs",
|
|
483
|
-
md: "h-[32px] w-[32px] text-xs",
|
|
484
|
-
lg: "h-[40px] w-[40px] text-sm"
|
|
483
|
+
sm: "ptx-h-[24px] ptx-w-[24px] ptx-text-2xs",
|
|
484
|
+
md: "ptx-h-[32px] ptx-w-[32px] ptx-text-xs",
|
|
485
|
+
lg: "ptx-h-[40px] ptx-w-[40px] ptx-text-sm"
|
|
485
486
|
} },
|
|
486
487
|
defaultVariants: { size: "lg" }
|
|
487
488
|
}), Avatar = React.forwardRef(({ className: a, size: N,...P }, F) => /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
|
|
@@ -492,13 +493,13 @@ var avatarVariants = cva("relative flex shrink-0 overflow-hidden rounded-full",
|
|
|
492
493
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
493
494
|
var AvatarImage = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
|
|
494
495
|
ref: P,
|
|
495
|
-
className: cn("aspect-square h-full w-full", a),
|
|
496
|
+
className: cn("ptx-aspect-square ptx-h-full ptx-w-full", a),
|
|
496
497
|
...N
|
|
497
498
|
}));
|
|
498
499
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
499
500
|
var AvatarFallback = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
|
|
500
501
|
ref: P,
|
|
501
|
-
className: cn("flex h-full w-full items-center justify-center rounded-full bg-secondary text-foreground", a),
|
|
502
|
+
className: cn("ptx-flex ptx-h-full ptx-w-full ptx-items-center ptx-justify-center ptx-rounded-full ptx-bg-secondary ptx-text-foreground", a),
|
|
502
503
|
...N
|
|
503
504
|
}));
|
|
504
505
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
@@ -518,10 +519,10 @@ var Toaster = ({ ...a }) => {
|
|
|
518
519
|
theme: N,
|
|
519
520
|
className: "toaster group",
|
|
520
521
|
toastOptions: { classNames: {
|
|
521
|
-
toast: "group toast group-[.toaster]:bg-popover group-[.toaster]:text-popover-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
522
|
-
description: "group-[.toast]:text-muted-foreground",
|
|
523
|
-
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
524
|
-
cancelButton: "group-[.toast]:bg-secondary group-[.toast]:text-secondary-foreground"
|
|
522
|
+
toast: "group toast group-[.toaster]:ptx-bg-popover group-[.toaster]:ptx-text-popover-foreground group-[.toaster]:ptx-border-border group-[.toaster]:ptx-shadow-lg",
|
|
523
|
+
description: "group-[.toast]:ptx-text-muted-foreground",
|
|
524
|
+
actionButton: "group-[.toast]:ptx-bg-primary group-[.toast]:ptx-text-primary-foreground",
|
|
525
|
+
cancelButton: "group-[.toast]:ptx-bg-secondary group-[.toast]:ptx-text-secondary-foreground"
|
|
525
526
|
} },
|
|
526
527
|
...a
|
|
527
528
|
});
|
|
@@ -529,26 +530,26 @@ var Toaster = ({ ...a }) => {
|
|
|
529
530
|
ref: I,
|
|
530
531
|
decorative: P,
|
|
531
532
|
orientation: N,
|
|
532
|
-
className: cn("shrink-0 bg-border", N === "horizontal" ? "h-px w-full" : "h-full w-px", a),
|
|
533
|
+
className: cn("ptx-shrink-0 ptx-bg-border", N === "horizontal" ? "ptx-h-px ptx-w-full" : "ptx-h-full ptx-w-px", a),
|
|
533
534
|
...F
|
|
534
535
|
}));
|
|
535
536
|
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
536
537
|
function Empty({ className: a,...N }) {
|
|
537
538
|
return /* @__PURE__ */ jsx("div", {
|
|
538
|
-
className: cn("flex min-w-0 flex-1 flex-col items-center justify-center gap-[24px] text-balance rounded-[var(--
|
|
539
|
+
className: cn("ptx-flex ptx-min-w-0 ptx-flex-1 ptx-flex-col ptx-items-center ptx-justify-center ptx-gap-[24px] ptx-text-balance ptx-rounded-[var(--ptx-radius)] ptx-border ptx-border-dashed ptx-p-[24px] ptx-text-center ptx-text-foreground md:ptx-p-[48px]", a),
|
|
539
540
|
...N
|
|
540
541
|
});
|
|
541
542
|
}
|
|
542
543
|
function EmptyHeader({ className: a,...N }) {
|
|
543
544
|
return /* @__PURE__ */ jsx("div", {
|
|
544
|
-
className: cn("flex max-w-sm flex-col items-center gap-[8px] text-center", a),
|
|
545
|
+
className: cn("ptx-flex ptx-max-w-sm ptx-flex-col ptx-items-center ptx-gap-[8px] ptx-text-center", a),
|
|
545
546
|
...N
|
|
546
547
|
});
|
|
547
548
|
}
|
|
548
|
-
var emptyMediaVariants = cva("flex shrink-0 items-center justify-center", {
|
|
549
|
+
var emptyMediaVariants = cva("ptx-flex ptx-shrink-0 ptx-items-center ptx-justify-center", {
|
|
549
550
|
variants: { variant: {
|
|
550
551
|
default: "",
|
|
551
|
-
icon: "size-[40px] rounded-[var(--
|
|
552
|
+
icon: "ptx-size-[40px] ptx-rounded-[var(--ptx-radius)] ptx-bg-secondary ptx-text-foreground [&_svg]:ptx-size-[24px]"
|
|
552
553
|
} },
|
|
553
554
|
defaultVariants: { variant: "default" }
|
|
554
555
|
});
|
|
@@ -560,52 +561,52 @@ function EmptyMedia({ className: a, variant: N,...P }) {
|
|
|
560
561
|
}
|
|
561
562
|
function EmptyTitle({ className: a,...N }) {
|
|
562
563
|
return /* @__PURE__ */ jsx("div", {
|
|
563
|
-
className: cn("text-lg font-medium tracking-tight", a),
|
|
564
|
+
className: cn("ptx-text-lg ptx-font-medium ptx-tracking-tight", a),
|
|
564
565
|
...N
|
|
565
566
|
});
|
|
566
567
|
}
|
|
567
568
|
function EmptyDescription({ className: a,...N }) {
|
|
568
569
|
return /* @__PURE__ */ jsx("div", {
|
|
569
|
-
className: cn("text-sm leading-relaxed text-muted-foreground [&>a]:text-primary [&>a]:underline [&>a]:underline-offset-4", a),
|
|
570
|
+
className: cn("ptx-text-sm ptx-leading-relaxed ptx-text-muted-foreground [&>a]:ptx-text-primary [&>a]:ptx-underline [&>a]:ptx-underline-offset-4", a),
|
|
570
571
|
...N
|
|
571
572
|
});
|
|
572
573
|
}
|
|
573
574
|
function EmptyContent({ className: a,...N }) {
|
|
574
575
|
return /* @__PURE__ */ jsx("div", {
|
|
575
|
-
className: cn("flex w-full max-w-sm min-w-0 flex-col items-center gap-[16px] text-balance text-sm", a),
|
|
576
|
+
className: cn("ptx-flex ptx-w-full ptx-max-w-sm ptx-min-w-0 ptx-flex-col ptx-items-center ptx-gap-[16px] ptx-text-balance ptx-text-sm", a),
|
|
576
577
|
...N
|
|
577
578
|
});
|
|
578
579
|
}
|
|
579
580
|
var Accordion = AccordionPrimitive.Root, AccordionItem = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AccordionPrimitive.Item, {
|
|
580
581
|
ref: P,
|
|
581
|
-
className: cn("border-b", a),
|
|
582
|
+
className: cn("ptx-border-b", a),
|
|
582
583
|
...N
|
|
583
584
|
}));
|
|
584
585
|
AccordionItem.displayName = "AccordionItem";
|
|
585
586
|
var AccordionTrigger = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, {
|
|
586
|
-
className: "flex",
|
|
587
|
+
className: "ptx-flex",
|
|
587
588
|
children: /* @__PURE__ */ jsxs(AccordionPrimitive.Trigger, {
|
|
588
589
|
ref: F,
|
|
589
|
-
className: cn("flex flex-1 items-center justify-between py-[16px] text-sm font-medium text-foreground transition-all hover:underline [&[data-state=open]>svg]:rotate-180", a),
|
|
590
|
+
className: cn("ptx-flex ptx-flex-1 ptx-items-center ptx-justify-between ptx-py-[16px] ptx-text-sm ptx-font-medium ptx-text-foreground ptx-transition-all hover:ptx-underline [&[data-state=open]>svg]:ptx-rotate-180", a),
|
|
590
591
|
...P,
|
|
591
|
-
children: [N, /* @__PURE__ */ jsx(ChevronDown, { className: "h-[16px] w-[16px] shrink-0 text-muted-foreground transition-transform duration-200" })]
|
|
592
|
+
children: [N, /* @__PURE__ */ jsx(ChevronDown, { className: "ptx-h-[16px] ptx-w-[16px] ptx-shrink-0 ptx-text-muted-foreground ptx-transition-transform ptx-duration-200" })]
|
|
592
593
|
})
|
|
593
594
|
}));
|
|
594
595
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
595
596
|
var AccordionContent = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsx(AccordionPrimitive.Content, {
|
|
596
597
|
ref: F,
|
|
597
|
-
className: "overflow-hidden text-sm text-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
598
|
+
className: "ptx-overflow-hidden ptx-text-sm ptx-text-foreground data-[state=closed]:ptx-animate-accordion-up data-[state=open]:ptx-animate-accordion-down",
|
|
598
599
|
...P,
|
|
599
600
|
children: /* @__PURE__ */ jsx("div", {
|
|
600
|
-
className: cn("pb-[16px] pt-0", a),
|
|
601
|
+
className: cn("ptx-pb-[16px] ptx-pt-0", a),
|
|
601
602
|
children: N
|
|
602
603
|
})
|
|
603
604
|
}));
|
|
604
605
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
605
|
-
var alertVariants = cva("relative w-full rounded-[var(--
|
|
606
|
+
var alertVariants = cva("ptx-relative ptx-w-full ptx-rounded-[var(--ptx-radius)] ptx-border ptx-px-[16px] ptx-py-[12px] ptx-text-sm [&>svg+div]:ptx-translate-y-[-3px] [&>svg]:ptx-absolute [&>svg]:ptx-left-[16px] [&>svg]:ptx-top-[16px] [&>svg]:ptx-size-[16px] [&>svg~*]:ptx-pl-[28px]", {
|
|
606
607
|
variants: { variant: {
|
|
607
|
-
default: "bg-background text-foreground [&>svg]:text-foreground",
|
|
608
|
-
destructive: "border-destructive/50 text-destructive [&>svg]:text-destructive"
|
|
608
|
+
default: "ptx-bg-background ptx-text-foreground [&>svg]:ptx-text-foreground",
|
|
609
|
+
destructive: "ptx-border-destructive/50 ptx-text-destructive [&>svg]:ptx-text-destructive"
|
|
609
610
|
} },
|
|
610
611
|
defaultVariants: { variant: "default" }
|
|
611
612
|
}), Alert = React.forwardRef(({ className: a, variant: N,...P }, F) => /* @__PURE__ */ jsx("div", {
|
|
@@ -617,47 +618,48 @@ var alertVariants = cva("relative w-full rounded-[var(--pt-radius)] border px-[1
|
|
|
617
618
|
Alert.displayName = "Alert";
|
|
618
619
|
var AlertTitle = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("h5", {
|
|
619
620
|
ref: P,
|
|
620
|
-
className: cn("mb-[4px] font-medium leading-none tracking-tight", a),
|
|
621
|
+
className: cn("ptx-mb-[4px] ptx-font-medium ptx-leading-none ptx-tracking-tight", a),
|
|
621
622
|
...N
|
|
622
623
|
}));
|
|
623
624
|
AlertTitle.displayName = "AlertTitle";
|
|
624
625
|
var AlertDescription = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
625
626
|
ref: P,
|
|
626
|
-
className: cn("text-sm [&_p]:leading-relaxed", a),
|
|
627
|
+
className: cn("ptx-text-sm [&_p]:ptx-leading-relaxed", a),
|
|
627
628
|
...N
|
|
628
629
|
}));
|
|
629
630
|
AlertDescription.displayName = "AlertDescription";
|
|
630
631
|
var AlertDialog = AlertDialogPrimitive.Root, AlertDialogTrigger = AlertDialogPrimitive.Trigger, AlertDialogPortal = AlertDialogPrimitive.Portal, AlertDialogOverlay = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
|
|
631
632
|
ref: P,
|
|
632
|
-
|
|
633
|
+
"data-slot": "alert-dialog-overlay",
|
|
634
|
+
className: cn("ptx-fixed ptx-inset-0 ptx-z-[var(--pt-z-overlay,50)] ptx-bg-[rgb(var(--ptx-black)/0.8)] data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0", a),
|
|
633
635
|
...N
|
|
634
636
|
}));
|
|
635
637
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
636
638
|
var AlertDialogContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialogPrimitive.Content, {
|
|
637
639
|
ref: P,
|
|
638
|
-
className: cn("fixed left-[50%] top-[50%] z-[var(--pt-z-overlay,50)] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-[16px] border bg-background p-[24px] shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-[var(--
|
|
640
|
+
className: cn("ptx-fixed ptx-left-[50%] ptx-top-[50%] ptx-z-[var(--pt-z-overlay,50)] ptx-grid ptx-w-full ptx-max-w-lg ptx-translate-x-[-50%] ptx-translate-y-[-50%] ptx-gap-[16px] ptx-border ptx-bg-background ptx-p-[24px] ptx-shadow-lg ptx-duration-200 data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[state=closed]:ptx-slide-out-to-left-1/2 data-[state=closed]:ptx-slide-out-to-top-[48%] data-[state=open]:ptx-slide-in-from-left-1/2 data-[state=open]:ptx-slide-in-from-top-[48%] sm:ptx-rounded-[var(--ptx-radius)]", a),
|
|
639
641
|
...N
|
|
640
642
|
})] }));
|
|
641
643
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
642
644
|
var AlertDialogHeader = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
643
|
-
className: cn("flex flex-col space-y-[8px] text-center sm:text-left", a),
|
|
645
|
+
className: cn("ptx-flex ptx-flex-col ptx-space-y-[8px] ptx-text-center sm:ptx-text-left", a),
|
|
644
646
|
...N
|
|
645
647
|
});
|
|
646
648
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
647
649
|
var AlertDialogFooter = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
648
|
-
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-[8px]", a),
|
|
650
|
+
className: cn("ptx-flex ptx-flex-col-reverse sm:ptx-flex-row sm:ptx-justify-end sm:ptx-space-x-[8px]", a),
|
|
649
651
|
...N
|
|
650
652
|
});
|
|
651
653
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
652
654
|
var AlertDialogTitle = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
|
|
653
655
|
ref: P,
|
|
654
|
-
className: cn("text-lg font-semibold text-foreground", a),
|
|
656
|
+
className: cn("ptx-text-lg ptx-font-semibold ptx-text-foreground", a),
|
|
655
657
|
...N
|
|
656
658
|
}));
|
|
657
659
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
658
660
|
var AlertDialogDescription = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
|
|
659
661
|
ref: P,
|
|
660
|
-
className: cn("text-sm text-muted-foreground", a),
|
|
662
|
+
className: cn("ptx-text-sm ptx-text-muted-foreground", a),
|
|
661
663
|
...N
|
|
662
664
|
}));
|
|
663
665
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
@@ -669,7 +671,7 @@ var AlertDialogAction = React.forwardRef(({ className: a,...N }, P) => /* @__PUR
|
|
|
669
671
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
670
672
|
var AlertDialogCancel = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, {
|
|
671
673
|
ref: P,
|
|
672
|
-
className: cn(buttonVariants({ variant: "secondary" }), "mt-[8px] sm:mt-0", a),
|
|
674
|
+
className: cn(buttonVariants({ variant: "secondary" }), "ptx-mt-[8px] sm:ptx-mt-0", a),
|
|
673
675
|
...N
|
|
674
676
|
}));
|
|
675
677
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
@@ -681,19 +683,19 @@ var AspectRatio = AspectRatioPrimitive.Root, Breadcrumb = React.forwardRef(({ ..
|
|
|
681
683
|
Breadcrumb.displayName = "Breadcrumb";
|
|
682
684
|
var BreadcrumbList = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("ol", {
|
|
683
685
|
ref: P,
|
|
684
|
-
className: cn("flex flex-wrap items-center gap-[6px] break-words text-xs text-muted-foreground sm:gap-[10px]", a),
|
|
686
|
+
className: cn("ptx-flex ptx-flex-wrap ptx-items-center ptx-gap-[6px] ptx-break-words ptx-text-xs ptx-text-muted-foreground sm:ptx-gap-[10px]", a),
|
|
685
687
|
...N
|
|
686
688
|
}));
|
|
687
689
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
688
690
|
var BreadcrumbItem = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("li", {
|
|
689
691
|
ref: P,
|
|
690
|
-
className: cn("inline-flex items-center gap-[6px]", a),
|
|
692
|
+
className: cn("ptx-inline-flex ptx-items-center ptx-gap-[6px]", a),
|
|
691
693
|
...N
|
|
692
694
|
}));
|
|
693
695
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
694
696
|
var BreadcrumbLink = React.forwardRef(({ asChild: a, className: N,...P }, I) => /* @__PURE__ */ jsx(a ? Slot : "a", {
|
|
695
697
|
ref: I,
|
|
696
|
-
className: cn("transition-colors hover:text-foreground", N),
|
|
698
|
+
className: cn("ptx-transition-colors hover:ptx-text-foreground", N),
|
|
697
699
|
...P
|
|
698
700
|
}));
|
|
699
701
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
@@ -702,14 +704,14 @@ var BreadcrumbPage = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__
|
|
|
702
704
|
role: "link",
|
|
703
705
|
"aria-disabled": "true",
|
|
704
706
|
"aria-current": "page",
|
|
705
|
-
className: cn("font-normal text-foreground", a),
|
|
707
|
+
className: cn("ptx-font-normal ptx-text-foreground", a),
|
|
706
708
|
...N
|
|
707
709
|
}));
|
|
708
710
|
BreadcrumbPage.displayName = "BreadcrumbPage";
|
|
709
711
|
var BreadcrumbSeparator = ({ children: a, className: N,...P }) => /* @__PURE__ */ jsx("li", {
|
|
710
712
|
role: "presentation",
|
|
711
713
|
"aria-hidden": "true",
|
|
712
|
-
className: cn("[&>svg]:size-[14px]", N),
|
|
714
|
+
className: cn("[&>svg]:ptx-size-[14px]", N),
|
|
713
715
|
...P,
|
|
714
716
|
children: a ?? /* @__PURE__ */ jsx(ChevronRight, {})
|
|
715
717
|
});
|
|
@@ -717,18 +719,18 @@ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
|
717
719
|
var BreadcrumbEllipsis = ({ className: a, label: N = "More",...P }) => /* @__PURE__ */ jsxs("span", {
|
|
718
720
|
role: "presentation",
|
|
719
721
|
"aria-hidden": "true",
|
|
720
|
-
className: cn("flex h-[32px] w-[36px] items-center justify-center", a),
|
|
722
|
+
className: cn("ptx-flex ptx-h-[32px] ptx-w-[36px] ptx-items-center ptx-justify-center", a),
|
|
721
723
|
...P,
|
|
722
|
-
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-[16px] w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
723
|
-
className: "sr-only",
|
|
724
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "ptx-h-[16px] ptx-w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
725
|
+
className: "ptx-sr-only",
|
|
724
726
|
children: N
|
|
725
727
|
})]
|
|
726
728
|
});
|
|
727
729
|
BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
728
|
-
var buttonGroupVariants = cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-[8px] [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
730
|
+
var buttonGroupVariants = cva("ptx-flex ptx-w-fit ptx-items-stretch has-[>[data-slot=button-group]]:ptx-gap-[8px] [&>*]:focus-visible:ptx-relative [&>*]:focus-visible:ptx-z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:ptx-w-fit [&>input]:ptx-flex-1", {
|
|
729
731
|
variants: { orientation: {
|
|
730
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>*:not(:first-child)]:after:left-0",
|
|
731
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>*:not(:first-child)]:after:top-0"
|
|
732
|
+
horizontal: "[&>*:not(:first-child)]:ptx-rounded-l-none [&>*:not(:first-child)]:ptx-border-l-0 [&>*:not(:last-child)]:ptx-rounded-r-none [&>*:not(:first-child)]:after:ptx-left-0",
|
|
733
|
+
vertical: "ptx-flex-col [&>*:not(:first-child)]:ptx-rounded-t-none [&>*:not(:first-child)]:ptx-border-t-0 [&>*:not(:last-child)]:ptx-rounded-b-none [&>*:not(:first-child)]:after:ptx-top-0"
|
|
732
734
|
} },
|
|
733
735
|
defaultVariants: { orientation: "horizontal" }
|
|
734
736
|
});
|
|
@@ -744,7 +746,7 @@ function ButtonGroup({ className: a, orientation: N,...P }) {
|
|
|
744
746
|
function ButtonGroupText({ className: a, asChild: N = !1,...P }) {
|
|
745
747
|
return /* @__PURE__ */ jsx(N ? Slot : "div", {
|
|
746
748
|
"data-slot": "button-group-text",
|
|
747
|
-
className: cn("flex items-center gap-[8px] rounded-[var(--
|
|
749
|
+
className: cn("ptx-flex ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-muted ptx-px-[16px] ptx-text-sm ptx-font-medium ptx-text-foreground [&_svg]:ptx-pointer-events-none [&_svg:not([class*='size-'])]:ptx-size-[16px]", a),
|
|
748
750
|
...P
|
|
749
751
|
});
|
|
750
752
|
}
|
|
@@ -752,83 +754,83 @@ function ButtonGroupSeparator({ className: a, orientation: N = "vertical",...P }
|
|
|
752
754
|
return /* @__PURE__ */ jsx(Separator, {
|
|
753
755
|
"data-slot": "button-group-separator",
|
|
754
756
|
orientation: N,
|
|
755
|
-
className: cn("relative !m-0 self-stretch bg-input data-[orientation=vertical]:h-auto", a),
|
|
757
|
+
className: cn("ptx-relative !ptx-m-0 ptx-self-stretch ptx-bg-input data-[orientation=vertical]:ptx-h-auto", a),
|
|
756
758
|
...P
|
|
757
759
|
});
|
|
758
760
|
}
|
|
759
761
|
var ContextMenu = ContextMenuPrimitive.Root, ContextMenuTrigger = ContextMenuPrimitive.Trigger, ContextMenuGroup = ContextMenuPrimitive.Group, ContextMenuPortal = ContextMenuPrimitive.Portal, ContextMenuSub = ContextMenuPrimitive.Sub, ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup, ContextMenuSubTrigger = React.forwardRef(({ className: a, inset: N, children: P,...F }, I) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.SubTrigger, {
|
|
760
762
|
ref: I,
|
|
761
|
-
className: cn("flex cursor-default select-none items-center rounded-[var(--
|
|
763
|
+
className: cn("ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[state=open]:ptx-bg-accent data-[state=open]:ptx-text-accent-foreground", N && "ptx-pl-[32px]", a),
|
|
762
764
|
...F,
|
|
763
|
-
children: [P, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-[16px] w-[16px]" })]
|
|
765
|
+
children: [P, /* @__PURE__ */ jsx(ChevronRight, { className: "ptx-ml-auto ptx-h-[16px] ptx-w-[16px]" })]
|
|
764
766
|
}));
|
|
765
767
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
766
768
|
var ContextMenuSubContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(ContextMenuPrimitive.SubContent, {
|
|
767
769
|
ref: P,
|
|
768
|
-
className: cn("z-[var(--pt-z-popup,50)] min-w-[8rem] overflow-hidden rounded-[var(--
|
|
770
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-min-w-[8rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[4px] ptx-text-popover-foreground ptx-shadow-lg data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
769
771
|
...N
|
|
770
772
|
}));
|
|
771
773
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
772
774
|
var ContextMenuContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Content, {
|
|
773
775
|
ref: P,
|
|
774
|
-
className: cn("z-[var(--pt-z-popup,50)] min-w-[8rem] overflow-hidden rounded-[var(--
|
|
776
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-min-w-[8rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[4px] ptx-text-popover-foreground ptx-shadow-md data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
775
777
|
...N
|
|
776
778
|
}) }));
|
|
777
779
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
778
780
|
var ContextMenuItem = React.forwardRef(({ className: a, inset: N,...P }, F) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, {
|
|
779
781
|
ref: F,
|
|
780
|
-
className: cn("relative flex cursor-default select-none items-center gap-[8px] rounded-[var(--
|
|
782
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50 [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0", N && "ptx-pl-[32px]", a),
|
|
781
783
|
...P
|
|
782
784
|
}));
|
|
783
785
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
784
786
|
var ContextMenuCheckboxItem = React.forwardRef(({ className: a, children: N, checked: P,...F }, I) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.CheckboxItem, {
|
|
785
787
|
ref: I,
|
|
786
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
788
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[32px] ptx-pr-[8px] ptx-text-sm ptx-outline-none ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
787
789
|
checked: P,
|
|
788
790
|
...F,
|
|
789
791
|
children: [/* @__PURE__ */ jsx("span", {
|
|
790
|
-
className: "absolute left-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
791
|
-
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-[16px] w-[16px]" }) })
|
|
792
|
+
className: "ptx-absolute ptx-left-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
793
|
+
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "ptx-h-[16px] ptx-w-[16px]" }) })
|
|
792
794
|
}), N]
|
|
793
795
|
}));
|
|
794
796
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
795
797
|
var ContextMenuRadioItem = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(ContextMenuPrimitive.RadioItem, {
|
|
796
798
|
ref: F,
|
|
797
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
799
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[32px] ptx-pr-[8px] ptx-text-sm ptx-outline-none ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
798
800
|
...P,
|
|
799
801
|
children: [/* @__PURE__ */ jsx("span", {
|
|
800
|
-
className: "absolute left-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
801
|
-
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-[8px] w-[8px] fill-current" }) })
|
|
802
|
+
className: "ptx-absolute ptx-left-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
803
|
+
children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "ptx-h-[8px] ptx-w-[8px] ptx-fill-current" }) })
|
|
802
804
|
}), N]
|
|
803
805
|
}));
|
|
804
806
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
805
807
|
var ContextMenuLabel = React.forwardRef(({ className: a, inset: N,...P }, F) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Label, {
|
|
806
808
|
ref: F,
|
|
807
|
-
className: cn("px-[8px] py-[6px] text-sm font-semibold text-foreground", N && "pl-[32px]", a),
|
|
809
|
+
className: cn("ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-font-semibold ptx-text-foreground", N && "ptx-pl-[32px]", a),
|
|
808
810
|
...P
|
|
809
811
|
}));
|
|
810
812
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
811
813
|
var ContextMenuSeparator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, {
|
|
812
814
|
ref: P,
|
|
813
|
-
className: cn("-mx-[4px] my-[4px] h-px bg-border", a),
|
|
815
|
+
className: cn("-ptx-mx-[4px] ptx-my-[4px] ptx-h-px ptx-bg-border", a),
|
|
814
816
|
...N
|
|
815
817
|
}));
|
|
816
818
|
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
817
819
|
var ContextMenuShortcut = ({ className: a,...N }) => /* @__PURE__ */ jsx("span", {
|
|
818
|
-
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", a),
|
|
820
|
+
className: cn("ptx-ml-auto ptx-text-xs ptx-tracking-widest ptx-text-muted-foreground", a),
|
|
819
821
|
...N
|
|
820
822
|
});
|
|
821
823
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
822
824
|
function FieldSet({ className: a,...N }) {
|
|
823
825
|
return /* @__PURE__ */ jsx("fieldset", {
|
|
824
|
-
className: cn("flex flex-col gap-[24px]", a),
|
|
826
|
+
className: cn("ptx-flex ptx-flex-col ptx-gap-[24px]", a),
|
|
825
827
|
...N
|
|
826
828
|
});
|
|
827
829
|
}
|
|
828
|
-
var fieldLegendVariants = cva("mb-[12px] font-medium text-foreground", {
|
|
830
|
+
var fieldLegendVariants = cva("ptx-mb-[12px] ptx-font-medium ptx-text-foreground", {
|
|
829
831
|
variants: { variant: {
|
|
830
|
-
legend: "text-base",
|
|
831
|
-
label: "text-sm"
|
|
832
|
+
legend: "ptx-text-base",
|
|
833
|
+
label: "ptx-text-sm"
|
|
832
834
|
} },
|
|
833
835
|
defaultVariants: { variant: "legend" }
|
|
834
836
|
});
|
|
@@ -840,15 +842,15 @@ function FieldLegend({ className: a, variant: N,...P }) {
|
|
|
840
842
|
}
|
|
841
843
|
function FieldGroup({ className: a,...N }) {
|
|
842
844
|
return /* @__PURE__ */ jsx("div", {
|
|
843
|
-
className: cn("group/field-group flex w-full flex-col gap-[28px]", a),
|
|
845
|
+
className: cn("group/field-group ptx-flex ptx-w-full ptx-flex-col ptx-gap-[28px]", a),
|
|
844
846
|
...N
|
|
845
847
|
});
|
|
846
848
|
}
|
|
847
|
-
var fieldVariants = cva("group/field flex w-full gap-[8px] data-[invalid=true]:text-destructive", {
|
|
849
|
+
var fieldVariants = cva("group/field ptx-flex ptx-w-full ptx-gap-[8px] data-[invalid=true]:ptx-text-destructive", {
|
|
848
850
|
variants: { orientation: {
|
|
849
|
-
vertical: "flex-col",
|
|
850
|
-
horizontal: "flex-row items-center",
|
|
851
|
-
responsive: "flex-col md:flex-row md:items-center"
|
|
851
|
+
vertical: "ptx-flex-col",
|
|
852
|
+
horizontal: "ptx-flex-row ptx-items-center",
|
|
853
|
+
responsive: "ptx-flex-col md:ptx-flex-row md:ptx-items-center"
|
|
852
854
|
} },
|
|
853
855
|
defaultVariants: { orientation: "vertical" }
|
|
854
856
|
});
|
|
@@ -862,35 +864,35 @@ function Field({ className: a, orientation: N,...P }) {
|
|
|
862
864
|
}
|
|
863
865
|
function FieldContent({ className: a,...N }) {
|
|
864
866
|
return /* @__PURE__ */ jsx("div", {
|
|
865
|
-
className: cn("group/field-content flex flex-1 flex-col gap-[6px] leading-snug", a),
|
|
867
|
+
className: cn("group/field-content ptx-flex ptx-flex-1 ptx-flex-col ptx-gap-[6px] ptx-leading-snug", a),
|
|
866
868
|
...N
|
|
867
869
|
});
|
|
868
870
|
}
|
|
869
871
|
function FieldLabel({ className: a,...N }) {
|
|
870
872
|
return /* @__PURE__ */ jsx(Label, {
|
|
871
873
|
"data-slot": "field-label",
|
|
872
|
-
className: cn("flex w-fit gap-[8px] leading-snug", a),
|
|
874
|
+
className: cn("ptx-flex ptx-w-fit ptx-gap-[8px] ptx-leading-snug", a),
|
|
873
875
|
...N
|
|
874
876
|
});
|
|
875
877
|
}
|
|
876
878
|
function FieldTitle({ className: a,...N }) {
|
|
877
879
|
return /* @__PURE__ */ jsx("div", {
|
|
878
|
-
className: cn("flex w-fit items-center gap-[8px] text-sm font-medium leading-snug text-foreground", a),
|
|
880
|
+
className: cn("ptx-flex ptx-w-fit ptx-items-center ptx-gap-[8px] ptx-text-sm ptx-font-medium ptx-leading-snug ptx-text-foreground", a),
|
|
879
881
|
...N
|
|
880
882
|
});
|
|
881
883
|
}
|
|
882
884
|
function FieldDescription({ className: a,...N }) {
|
|
883
885
|
return /* @__PURE__ */ jsx("p", {
|
|
884
|
-
className: cn("text-sm font-normal leading-normal text-muted-foreground", a),
|
|
886
|
+
className: cn("ptx-text-sm ptx-font-normal ptx-leading-normal ptx-text-muted-foreground", a),
|
|
885
887
|
...N
|
|
886
888
|
});
|
|
887
889
|
}
|
|
888
890
|
function FieldSeparator({ children: a, className: N,...P }) {
|
|
889
891
|
return /* @__PURE__ */ jsxs("div", {
|
|
890
|
-
className: cn("relative -my-[8px] h-[20px] text-sm", N),
|
|
892
|
+
className: cn("ptx-relative -ptx-my-[8px] ptx-h-[20px] ptx-text-sm", N),
|
|
891
893
|
...P,
|
|
892
|
-
children: [/* @__PURE__ */ jsx(Separator, { className: "absolute inset-0 top-1/2" }), a && /* @__PURE__ */ jsx("span", {
|
|
893
|
-
className: "relative mx-auto flex w-fit items-center justify-center bg-background px-[8px] text-muted-foreground",
|
|
894
|
+
children: [/* @__PURE__ */ jsx(Separator, { className: "ptx-absolute ptx-inset-0 ptx-top-1/2" }), a && /* @__PURE__ */ jsx("span", {
|
|
895
|
+
className: "ptx-relative ptx-mx-auto ptx-flex ptx-w-fit ptx-items-center ptx-justify-center ptx-bg-background ptx-px-[8px] ptx-text-muted-foreground",
|
|
894
896
|
children: a
|
|
895
897
|
})]
|
|
896
898
|
});
|
|
@@ -901,13 +903,13 @@ function FieldError({ className: a, children: N, errors: F,...I }) {
|
|
|
901
903
|
if (!F?.length) return null;
|
|
902
904
|
let a = [...new Set(F.map((a) => a?.message).filter(Boolean))];
|
|
903
905
|
return a.length === 1 ? a[0] : /* @__PURE__ */ jsx("ul", {
|
|
904
|
-
className: "ml-[16px] flex list-disc flex-col gap-[4px]",
|
|
906
|
+
className: "ptx-ml-[16px] ptx-flex ptx-list-disc ptx-flex-col ptx-gap-[4px]",
|
|
905
907
|
children: a.map((a, N) => /* @__PURE__ */ jsx("li", { children: a }, N))
|
|
906
908
|
});
|
|
907
909
|
}, [N, F]);
|
|
908
910
|
return L ? /* @__PURE__ */ jsx("div", {
|
|
909
911
|
role: "alert",
|
|
910
|
-
className: cn("text-sm font-normal text-destructive", a),
|
|
912
|
+
className: cn("ptx-text-sm ptx-font-normal ptx-text-destructive", a),
|
|
911
913
|
...I,
|
|
912
914
|
children: L
|
|
913
915
|
}) : null;
|
|
@@ -916,27 +918,27 @@ var HoverCard = HoverCardPrimitive.Root, HoverCardTrigger = HoverCardPrimitive.T
|
|
|
916
918
|
ref: I,
|
|
917
919
|
align: N,
|
|
918
920
|
sideOffset: P,
|
|
919
|
-
className: cn("z-[var(--pt-z-popup,50)] w-[256px] rounded-[var(--
|
|
921
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-w-[256px] ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[16px] ptx-text-popover-foreground ptx-shadow-md ptx-outline-none data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
920
922
|
...F
|
|
921
923
|
}));
|
|
922
924
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
923
925
|
function InputGroup({ className: a,...N }) {
|
|
924
926
|
return /* @__PURE__ */ jsx("div", {
|
|
925
927
|
role: "group",
|
|
926
|
-
className: cn("group/input-group relative flex h-[32px] w-full items-center gap-[8px] rounded-[var(--
|
|
928
|
+
className: cn("group/input-group ptx-relative ptx-flex ptx-h-[32px] ptx-w-full ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-border-input ptx-px-[12px] ptx-transition-colors", "hover:ptx-border-neutral", "has-[input:focus-visible]:ptx-ring-1 has-[input:focus-visible]:ptx-ring-ring", "has-[input[aria-invalid=true]]:ptx-border-destructive has-[input[aria-invalid=true]]:hover:ptx-border-destructive", "has-[input:disabled]:ptx-cursor-not-allowed has-[input:disabled]:ptx-opacity-50 has-[input:disabled]:hover:ptx-border-input", a),
|
|
927
929
|
...N
|
|
928
930
|
});
|
|
929
931
|
}
|
|
930
932
|
var InputGroupInput = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("input", {
|
|
931
933
|
ref: P,
|
|
932
|
-
className: cn("h-full w-full flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed", a),
|
|
934
|
+
className: cn("ptx-h-full ptx-w-full ptx-flex-1 ptx-bg-transparent ptx-text-xs ptx-text-foreground placeholder:ptx-text-muted-foreground focus-visible:ptx-outline-none disabled:ptx-cursor-not-allowed", a),
|
|
933
935
|
...N
|
|
934
936
|
}));
|
|
935
937
|
InputGroupInput.displayName = "InputGroupInput";
|
|
936
|
-
var inputGroupAddonVariants = cva("flex items-center gap-[8px] text-sm text-muted-foreground [&_svg]:size-[16px] [&_svg]:shrink-0", {
|
|
938
|
+
var inputGroupAddonVariants = cva("ptx-flex ptx-items-center ptx-gap-[8px] ptx-text-sm ptx-text-muted-foreground [&_svg]:ptx-size-[16px] [&_svg]:ptx-shrink-0", {
|
|
937
939
|
variants: { align: {
|
|
938
|
-
"inline-start": "order-first",
|
|
939
|
-
"inline-end": "order-last"
|
|
940
|
+
"inline-start": "ptx-order-first",
|
|
941
|
+
"inline-end": "ptx-order-last"
|
|
940
942
|
} },
|
|
941
943
|
defaultVariants: { align: "inline-start" }
|
|
942
944
|
});
|
|
@@ -948,7 +950,7 @@ function InputGroupAddon({ className: a, align: N,...P }) {
|
|
|
948
950
|
}
|
|
949
951
|
function InputGroupText({ className: a,...N }) {
|
|
950
952
|
return /* @__PURE__ */ jsx("span", {
|
|
951
|
-
className: cn("flex items-center gap-[8px] text-sm text-muted-foreground", a),
|
|
953
|
+
className: cn("ptx-flex ptx-items-center ptx-gap-[8px] ptx-text-sm ptx-text-muted-foreground", a),
|
|
952
954
|
...N
|
|
953
955
|
});
|
|
954
956
|
}
|
|
@@ -956,26 +958,26 @@ function InputGroupButton({ className: a, size: N = "sm", variant: P = "ghost",.
|
|
|
956
958
|
return /* @__PURE__ */ jsx(Button, {
|
|
957
959
|
size: N,
|
|
958
960
|
variant: P,
|
|
959
|
-
className: cn("shrink-0", a),
|
|
961
|
+
className: cn("ptx-shrink-0", a),
|
|
960
962
|
...F
|
|
961
963
|
});
|
|
962
964
|
}
|
|
963
965
|
var SIZE_CLASSES = {
|
|
964
|
-
sm: "h-[24px] px-[8px] rounded-[var(--
|
|
965
|
-
default: "h-[32px] px-[10px]",
|
|
966
|
-
lg: "h-[40px] px-[12px] [&_input]:text-sm"
|
|
966
|
+
sm: "ptx-h-[24px] ptx-px-[8px] ptx-rounded-[var(--ptx-radius-sm)] [&_input]:ptx-text-2xs",
|
|
967
|
+
default: "ptx-h-[32px] ptx-px-[10px]",
|
|
968
|
+
lg: "ptx-h-[40px] ptx-px-[12px] [&_input]:ptx-text-sm"
|
|
967
969
|
}, ICON_CLASSES = {
|
|
968
|
-
sm: "[&_svg]:size-[16px]",
|
|
969
|
-
default: "[&_svg]:size-[16px]",
|
|
970
|
-
lg: "[&_svg]:size-[20px]"
|
|
970
|
+
sm: "[&_svg]:ptx-size-[16px]",
|
|
971
|
+
default: "[&_svg]:ptx-size-[16px]",
|
|
972
|
+
lg: "[&_svg]:ptx-size-[20px]"
|
|
971
973
|
}, CLEAR_ADDON_CLASSES = {
|
|
972
|
-
sm: "[&_svg]:size-[12px]",
|
|
973
|
-
default: "[&_svg]:size-[12px]",
|
|
974
|
-
lg: "[&_svg]:size-[16px]"
|
|
974
|
+
sm: "[&_svg]:ptx-size-[12px]",
|
|
975
|
+
default: "[&_svg]:ptx-size-[12px]",
|
|
976
|
+
lg: "[&_svg]:ptx-size-[16px]"
|
|
975
977
|
}, CLEAR_BUTTON_CLASSES = {
|
|
976
|
-
sm: "size-[20px] p-0 [&_svg]:size-[12px]",
|
|
977
|
-
default: "size-[24px] p-0 [&_svg]:size-[12px]",
|
|
978
|
-
lg: "size-[24px] p-0 [&_svg]:size-[16px]"
|
|
978
|
+
sm: "ptx-size-[20px] ptx-p-0 [&_svg]:ptx-size-[12px]",
|
|
979
|
+
default: "ptx-size-[24px] ptx-p-0 [&_svg]:ptx-size-[12px]",
|
|
980
|
+
lg: "ptx-size-[24px] ptx-p-0 [&_svg]:ptx-size-[16px]"
|
|
979
981
|
}, SearchInput = React.forwardRef(({ value: a, onValueChange: N, onClear: P, clearLabel: F = "Clear", size: I = "default", className: L, onKeyDown: B, disabled: V,...H }, U) => {
|
|
980
982
|
let W = () => {
|
|
981
983
|
N(""), P?.();
|
|
@@ -1016,27 +1018,27 @@ SearchInput.displayName = "SearchInput";
|
|
|
1016
1018
|
function ItemGroup({ className: a,...N }) {
|
|
1017
1019
|
return /* @__PURE__ */ jsx("div", {
|
|
1018
1020
|
role: "list",
|
|
1019
|
-
className: cn("group/item-group flex flex-col", a),
|
|
1021
|
+
className: cn("group/item-group ptx-flex ptx-flex-col", a),
|
|
1020
1022
|
...N
|
|
1021
1023
|
});
|
|
1022
1024
|
}
|
|
1023
1025
|
function ItemSeparator({ className: a,...N }) {
|
|
1024
1026
|
return /* @__PURE__ */ jsx(Separator, {
|
|
1025
1027
|
orientation: "horizontal",
|
|
1026
|
-
className: cn("my-0", a),
|
|
1028
|
+
className: cn("ptx-my-0", a),
|
|
1027
1029
|
...N
|
|
1028
1030
|
});
|
|
1029
1031
|
}
|
|
1030
|
-
var itemVariants = cva("group/item flex flex-wrap items-center rounded-[var(--
|
|
1032
|
+
var itemVariants = cva("group/item ptx-flex ptx-flex-wrap ptx-items-center ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-text-sm ptx-text-foreground ptx-outline-none ptx-transition-colors", {
|
|
1031
1033
|
variants: {
|
|
1032
1034
|
variant: {
|
|
1033
|
-
default: "border-transparent",
|
|
1034
|
-
outline: "border-border",
|
|
1035
|
-
muted: "border-transparent bg-muted"
|
|
1035
|
+
default: "ptx-border-transparent",
|
|
1036
|
+
outline: "ptx-border-border",
|
|
1037
|
+
muted: "ptx-border-transparent ptx-bg-muted"
|
|
1036
1038
|
},
|
|
1037
1039
|
size: {
|
|
1038
|
-
default: "gap-[16px] p-[16px]",
|
|
1039
|
-
sm: "gap-[10px] px-[16px] py-[12px]"
|
|
1040
|
+
default: "ptx-gap-[16px] ptx-p-[16px]",
|
|
1041
|
+
sm: "ptx-gap-[10px] ptx-px-[16px] ptx-py-[12px]"
|
|
1040
1042
|
}
|
|
1041
1043
|
},
|
|
1042
1044
|
defaultVariants: {
|
|
@@ -1053,11 +1055,11 @@ function Item({ className: a, variant: N, size: P, asChild: I = !1,...L }) {
|
|
|
1053
1055
|
...L
|
|
1054
1056
|
});
|
|
1055
1057
|
}
|
|
1056
|
-
var itemMediaVariants = cva("flex shrink-0 items-center justify-center gap-[8px] [&_svg]:pointer-events-none", {
|
|
1058
|
+
var itemMediaVariants = cva("ptx-flex ptx-shrink-0 ptx-items-center ptx-justify-center ptx-gap-[8px] [&_svg]:ptx-pointer-events-none", {
|
|
1057
1059
|
variants: { variant: {
|
|
1058
|
-
default: "bg-transparent [&_svg]:size-[20px] [&_svg]:text-muted-foreground",
|
|
1059
|
-
icon: "size-[32px] rounded-[var(--
|
|
1060
|
-
image: "size-[40px] overflow-hidden rounded-[var(--
|
|
1060
|
+
default: "ptx-bg-transparent [&_svg]:ptx-size-[20px] [&_svg]:ptx-text-muted-foreground",
|
|
1061
|
+
icon: "ptx-size-[32px] ptx-rounded-[var(--ptx-radius-sm)] ptx-border ptx-bg-secondary [&_svg]:ptx-size-[16px] [&_svg]:ptx-text-foreground",
|
|
1062
|
+
image: "ptx-size-[40px] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-sm)] [&_img]:ptx-size-full [&_img]:ptx-object-cover"
|
|
1061
1063
|
} },
|
|
1062
1064
|
defaultVariants: { variant: "default" }
|
|
1063
1065
|
});
|
|
@@ -1069,49 +1071,49 @@ function ItemMedia({ className: a, variant: N,...P }) {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
function ItemContent({ className: a,...N }) {
|
|
1071
1073
|
return /* @__PURE__ */ jsx("div", {
|
|
1072
|
-
className: cn("flex flex-1 flex-col gap-[4px]", a),
|
|
1074
|
+
className: cn("ptx-flex ptx-flex-1 ptx-flex-col ptx-gap-[4px]", a),
|
|
1073
1075
|
...N
|
|
1074
1076
|
});
|
|
1075
1077
|
}
|
|
1076
1078
|
function ItemTitle({ className: a,...N }) {
|
|
1077
1079
|
return /* @__PURE__ */ jsx("div", {
|
|
1078
|
-
className: cn("flex w-fit items-center gap-[8px] text-sm font-medium leading-snug", a),
|
|
1080
|
+
className: cn("ptx-flex ptx-w-fit ptx-items-center ptx-gap-[8px] ptx-text-sm ptx-font-medium ptx-leading-snug", a),
|
|
1079
1081
|
...N
|
|
1080
1082
|
});
|
|
1081
1083
|
}
|
|
1082
1084
|
function ItemDescription({ className: a,...N }) {
|
|
1083
1085
|
return /* @__PURE__ */ jsx("p", {
|
|
1084
|
-
className: cn("line-clamp-2 text-sm leading-normal text-muted-foreground", a),
|
|
1086
|
+
className: cn("ptx-line-clamp-2 ptx-text-sm ptx-leading-normal ptx-text-muted-foreground", a),
|
|
1085
1087
|
...N
|
|
1086
1088
|
});
|
|
1087
1089
|
}
|
|
1088
1090
|
function ItemActions({ className: a,...N }) {
|
|
1089
1091
|
return /* @__PURE__ */ jsx("div", {
|
|
1090
|
-
className: cn("flex items-center gap-[8px]", a),
|
|
1092
|
+
className: cn("ptx-flex ptx-items-center ptx-gap-[8px]", a),
|
|
1091
1093
|
...N
|
|
1092
1094
|
});
|
|
1093
1095
|
}
|
|
1094
1096
|
function ItemHeader({ className: a,...N }) {
|
|
1095
1097
|
return /* @__PURE__ */ jsx("div", {
|
|
1096
|
-
className: cn("flex basis-full items-center justify-between gap-[8px]", a),
|
|
1098
|
+
className: cn("ptx-flex ptx-basis-full ptx-items-center ptx-justify-between ptx-gap-[8px]", a),
|
|
1097
1099
|
...N
|
|
1098
1100
|
});
|
|
1099
1101
|
}
|
|
1100
1102
|
function ItemFooter({ className: a,...N }) {
|
|
1101
1103
|
return /* @__PURE__ */ jsx("div", {
|
|
1102
|
-
className: cn("flex basis-full items-center justify-between gap-[8px]", a),
|
|
1104
|
+
className: cn("ptx-flex ptx-basis-full ptx-items-center ptx-justify-between ptx-gap-[8px]", a),
|
|
1103
1105
|
...N
|
|
1104
1106
|
});
|
|
1105
1107
|
}
|
|
1106
1108
|
function Kbd({ className: a,...N }) {
|
|
1107
1109
|
return /* @__PURE__ */ jsx("kbd", {
|
|
1108
|
-
className: cn("pointer-events-none inline-flex h-[20px] w-fit min-w-[20px] select-none items-center justify-center gap-[4px] rounded-[var(--
|
|
1110
|
+
className: cn("ptx-pointer-events-none ptx-inline-flex ptx-h-[20px] ptx-w-fit ptx-min-w-[20px] ptx-select-none ptx-items-center ptx-justify-center ptx-gap-[4px] ptx-rounded-[var(--ptx-radius-sm)] ptx-bg-muted ptx-px-[4px] ptx-font-sans ptx-text-2xs ptx-font-medium ptx-text-muted-foreground [&_svg]:ptx-size-[12px]", a),
|
|
1109
1111
|
...N
|
|
1110
1112
|
});
|
|
1111
1113
|
}
|
|
1112
1114
|
function KbdGroup({ className: a,...N }) {
|
|
1113
1115
|
return /* @__PURE__ */ jsx("span", {
|
|
1114
|
-
className: cn("inline-flex items-center gap-[4px]", a),
|
|
1116
|
+
className: cn("ptx-inline-flex ptx-items-center ptx-gap-[4px]", a),
|
|
1115
1117
|
...N
|
|
1116
1118
|
});
|
|
1117
1119
|
}
|
|
@@ -1120,26 +1122,26 @@ function MenubarMenu(a) {
|
|
|
1120
1122
|
}
|
|
1121
1123
|
var MenubarGroup = MenubarPrimitive.Group, MenubarPortal = MenubarPrimitive.Portal, MenubarSub = MenubarPrimitive.Sub, MenubarRadioGroup = MenubarPrimitive.RadioGroup, Menubar = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(MenubarPrimitive.Root, {
|
|
1122
1124
|
ref: P,
|
|
1123
|
-
className: cn("flex h-[32px] items-center gap-[4px] rounded-[var(--
|
|
1125
|
+
className: cn("ptx-flex ptx-h-[32px] ptx-items-center ptx-gap-[4px] ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-background ptx-p-[4px]", a),
|
|
1124
1126
|
...N
|
|
1125
1127
|
}));
|
|
1126
1128
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
1127
1129
|
var MenubarTrigger = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(MenubarPrimitive.Trigger, {
|
|
1128
1130
|
ref: P,
|
|
1129
|
-
className: cn("flex cursor-default select-none items-center rounded-[var(--
|
|
1131
|
+
className: cn("ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[12px] ptx-py-[4px] ptx-text-sm ptx-font-medium ptx-text-foreground ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[state=open]:ptx-bg-accent data-[state=open]:ptx-text-accent-foreground", a),
|
|
1130
1132
|
...N
|
|
1131
1133
|
}));
|
|
1132
1134
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
1133
1135
|
var MenubarSubTrigger = React.forwardRef(({ className: a, inset: N, children: P,...F }, I) => /* @__PURE__ */ jsxs(MenubarPrimitive.SubTrigger, {
|
|
1134
1136
|
ref: I,
|
|
1135
|
-
className: cn("flex cursor-default select-none items-center rounded-[var(--
|
|
1137
|
+
className: cn("ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[state=open]:ptx-bg-accent data-[state=open]:ptx-text-accent-foreground", N && "ptx-pl-[32px]", a),
|
|
1136
1138
|
...F,
|
|
1137
|
-
children: [P, /* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-[16px] w-[16px]" })]
|
|
1139
|
+
children: [P, /* @__PURE__ */ jsx(ChevronRight, { className: "ptx-ml-auto ptx-h-[16px] ptx-w-[16px]" })]
|
|
1138
1140
|
}));
|
|
1139
1141
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
1140
1142
|
var MenubarSubContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(MenubarPrimitive.SubContent, {
|
|
1141
1143
|
ref: P,
|
|
1142
|
-
className: cn("z-[var(--pt-z-popup,50)] min-w-[8rem] overflow-hidden rounded-[var(--
|
|
1144
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-min-w-[8rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[4px] ptx-text-popover-foreground ptx-shadow-lg data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
1143
1145
|
...N
|
|
1144
1146
|
}));
|
|
1145
1147
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
@@ -1148,81 +1150,81 @@ var MenubarContent = React.forwardRef(({ className: a, align: N = "start", align
|
|
|
1148
1150
|
align: N,
|
|
1149
1151
|
alignOffset: P,
|
|
1150
1152
|
sideOffset: F,
|
|
1151
|
-
className: cn("z-[var(--pt-z-popup,50)] min-w-[12rem] overflow-hidden rounded-[var(--
|
|
1153
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-min-w-[12rem] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[4px] ptx-text-popover-foreground ptx-shadow-md data-[state=open]:ptx-animate-in data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
1152
1154
|
...I
|
|
1153
1155
|
}) }));
|
|
1154
1156
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
1155
1157
|
var MenubarItem = React.forwardRef(({ className: a, inset: N,...P }, F) => /* @__PURE__ */ jsx(MenubarPrimitive.Item, {
|
|
1156
1158
|
ref: F,
|
|
1157
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
1159
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", N && "ptx-pl-[32px]", a),
|
|
1158
1160
|
...P
|
|
1159
1161
|
}));
|
|
1160
1162
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
1161
1163
|
var MenubarCheckboxItem = React.forwardRef(({ className: a, children: N, checked: P,...F }, I) => /* @__PURE__ */ jsxs(MenubarPrimitive.CheckboxItem, {
|
|
1162
1164
|
ref: I,
|
|
1163
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
1165
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[32px] ptx-pr-[8px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
1164
1166
|
checked: P,
|
|
1165
1167
|
...F,
|
|
1166
1168
|
children: [/* @__PURE__ */ jsx("span", {
|
|
1167
|
-
className: "absolute left-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
1168
|
-
children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-[16px] w-[16px]" }) })
|
|
1169
|
+
className: "ptx-absolute ptx-left-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
1170
|
+
children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "ptx-h-[16px] ptx-w-[16px]" }) })
|
|
1169
1171
|
}), N]
|
|
1170
1172
|
}));
|
|
1171
1173
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
1172
1174
|
var MenubarRadioItem = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(MenubarPrimitive.RadioItem, {
|
|
1173
1175
|
ref: F,
|
|
1174
|
-
className: cn("relative flex cursor-default select-none items-center rounded-[var(--
|
|
1176
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-rounded-[var(--ptx-radius-sm)] ptx-py-[6px] ptx-pl-[32px] ptx-pr-[8px] ptx-text-sm ptx-outline-none focus:ptx-bg-accent focus:ptx-text-accent-foreground data-[disabled]:ptx-pointer-events-none data-[disabled]:ptx-opacity-50", a),
|
|
1175
1177
|
...P,
|
|
1176
1178
|
children: [/* @__PURE__ */ jsx("span", {
|
|
1177
|
-
className: "absolute left-[8px] flex h-[14px] w-[14px] items-center justify-center",
|
|
1178
|
-
children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-[8px] w-[8px] fill-current" }) })
|
|
1179
|
+
className: "ptx-absolute ptx-left-[8px] ptx-flex ptx-h-[14px] ptx-w-[14px] ptx-items-center ptx-justify-center",
|
|
1180
|
+
children: /* @__PURE__ */ jsx(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "ptx-h-[8px] ptx-w-[8px] ptx-fill-current" }) })
|
|
1179
1181
|
}), N]
|
|
1180
1182
|
}));
|
|
1181
1183
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
1182
1184
|
var MenubarLabel = React.forwardRef(({ className: a, inset: N,...P }, F) => /* @__PURE__ */ jsx(MenubarPrimitive.Label, {
|
|
1183
1185
|
ref: F,
|
|
1184
|
-
className: cn("px-[8px] py-[6px] text-sm font-semibold text-foreground", N && "pl-[32px]", a),
|
|
1186
|
+
className: cn("ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-font-semibold ptx-text-foreground", N && "ptx-pl-[32px]", a),
|
|
1185
1187
|
...P
|
|
1186
1188
|
}));
|
|
1187
1189
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
1188
1190
|
var MenubarSeparator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(MenubarPrimitive.Separator, {
|
|
1189
1191
|
ref: P,
|
|
1190
|
-
className: cn("-mx-[4px] my-[4px] h-px bg-muted", a),
|
|
1192
|
+
className: cn("-ptx-mx-[4px] ptx-my-[4px] ptx-h-px ptx-bg-muted", a),
|
|
1191
1193
|
...N
|
|
1192
1194
|
}));
|
|
1193
1195
|
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
1194
1196
|
var MenubarShortcut = ({ className: a,...N }) => /* @__PURE__ */ jsx("span", {
|
|
1195
|
-
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", a),
|
|
1197
|
+
className: cn("ptx-ml-auto ptx-text-xs ptx-tracking-widest ptx-text-muted-foreground", a),
|
|
1196
1198
|
...N
|
|
1197
1199
|
});
|
|
1198
1200
|
MenubarShortcut.displayName = "MenubarShortcut";
|
|
1199
1201
|
var NativeSelect = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs("div", {
|
|
1200
|
-
className: "relative w-full",
|
|
1202
|
+
className: "ptx-relative ptx-w-full",
|
|
1201
1203
|
children: [/* @__PURE__ */ jsx("select", {
|
|
1202
1204
|
ref: F,
|
|
1203
|
-
className: cn("h-[32px] w-full appearance-none rounded-[var(--
|
|
1205
|
+
className: cn("ptx-h-[32px] ptx-w-full ptx-appearance-none ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-border-input ptx-bg-transparent ptx-pl-[12px] ptx-pr-[32px] ptx-text-xs ptx-text-foreground ptx-transition-colors enabled:hover:ptx-border-neutral focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 aria-[invalid=true]:ptx-border-destructive aria-[invalid=true]:enabled:hover:ptx-border-destructive aria-[invalid=true]:focus-visible:ptx-ring-destructive/30", a),
|
|
1204
1206
|
...P,
|
|
1205
1207
|
children: N
|
|
1206
1208
|
}), /* @__PURE__ */ jsx(ChevronDown, {
|
|
1207
|
-
className: "pointer-events-none absolute right-[10px] top-1/2 size-[16px] -translate-y-1/2 text-muted-foreground",
|
|
1209
|
+
className: "ptx-pointer-events-none ptx-absolute ptx-right-[10px] ptx-top-1/2 ptx-size-[16px] -ptx-translate-y-1/2 ptx-text-muted-foreground",
|
|
1208
1210
|
"aria-hidden": "true"
|
|
1209
1211
|
})]
|
|
1210
1212
|
}));
|
|
1211
1213
|
NativeSelect.displayName = "NativeSelect";
|
|
1212
1214
|
var NavigationMenu = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Root, {
|
|
1213
1215
|
ref: F,
|
|
1214
|
-
className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", a),
|
|
1216
|
+
className: cn("ptx-relative ptx-z-10 ptx-flex ptx-max-w-max ptx-flex-1 ptx-items-center ptx-justify-center", a),
|
|
1215
1217
|
...P,
|
|
1216
1218
|
children: [N, /* @__PURE__ */ jsx(NavigationMenuViewport, {})]
|
|
1217
1219
|
}));
|
|
1218
1220
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
1219
1221
|
var NavigationMenuList = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(NavigationMenuPrimitive.List, {
|
|
1220
1222
|
ref: P,
|
|
1221
|
-
className: cn("group flex flex-1 list-none items-center justify-center gap-[4px]", a),
|
|
1223
|
+
className: cn("group ptx-flex ptx-flex-1 ptx-list-none ptx-items-center ptx-justify-center ptx-gap-[4px]", a),
|
|
1222
1224
|
...N
|
|
1223
1225
|
}));
|
|
1224
1226
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1225
|
-
var NavigationMenuItem = NavigationMenuPrimitive.Item, navigationMenuTriggerStyle = cva("state-layer group inline-flex h-[32px] w-max items-center justify-center rounded-[var(--
|
|
1227
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item, navigationMenuTriggerStyle = cva("ptx-state-layer group ptx-inline-flex ptx-h-[32px] ptx-w-max ptx-items-center ptx-justify-center ptx-rounded-[var(--ptx-radius-md)] ptx-bg-background ptx-px-[16px] ptx-py-[8px] ptx-text-sm ptx-font-medium ptx-text-foreground ptx-transition-colors focus:ptx-bg-accent focus:ptx-text-accent-foreground focus:ptx-outline-none disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 data-[state=open]:ptx-bg-accent"), NavigationMenuTrigger = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Trigger, {
|
|
1226
1228
|
ref: F,
|
|
1227
1229
|
className: cn(navigationMenuTriggerStyle(), "group", a),
|
|
1228
1230
|
...P,
|
|
@@ -1230,7 +1232,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item, navigationMenuTriggerStyl
|
|
|
1230
1232
|
N,
|
|
1231
1233
|
" ",
|
|
1232
1234
|
/* @__PURE__ */ jsx(ChevronDown, {
|
|
1233
|
-
className: "relative top-[1px] ml-[4px] h-[12px] w-[12px] transition duration-300 group-data-[state=open]:rotate-180",
|
|
1235
|
+
className: "ptx-relative ptx-top-[1px] ptx-ml-[4px] ptx-h-[12px] ptx-w-[12px] ptx-transition ptx-duration-300 group-data-[state=open]:ptx-rotate-180",
|
|
1234
1236
|
"aria-hidden": "true"
|
|
1235
1237
|
})
|
|
1236
1238
|
]
|
|
@@ -1238,14 +1240,14 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item, navigationMenuTriggerStyl
|
|
|
1238
1240
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
1239
1241
|
var NavigationMenuContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(NavigationMenuPrimitive.Content, {
|
|
1240
1242
|
ref: P,
|
|
1241
|
-
className: cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto", a),
|
|
1243
|
+
className: cn("ptx-left-0 ptx-top-0 ptx-w-full data-[motion^=from-]:ptx-animate-in data-[motion^=to-]:ptx-animate-out data-[motion^=from-]:ptx-fade-in data-[motion^=to-]:ptx-fade-out data-[motion=from-end]:ptx-slide-in-from-right-52 data-[motion=from-start]:ptx-slide-in-from-left-52 data-[motion=to-end]:ptx-slide-out-to-right-52 data-[motion=to-start]:ptx-slide-out-to-left-52 md:ptx-absolute md:ptx-w-auto", a),
|
|
1242
1244
|
...N
|
|
1243
1245
|
}));
|
|
1244
1246
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
1245
1247
|
var NavigationMenuLink = NavigationMenuPrimitive.Link, NavigationMenuViewport = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
1246
|
-
className: cn("absolute left-0 top-full flex justify-center"),
|
|
1248
|
+
className: cn("ptx-absolute ptx-left-0 ptx-top-full ptx-flex ptx-justify-center"),
|
|
1247
1249
|
children: /* @__PURE__ */ jsx(NavigationMenuPrimitive.Viewport, {
|
|
1248
|
-
className: cn("origin-top-center relative mt-[6px] h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-[var(--
|
|
1250
|
+
className: cn("origin-top-center ptx-relative ptx-mt-[6px] ptx-h-[var(--radix-navigation-menu-viewport-height)] ptx-w-full ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-text-popover-foreground ptx-shadow-md data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-90 md:ptx-w-[var(--radix-navigation-menu-viewport-width)]", a),
|
|
1249
1251
|
ref: P,
|
|
1250
1252
|
...N
|
|
1251
1253
|
})
|
|
@@ -1253,21 +1255,21 @@ var NavigationMenuLink = NavigationMenuPrimitive.Link, NavigationMenuViewport =
|
|
|
1253
1255
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
1254
1256
|
var NavigationMenuIndicator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(NavigationMenuPrimitive.Indicator, {
|
|
1255
1257
|
ref: P,
|
|
1256
|
-
className: cn("top-full z-[1] flex h-[6px] items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", a),
|
|
1258
|
+
className: cn("ptx-top-full ptx-z-[1] ptx-flex ptx-h-[6px] ptx-items-end ptx-justify-center ptx-overflow-hidden data-[state=visible]:ptx-animate-in data-[state=hidden]:ptx-animate-out data-[state=hidden]:ptx-fade-out data-[state=visible]:ptx-fade-in", a),
|
|
1257
1259
|
...N,
|
|
1258
|
-
children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-[8px] w-[8px] rotate-45 rounded-tl-[var(--
|
|
1260
|
+
children: /* @__PURE__ */ jsx("div", { className: "ptx-relative ptx-top-[60%] ptx-h-[8px] ptx-w-[8px] ptx-rotate-45 ptx-rounded-tl-[var(--ptx-radius-sm)] ptx-bg-border" })
|
|
1259
1261
|
}));
|
|
1260
1262
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
1261
1263
|
var Pagination = ({ className: a,...N }) => /* @__PURE__ */ jsx("nav", {
|
|
1262
1264
|
role: "navigation",
|
|
1263
1265
|
"aria-label": "pagination",
|
|
1264
|
-
className: cn("mx-auto flex w-full justify-center", a),
|
|
1266
|
+
className: cn("ptx-mx-auto ptx-flex ptx-w-full ptx-justify-center", a),
|
|
1265
1267
|
...N
|
|
1266
1268
|
});
|
|
1267
1269
|
Pagination.displayName = "Pagination";
|
|
1268
1270
|
var PaginationContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("ul", {
|
|
1269
1271
|
ref: P,
|
|
1270
|
-
className: cn("flex flex-row items-center gap-[4px]", a),
|
|
1272
|
+
className: cn("ptx-flex ptx-flex-row ptx-items-center ptx-gap-[4px]", a),
|
|
1271
1273
|
...N
|
|
1272
1274
|
}));
|
|
1273
1275
|
PaginationContent.displayName = "PaginationContent";
|
|
@@ -1288,25 +1290,25 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
1288
1290
|
var PaginationPrevious = ({ className: a, label: N = "Previous",...P }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
1289
1291
|
"aria-label": N,
|
|
1290
1292
|
size: "default",
|
|
1291
|
-
className: cn("gap-[4px] pl-[10px]", a),
|
|
1293
|
+
className: cn("ptx-gap-[4px] ptx-pl-[10px]", a),
|
|
1292
1294
|
...P,
|
|
1293
|
-
children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "h-[16px] w-[16px]" }), /* @__PURE__ */ jsx("span", { children: N })]
|
|
1295
|
+
children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "ptx-h-[16px] ptx-w-[16px]" }), /* @__PURE__ */ jsx("span", { children: N })]
|
|
1294
1296
|
});
|
|
1295
1297
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
1296
1298
|
var PaginationNext = ({ className: a, label: N = "Next",...P }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
1297
1299
|
"aria-label": N,
|
|
1298
1300
|
size: "default",
|
|
1299
|
-
className: cn("gap-[4px] pr-[10px]", a),
|
|
1301
|
+
className: cn("ptx-gap-[4px] ptx-pr-[10px]", a),
|
|
1300
1302
|
...P,
|
|
1301
|
-
children: [/* @__PURE__ */ jsx("span", { children: N }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-[16px] w-[16px]" })]
|
|
1303
|
+
children: [/* @__PURE__ */ jsx("span", { children: N }), /* @__PURE__ */ jsx(ChevronRight, { className: "ptx-h-[16px] ptx-w-[16px]" })]
|
|
1302
1304
|
});
|
|
1303
1305
|
PaginationNext.displayName = "PaginationNext";
|
|
1304
1306
|
var PaginationEllipsis = ({ className: a, label: N = "More pages",...P }) => /* @__PURE__ */ jsxs("span", {
|
|
1305
1307
|
"aria-hidden": !0,
|
|
1306
|
-
className: cn("flex h-[32px] w-[36px] items-center justify-center text-foreground", a),
|
|
1308
|
+
className: cn("ptx-flex ptx-h-[32px] ptx-w-[36px] ptx-items-center ptx-justify-center ptx-text-foreground", a),
|
|
1307
1309
|
...P,
|
|
1308
|
-
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-[16px] w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1309
|
-
className: "sr-only",
|
|
1310
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "ptx-h-[16px] ptx-w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1311
|
+
className: "ptx-sr-only",
|
|
1310
1312
|
children: N
|
|
1311
1313
|
})]
|
|
1312
1314
|
});
|
|
@@ -1315,27 +1317,27 @@ var Popover = PopoverPrimitive.Root, PopoverTrigger = PopoverPrimitive.Trigger,
|
|
|
1315
1317
|
ref: I,
|
|
1316
1318
|
align: N,
|
|
1317
1319
|
sideOffset: P,
|
|
1318
|
-
className: cn("z-[var(--pt-z-popup,50)] w-[288px] rounded-[var(--
|
|
1320
|
+
className: cn("ptx-z-[var(--pt-z-popup,50)] ptx-w-[288px] ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-bg-popover ptx-p-[16px] ptx-text-popover-foreground ptx-shadow-md ptx-outline-none data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0 data-[state=closed]:ptx-zoom-out-95 data-[state=open]:ptx-zoom-in-95 data-[side=bottom]:ptx-slide-in-from-top-2 data-[side=left]:ptx-slide-in-from-right-2 data-[side=right]:ptx-slide-in-from-left-2 data-[side=top]:ptx-slide-in-from-bottom-2", a),
|
|
1319
1321
|
...F
|
|
1320
1322
|
}) }));
|
|
1321
1323
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
1322
1324
|
var Progress = React.forwardRef(({ className: a, value: N,...P }, F) => /* @__PURE__ */ jsx(ProgressPrimitive.Root, {
|
|
1323
1325
|
ref: F,
|
|
1324
|
-
className: cn("relative h-[8px] w-full overflow-hidden rounded-full bg-secondary", a),
|
|
1326
|
+
className: cn("ptx-relative ptx-h-[8px] ptx-w-full ptx-overflow-hidden ptx-rounded-full ptx-bg-secondary", a),
|
|
1325
1327
|
...P,
|
|
1326
1328
|
children: /* @__PURE__ */ jsx(ProgressPrimitive.Indicator, {
|
|
1327
|
-
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
1329
|
+
className: "ptx-h-full ptx-w-full ptx-flex-1 ptx-bg-primary ptx-transition-all",
|
|
1328
1330
|
style: { transform: `translateX(-${100 - (N || 0)}%)` }
|
|
1329
1331
|
})
|
|
1330
1332
|
}));
|
|
1331
1333
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
1332
1334
|
var ScrollArea = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
|
|
1333
1335
|
ref: F,
|
|
1334
|
-
className: cn("relative overflow-hidden", a),
|
|
1336
|
+
className: cn("ptx-relative ptx-overflow-hidden", a),
|
|
1335
1337
|
...P,
|
|
1336
1338
|
children: [
|
|
1337
1339
|
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
|
|
1338
|
-
className: "h-full w-full rounded-[inherit]",
|
|
1340
|
+
className: "ptx-h-full ptx-w-full ptx-rounded-[inherit]",
|
|
1339
1341
|
children: N
|
|
1340
1342
|
}),
|
|
1341
1343
|
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
@@ -1346,23 +1348,24 @@ ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
|
1346
1348
|
var ScrollBar = React.forwardRef(({ className: a, orientation: N = "vertical",...P }, F) => /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
1347
1349
|
ref: F,
|
|
1348
1350
|
orientation: N,
|
|
1349
|
-
className: cn("flex touch-none select-none transition-colors", N === "vertical" && "h-full w-[10px] border-l border-l-transparent p-[1px]", N === "horizontal" && "h-[10px] flex-col border-t border-t-transparent p-[1px]", a),
|
|
1351
|
+
className: cn("ptx-flex ptx-touch-none ptx-select-none ptx-transition-colors", N === "vertical" && "ptx-h-full ptx-w-[10px] ptx-border-l ptx-border-l-transparent ptx-p-[1px]", N === "horizontal" && "ptx-h-[10px] ptx-flex-col ptx-border-t ptx-border-t-transparent ptx-p-[1px]", a),
|
|
1350
1352
|
...P,
|
|
1351
|
-
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
1353
|
+
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "ptx-relative ptx-flex-1 ptx-rounded-full ptx-bg-border" })
|
|
1352
1354
|
}));
|
|
1353
1355
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
1354
1356
|
var Sheet = DialogPrimitive.Root, SheetTrigger = DialogPrimitive.Trigger, SheetClose = DialogPrimitive.Close, SheetPortal = DialogPrimitive.Portal, SheetOverlay = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DialogPrimitive.Overlay, {
|
|
1355
1357
|
ref: P,
|
|
1356
|
-
|
|
1358
|
+
"data-slot": "sheet-overlay",
|
|
1359
|
+
className: cn("ptx-fixed ptx-inset-0 ptx-z-[var(--pt-z-overlay,50)] ptx-bg-[rgb(var(--ptx-black)/0.8)] data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out data-[state=closed]:ptx-fade-out-0 data-[state=open]:ptx-fade-in-0", a),
|
|
1357
1360
|
...N
|
|
1358
1361
|
}));
|
|
1359
1362
|
SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
1360
|
-
var sheetVariants = cva("fixed z-[var(--pt-z-overlay,50)] gap-[16px] bg-background p-[24px] shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out", {
|
|
1363
|
+
var sheetVariants = cva("ptx-fixed ptx-z-[var(--pt-z-overlay,50)] ptx-gap-[16px] ptx-bg-background ptx-p-[24px] ptx-shadow-lg ptx-transition ptx-ease-in-out data-[state=closed]:ptx-duration-300 data-[state=open]:ptx-duration-500 data-[state=open]:ptx-animate-in data-[state=closed]:ptx-animate-out", {
|
|
1361
1364
|
variants: { side: {
|
|
1362
|
-
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
1363
|
-
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
1364
|
-
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
1365
|
-
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
1365
|
+
top: "ptx-inset-x-0 ptx-top-0 ptx-border-b data-[state=closed]:ptx-slide-out-to-top data-[state=open]:ptx-slide-in-from-top",
|
|
1366
|
+
bottom: "ptx-inset-x-0 ptx-bottom-0 ptx-border-t data-[state=closed]:ptx-slide-out-to-bottom data-[state=open]:ptx-slide-in-from-bottom",
|
|
1367
|
+
left: "ptx-inset-y-0 ptx-left-0 ptx-h-full ptx-w-3/4 ptx-border-r data-[state=closed]:ptx-slide-out-to-left data-[state=open]:ptx-slide-in-from-left sm:ptx-max-w-sm",
|
|
1368
|
+
right: "ptx-inset-y-0 ptx-right-0 ptx-h-full ptx-w-3/4 ptx-border-l data-[state=closed]:ptx-slide-out-to-right data-[state=open]:ptx-slide-in-from-right sm:ptx-max-w-sm"
|
|
1366
1369
|
} },
|
|
1367
1370
|
defaultVariants: { side: "right" }
|
|
1368
1371
|
}), SheetContent = React.forwardRef(({ side: a = "right", className: N, children: P, closeLabel: F = "Close",...I }, L) => /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(DialogPrimitive.Content, {
|
|
@@ -1370,39 +1373,40 @@ var sheetVariants = cva("fixed z-[var(--pt-z-overlay,50)] gap-[16px] bg-backgrou
|
|
|
1370
1373
|
className: cn(sheetVariants({ side: a }), N),
|
|
1371
1374
|
...I,
|
|
1372
1375
|
children: [P, /* @__PURE__ */ jsxs(DialogPrimitive.Close, {
|
|
1373
|
-
className: "absolute right-[16px] top-[16px] rounded-[var(--
|
|
1374
|
-
children: [/* @__PURE__ */ jsx(X, { className: "h-[16px] w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1375
|
-
className: "sr-only",
|
|
1376
|
+
className: "ptx-absolute ptx-right-[16px] ptx-top-[16px] ptx-rounded-[var(--ptx-radius-sm)] ptx-opacity-70 ptx-ring-offset-background ptx-transition-opacity hover:ptx-opacity-100 focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2 disabled:ptx-pointer-events-none data-[state=open]:ptx-bg-accent",
|
|
1377
|
+
children: [/* @__PURE__ */ jsx(X, { className: "ptx-h-[16px] ptx-w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1378
|
+
className: "ptx-sr-only",
|
|
1376
1379
|
children: F
|
|
1377
1380
|
})]
|
|
1378
1381
|
})]
|
|
1379
1382
|
})] }));
|
|
1380
1383
|
SheetContent.displayName = DialogPrimitive.Content.displayName;
|
|
1381
1384
|
var SheetHeader = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
1382
|
-
className: cn("flex flex-col space-y-[8px] text-center sm:text-left", a),
|
|
1385
|
+
className: cn("ptx-flex ptx-flex-col ptx-space-y-[8px] ptx-text-center sm:ptx-text-left", a),
|
|
1383
1386
|
...N
|
|
1384
1387
|
});
|
|
1385
1388
|
SheetHeader.displayName = "SheetHeader";
|
|
1386
1389
|
var SheetFooter = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
1387
|
-
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-[8px]", a),
|
|
1390
|
+
className: cn("ptx-flex ptx-flex-col-reverse sm:ptx-flex-row sm:ptx-justify-end sm:ptx-space-x-[8px]", a),
|
|
1388
1391
|
...N
|
|
1389
1392
|
});
|
|
1390
1393
|
SheetFooter.displayName = "SheetFooter";
|
|
1391
1394
|
var SheetTitle = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
1392
1395
|
ref: P,
|
|
1393
|
-
className: cn("text-lg font-semibold text-foreground", a),
|
|
1396
|
+
className: cn("ptx-text-lg ptx-font-semibold ptx-text-foreground", a),
|
|
1394
1397
|
...N
|
|
1395
1398
|
}));
|
|
1396
1399
|
SheetTitle.displayName = DialogPrimitive.Title.displayName;
|
|
1397
1400
|
var SheetDescription = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(DialogPrimitive.Description, {
|
|
1398
1401
|
ref: P,
|
|
1399
|
-
className: cn("text-sm text-muted-foreground", a),
|
|
1402
|
+
className: cn("ptx-text-sm ptx-text-muted-foreground", a),
|
|
1400
1403
|
...N
|
|
1401
1404
|
}));
|
|
1402
1405
|
SheetDescription.displayName = DialogPrimitive.Description.displayName;
|
|
1403
1406
|
function Skeleton({ className: a,...N }) {
|
|
1404
1407
|
return /* @__PURE__ */ jsx("div", {
|
|
1405
|
-
|
|
1408
|
+
"data-slot": "skeleton",
|
|
1409
|
+
className: cn("ptx-animate-pulse ptx-rounded-[var(--ptx-radius-md)] ptx-bg-muted", a),
|
|
1406
1410
|
...N
|
|
1407
1411
|
});
|
|
1408
1412
|
}
|
|
@@ -1417,12 +1421,12 @@ var Slider = React.forwardRef(({ className: a, defaultValue: N, value: F, min: I
|
|
|
1417
1421
|
defaultValue: N,
|
|
1418
1422
|
value: F,
|
|
1419
1423
|
min: I,
|
|
1420
|
-
className: cn("relative flex w-full touch-none select-none items-center data-[disabled]:cursor-not-allowed", a),
|
|
1424
|
+
className: cn("ptx-relative ptx-flex ptx-w-full ptx-touch-none ptx-select-none ptx-items-center data-[disabled]:ptx-cursor-not-allowed", a),
|
|
1421
1425
|
...L,
|
|
1422
1426
|
children: [/* @__PURE__ */ jsx(SliderPrimitive.Track, {
|
|
1423
|
-
className: "relative h-[6px] w-full grow overflow-hidden rounded-full bg-secondary",
|
|
1424
|
-
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" })
|
|
1425
|
-
}), V.map((a, N) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-[16px] w-[16px] shrink-0 rounded-full border border-neutral bg-background transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-[disabled]:opacity-50" }, N))]
|
|
1427
|
+
className: "ptx-relative ptx-h-[6px] ptx-w-full ptx-grow ptx-overflow-hidden ptx-rounded-full ptx-bg-secondary",
|
|
1428
|
+
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "ptx-absolute ptx-h-full ptx-bg-primary" })
|
|
1429
|
+
}), V.map((a, N) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "ptx-block ptx-h-[16px] ptx-w-[16px] ptx-shrink-0 ptx-rounded-full ptx-border ptx-border-neutral ptx-bg-background ptx-transition-colors focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring data-[disabled]:ptx-opacity-50" }, N))]
|
|
1426
1430
|
});
|
|
1427
1431
|
});
|
|
1428
1432
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
@@ -1430,20 +1434,20 @@ function Spinner({ className: a, label: N = "Loading",...P }) {
|
|
|
1430
1434
|
return /* @__PURE__ */ jsx(Loader2, {
|
|
1431
1435
|
role: "status",
|
|
1432
1436
|
"aria-label": N,
|
|
1433
|
-
className: cn("size-[16px] animate-spin text-foreground", a),
|
|
1437
|
+
className: cn("ptx-size-[16px] ptx-animate-spin ptx-text-foreground", a),
|
|
1434
1438
|
...P
|
|
1435
1439
|
});
|
|
1436
1440
|
}
|
|
1437
|
-
var toggleVariants = cva("state-layer inline-flex items-center justify-center gap-[8px] rounded-[var(--
|
|
1441
|
+
var toggleVariants = cva("ptx-state-layer ptx-inline-flex ptx-items-center ptx-justify-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-md)] ptx-text-sm ptx-font-medium ptx-text-foreground ptx-transition-colors focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50 data-[state=on]:ptx-bg-selected data-[state=on]:ptx-text-accent-foreground [&_svg]:ptx-pointer-events-none [&_svg]:ptx-size-[16px] [&_svg]:ptx-shrink-0", {
|
|
1438
1442
|
variants: {
|
|
1439
1443
|
variant: {
|
|
1440
|
-
default: "bg-transparent",
|
|
1441
|
-
outline: "border border-input bg-transparent [--pt-state-layer-border:1px]"
|
|
1444
|
+
default: "ptx-bg-transparent",
|
|
1445
|
+
outline: "ptx-border ptx-border-input ptx-bg-transparent [--pt-state-layer-border:1px]"
|
|
1442
1446
|
},
|
|
1443
1447
|
size: {
|
|
1444
|
-
default: "h-[32px] min-w-[36px] px-[8px] text-xs",
|
|
1445
|
-
sm: "h-[24px] min-w-[32px] rounded-[var(--
|
|
1446
|
-
lg: "h-[40px] min-w-[40px] px-[10px] text-sm [&_svg]:size-[20px]"
|
|
1448
|
+
default: "ptx-h-[32px] ptx-min-w-[36px] ptx-px-[8px] ptx-text-xs",
|
|
1449
|
+
sm: "ptx-h-[24px] ptx-min-w-[32px] ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[6px] ptx-text-2xs",
|
|
1450
|
+
lg: "ptx-h-[40px] ptx-min-w-[40px] ptx-px-[10px] ptx-text-sm [&_svg]:ptx-size-[20px]"
|
|
1447
1451
|
}
|
|
1448
1452
|
},
|
|
1449
1453
|
defaultVariants: {
|
|
@@ -1465,7 +1469,7 @@ var ToggleGroupContext = React.createContext({
|
|
|
1465
1469
|
variant: "default"
|
|
1466
1470
|
}), ToggleGroup = React.forwardRef(({ className: a, variant: N, size: P, children: F,...I }, L) => /* @__PURE__ */ jsx(ToggleGroupPrimitive.Root, {
|
|
1467
1471
|
ref: L,
|
|
1468
|
-
className: cn("flex items-center justify-center gap-[4px]", a),
|
|
1472
|
+
className: cn("ptx-flex ptx-items-center ptx-justify-center ptx-gap-[4px]", a),
|
|
1469
1473
|
...I,
|
|
1470
1474
|
children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, {
|
|
1471
1475
|
value: {
|
|
@@ -1492,32 +1496,32 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
1492
1496
|
function Calendar({ className: a, classNames: N, showOutsideDays: P = !0,...F }) {
|
|
1493
1497
|
return /* @__PURE__ */ jsx(DayPicker, {
|
|
1494
1498
|
showOutsideDays: P,
|
|
1495
|
-
className: cn("p-[12px]", a),
|
|
1499
|
+
className: cn("ptx-p-[12px]", a),
|
|
1496
1500
|
classNames: {
|
|
1497
|
-
months: "relative flex flex-col gap-[16px] sm:flex-row",
|
|
1498
|
-
month: "flex flex-col gap-[16px]",
|
|
1499
|
-
month_caption: "flex h-[28px] items-center justify-center",
|
|
1500
|
-
caption_label: "text-sm font-medium text-foreground",
|
|
1501
|
-
nav: "absolute inset-x-0 top-0 z-10 flex items-center justify-between",
|
|
1502
|
-
button_previous: cn(buttonVariants({ variant: "ghost" }), "h-[28px] w-[28px] p-0"),
|
|
1503
|
-
button_next: cn(buttonVariants({ variant: "ghost" }), "h-[28px] w-[28px] p-0"),
|
|
1504
|
-
month_grid: "w-full border-collapse",
|
|
1505
|
-
weekdays: "flex",
|
|
1506
|
-
weekday: "w-[32px] rounded-[var(--
|
|
1507
|
-
week: "mt-[8px] flex w-full",
|
|
1508
|
-
day: "relative p-0 text-center text-sm focus-within:relative focus-within:z-20",
|
|
1509
|
-
day_button: cn(buttonVariants({ variant: "ghost" }), "h-[32px] w-[32px] p-0 font-normal aria-selected:opacity-100"),
|
|
1510
|
-
range_start: "day-range-start bg-selected rounded-l-[var(--
|
|
1511
|
-
range_end: "day-range-end bg-selected rounded-r-[var(--
|
|
1512
|
-
selected: F.mode === "range" ? void 0 : "[&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:font-medium",
|
|
1513
|
-
today: "[&>button]:bg-selected",
|
|
1514
|
-
outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
|
|
1515
|
-
disabled: "text-muted-foreground opacity-50",
|
|
1516
|
-
range_middle: "bg-selected [&>button]:bg-transparent [&>button]:font-normal",
|
|
1517
|
-
hidden: "invisible",
|
|
1501
|
+
months: "ptx-relative ptx-flex ptx-flex-col ptx-gap-[16px] sm:ptx-flex-row",
|
|
1502
|
+
month: "ptx-flex ptx-flex-col ptx-gap-[16px]",
|
|
1503
|
+
month_caption: "ptx-flex ptx-h-[28px] ptx-items-center ptx-justify-center",
|
|
1504
|
+
caption_label: "ptx-text-sm ptx-font-medium ptx-text-foreground",
|
|
1505
|
+
nav: "ptx-absolute ptx-inset-x-0 ptx-top-0 ptx-z-10 ptx-flex ptx-items-center ptx-justify-between",
|
|
1506
|
+
button_previous: cn(buttonVariants({ variant: "ghost" }), "ptx-h-[28px] ptx-w-[28px] ptx-p-0"),
|
|
1507
|
+
button_next: cn(buttonVariants({ variant: "ghost" }), "ptx-h-[28px] ptx-w-[28px] ptx-p-0"),
|
|
1508
|
+
month_grid: "ptx-w-full ptx-border-collapse",
|
|
1509
|
+
weekdays: "ptx-flex",
|
|
1510
|
+
weekday: "ptx-w-[32px] ptx-rounded-[var(--ptx-radius-md)] ptx-text-2xs ptx-font-normal ptx-text-muted-foreground",
|
|
1511
|
+
week: "ptx-mt-[8px] ptx-flex ptx-w-full",
|
|
1512
|
+
day: "ptx-relative ptx-p-0 ptx-text-center ptx-text-sm focus-within:ptx-relative focus-within:ptx-z-20",
|
|
1513
|
+
day_button: cn(buttonVariants({ variant: "ghost" }), "ptx-h-[32px] ptx-w-[32px] ptx-p-0 ptx-font-normal aria-selected:ptx-opacity-100"),
|
|
1514
|
+
range_start: "day-range-start ptx-bg-selected ptx-rounded-l-[var(--ptx-radius-md)] [&>button]:ptx-bg-primary [&>button]:ptx-text-primary-foreground [&>button]:ptx-font-medium",
|
|
1515
|
+
range_end: "day-range-end ptx-bg-selected ptx-rounded-r-[var(--ptx-radius-md)] [&>button]:ptx-bg-primary [&>button]:ptx-text-primary-foreground [&>button]:ptx-font-medium",
|
|
1516
|
+
selected: F.mode === "range" ? void 0 : "[&>button]:ptx-bg-primary [&>button]:ptx-text-primary-foreground [&>button]:ptx-font-medium",
|
|
1517
|
+
today: "[&>button]:ptx-bg-selected",
|
|
1518
|
+
outside: "day-outside ptx-text-muted-foreground aria-selected:ptx-text-muted-foreground",
|
|
1519
|
+
disabled: "ptx-text-muted-foreground ptx-opacity-50",
|
|
1520
|
+
range_middle: "ptx-bg-selected [&>button]:ptx-bg-transparent [&>button]:ptx-font-normal",
|
|
1521
|
+
hidden: "ptx-invisible",
|
|
1518
1522
|
...N
|
|
1519
1523
|
},
|
|
1520
|
-
components: { Chevron: ({ orientation: a }) => /* @__PURE__ */ jsx(a === "left" ? ChevronLeft : ChevronRight, { className: "h-[16px] w-[16px]" }) },
|
|
1524
|
+
components: { Chevron: ({ orientation: a }) => /* @__PURE__ */ jsx(a === "left" ? ChevronLeft : ChevronRight, { className: "ptx-h-[16px] ptx-w-[16px]" }) },
|
|
1521
1525
|
...F
|
|
1522
1526
|
});
|
|
1523
1527
|
}
|
|
@@ -1561,7 +1565,7 @@ var Carousel = React.forwardRef(({ orientation: a = "horizontal", opts: N, setAp
|
|
|
1561
1565
|
children: /* @__PURE__ */ jsx("div", {
|
|
1562
1566
|
ref: V,
|
|
1563
1567
|
onKeyDownCapture: Q,
|
|
1564
|
-
className: cn("relative", L),
|
|
1568
|
+
className: cn("ptx-relative", L),
|
|
1565
1569
|
role: "region",
|
|
1566
1570
|
"aria-roledescription": "carousel",
|
|
1567
1571
|
...B,
|
|
@@ -1574,10 +1578,10 @@ var CarouselContent = React.forwardRef(({ className: a,...N }, P) => {
|
|
|
1574
1578
|
let { carouselRef: F, orientation: I } = useCarousel();
|
|
1575
1579
|
return /* @__PURE__ */ jsx("div", {
|
|
1576
1580
|
ref: F,
|
|
1577
|
-
className: "overflow-hidden",
|
|
1581
|
+
className: "ptx-overflow-hidden",
|
|
1578
1582
|
children: /* @__PURE__ */ jsx("div", {
|
|
1579
1583
|
ref: P,
|
|
1580
|
-
className: cn("flex", I === "horizontal" ? "-ml-[16px]" : "-mt-[16px] flex-col", a),
|
|
1584
|
+
className: cn("ptx-flex", I === "horizontal" ? "-ptx-ml-[16px]" : "-ptx-mt-[16px] ptx-flex-col", a),
|
|
1581
1585
|
...N
|
|
1582
1586
|
})
|
|
1583
1587
|
});
|
|
@@ -1589,7 +1593,7 @@ var CarouselItem = React.forwardRef(({ className: a,...N }, P) => {
|
|
|
1589
1593
|
ref: P,
|
|
1590
1594
|
role: "group",
|
|
1591
1595
|
"aria-roledescription": "slide",
|
|
1592
|
-
className: cn("min-w-0 shrink-0 grow-0 basis-full", F === "horizontal" ? "pl-[16px]" : "pt-[16px]", a),
|
|
1596
|
+
className: cn("ptx-min-w-0 ptx-shrink-0 ptx-grow-0 ptx-basis-full", F === "horizontal" ? "ptx-pl-[16px]" : "ptx-pt-[16px]", a),
|
|
1593
1597
|
...N
|
|
1594
1598
|
});
|
|
1595
1599
|
});
|
|
@@ -1600,12 +1604,12 @@ var CarouselPrevious = React.forwardRef(({ className: a, variant: N = "secondary
|
|
|
1600
1604
|
ref: L,
|
|
1601
1605
|
variant: N,
|
|
1602
1606
|
size: P,
|
|
1603
|
-
className: cn("absolute h-[32px] w-[32px] rounded-full", B === "horizontal" ? "-left-[48px] top-1/2 -translate-y-1/2" : "-top-[48px] left-1/2 -translate-x-1/2 rotate-90", a),
|
|
1607
|
+
className: cn("ptx-absolute ptx-h-[32px] ptx-w-[32px] ptx-rounded-full", B === "horizontal" ? "-ptx-left-[48px] ptx-top-1/2 -ptx-translate-y-1/2" : "-ptx-top-[48px] ptx-left-1/2 -ptx-translate-x-1/2 ptx-rotate-90", a),
|
|
1604
1608
|
disabled: !H,
|
|
1605
1609
|
onClick: V,
|
|
1606
1610
|
...I,
|
|
1607
|
-
children: [/* @__PURE__ */ jsx(ArrowLeft, { className: "h-[16px] w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1608
|
-
className: "sr-only",
|
|
1611
|
+
children: [/* @__PURE__ */ jsx(ArrowLeft, { className: "ptx-h-[16px] ptx-w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1612
|
+
className: "ptx-sr-only",
|
|
1609
1613
|
children: F
|
|
1610
1614
|
})]
|
|
1611
1615
|
});
|
|
@@ -1617,12 +1621,12 @@ var CarouselNext = React.forwardRef(({ className: a, variant: N = "secondary", s
|
|
|
1617
1621
|
ref: L,
|
|
1618
1622
|
variant: N,
|
|
1619
1623
|
size: P,
|
|
1620
|
-
className: cn("absolute h-[32px] w-[32px] rounded-full", B === "horizontal" ? "-right-[48px] top-1/2 -translate-y-1/2" : "-bottom-[48px] left-1/2 -translate-x-1/2 rotate-90", a),
|
|
1624
|
+
className: cn("ptx-absolute ptx-h-[32px] ptx-w-[32px] ptx-rounded-full", B === "horizontal" ? "-ptx-right-[48px] ptx-top-1/2 -ptx-translate-y-1/2" : "-ptx-bottom-[48px] ptx-left-1/2 -ptx-translate-x-1/2 ptx-rotate-90", a),
|
|
1621
1625
|
disabled: !H,
|
|
1622
1626
|
onClick: V,
|
|
1623
1627
|
...I,
|
|
1624
|
-
children: [/* @__PURE__ */ jsx(ArrowRight, { className: "h-[16px] w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1625
|
-
className: "sr-only",
|
|
1628
|
+
children: [/* @__PURE__ */ jsx(ArrowRight, { className: "ptx-h-[16px] ptx-w-[16px]" }), /* @__PURE__ */ jsx("span", {
|
|
1629
|
+
className: "ptx-sr-only",
|
|
1626
1630
|
children: F
|
|
1627
1631
|
})]
|
|
1628
1632
|
});
|
|
@@ -1644,7 +1648,7 @@ var ChartContainer = React.forwardRef(({ id: a, className: N, children: F, confi
|
|
|
1644
1648
|
children: /* @__PURE__ */ jsxs("div", {
|
|
1645
1649
|
"data-chart": H,
|
|
1646
1650
|
ref: B,
|
|
1647
|
-
className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none", N),
|
|
1651
|
+
className: cn("ptx-flex ptx-aspect-video ptx-justify-center ptx-text-xs [&_.recharts-cartesian-axis-tick_text]:ptx-fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:ptx-stroke-border [&_.recharts-curve.recharts-tooltip-cursor]:ptx-stroke-border [&_.recharts-dot[stroke='#fff']]:ptx-stroke-transparent [&_.recharts-layer]:ptx-outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:ptx-stroke-border [&_.recharts-radial-bar-background-sector]:ptx-fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:ptx-fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:ptx-stroke-border [&_.recharts-sector[stroke='#fff']]:ptx-stroke-transparent [&_.recharts-sector]:ptx-outline-none [&_.recharts-surface]:ptx-outline-none", N),
|
|
1648
1652
|
...L,
|
|
1649
1653
|
children: [/* @__PURE__ */ jsx(ChartStyle, {
|
|
1650
1654
|
id: H,
|
|
@@ -1669,10 +1673,10 @@ ${P.map(([a, P]) => {
|
|
|
1669
1673
|
if (B || !N?.length) return null;
|
|
1670
1674
|
let [a] = N, P = `${J || a.dataKey || a.name || "value"}`, F = getPayloadConfigFromPayload(Z, a, P), I = !J && typeof H == "string" ? Z[H]?.label || H : F?.label;
|
|
1671
1675
|
return U ? /* @__PURE__ */ jsx("div", {
|
|
1672
|
-
className: cn("font-medium", W),
|
|
1676
|
+
className: cn("ptx-font-medium", W),
|
|
1673
1677
|
children: U(I, N)
|
|
1674
1678
|
}) : I ? /* @__PURE__ */ jsx("div", {
|
|
1675
|
-
className: cn("font-medium", W),
|
|
1679
|
+
className: cn("ptx-font-medium", W),
|
|
1676
1680
|
children: I
|
|
1677
1681
|
}) : null;
|
|
1678
1682
|
}, [
|
|
@@ -1688,34 +1692,34 @@ ${P.map(([a, P]) => {
|
|
|
1688
1692
|
let $ = N.length === 1 && I !== "dot";
|
|
1689
1693
|
return /* @__PURE__ */ jsxs("div", {
|
|
1690
1694
|
ref: Y,
|
|
1691
|
-
className: cn("grid min-w-[8rem] items-start gap-[6px] rounded-[var(--
|
|
1695
|
+
className: cn("ptx-grid ptx-min-w-[8rem] ptx-items-start ptx-gap-[6px] ptx-rounded-[var(--ptx-radius)] ptx-border ptx-bg-background ptx-px-[10px] ptx-py-[6px] ptx-text-xs ptx-shadow-xl", F),
|
|
1692
1696
|
children: [$ ? null : Q, /* @__PURE__ */ jsx("div", {
|
|
1693
|
-
className: "grid gap-[6px]",
|
|
1697
|
+
className: "ptx-grid ptx-gap-[6px]",
|
|
1694
1698
|
children: N.map((a, N) => {
|
|
1695
1699
|
let P = `${q || a.name || a.dataKey || "value"}`, F = getPayloadConfigFromPayload(Z, a, P), B = K || a.payload.fill || a.color;
|
|
1696
1700
|
return /* @__PURE__ */ jsx("div", {
|
|
1697
|
-
className: cn("flex w-full flex-wrap items-stretch gap-[8px] [&>svg]:h-[10px] [&>svg]:w-[10px] [&>svg]:text-muted-foreground", I === "dot" && "items-center"),
|
|
1701
|
+
className: cn("ptx-flex ptx-w-full ptx-flex-wrap ptx-items-stretch ptx-gap-[8px] [&>svg]:ptx-h-[10px] [&>svg]:ptx-w-[10px] [&>svg]:ptx-text-muted-foreground", I === "dot" && "ptx-items-center"),
|
|
1698
1702
|
children: G && a?.value !== void 0 && a.name ? G(a.value, a.name, a, N, a.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [F?.icon ? /* @__PURE__ */ jsx(F.icon, {}) : !V && /* @__PURE__ */ jsx("div", {
|
|
1699
|
-
className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
|
|
1700
|
-
"h-[10px] w-[10px]": I === "dot",
|
|
1701
|
-
"w-[4px]": I === "line",
|
|
1702
|
-
"w-0 border-[1.5px] border-dashed bg-transparent": I === "dashed",
|
|
1703
|
-
"my-[2px]": $ && I === "dashed"
|
|
1703
|
+
className: cn("ptx-shrink-0 ptx-rounded-[2px] ptx-border-[--color-border] ptx-bg-[--color-bg]", {
|
|
1704
|
+
"ptx-h-[10px] ptx-w-[10px]": I === "dot",
|
|
1705
|
+
"ptx-w-[4px]": I === "line",
|
|
1706
|
+
"ptx-w-0 ptx-border-[1.5px] ptx-border-dashed ptx-bg-transparent": I === "dashed",
|
|
1707
|
+
"ptx-my-[2px]": $ && I === "dashed"
|
|
1704
1708
|
}),
|
|
1705
1709
|
style: {
|
|
1706
1710
|
"--color-bg": B,
|
|
1707
1711
|
"--color-border": B
|
|
1708
1712
|
}
|
|
1709
1713
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1710
|
-
className: cn("flex flex-1 justify-between leading-none", $ ? "items-end" : "items-center"),
|
|
1714
|
+
className: cn("ptx-flex ptx-flex-1 ptx-justify-between ptx-leading-none", $ ? "ptx-items-end" : "ptx-items-center"),
|
|
1711
1715
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
1712
|
-
className: "grid gap-[6px]",
|
|
1716
|
+
className: "ptx-grid ptx-gap-[6px]",
|
|
1713
1717
|
children: [$ ? Q : null, /* @__PURE__ */ jsx("span", {
|
|
1714
|
-
className: "text-muted-foreground",
|
|
1718
|
+
className: "ptx-text-muted-foreground",
|
|
1715
1719
|
children: F?.label || a.name
|
|
1716
1720
|
})]
|
|
1717
1721
|
}), a.value && /* @__PURE__ */ jsx("span", {
|
|
1718
|
-
className: "font-mono font-medium tabular-nums text-foreground",
|
|
1722
|
+
className: "ptx-font-mono ptx-font-medium ptx-tabular-nums ptx-text-foreground",
|
|
1719
1723
|
children: a.value.toLocaleString()
|
|
1720
1724
|
})]
|
|
1721
1725
|
})] })
|
|
@@ -1729,13 +1733,13 @@ var ChartLegend = RechartsPrimitive.Legend, ChartLegendContent = React.forwardRe
|
|
|
1729
1733
|
let { config: B } = useChart();
|
|
1730
1734
|
return P?.length ? /* @__PURE__ */ jsx("div", {
|
|
1731
1735
|
ref: L,
|
|
1732
|
-
className: cn("flex items-center justify-center gap-[16px]", F === "top" ? "pb-[12px]" : "pt-[12px]", a),
|
|
1736
|
+
className: cn("ptx-flex ptx-items-center ptx-justify-center ptx-gap-[16px]", F === "top" ? "ptx-pb-[12px]" : "ptx-pt-[12px]", a),
|
|
1733
1737
|
children: P.map((a) => {
|
|
1734
1738
|
let P = `${I || a.dataKey || "value"}`, F = getPayloadConfigFromPayload(B, a, P);
|
|
1735
1739
|
return /* @__PURE__ */ jsxs("div", {
|
|
1736
|
-
className: "flex items-center gap-[6px] text-foreground [&>svg]:h-[12px] [&>svg]:w-[12px] [&>svg]:text-muted-foreground",
|
|
1740
|
+
className: "ptx-flex ptx-items-center ptx-gap-[6px] ptx-text-foreground [&>svg]:ptx-h-[12px] [&>svg]:ptx-w-[12px] [&>svg]:ptx-text-muted-foreground",
|
|
1737
1741
|
children: [F?.icon && !N ? /* @__PURE__ */ jsx(F.icon, {}) : /* @__PURE__ */ jsx("div", {
|
|
1738
|
-
className: "h-[8px] w-[8px] shrink-0 rounded-[2px]",
|
|
1742
|
+
className: "ptx-h-[8px] ptx-w-[8px] ptx-shrink-0 ptx-rounded-[2px]",
|
|
1739
1743
|
style: { backgroundColor: a.color }
|
|
1740
1744
|
}), F?.label]
|
|
1741
1745
|
}, a.value);
|
|
@@ -1750,61 +1754,61 @@ function getPayloadConfigFromPayload(a, N, P) {
|
|
|
1750
1754
|
}
|
|
1751
1755
|
var Command = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Command$1, {
|
|
1752
1756
|
ref: P,
|
|
1753
|
-
className: cn("flex h-full w-full flex-col overflow-hidden rounded-[var(--
|
|
1757
|
+
className: cn("ptx-flex ptx-h-full ptx-w-full ptx-flex-col ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-bg-popover ptx-text-popover-foreground", a),
|
|
1754
1758
|
...N
|
|
1755
1759
|
}));
|
|
1756
1760
|
Command.displayName = Command$1.displayName;
|
|
1757
1761
|
var CommandDialog = ({ children: a,...N }) => /* @__PURE__ */ jsx(Dialog, {
|
|
1758
1762
|
...N,
|
|
1759
1763
|
children: /* @__PURE__ */ jsx(DialogContent, {
|
|
1760
|
-
className: "overflow-hidden p-0",
|
|
1764
|
+
className: "ptx-overflow-hidden ptx-p-0",
|
|
1761
1765
|
children: /* @__PURE__ */ jsx(Command, {
|
|
1762
|
-
className: "[&_[cmdk-group-heading]]:px-[8px] [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-[8px] [&_[cmdk-input-wrapper]_svg]:h-[20px] [&_[cmdk-input-wrapper]_svg]:w-[20px] [&_[cmdk-input]]:h-[48px] [&_[cmdk-item]]:px-[8px] [&_[cmdk-item]]:py-[12px] [&_[cmdk-item]_svg]:h-[20px] [&_[cmdk-item]_svg]:w-[20px]",
|
|
1766
|
+
className: "[&_[cmdk-group-heading]]:ptx-px-[8px] [&_[cmdk-group-heading]]:ptx-font-medium [&_[cmdk-group-heading]]:ptx-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:ptx-pt-0 [&_[cmdk-group]]:ptx-px-[8px] [&_[cmdk-input-wrapper]_svg]:ptx-h-[20px] [&_[cmdk-input-wrapper]_svg]:ptx-w-[20px] [&_[cmdk-input]]:ptx-h-[48px] [&_[cmdk-item]]:ptx-px-[8px] [&_[cmdk-item]]:ptx-py-[12px] [&_[cmdk-item]_svg]:ptx-h-[20px] [&_[cmdk-item]_svg]:ptx-w-[20px]",
|
|
1763
1767
|
children: a
|
|
1764
1768
|
})
|
|
1765
1769
|
})
|
|
1766
1770
|
}), CommandInput = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsxs("div", {
|
|
1767
|
-
className: "flex items-center border-b px-[12px]",
|
|
1771
|
+
className: "ptx-flex ptx-items-center ptx-border-b ptx-px-[12px]",
|
|
1768
1772
|
"cmdk-input-wrapper": "",
|
|
1769
|
-
children: [/* @__PURE__ */ jsx(Search, { className: "mr-[8px] h-[16px] w-[16px] shrink-0 text-muted-foreground" }), /* @__PURE__ */ jsx(Command$1.Input, {
|
|
1773
|
+
children: [/* @__PURE__ */ jsx(Search, { className: "ptx-mr-[8px] ptx-h-[16px] ptx-w-[16px] ptx-shrink-0 ptx-text-muted-foreground" }), /* @__PURE__ */ jsx(Command$1.Input, {
|
|
1770
1774
|
ref: P,
|
|
1771
|
-
className: cn("flex h-[40px] w-full rounded-[var(--
|
|
1775
|
+
className: cn("ptx-flex ptx-h-[40px] ptx-w-full ptx-rounded-[var(--ptx-radius-md)] ptx-bg-transparent ptx-py-[12px] ptx-text-sm ptx-text-foreground ptx-outline-none placeholder:ptx-text-muted-foreground disabled:ptx-cursor-not-allowed disabled:ptx-opacity-50", a),
|
|
1772
1776
|
...N
|
|
1773
1777
|
})]
|
|
1774
1778
|
}));
|
|
1775
1779
|
CommandInput.displayName = Command$1.Input.displayName;
|
|
1776
1780
|
var CommandList = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Command$1.List, {
|
|
1777
1781
|
ref: P,
|
|
1778
|
-
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", a),
|
|
1782
|
+
className: cn("ptx-max-h-[300px] ptx-overflow-y-auto ptx-overflow-x-hidden", a),
|
|
1779
1783
|
...N
|
|
1780
1784
|
}));
|
|
1781
1785
|
CommandList.displayName = Command$1.List.displayName;
|
|
1782
1786
|
var CommandEmpty = React.forwardRef((a, N) => /* @__PURE__ */ jsx(Command$1.Empty, {
|
|
1783
1787
|
ref: N,
|
|
1784
|
-
className: "py-[24px] text-center text-xs",
|
|
1788
|
+
className: "ptx-py-[24px] ptx-text-center ptx-text-xs",
|
|
1785
1789
|
...a
|
|
1786
1790
|
}));
|
|
1787
1791
|
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
1788
1792
|
var CommandGroup = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Command$1.Group, {
|
|
1789
1793
|
ref: P,
|
|
1790
|
-
className: cn("overflow-hidden p-[4px] text-foreground [&_[cmdk-group-heading]]:px-[8px] [&_[cmdk-group-heading]]:py-[6px] [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", a),
|
|
1794
|
+
className: cn("ptx-overflow-hidden ptx-p-[4px] ptx-text-foreground [&_[cmdk-group-heading]]:ptx-px-[8px] [&_[cmdk-group-heading]]:ptx-py-[6px] [&_[cmdk-group-heading]]:ptx-text-xs [&_[cmdk-group-heading]]:ptx-font-medium [&_[cmdk-group-heading]]:ptx-text-muted-foreground", a),
|
|
1791
1795
|
...N
|
|
1792
1796
|
}));
|
|
1793
1797
|
CommandGroup.displayName = Command$1.Group.displayName;
|
|
1794
1798
|
var CommandSeparator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Command$1.Separator, {
|
|
1795
1799
|
ref: P,
|
|
1796
|
-
className: cn("-mx-[4px] h-px bg-border", a),
|
|
1800
|
+
className: cn("-ptx-mx-[4px] ptx-h-px ptx-bg-border", a),
|
|
1797
1801
|
...N
|
|
1798
1802
|
}));
|
|
1799
1803
|
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
1800
1804
|
var CommandItem = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Command$1.Item, {
|
|
1801
1805
|
ref: P,
|
|
1802
|
-
className: cn("relative flex cursor-default select-none items-center gap-[8px] rounded-[var(--
|
|
1806
|
+
className: cn("ptx-relative ptx-flex ptx-cursor-default ptx-select-none ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-sm)] ptx-px-[8px] ptx-py-[6px] ptx-text-sm ptx-outline-none data-[disabled=true]:ptx-pointer-events-none data-[selected=true]:ptx-bg-accent data-[selected=true]:ptx-text-accent-foreground data-[disabled=true]:ptx-opacity-50 [&_svg]:ptx-pointer-events-none [&_svg]:ptx-size-[16px] [&_svg]:ptx-shrink-0", a),
|
|
1803
1807
|
...N
|
|
1804
1808
|
}));
|
|
1805
1809
|
CommandItem.displayName = Command$1.Item.displayName;
|
|
1806
1810
|
var CommandShortcut = ({ className: a,...N }) => /* @__PURE__ */ jsx("span", {
|
|
1807
|
-
className: cn("ml-auto text-xs tracking-widest text-muted-foreground", a),
|
|
1811
|
+
className: cn("ptx-ml-auto ptx-text-xs ptx-tracking-widest ptx-text-muted-foreground", a),
|
|
1808
1812
|
...N
|
|
1809
1813
|
});
|
|
1810
1814
|
CommandShortcut.displayName = "CommandShortcut";
|
|
@@ -1815,49 +1819,50 @@ var Drawer = ({ shouldScaleBackground: a = !0,...N }) => /* @__PURE__ */ jsx(Dra
|
|
|
1815
1819
|
Drawer.displayName = "Drawer";
|
|
1816
1820
|
var DrawerTrigger = Drawer$1.Trigger, DrawerPortal = Drawer$1.Portal, DrawerClose = Drawer$1.Close, DrawerOverlay = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Drawer$1.Overlay, {
|
|
1817
1821
|
ref: P,
|
|
1818
|
-
|
|
1822
|
+
"data-slot": "drawer-overlay",
|
|
1823
|
+
className: cn("ptx-fixed ptx-inset-0 ptx-z-[var(--pt-z-overlay,50)] ptx-bg-[rgb(var(--ptx-black)/0.8)]", a),
|
|
1819
1824
|
...N
|
|
1820
1825
|
}));
|
|
1821
1826
|
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
1822
1827
|
var DrawerContent = React.forwardRef(({ className: a, children: N,...P }, F) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
|
|
1823
1828
|
ref: F,
|
|
1824
|
-
className: cn("fixed inset-x-0 bottom-0 z-[var(--pt-z-overlay,50)] mt-[96px] flex h-auto flex-col rounded-t-[10px] border bg-background", a),
|
|
1829
|
+
className: cn("ptx-fixed ptx-inset-x-0 ptx-bottom-0 ptx-z-[var(--pt-z-overlay,50)] ptx-mt-[96px] ptx-flex ptx-h-auto ptx-flex-col ptx-rounded-t-[10px] ptx-border ptx-bg-background", a),
|
|
1825
1830
|
...P,
|
|
1826
|
-
children: [/* @__PURE__ */ jsx("div", { className: "mx-auto mt-[16px] h-[8px] w-[100px] rounded-full bg-muted" }), N]
|
|
1831
|
+
children: [/* @__PURE__ */ jsx("div", { className: "ptx-mx-auto ptx-mt-[16px] ptx-h-[8px] ptx-w-[100px] ptx-rounded-full ptx-bg-muted" }), N]
|
|
1827
1832
|
})] }));
|
|
1828
1833
|
DrawerContent.displayName = "DrawerContent";
|
|
1829
1834
|
var DrawerHeader = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
1830
|
-
className: cn("grid gap-[6px] p-[16px] text-center sm:text-left", a),
|
|
1835
|
+
className: cn("ptx-grid ptx-gap-[6px] ptx-p-[16px] ptx-text-center sm:ptx-text-left", a),
|
|
1831
1836
|
...N
|
|
1832
1837
|
});
|
|
1833
1838
|
DrawerHeader.displayName = "DrawerHeader";
|
|
1834
1839
|
var DrawerFooter = ({ className: a,...N }) => /* @__PURE__ */ jsx("div", {
|
|
1835
|
-
className: cn("mt-auto flex flex-col gap-[8px] p-[16px]", a),
|
|
1840
|
+
className: cn("ptx-mt-auto ptx-flex ptx-flex-col ptx-gap-[8px] ptx-p-[16px]", a),
|
|
1836
1841
|
...N
|
|
1837
1842
|
});
|
|
1838
1843
|
DrawerFooter.displayName = "DrawerFooter";
|
|
1839
1844
|
var DrawerTitle = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Drawer$1.Title, {
|
|
1840
1845
|
ref: P,
|
|
1841
|
-
className: cn("text-lg font-semibold leading-none tracking-tight text-foreground", a),
|
|
1846
|
+
className: cn("ptx-text-lg ptx-font-semibold ptx-leading-none ptx-tracking-tight ptx-text-foreground", a),
|
|
1842
1847
|
...N
|
|
1843
1848
|
}));
|
|
1844
1849
|
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
1845
1850
|
var DrawerDescription = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Drawer$1.Description, {
|
|
1846
1851
|
ref: P,
|
|
1847
|
-
className: cn("text-sm text-muted-foreground", a),
|
|
1852
|
+
className: cn("ptx-text-sm ptx-text-muted-foreground", a),
|
|
1848
1853
|
...N
|
|
1849
1854
|
}));
|
|
1850
1855
|
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
1851
1856
|
var InputOTP = React.forwardRef(({ className: a, containerClassName: N,...P }, F) => /* @__PURE__ */ jsx(OTPInput, {
|
|
1852
1857
|
ref: F,
|
|
1853
|
-
containerClassName: cn("group/input-otp flex items-center gap-[8px] has-[:disabled]:opacity-50", N),
|
|
1854
|
-
className: cn("disabled:cursor-not-allowed", a),
|
|
1858
|
+
containerClassName: cn("group/input-otp ptx-flex ptx-items-center ptx-gap-[8px] has-[:disabled]:ptx-opacity-50", N),
|
|
1859
|
+
className: cn("disabled:ptx-cursor-not-allowed", a),
|
|
1855
1860
|
...P
|
|
1856
1861
|
}));
|
|
1857
1862
|
InputOTP.displayName = "InputOTP";
|
|
1858
1863
|
var InputOTPGroup = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
1859
1864
|
ref: P,
|
|
1860
|
-
className: cn("flex items-center", a),
|
|
1865
|
+
className: cn("ptx-flex ptx-items-center", a),
|
|
1861
1866
|
...N
|
|
1862
1867
|
}));
|
|
1863
1868
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
@@ -1865,11 +1870,11 @@ var InputOTPSlot = React.forwardRef(({ index: a, className: N,...F }, I) => {
|
|
|
1865
1870
|
let { char: L, hasFakeCaret: B, isActive: V } = React.useContext(OTPInputContext).slots[a];
|
|
1866
1871
|
return /* @__PURE__ */ jsxs("div", {
|
|
1867
1872
|
ref: I,
|
|
1868
|
-
className: cn("relative flex h-[32px] w-[36px] items-center justify-center border-y border-r border-input text-xs text-foreground transition-all first:rounded-l-[var(--
|
|
1873
|
+
className: cn("ptx-relative ptx-flex ptx-h-[32px] ptx-w-[36px] ptx-items-center ptx-justify-center ptx-border-y ptx-border-r ptx-border-input ptx-text-xs ptx-text-foreground ptx-transition-all first:ptx-rounded-l-[var(--ptx-radius-md)] first:ptx-border-l last:ptx-rounded-r-[var(--ptx-radius-md)] group-hover/input-otp:ptx-border-neutral", V && "ptx-z-10 ptx-ring-1 ptx-ring-ring", N),
|
|
1869
1874
|
...F,
|
|
1870
1875
|
children: [L, B && /* @__PURE__ */ jsx("div", {
|
|
1871
|
-
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
1872
|
-
children: /* @__PURE__ */ jsx("div", { className: "h-[16px] w-px animate-caret-blink bg-foreground duration-1000" })
|
|
1876
|
+
className: "ptx-pointer-events-none ptx-absolute ptx-inset-0 ptx-flex ptx-items-center ptx-justify-center",
|
|
1877
|
+
children: /* @__PURE__ */ jsx("div", { className: "ptx-h-[16px] ptx-w-px ptx-animate-caret-blink ptx-bg-foreground ptx-duration-1000" })
|
|
1873
1878
|
})]
|
|
1874
1879
|
});
|
|
1875
1880
|
});
|
|
@@ -1877,20 +1882,20 @@ InputOTPSlot.displayName = "InputOTPSlot";
|
|
|
1877
1882
|
var InputOTPSeparator = React.forwardRef(({ ...a }, N) => /* @__PURE__ */ jsx("div", {
|
|
1878
1883
|
ref: N,
|
|
1879
1884
|
role: "separator",
|
|
1880
|
-
className: "text-muted-foreground",
|
|
1885
|
+
className: "ptx-text-muted-foreground",
|
|
1881
1886
|
...a,
|
|
1882
|
-
children: /* @__PURE__ */ jsx(Minus, { className: "h-[16px] w-[16px]" })
|
|
1887
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "ptx-h-[16px] ptx-w-[16px]" })
|
|
1883
1888
|
}));
|
|
1884
1889
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1885
1890
|
var ResizablePanelGroup = ({ className: a,...N }) => /* @__PURE__ */ jsx(ResizablePrimitive.PanelGroup, {
|
|
1886
|
-
className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", a),
|
|
1891
|
+
className: cn("ptx-flex ptx-h-full ptx-w-full data-[panel-group-direction=vertical]:ptx-flex-col", a),
|
|
1887
1892
|
...N
|
|
1888
1893
|
}), ResizablePanel = ResizablePrimitive.Panel, ResizableHandle = ({ withHandle: a, className: N,...P }) => /* @__PURE__ */ jsx(ResizablePrimitive.PanelResizeHandle, {
|
|
1889
|
-
className: cn("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-[4px] after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-[4px] data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", N),
|
|
1894
|
+
className: cn("ptx-relative ptx-flex ptx-w-px ptx-items-center ptx-justify-center ptx-bg-border after:ptx-absolute after:ptx-inset-y-0 after:ptx-left-1/2 after:ptx-w-[4px] after:-ptx-translate-x-1/2 focus-visible:ptx-outline-none focus-visible:ptx-ring-1 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-1 data-[panel-group-direction=vertical]:ptx-h-px data-[panel-group-direction=vertical]:ptx-w-full data-[panel-group-direction=vertical]:after:ptx-left-0 data-[panel-group-direction=vertical]:after:ptx-h-[4px] data-[panel-group-direction=vertical]:after:ptx-w-full data-[panel-group-direction=vertical]:after:-ptx-translate-y-1/2 data-[panel-group-direction=vertical]:after:ptx-translate-x-0 [&[data-panel-group-direction=vertical]>div]:ptx-rotate-90", N),
|
|
1890
1895
|
...P,
|
|
1891
1896
|
children: a && /* @__PURE__ */ jsx("div", {
|
|
1892
|
-
className: "z-10 flex h-[16px] w-[12px] items-center justify-center rounded-[var(--
|
|
1893
|
-
children: /* @__PURE__ */ jsx(GripVertical, { className: "h-[10px] w-[10px]" })
|
|
1897
|
+
className: "ptx-z-10 ptx-flex ptx-h-[16px] ptx-w-[12px] ptx-items-center ptx-justify-center ptx-rounded-[var(--ptx-radius-sm)] ptx-border ptx-bg-border",
|
|
1898
|
+
children: /* @__PURE__ */ jsx(GripVertical, { className: "ptx-h-[10px] ptx-w-[10px]" })
|
|
1894
1899
|
})
|
|
1895
1900
|
}), MOBILE_BREAKPOINT = 768;
|
|
1896
1901
|
function useIsMobile() {
|
|
@@ -1950,7 +1955,7 @@ var SidebarProvider = React.forwardRef(({ defaultOpen: a = !0, open: N, onOpenCh
|
|
|
1950
1955
|
"--pt-sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
1951
1956
|
...L
|
|
1952
1957
|
},
|
|
1953
|
-
className: cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", I),
|
|
1958
|
+
className: cn("group/sidebar-wrapper ptx-flex ptx-min-h-svh ptx-w-full has-[[data-variant=inset]]:ptx-bg-sidebar", I),
|
|
1954
1959
|
ref: V,
|
|
1955
1960
|
...B,
|
|
1956
1961
|
children: z
|
|
@@ -1962,7 +1967,7 @@ SidebarProvider.displayName = "SidebarProvider";
|
|
|
1962
1967
|
var Sidebar = React.forwardRef(({ side: a = "left", variant: N = "sidebar", collapsible: P = "offcanvas", className: F, children: I,...L }, B) => {
|
|
1963
1968
|
let { isMobile: V, state: H, openMobile: U, setOpenMobile: W } = useSidebar();
|
|
1964
1969
|
return P === "none" ? /* @__PURE__ */ jsx("div", {
|
|
1965
|
-
className: cn("flex h-full w-[--pt-sidebar-width] flex-col bg-sidebar text-sidebar-foreground", F),
|
|
1970
|
+
className: cn("ptx-flex ptx-h-full ptx-w-[--pt-sidebar-width] ptx-flex-col ptx-bg-sidebar ptx-text-sidebar-foreground", F),
|
|
1966
1971
|
ref: B,
|
|
1967
1972
|
...L,
|
|
1968
1973
|
children: I
|
|
@@ -1973,30 +1978,30 @@ var Sidebar = React.forwardRef(({ side: a = "left", variant: N = "sidebar", coll
|
|
|
1973
1978
|
children: /* @__PURE__ */ jsxs(SheetContent, {
|
|
1974
1979
|
"data-sidebar": "sidebar",
|
|
1975
1980
|
"data-mobile": "true",
|
|
1976
|
-
className: "w-[--pt-sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
1981
|
+
className: "ptx-w-[--pt-sidebar-width] ptx-bg-sidebar ptx-p-0 ptx-text-sidebar-foreground [&>button]:ptx-hidden",
|
|
1977
1982
|
style: { "--pt-sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
1978
1983
|
side: a,
|
|
1979
1984
|
children: [/* @__PURE__ */ jsxs(SheetHeader, {
|
|
1980
|
-
className: "sr-only",
|
|
1985
|
+
className: "ptx-sr-only",
|
|
1981
1986
|
children: [/* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }), /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })]
|
|
1982
1987
|
}), /* @__PURE__ */ jsx("div", {
|
|
1983
|
-
className: "flex h-full w-full flex-col",
|
|
1988
|
+
className: "ptx-flex ptx-h-full ptx-w-full ptx-flex-col",
|
|
1984
1989
|
children: I
|
|
1985
1990
|
})]
|
|
1986
1991
|
})
|
|
1987
1992
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
1988
1993
|
ref: B,
|
|
1989
|
-
className: "group peer hidden text-sidebar-foreground md:block",
|
|
1994
|
+
className: "group peer ptx-hidden ptx-text-sidebar-foreground md:ptx-block",
|
|
1990
1995
|
"data-state": H,
|
|
1991
1996
|
"data-collapsible": H === "collapsed" ? P : "",
|
|
1992
1997
|
"data-variant": N,
|
|
1993
1998
|
"data-side": a,
|
|
1994
|
-
children: [/* @__PURE__ */ jsx("div", { className: cn("relative w-[--pt-sidebar-width] bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", N === "floating" || N === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--pt-sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--pt-sidebar-width-icon]") }), /* @__PURE__ */ jsx("div", {
|
|
1995
|
-
className: cn("fixed inset-y-0 z-10 hidden h-svh w-[--pt-sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex", a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--pt-sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--pt-sidebar-width)*-1)]", N === "floating" || N === "inset" ? "p-[8px] group-data-[collapsible=icon]:w-[calc(var(--pt-sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--pt-sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l", F),
|
|
1999
|
+
children: [/* @__PURE__ */ jsx("div", { className: cn("ptx-relative ptx-w-[--pt-sidebar-width] ptx-bg-transparent ptx-transition-[width] ptx-duration-200 ptx-ease-linear", "group-data-[collapsible=offcanvas]:ptx-w-0", "group-data-[side=right]:ptx-rotate-180", N === "floating" || N === "inset" ? "group-data-[collapsible=icon]:ptx-w-[calc(var(--pt-sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:ptx-w-[--pt-sidebar-width-icon]") }), /* @__PURE__ */ jsx("div", {
|
|
2000
|
+
className: cn("ptx-fixed ptx-inset-y-0 ptx-z-10 ptx-hidden ptx-h-svh ptx-w-[--pt-sidebar-width] ptx-transition-[left,right,width] ptx-duration-200 ptx-ease-linear md:ptx-flex", a === "left" ? "ptx-left-0 group-data-[collapsible=offcanvas]:ptx-left-[calc(var(--pt-sidebar-width)*-1)]" : "ptx-right-0 group-data-[collapsible=offcanvas]:ptx-right-[calc(var(--pt-sidebar-width)*-1)]", N === "floating" || N === "inset" ? "ptx-p-[8px] group-data-[collapsible=icon]:ptx-w-[calc(var(--pt-sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:ptx-w-[--pt-sidebar-width-icon] group-data-[side=left]:ptx-border-r group-data-[side=right]:ptx-border-l", F),
|
|
1996
2001
|
...L,
|
|
1997
2002
|
"data-sidebar": "sidebar",
|
|
1998
2003
|
children: /* @__PURE__ */ jsx("div", {
|
|
1999
|
-
className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-[var(--
|
|
2004
|
+
className: "ptx-flex ptx-h-full ptx-w-full ptx-flex-col ptx-bg-sidebar group-data-[variant=floating]:ptx-rounded-[var(--ptx-radius)] group-data-[variant=floating]:ptx-border group-data-[variant=floating]:ptx-border-sidebar-border",
|
|
2000
2005
|
children: I
|
|
2001
2006
|
})
|
|
2002
2007
|
})]
|
|
@@ -2010,13 +2015,13 @@ var SidebarTrigger = React.forwardRef(({ className: a, onClick: N, label: P = "T
|
|
|
2010
2015
|
"data-sidebar": "trigger",
|
|
2011
2016
|
variant: "ghost",
|
|
2012
2017
|
size: "icon",
|
|
2013
|
-
className: cn("h-[28px] w-[28px]", a),
|
|
2018
|
+
className: cn("ptx-h-[28px] ptx-w-[28px]", a),
|
|
2014
2019
|
onClick: (a) => {
|
|
2015
2020
|
N?.(a), L();
|
|
2016
2021
|
},
|
|
2017
2022
|
...F,
|
|
2018
2023
|
children: [/* @__PURE__ */ jsx(PanelLeft, {}), /* @__PURE__ */ jsx("span", {
|
|
2019
|
-
className: "sr-only",
|
|
2024
|
+
className: "ptx-sr-only",
|
|
2020
2025
|
children: P
|
|
2021
2026
|
})]
|
|
2022
2027
|
});
|
|
@@ -2031,104 +2036,104 @@ var SidebarRail = React.forwardRef(({ className: a, label: N = "Toggle sidebar",
|
|
|
2031
2036
|
tabIndex: -1,
|
|
2032
2037
|
onClick: I,
|
|
2033
2038
|
title: N,
|
|
2034
|
-
className: cn("absolute inset-y-0 z-20 hidden w-[16px] -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-[16px] group-data-[side=right]:left-0 sm:flex", "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-[8px]", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-[8px]", a),
|
|
2039
|
+
className: cn("ptx-absolute ptx-inset-y-0 ptx-z-20 ptx-hidden ptx-w-[16px] -ptx-translate-x-1/2 ptx-transition-all ptx-ease-linear after:ptx-absolute after:ptx-inset-y-0 after:ptx-left-1/2 after:ptx-w-[2px] hover:after:ptx-bg-sidebar-border group-data-[side=left]:-ptx-right-[16px] group-data-[side=right]:ptx-left-0 sm:ptx-flex", "[[data-side=left]_&]:ptx-cursor-w-resize [[data-side=right]_&]:ptx-cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:ptx-cursor-e-resize [[data-side=right][data-state=collapsed]_&]:ptx-cursor-w-resize", "group-data-[collapsible=offcanvas]:ptx-translate-x-0 group-data-[collapsible=offcanvas]:after:ptx-left-full group-data-[collapsible=offcanvas]:hover:ptx-bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-ptx-right-[8px]", "[[data-side=right][data-collapsible=offcanvas]_&]:-ptx-left-[8px]", a),
|
|
2035
2040
|
...P
|
|
2036
2041
|
});
|
|
2037
2042
|
});
|
|
2038
2043
|
SidebarRail.displayName = "SidebarRail";
|
|
2039
2044
|
var SidebarInset = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("main", {
|
|
2040
2045
|
ref: P,
|
|
2041
|
-
className: cn("relative flex w-full flex-1 flex-col bg-background", "md:peer-data-[variant=inset]:m-[8px] md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-[8px] md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-12", a),
|
|
2046
|
+
className: cn("ptx-relative ptx-flex ptx-w-full ptx-flex-1 ptx-flex-col ptx-bg-background", "md:peer-data-[variant=inset]:ptx-m-[8px] md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ptx-ml-[8px] md:peer-data-[variant=inset]:ptx-ml-0 md:peer-data-[variant=inset]:ptx-rounded-12", a),
|
|
2042
2047
|
...N
|
|
2043
2048
|
}));
|
|
2044
2049
|
SidebarInset.displayName = "SidebarInset";
|
|
2045
2050
|
var SidebarInput = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Input, {
|
|
2046
2051
|
ref: P,
|
|
2047
2052
|
"data-sidebar": "input",
|
|
2048
|
-
className: cn("h-[32px] w-full bg-background", a),
|
|
2053
|
+
className: cn("ptx-h-[32px] ptx-w-full ptx-bg-background", a),
|
|
2049
2054
|
...N
|
|
2050
2055
|
}));
|
|
2051
2056
|
SidebarInput.displayName = "SidebarInput";
|
|
2052
2057
|
var SidebarHeader = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
2053
2058
|
ref: P,
|
|
2054
2059
|
"data-sidebar": "header",
|
|
2055
|
-
className: cn("flex flex-col gap-[8px] p-[8px]", a),
|
|
2060
|
+
className: cn("ptx-flex ptx-flex-col ptx-gap-[8px] ptx-p-[8px]", a),
|
|
2056
2061
|
...N
|
|
2057
2062
|
}));
|
|
2058
2063
|
SidebarHeader.displayName = "SidebarHeader";
|
|
2059
2064
|
var SidebarFooter = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
2060
2065
|
ref: P,
|
|
2061
2066
|
"data-sidebar": "footer",
|
|
2062
|
-
className: cn("flex flex-col gap-[8px] p-[8px]", a),
|
|
2067
|
+
className: cn("ptx-flex ptx-flex-col ptx-gap-[8px] ptx-p-[8px]", a),
|
|
2063
2068
|
...N
|
|
2064
2069
|
}));
|
|
2065
2070
|
SidebarFooter.displayName = "SidebarFooter";
|
|
2066
2071
|
var SidebarSeparator = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx(Separator, {
|
|
2067
2072
|
ref: P,
|
|
2068
2073
|
"data-sidebar": "separator",
|
|
2069
|
-
className: cn("mx-[8px] w-auto bg-sidebar-border", a),
|
|
2074
|
+
className: cn("ptx-mx-[8px] ptx-w-auto ptx-bg-sidebar-border", a),
|
|
2070
2075
|
...N
|
|
2071
2076
|
}));
|
|
2072
2077
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
2073
2078
|
var SidebarContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
2074
2079
|
ref: P,
|
|
2075
2080
|
"data-sidebar": "content",
|
|
2076
|
-
className: cn("flex min-h-0 flex-1 flex-col gap-[8px] overflow-auto group-data-[collapsible=icon]:overflow-hidden", a),
|
|
2081
|
+
className: cn("ptx-flex ptx-min-h-0 ptx-flex-1 ptx-flex-col ptx-gap-[8px] ptx-overflow-auto group-data-[collapsible=icon]:ptx-overflow-hidden", a),
|
|
2077
2082
|
...N
|
|
2078
2083
|
}));
|
|
2079
2084
|
SidebarContent.displayName = "SidebarContent";
|
|
2080
2085
|
var SidebarGroup = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
2081
2086
|
ref: P,
|
|
2082
2087
|
"data-sidebar": "group",
|
|
2083
|
-
className: cn("relative flex w-full min-w-0 flex-col p-[8px]", a),
|
|
2088
|
+
className: cn("ptx-relative ptx-flex ptx-w-full ptx-min-w-0 ptx-flex-col ptx-p-[8px]", a),
|
|
2084
2089
|
...N
|
|
2085
2090
|
}));
|
|
2086
2091
|
SidebarGroup.displayName = "SidebarGroup";
|
|
2087
2092
|
var SidebarGroupLabel = React.forwardRef(({ className: a, asChild: N = !1,...P }, I) => /* @__PURE__ */ jsx(N ? Slot : "div", {
|
|
2088
2093
|
ref: I,
|
|
2089
2094
|
"data-sidebar": "group-label",
|
|
2090
|
-
className: cn("flex h-[32px] shrink-0 items-center rounded-[var(--
|
|
2095
|
+
className: cn("ptx-flex ptx-h-[32px] ptx-shrink-0 ptx-items-center ptx-rounded-[var(--ptx-radius-md)] ptx-px-[8px] ptx-text-xs ptx-font-medium ptx-text-sidebar-foreground/70 ptx-outline-none ptx-ring-sidebar-ring ptx-transition-[margin,opacity] ptx-duration-200 ptx-ease-linear focus-visible:ptx-ring-2 [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0", "group-data-[collapsible=icon]:-ptx-mt-[32px] group-data-[collapsible=icon]:ptx-opacity-0", a),
|
|
2091
2096
|
...P
|
|
2092
2097
|
}));
|
|
2093
2098
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
2094
2099
|
var SidebarGroupAction = React.forwardRef(({ className: a, asChild: N = !1,...P }, I) => /* @__PURE__ */ jsx(N ? Slot : "button", {
|
|
2095
2100
|
ref: I,
|
|
2096
2101
|
"data-sidebar": "group-action",
|
|
2097
|
-
className: cn("absolute right-[12px] top-[14px] flex aspect-square w-[20px] items-center justify-center rounded-[var(--
|
|
2102
|
+
className: cn("ptx-absolute ptx-right-[12px] ptx-top-[14px] ptx-flex ptx-aspect-square ptx-w-[20px] ptx-items-center ptx-justify-center ptx-rounded-[var(--ptx-radius-md)] ptx-p-0 ptx-text-sidebar-foreground ptx-outline-none ptx-ring-sidebar-ring ptx-transition-transform hover:ptx-bg-sidebar-accent hover:ptx-text-sidebar-accent-foreground focus-visible:ptx-ring-2 [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0", "after:ptx-absolute after:-ptx-inset-[8px] after:md:ptx-hidden", "group-data-[collapsible=icon]:ptx-hidden", a),
|
|
2098
2103
|
...P
|
|
2099
2104
|
}));
|
|
2100
2105
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
2101
2106
|
var SidebarGroupContent = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
2102
2107
|
ref: P,
|
|
2103
2108
|
"data-sidebar": "group-content",
|
|
2104
|
-
className: cn("w-full text-sm", a),
|
|
2109
|
+
className: cn("ptx-w-full ptx-text-sm", a),
|
|
2105
2110
|
...N
|
|
2106
2111
|
}));
|
|
2107
2112
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
2108
2113
|
var SidebarMenu = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("ul", {
|
|
2109
2114
|
ref: P,
|
|
2110
2115
|
"data-sidebar": "menu",
|
|
2111
|
-
className: cn("flex w-full min-w-0 flex-col gap-[4px]", a),
|
|
2116
|
+
className: cn("ptx-flex ptx-w-full ptx-min-w-0 ptx-flex-col ptx-gap-[4px]", a),
|
|
2112
2117
|
...N
|
|
2113
2118
|
}));
|
|
2114
2119
|
SidebarMenu.displayName = "SidebarMenu";
|
|
2115
2120
|
var SidebarMenuItem = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("li", {
|
|
2116
2121
|
ref: P,
|
|
2117
2122
|
"data-sidebar": "menu-item",
|
|
2118
|
-
className: cn("group/menu-item relative", a),
|
|
2123
|
+
className: cn("group/menu-item ptx-relative", a),
|
|
2119
2124
|
...N
|
|
2120
2125
|
}));
|
|
2121
2126
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
2122
|
-
var sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-[8px] overflow-hidden rounded-[var(--
|
|
2127
|
+
var sidebarMenuButtonVariants = cva("peer/menu-button ptx-flex ptx-w-full ptx-items-center ptx-gap-[8px] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-p-[8px] ptx-text-left ptx-text-sm ptx-text-sidebar-foreground ptx-outline-none ptx-ring-sidebar-ring ptx-transition-[width,height,padding] hover:ptx-bg-sidebar-accent hover:ptx-text-sidebar-accent-foreground focus-visible:ptx-ring-2 active:ptx-bg-sidebar-accent active:ptx-text-sidebar-accent-foreground disabled:ptx-pointer-events-none disabled:ptx-opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:ptx-pr-[32px] aria-disabled:ptx-pointer-events-none aria-disabled:ptx-opacity-50 data-[active=true]:ptx-bg-selected data-[active=true]:ptx-font-medium data-[active=true]:ptx-text-sidebar-accent-foreground data-[state=open]:hover:ptx-bg-sidebar-accent data-[state=open]:hover:ptx-text-sidebar-accent-foreground group-data-[collapsible=icon]:!ptx-size-[32px] group-data-[collapsible=icon]:!ptx-p-[8px] [&>span:last-child]:ptx-truncate [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0", {
|
|
2123
2128
|
variants: {
|
|
2124
2129
|
variant: {
|
|
2125
|
-
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
2126
|
-
outline: "bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"
|
|
2130
|
+
default: "hover:ptx-bg-sidebar-accent hover:ptx-text-sidebar-accent-foreground",
|
|
2131
|
+
outline: "ptx-bg-background hover:ptx-bg-sidebar-accent hover:ptx-text-sidebar-accent-foreground"
|
|
2127
2132
|
},
|
|
2128
2133
|
size: {
|
|
2129
|
-
default: "h-[32px] text-sm",
|
|
2130
|
-
sm: "h-[28px] text-xs",
|
|
2131
|
-
lg: "h-[48px] text-sm group-data-[collapsible=icon]:!p-0"
|
|
2134
|
+
default: "ptx-h-[32px] ptx-text-sm",
|
|
2135
|
+
sm: "ptx-h-[28px] ptx-text-xs",
|
|
2136
|
+
lg: "ptx-h-[48px] ptx-text-sm group-data-[collapsible=icon]:!ptx-p-0"
|
|
2132
2137
|
}
|
|
2133
2138
|
},
|
|
2134
2139
|
defaultVariants: {
|
|
@@ -2161,14 +2166,14 @@ SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
|
2161
2166
|
var SidebarMenuAction = React.forwardRef(({ className: a, asChild: N = !1, showOnHover: P = !1,...I }, L) => /* @__PURE__ */ jsx(N ? Slot : "button", {
|
|
2162
2167
|
ref: L,
|
|
2163
2168
|
"data-sidebar": "menu-action",
|
|
2164
|
-
className: cn("absolute right-[4px] top-[6px] flex aspect-square w-[20px] items-center justify-center rounded-[var(--
|
|
2169
|
+
className: cn("ptx-absolute ptx-right-[4px] ptx-top-[6px] ptx-flex ptx-aspect-square ptx-w-[20px] ptx-items-center ptx-justify-center ptx-rounded-[var(--ptx-radius-md)] ptx-p-0 ptx-text-sidebar-foreground ptx-outline-none ptx-ring-sidebar-ring ptx-transition-transform hover:ptx-bg-sidebar-accent hover:ptx-text-sidebar-accent-foreground focus-visible:ptx-ring-2 peer-hover/menu-button:ptx-text-sidebar-accent-foreground [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0", "after:ptx-absolute after:-ptx-inset-[8px] after:md:ptx-hidden", "peer-data-[size=sm]/menu-button:ptx-top-[4px]", "peer-data-[size=default]/menu-button:ptx-top-[6px]", "peer-data-[size=lg]/menu-button:ptx-top-[10px]", "group-data-[collapsible=icon]:ptx-hidden", P && "group-focus-within/menu-item:ptx-opacity-100 group-hover/menu-item:ptx-opacity-100 data-[state=open]:ptx-opacity-100 peer-data-[active=true]/menu-button:ptx-text-sidebar-accent-foreground md:ptx-opacity-0", a),
|
|
2165
2170
|
...I
|
|
2166
2171
|
}));
|
|
2167
2172
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
2168
2173
|
var SidebarMenuBadge = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("div", {
|
|
2169
2174
|
ref: P,
|
|
2170
2175
|
"data-sidebar": "menu-badge",
|
|
2171
|
-
className: cn("pointer-events-none absolute right-[4px] flex h-[20px] min-w-[20px] select-none items-center justify-center rounded-[var(--
|
|
2176
|
+
className: cn("ptx-pointer-events-none ptx-absolute ptx-right-[4px] ptx-flex ptx-h-[20px] ptx-min-w-[20px] ptx-select-none ptx-items-center ptx-justify-center ptx-rounded-[var(--ptx-radius-md)] ptx-px-[4px] ptx-text-xs ptx-font-medium ptx-tabular-nums ptx-text-sidebar-foreground", "peer-hover/menu-button:ptx-text-sidebar-accent-foreground peer-data-[active=true]/menu-button:ptx-text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:ptx-top-[4px]", "peer-data-[size=default]/menu-button:ptx-top-[6px]", "peer-data-[size=lg]/menu-button:ptx-top-[10px]", "group-data-[collapsible=icon]:ptx-hidden", a),
|
|
2172
2177
|
...N
|
|
2173
2178
|
}));
|
|
2174
2179
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
@@ -2177,13 +2182,13 @@ var SidebarMenuSkeleton = React.forwardRef(({ className: a, showIcon: N = !1,...
|
|
|
2177
2182
|
return /* @__PURE__ */ jsxs("div", {
|
|
2178
2183
|
ref: I,
|
|
2179
2184
|
"data-sidebar": "menu-skeleton",
|
|
2180
|
-
className: cn("flex h-[32px] items-center gap-[8px] rounded-[var(--
|
|
2185
|
+
className: cn("ptx-flex ptx-h-[32px] ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-md)] ptx-px-[8px]", a),
|
|
2181
2186
|
...F,
|
|
2182
2187
|
children: [N && /* @__PURE__ */ jsx(Skeleton, {
|
|
2183
|
-
className: "size-[16px] rounded-[var(--
|
|
2188
|
+
className: "ptx-size-[16px] ptx-rounded-[var(--ptx-radius-md)]",
|
|
2184
2189
|
"data-sidebar": "menu-skeleton-icon"
|
|
2185
2190
|
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
2186
|
-
className: "h-[16px] max-w-[--skeleton-width] flex-1",
|
|
2191
|
+
className: "ptx-h-[16px] ptx-max-w-[--skeleton-width] ptx-flex-1",
|
|
2187
2192
|
"data-sidebar": "menu-skeleton-text",
|
|
2188
2193
|
style: { "--skeleton-width": L }
|
|
2189
2194
|
})]
|
|
@@ -2193,7 +2198,7 @@ SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
|
2193
2198
|
var SidebarMenuSub = React.forwardRef(({ className: a,...N }, P) => /* @__PURE__ */ jsx("ul", {
|
|
2194
2199
|
ref: P,
|
|
2195
2200
|
"data-sidebar": "menu-sub",
|
|
2196
|
-
className: cn("mx-[14px] flex min-w-0 translate-x-px flex-col gap-[4px] border-l border-sidebar-border px-[10px] py-[2px]", "group-data-[collapsible=icon]:hidden", a),
|
|
2201
|
+
className: cn("ptx-mx-[14px] ptx-flex ptx-min-w-0 ptx-translate-x-px ptx-flex-col ptx-gap-[4px] ptx-border-l ptx-border-sidebar-border ptx-px-[10px] ptx-py-[2px]", "group-data-[collapsible=icon]:ptx-hidden", a),
|
|
2197
2202
|
...N
|
|
2198
2203
|
}));
|
|
2199
2204
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
@@ -2207,14 +2212,14 @@ var SidebarMenuSubButton = React.forwardRef(({ asChild: a = !1, size: N = "md",
|
|
|
2207
2212
|
"data-sidebar": "menu-sub-button",
|
|
2208
2213
|
"data-size": N,
|
|
2209
2214
|
"data-active": P,
|
|
2210
|
-
className: cn("flex h-[28px] min-w-0 -translate-x-px items-center gap-[8px] overflow-hidden rounded-[var(--
|
|
2215
|
+
className: cn("ptx-flex ptx-h-[28px] ptx-min-w-0 -ptx-translate-x-px ptx-items-center ptx-gap-[8px] ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-px-[8px] ptx-text-sidebar-foreground ptx-outline-none ptx-ring-sidebar-ring hover:ptx-bg-sidebar-accent hover:ptx-text-sidebar-accent-foreground focus-visible:ptx-ring-2 active:ptx-bg-sidebar-accent active:ptx-text-sidebar-accent-foreground disabled:ptx-pointer-events-none disabled:ptx-opacity-50 aria-disabled:ptx-pointer-events-none aria-disabled:ptx-opacity-50 [&>span:last-child]:ptx-truncate [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0 [&>svg]:ptx-text-sidebar-accent-foreground", "data-[active=true]:ptx-bg-selected data-[active=true]:ptx-text-sidebar-accent-foreground", N === "sm" && "ptx-text-xs", N === "md" && "ptx-text-sm", "group-data-[collapsible=icon]:ptx-hidden", I),
|
|
2211
2216
|
...L
|
|
2212
2217
|
}));
|
|
2213
2218
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
2214
2219
|
function MessageGroup({ className: a,...N }) {
|
|
2215
2220
|
return /* @__PURE__ */ jsx("div", {
|
|
2216
2221
|
"data-slot": "message-group",
|
|
2217
|
-
className: cn("flex min-w-0 flex-col gap-[8px]", a),
|
|
2222
|
+
className: cn("ptx-flex ptx-min-w-0 ptx-flex-col ptx-gap-[8px]", a),
|
|
2218
2223
|
...N
|
|
2219
2224
|
});
|
|
2220
2225
|
}
|
|
@@ -2222,35 +2227,35 @@ function Message({ className: a, align: N = "start",...P }) {
|
|
|
2222
2227
|
return /* @__PURE__ */ jsx("div", {
|
|
2223
2228
|
"data-slot": "message",
|
|
2224
2229
|
"data-align": N,
|
|
2225
|
-
className: cn("group/message relative flex w-full min-w-0 gap-[8px] text-sm data-[align=end]:flex-row-reverse", a),
|
|
2230
|
+
className: cn("group/message ptx-relative ptx-flex ptx-w-full ptx-min-w-0 ptx-gap-[8px] ptx-text-sm data-[align=end]:ptx-flex-row-reverse", a),
|
|
2226
2231
|
...P
|
|
2227
2232
|
});
|
|
2228
2233
|
}
|
|
2229
2234
|
function MessageAvatar({ className: a,...N }) {
|
|
2230
2235
|
return /* @__PURE__ */ jsx("div", {
|
|
2231
2236
|
"data-slot": "message-avatar",
|
|
2232
|
-
className: cn("flex w-fit min-w-[32px] shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-[[data-slot=message-footer]]/message:-translate-y-[32px]", a),
|
|
2237
|
+
className: cn("ptx-flex ptx-w-fit ptx-min-w-[32px] ptx-shrink-0 ptx-items-center ptx-justify-center ptx-self-end ptx-overflow-hidden ptx-rounded-full ptx-bg-muted group-has-[[data-slot=message-footer]]/message:-ptx-translate-y-[32px]", a),
|
|
2233
2238
|
...N
|
|
2234
2239
|
});
|
|
2235
2240
|
}
|
|
2236
2241
|
function MessageContent({ className: a,...N }) {
|
|
2237
2242
|
return /* @__PURE__ */ jsx("div", {
|
|
2238
2243
|
"data-slot": "message-content",
|
|
2239
|
-
className: cn("flex w-full min-w-0 flex-col gap-[10px] break-words group-data-[align=end]/message:[&>[data-slot]]:self-end", a),
|
|
2244
|
+
className: cn("ptx-flex ptx-w-full ptx-min-w-0 ptx-flex-col ptx-gap-[10px] ptx-break-words group-data-[align=end]/message:[&>[data-slot]]:ptx-self-end", a),
|
|
2240
2245
|
...N
|
|
2241
2246
|
});
|
|
2242
2247
|
}
|
|
2243
2248
|
function MessageHeader({ className: a,...N }) {
|
|
2244
2249
|
return /* @__PURE__ */ jsx("div", {
|
|
2245
2250
|
"data-slot": "message-header",
|
|
2246
|
-
className: cn("flex max-w-full min-w-0 items-center px-[12px] text-xs font-medium text-muted-foreground group-has-[[data-variant=ghost]]/message:px-0", a),
|
|
2251
|
+
className: cn("ptx-flex ptx-max-w-full ptx-min-w-0 ptx-items-center ptx-px-[12px] ptx-text-xs ptx-font-medium ptx-text-muted-foreground group-has-[[data-variant=ghost]]/message:ptx-px-0", a),
|
|
2247
2252
|
...N
|
|
2248
2253
|
});
|
|
2249
2254
|
}
|
|
2250
2255
|
function MessageFooter({ className: a,...N }) {
|
|
2251
2256
|
return /* @__PURE__ */ jsx("div", {
|
|
2252
2257
|
"data-slot": "message-footer",
|
|
2253
|
-
className: cn("flex max-w-full min-w-0 items-center px-[12px] text-xs font-medium text-muted-foreground group-has-[[data-variant=ghost]]/message:px-0 group-data-[align=end]/message:justify-end", a),
|
|
2258
|
+
className: cn("ptx-flex ptx-max-w-full ptx-min-w-0 ptx-items-center ptx-px-[12px] ptx-text-xs ptx-font-medium ptx-text-muted-foreground group-has-[[data-variant=ghost]]/message:ptx-px-0 group-data-[align=end]/message:ptx-justify-end", a),
|
|
2254
2259
|
...N
|
|
2255
2260
|
});
|
|
2256
2261
|
}
|
|
@@ -2300,7 +2305,7 @@ function MessageScroller({ className: a,...N }) {
|
|
|
2300
2305
|
value: F ?? I,
|
|
2301
2306
|
children: /* @__PURE__ */ jsx("div", {
|
|
2302
2307
|
"data-slot": "message-scroller",
|
|
2303
|
-
className: cn("group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden", a),
|
|
2308
|
+
className: cn("group/message-scroller ptx-relative ptx-flex ptx-size-full ptx-min-h-0 ptx-flex-col ptx-overflow-hidden", a),
|
|
2304
2309
|
...N
|
|
2305
2310
|
})
|
|
2306
2311
|
});
|
|
@@ -2323,7 +2328,7 @@ function MessageScrollerViewport({ className: a, onScroll: N, children: F,...I }
|
|
|
2323
2328
|
]), /* @__PURE__ */ jsx("div", {
|
|
2324
2329
|
ref: L,
|
|
2325
2330
|
"data-slot": "message-scroller-viewport",
|
|
2326
|
-
className: cn("size-full min-h-0 min-w-0 overflow-y-auto overscroll-contain [contain:content]", a),
|
|
2331
|
+
className: cn("ptx-size-full ptx-min-h-0 ptx-min-w-0 ptx-overflow-y-auto ptx-overscroll-contain [contain:content]", a),
|
|
2327
2332
|
onScroll: (a) => {
|
|
2328
2333
|
z(), N?.(a);
|
|
2329
2334
|
},
|
|
@@ -2334,14 +2339,14 @@ function MessageScrollerViewport({ className: a, onScroll: N, children: F,...I }
|
|
|
2334
2339
|
function MessageScrollerContent({ className: a,...N }) {
|
|
2335
2340
|
return /* @__PURE__ */ jsx("div", {
|
|
2336
2341
|
"data-slot": "message-scroller-content",
|
|
2337
|
-
className: cn("flex h-max min-h-full flex-col gap-[32px]", a),
|
|
2342
|
+
className: cn("ptx-flex ptx-h-max ptx-min-h-full ptx-flex-col ptx-gap-[32px]", a),
|
|
2338
2343
|
...N
|
|
2339
2344
|
});
|
|
2340
2345
|
}
|
|
2341
2346
|
function MessageScrollerItem({ className: a,...N }) {
|
|
2342
2347
|
return /* @__PURE__ */ jsx("div", {
|
|
2343
2348
|
"data-slot": "message-scroller-item",
|
|
2344
|
-
className: cn("min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", a),
|
|
2349
|
+
className: cn("ptx-min-w-0 ptx-shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]", a),
|
|
2345
2350
|
...N
|
|
2346
2351
|
});
|
|
2347
2352
|
}
|
|
@@ -2353,13 +2358,13 @@ function MessageScrollerButton({ direction: a = "end", className: N, children: P
|
|
|
2353
2358
|
"data-active": q,
|
|
2354
2359
|
variant: I,
|
|
2355
2360
|
size: B,
|
|
2356
|
-
className: cn("absolute left-1/2 z-10 h-[32px] w-[32px] -translate-x-1/2 rounded-full transition-[opacity,transform] duration-200 data-[direction=end]:bottom-[16px] data-[direction=start]:top-[16px] data-[active=false]:pointer-events-none data-[active=false]:opacity-0 data-[active=true]:opacity-100 data-[direction=start]:[&_svg]:rotate-180", N),
|
|
2361
|
+
className: cn("ptx-absolute ptx-left-1/2 ptx-z-10 ptx-h-[32px] ptx-w-[32px] -ptx-translate-x-1/2 ptx-rounded-full ptx-transition-[opacity,transform] ptx-duration-200 data-[direction=end]:ptx-bottom-[16px] data-[direction=start]:ptx-top-[16px] data-[active=false]:ptx-pointer-events-none data-[active=false]:ptx-opacity-0 data-[active=true]:ptx-opacity-100 data-[direction=start]:[&_svg]:ptx-rotate-180", N),
|
|
2357
2362
|
onClick: (N) => {
|
|
2358
2363
|
V?.(N), N.defaultPrevented || K(a);
|
|
2359
2364
|
},
|
|
2360
2365
|
...U,
|
|
2361
2366
|
children: P ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ArrowDown, {}), /* @__PURE__ */ jsx("span", {
|
|
2362
|
-
className: "sr-only",
|
|
2367
|
+
className: "ptx-sr-only",
|
|
2363
2368
|
children: F ?? (a === "end" ? "Scroll to end" : "Scroll to start")
|
|
2364
2369
|
})] })
|
|
2365
2370
|
});
|
|
@@ -2367,18 +2372,18 @@ function MessageScrollerButton({ direction: a = "end", className: N, children: P
|
|
|
2367
2372
|
function BubbleGroup({ className: a,...N }) {
|
|
2368
2373
|
return /* @__PURE__ */ jsx("div", {
|
|
2369
2374
|
"data-slot": "bubble-group",
|
|
2370
|
-
className: cn("flex min-w-0 flex-col gap-[8px]", a),
|
|
2375
|
+
className: cn("ptx-flex ptx-min-w-0 ptx-flex-col ptx-gap-[8px]", a),
|
|
2371
2376
|
...N
|
|
2372
2377
|
});
|
|
2373
2378
|
}
|
|
2374
|
-
var bubbleVariants = cva("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-[4px] group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
|
|
2379
|
+
var bubbleVariants = cva("group/bubble ptx-relative ptx-flex ptx-w-fit ptx-max-w-[80%] ptx-min-w-0 ptx-flex-col ptx-gap-[4px] group-data-[align=end]/message:ptx-self-end data-[align=end]:ptx-self-end data-[variant=ghost]:ptx-max-w-full", {
|
|
2375
2380
|
variants: { variant: {
|
|
2376
|
-
default: "[&>[data-slot=bubble-content]]:bg-primary [&>[data-slot=bubble-content]]:text-primary-foreground [&>[data-slot=bubble-content]]:[--pt-interaction-hover:var(--pt-interaction-reversal-hover)] [&>[data-slot=bubble-content]]:[--pt-interaction-press:var(--pt-interaction-reversal-press)]",
|
|
2377
|
-
secondary: "[&>[data-slot=bubble-content]]:bg-secondary [&>[data-slot=bubble-content]]:text-secondary-foreground",
|
|
2378
|
-
muted: "[&>[data-slot=bubble-content]]:bg-muted",
|
|
2379
|
-
outline: "[&>[data-slot=bubble-content]]:border-input [&>[data-slot=bubble-content]]:bg-background [&>[data-slot=bubble-content]]:[--pt-state-layer-border:1px]",
|
|
2380
|
-
ghost: "border-none [&>[data-slot=bubble-content]]:rounded-none [&>[data-slot=bubble-content]]:bg-transparent [&>[data-slot=bubble-content]]:p-0",
|
|
2381
|
-
destructive: "[&>[data-slot=bubble-content]]:bg-destructive/10 [&>[data-slot=bubble-content]]:text-destructive dark:[&>[data-slot=bubble-content]]:bg-destructive/20"
|
|
2381
|
+
default: "[&>[data-slot=bubble-content]]:ptx-bg-primary [&>[data-slot=bubble-content]]:ptx-text-primary-foreground [&>[data-slot=bubble-content]]:[--pt-interaction-hover:var(--pt-interaction-reversal-hover)] [&>[data-slot=bubble-content]]:[--pt-interaction-press:var(--pt-interaction-reversal-press)]",
|
|
2382
|
+
secondary: "[&>[data-slot=bubble-content]]:ptx-bg-secondary [&>[data-slot=bubble-content]]:ptx-text-secondary-foreground",
|
|
2383
|
+
muted: "[&>[data-slot=bubble-content]]:ptx-bg-muted",
|
|
2384
|
+
outline: "[&>[data-slot=bubble-content]]:ptx-border-input [&>[data-slot=bubble-content]]:ptx-bg-background [&>[data-slot=bubble-content]]:[--pt-state-layer-border:1px]",
|
|
2385
|
+
ghost: "ptx-border-none [&>[data-slot=bubble-content]]:ptx-rounded-none [&>[data-slot=bubble-content]]:ptx-bg-transparent [&>[data-slot=bubble-content]]:ptx-p-0",
|
|
2386
|
+
destructive: "[&>[data-slot=bubble-content]]:ptx-bg-destructive/10 [&>[data-slot=bubble-content]]:ptx-text-destructive dark:[&>[data-slot=bubble-content]]:ptx-bg-destructive/20"
|
|
2382
2387
|
} },
|
|
2383
2388
|
defaultVariants: { variant: "default" }
|
|
2384
2389
|
});
|
|
@@ -2394,19 +2399,19 @@ function Bubble({ variant: a = "default", align: N = "start", className: P,...F
|
|
|
2394
2399
|
function BubbleContent({ asChild: a = !1, className: N,...P }) {
|
|
2395
2400
|
return /* @__PURE__ */ jsx(a ? Slot : "div", {
|
|
2396
2401
|
"data-slot": "bubble-content",
|
|
2397
|
-
className: cn("w-fit max-w-full min-w-0 overflow-hidden break-words rounded-[var(--
|
|
2402
|
+
className: cn("ptx-w-fit ptx-max-w-full ptx-min-w-0 ptx-overflow-hidden ptx-break-words ptx-rounded-[var(--ptx-radius)] ptx-border ptx-border-transparent ptx-px-[12px] ptx-py-[8px] ptx-text-sm ptx-leading-relaxed group-data-[align=end]/bubble:ptx-self-end", "[&:is(button,a)]:ptx-state-layer [&:is(button)]:ptx-text-left [&:is(button,a)]:ptx-cursor-pointer [&:is(button,a)]:focus-visible:ptx-outline-none [&:is(button,a)]:focus-visible:ptx-ring-1 [&:is(button,a)]:focus-visible:ptx-ring-ring", N),
|
|
2398
2403
|
...P
|
|
2399
2404
|
});
|
|
2400
2405
|
}
|
|
2401
|
-
var bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-[4px] rounded-full bg-muted px-[6px] py-[2px] text-sm ring ring-card has-[button]:p-0", {
|
|
2406
|
+
var bubbleReactionsVariants = cva("ptx-absolute ptx-z-10 ptx-flex ptx-w-fit ptx-shrink-0 ptx-items-center ptx-justify-center ptx-gap-[4px] ptx-rounded-full ptx-bg-muted ptx-px-[6px] ptx-py-[2px] ptx-text-sm ptx-ring ptx-ring-card has-[button]:ptx-p-0", {
|
|
2402
2407
|
variants: {
|
|
2403
2408
|
side: {
|
|
2404
|
-
top: "top-0 -translate-y-3/4",
|
|
2405
|
-
bottom: "bottom-0 translate-y-3/4"
|
|
2409
|
+
top: "ptx-top-0 -ptx-translate-y-3/4",
|
|
2410
|
+
bottom: "ptx-bottom-0 ptx-translate-y-3/4"
|
|
2406
2411
|
},
|
|
2407
2412
|
align: {
|
|
2408
|
-
start: "left-[12px]",
|
|
2409
|
-
end: "right-[12px]"
|
|
2413
|
+
start: "ptx-left-[12px]",
|
|
2414
|
+
end: "ptx-right-[12px]"
|
|
2410
2415
|
}
|
|
2411
2416
|
},
|
|
2412
2417
|
defaultVariants: {
|
|
@@ -2426,15 +2431,15 @@ function BubbleReactions({ side: a = "bottom", align: N = "end", className: P,..
|
|
|
2426
2431
|
...F
|
|
2427
2432
|
});
|
|
2428
2433
|
}
|
|
2429
|
-
var attachmentVariants = cva("group/attachment relative isolate flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-[var(--
|
|
2434
|
+
var attachmentVariants = cva("group/attachment ptx-relative ptx-isolate ptx-flex ptx-w-fit ptx-max-w-full ptx-min-w-0 ptx-shrink-0 ptx-flex-wrap ptx-rounded-[var(--ptx-radius)] ptx-border ptx-bg-card ptx-text-card-foreground ptx-transition-colors focus-within:ptx-ring-1 focus-within:ptx-ring-ring data-[state=error]:ptx-border-destructive/30 data-[state=idle]:ptx-border-dashed after:ptx-pointer-events-none after:ptx-absolute after:ptx-inset-0 after:ptx-rounded-[inherit] after:ptx-bg-[rgb(var(--ptx-interaction-hover))] after:ptx-opacity-0 after:ptx-transition-opacity has-[>a,>button]:hover:after:ptx-opacity-100 has-[>a,>button]:active:after:ptx-bg-[rgb(var(--ptx-interaction-press))] has-[>a,>button]:active:after:ptx-opacity-100", { variants: {
|
|
2430
2435
|
size: {
|
|
2431
|
-
default: "gap-[8px] text-sm has-[[data-slot=attachment-content]]:px-[10px] has-[[data-slot=attachment-content]]:py-[8px] has-[[data-slot=attachment-media]]:p-[8px]",
|
|
2432
|
-
sm: "gap-[10px] text-xs has-[[data-slot=attachment-content]]:px-[8px] has-[[data-slot=attachment-content]]:py-[6px] has-[[data-slot=attachment-media]]:p-[6px]",
|
|
2433
|
-
xs: "gap-[6px] rounded-[var(--
|
|
2436
|
+
default: "ptx-gap-[8px] ptx-text-sm has-[[data-slot=attachment-content]]:ptx-px-[10px] has-[[data-slot=attachment-content]]:ptx-py-[8px] has-[[data-slot=attachment-media]]:ptx-p-[8px]",
|
|
2437
|
+
sm: "ptx-gap-[10px] ptx-text-xs has-[[data-slot=attachment-content]]:ptx-px-[8px] has-[[data-slot=attachment-content]]:ptx-py-[6px] has-[[data-slot=attachment-media]]:ptx-p-[6px]",
|
|
2438
|
+
xs: "ptx-gap-[6px] ptx-rounded-[var(--ptx-radius-md)] ptx-text-xs has-[[data-slot=attachment-content]]:ptx-px-[6px] has-[[data-slot=attachment-content]]:ptx-py-[4px] has-[[data-slot=attachment-media]]:ptx-p-[4px]"
|
|
2434
2439
|
},
|
|
2435
2440
|
orientation: {
|
|
2436
|
-
horizontal: "min-w-[160px] items-center",
|
|
2437
|
-
vertical: "w-[96px] flex-col has-[[data-slot=attachment-content]]:w-[7.5rem]"
|
|
2441
|
+
horizontal: "ptx-min-w-[160px] ptx-items-center",
|
|
2442
|
+
vertical: "ptx-w-[96px] ptx-flex-col has-[[data-slot=attachment-content]]:ptx-w-[7.5rem]"
|
|
2438
2443
|
}
|
|
2439
2444
|
} });
|
|
2440
2445
|
function Attachment({ className: a, state: N = "done", size: P = "default", orientation: F = "horizontal",...I }) {
|
|
@@ -2450,10 +2455,10 @@ function Attachment({ className: a, state: N = "done", size: P = "default", orie
|
|
|
2450
2455
|
...I
|
|
2451
2456
|
});
|
|
2452
2457
|
}
|
|
2453
|
-
var attachmentMediaVariants = cva("relative flex aspect-square w-[40px] shrink-0 items-center justify-center overflow-hidden rounded-[var(--
|
|
2458
|
+
var attachmentMediaVariants = cva("ptx-relative ptx-flex ptx-aspect-square ptx-w-[40px] ptx-shrink-0 ptx-items-center ptx-justify-center ptx-overflow-hidden ptx-rounded-[var(--ptx-radius-md)] ptx-bg-muted ptx-text-foreground group-data-[orientation=vertical]/attachment:ptx-w-full group-data-[size=sm]/attachment:ptx-w-[32px] group-data-[size=xs]/attachment:ptx-w-[28px] group-data-[size=xs]/attachment:ptx-rounded-[var(--ptx-radius-sm)] group-data-[state=error]/attachment:ptx-bg-destructive/10 group-data-[state=error]/attachment:ptx-text-destructive group-data-[orientation=vertical]/attachment:[&>[data-slot=spinner]]:!ptx-size-[24px] [&_svg]:ptx-pointer-events-none [&_svg:not([class*='size-'])]:ptx-size-[16px] group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:ptx-size-[24px] group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:ptx-size-[14px]", {
|
|
2454
2459
|
variants: { variant: {
|
|
2455
2460
|
icon: "",
|
|
2456
|
-
image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 [&>img]:aspect-square [&>img]:w-full [&>img]:object-cover"
|
|
2461
|
+
image: "ptx-opacity-60 group-data-[state=done]/attachment:ptx-opacity-100 group-data-[state=idle]/attachment:ptx-opacity-100 [&>img]:ptx-aspect-square [&>img]:ptx-w-full [&>img]:ptx-object-cover"
|
|
2457
2462
|
} },
|
|
2458
2463
|
defaultVariants: { variant: "icon" }
|
|
2459
2464
|
});
|
|
@@ -2468,28 +2473,28 @@ function AttachmentMedia({ className: a, variant: N = "icon",...P }) {
|
|
|
2468
2473
|
function AttachmentContent({ className: a,...N }) {
|
|
2469
2474
|
return /* @__PURE__ */ jsx("div", {
|
|
2470
2475
|
"data-slot": "attachment-content",
|
|
2471
|
-
className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-[4px]", a),
|
|
2476
|
+
className: cn("ptx-max-w-full ptx-min-w-0 ptx-flex-1 ptx-leading-tight group-data-[orientation=vertical]/attachment:ptx-px-[4px]", a),
|
|
2472
2477
|
...N
|
|
2473
2478
|
});
|
|
2474
2479
|
}
|
|
2475
2480
|
function AttachmentTitle({ className: a,...N }) {
|
|
2476
2481
|
return /* @__PURE__ */ jsx("span", {
|
|
2477
2482
|
"data-slot": "attachment-title",
|
|
2478
|
-
className: cn("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:animate-pulse group-data-[state=uploading]/attachment:animate-pulse", a),
|
|
2483
|
+
className: cn("ptx-block ptx-max-w-full ptx-min-w-0 ptx-truncate ptx-font-medium group-data-[state=processing]/attachment:ptx-animate-pulse group-data-[state=uploading]/attachment:ptx-animate-pulse", a),
|
|
2479
2484
|
...N
|
|
2480
2485
|
});
|
|
2481
2486
|
}
|
|
2482
2487
|
function AttachmentDescription({ className: a,...N }) {
|
|
2483
2488
|
return /* @__PURE__ */ jsx("span", {
|
|
2484
2489
|
"data-slot": "attachment-description",
|
|
2485
|
-
className: cn("mt-[2px] block max-w-full min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80", a),
|
|
2490
|
+
className: cn("ptx-mt-[2px] ptx-block ptx-max-w-full ptx-min-w-0 ptx-truncate ptx-text-xs ptx-text-muted-foreground group-data-[state=error]/attachment:ptx-text-destructive/80", a),
|
|
2486
2491
|
...N
|
|
2487
2492
|
});
|
|
2488
2493
|
}
|
|
2489
2494
|
function AttachmentActions({ className: a,...N }) {
|
|
2490
2495
|
return /* @__PURE__ */ jsx("div", {
|
|
2491
2496
|
"data-slot": "attachment-actions",
|
|
2492
|
-
className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:right-[12px] group-data-[orientation=vertical]/attachment:top-[12px] group-data-[orientation=vertical]/attachment:gap-[4px]", a),
|
|
2497
|
+
className: cn("ptx-relative ptx-z-20 ptx-flex ptx-shrink-0 ptx-items-center group-data-[orientation=vertical]/attachment:ptx-absolute group-data-[orientation=vertical]/attachment:ptx-right-[12px] group-data-[orientation=vertical]/attachment:ptx-top-[12px] group-data-[orientation=vertical]/attachment:ptx-gap-[4px]", a),
|
|
2493
2498
|
...N
|
|
2494
2499
|
});
|
|
2495
2500
|
}
|
|
@@ -2498,7 +2503,7 @@ function AttachmentAction({ className: a, variant: N, size: P,...F }) {
|
|
|
2498
2503
|
"data-slot": "attachment-action",
|
|
2499
2504
|
variant: N ?? "ghost",
|
|
2500
2505
|
size: P ?? "icon",
|
|
2501
|
-
className: cn("h-[24px] w-[24px] rounded-[var(--
|
|
2506
|
+
className: cn("ptx-h-[24px] ptx-w-[24px] ptx-rounded-[var(--ptx-radius-sm)] [&_svg]:ptx-size-[14px]", a),
|
|
2502
2507
|
...F
|
|
2503
2508
|
});
|
|
2504
2509
|
}
|
|
@@ -2506,21 +2511,21 @@ function AttachmentTrigger({ className: a, asChild: N = !1, type: P,...I }) {
|
|
|
2506
2511
|
return /* @__PURE__ */ jsx(N ? Slot : "button", {
|
|
2507
2512
|
"data-slot": "attachment-trigger",
|
|
2508
2513
|
type: N ? void 0 : P ?? "button",
|
|
2509
|
-
className: cn("absolute inset-0 z-10 cursor-pointer outline-none", a),
|
|
2514
|
+
className: cn("ptx-absolute ptx-inset-0 ptx-z-10 ptx-cursor-pointer ptx-outline-none", a),
|
|
2510
2515
|
...I
|
|
2511
2516
|
});
|
|
2512
2517
|
}
|
|
2513
2518
|
function AttachmentGroup({ className: a,...N }) {
|
|
2514
2519
|
return /* @__PURE__ */ jsx("div", {
|
|
2515
2520
|
"data-slot": "attachment-group",
|
|
2516
|
-
className: cn("flex min-w-0 snap-x snap-mandatory scroll-px-[4px] gap-[12px] overflow-x-auto overscroll-x-contain py-[4px] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>[data-slot=attachment]]:flex-none [&>[data-slot=attachment]]:snap-start", a),
|
|
2521
|
+
className: cn("ptx-flex ptx-min-w-0 ptx-snap-x ptx-snap-mandatory ptx-scroll-px-[4px] ptx-gap-[12px] ptx-overflow-x-auto ptx-overscroll-x-contain ptx-py-[4px] [scrollbar-width:none] [&::-webkit-scrollbar]:ptx-hidden [&>[data-slot=attachment]]:ptx-flex-none [&>[data-slot=attachment]]:ptx-snap-start", a),
|
|
2517
2522
|
...N
|
|
2518
2523
|
});
|
|
2519
2524
|
}
|
|
2520
|
-
var markerVariants = cva("group/marker relative flex min-h-[16px] w-full items-center gap-[8px] text-left text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-[16px] [&:is(a)]:underline [&:is(a)]:underline-offset-4 [&:is(a):hover]:text-foreground", { variants: { variant: {
|
|
2525
|
+
var markerVariants = cva("group/marker ptx-relative ptx-flex ptx-min-h-[16px] ptx-w-full ptx-items-center ptx-gap-[8px] ptx-text-left ptx-text-sm ptx-text-muted-foreground [&_svg:not([class*='size-'])]:ptx-size-[16px] [&:is(a)]:ptx-underline [&:is(a)]:ptx-underline-offset-4 [&:is(a):hover]:ptx-text-foreground", { variants: { variant: {
|
|
2521
2526
|
default: "",
|
|
2522
|
-
separator: "before:mr-[4px] before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-[4px] after:h-px after:min-w-0 after:flex-1 after:bg-border",
|
|
2523
|
-
border: "border-b border-border pb-[8px]"
|
|
2527
|
+
separator: "before:ptx-mr-[4px] before:ptx-h-px before:ptx-min-w-0 before:ptx-flex-1 before:ptx-bg-border after:ptx-ml-[4px] after:ptx-h-px after:ptx-min-w-0 after:ptx-flex-1 after:ptx-bg-border",
|
|
2528
|
+
border: "ptx-border-b ptx-border-border ptx-pb-[8px]"
|
|
2524
2529
|
} } });
|
|
2525
2530
|
function Marker({ className: a, variant: N = "default", asChild: P = !1,...I }) {
|
|
2526
2531
|
return /* @__PURE__ */ jsx(P ? Slot : "div", {
|
|
@@ -2537,18 +2542,18 @@ function MarkerIcon({ className: a,...N }) {
|
|
|
2537
2542
|
return /* @__PURE__ */ jsx("span", {
|
|
2538
2543
|
"data-slot": "marker-icon",
|
|
2539
2544
|
"aria-hidden": "true",
|
|
2540
|
-
className: cn("size-[16px] shrink-0 [&_svg:not([class*='size-'])]:size-[16px]", a),
|
|
2545
|
+
className: cn("ptx-size-[16px] ptx-shrink-0 [&_svg:not([class*='size-'])]:ptx-size-[16px]", a),
|
|
2541
2546
|
...N
|
|
2542
2547
|
});
|
|
2543
2548
|
}
|
|
2544
2549
|
function MarkerContent({ className: a,...N }) {
|
|
2545
2550
|
return /* @__PURE__ */ jsx("span", {
|
|
2546
2551
|
"data-slot": "marker-content",
|
|
2547
|
-
className: cn("min-w-0 break-words group-data-[variant=separator]/marker:flex-none group-data-[variant=separator]/marker:text-center [&_a]:underline [&_a]:underline-offset-4 [&_a:hover]:text-foreground", a),
|
|
2552
|
+
className: cn("ptx-min-w-0 ptx-break-words group-data-[variant=separator]/marker:ptx-flex-none group-data-[variant=separator]/marker:ptx-text-center [&_a]:ptx-underline [&_a]:ptx-underline-offset-4 [&_a:hover]:ptx-text-foreground", a),
|
|
2548
2553
|
...N
|
|
2549
2554
|
});
|
|
2550
2555
|
}
|
|
2551
|
-
var CHIP_BASE = "inline-flex h-[32px] max-w-full items-center gap-[8px] rounded-[var(--
|
|
2556
|
+
var CHIP_BASE = "ptx-inline-flex ptx-h-[32px] ptx-max-w-full ptx-items-center ptx-gap-[8px] ptx-rounded-[var(--ptx-radius-md)] ptx-border ptx-px-[12px] ptx-text-left ptx-text-xs ptx-transition-colors [&>svg]:ptx-size-[16px] [&>svg]:ptx-shrink-0 focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring focus-visible:ptx-ring-offset-2", CHIP_IDLE = "ptx-state-layer [--pt-state-layer-border:1px] ptx-border-input ptx-bg-background ptx-text-foreground hover:ptx-border-neutral", CHIP_DISABLED = "ptx-border-input ptx-bg-background ptx-text-[rgb(var(--ptx-text-tage))]", CHIP_BADGE = "ptx-ml-[8px] ptx-shrink-0 ptx-whitespace-nowrap ptx-rounded-[var(--ptx-radius-sm)] ptx-bg-muted ptx-px-[6px] ptx-text-2xs ptx-text-[rgb(var(--ptx-text-tage))]", CHIP_CRUMB = "ptx-border-neutral ptx-bg-selected ptx-text-foreground", PromptPicker = React.forwardRef(({ items: a, onPick: N, hasContent: F, onClear: I, lead: L, backLabel: B = "Back", className: V,...H }, U) => {
|
|
2552
2557
|
let [W, G] = React.useState(null), K = React.useMemo(() => W ? a.find((a) => a.id === W) ?? null : null, [a, W]);
|
|
2553
2558
|
React.useEffect(() => {
|
|
2554
2559
|
W && !a.some((a) => a.id === W) && G(null);
|
|
@@ -2562,28 +2567,28 @@ var CHIP_BASE = "inline-flex h-[32px] max-w-full items-center gap-[8px] rounded-
|
|
|
2562
2567
|
}, Y = K?.children ?? a;
|
|
2563
2568
|
return /* @__PURE__ */ jsxs("div", {
|
|
2564
2569
|
ref: U,
|
|
2565
|
-
className: cn("flex w-full flex-col items-start gap-[10px]", V),
|
|
2570
|
+
className: cn("ptx-flex ptx-w-full ptx-flex-col ptx-items-start ptx-gap-[10px]", V),
|
|
2566
2571
|
...H,
|
|
2567
2572
|
children: [K && !F && /* @__PURE__ */ jsxs("div", {
|
|
2568
2573
|
className: cn(CHIP_BASE, CHIP_CRUMB),
|
|
2569
2574
|
children: [
|
|
2570
2575
|
K.icon,
|
|
2571
2576
|
/* @__PURE__ */ jsx("span", {
|
|
2572
|
-
className: "min-w-0 flex-1 truncate",
|
|
2577
|
+
className: "ptx-min-w-0 ptx-flex-1 ptx-truncate",
|
|
2573
2578
|
children: K.label
|
|
2574
2579
|
}),
|
|
2575
2580
|
/* @__PURE__ */ jsx("button", {
|
|
2576
2581
|
type: "button",
|
|
2577
2582
|
"aria-label": B,
|
|
2578
2583
|
onClick: J,
|
|
2579
|
-
className: "flex size-[24px] shrink-0 items-center justify-center rounded-[var(--
|
|
2580
|
-
children: /* @__PURE__ */ jsx(X, { className: "size-[12px]" })
|
|
2584
|
+
className: "ptx-flex ptx-size-[24px] ptx-shrink-0 ptx-items-center ptx-justify-center ptx-rounded-[var(--ptx-radius-sm)] ptx-text-[rgb(var(--ptx-text-tage))] ptx-transition-colors hover:ptx-text-foreground focus-visible:ptx-outline-none focus-visible:ptx-ring-2 focus-visible:ptx-ring-ring",
|
|
2585
|
+
children: /* @__PURE__ */ jsx(X, { className: "ptx-size-[12px]" })
|
|
2581
2586
|
})
|
|
2582
2587
|
]
|
|
2583
2588
|
}), /* @__PURE__ */ jsxs("div", {
|
|
2584
|
-
className: cn("w-full flex-col items-start gap-[8px]", F ? "hidden" : "flex"),
|
|
2589
|
+
className: cn("ptx-w-full ptx-flex-col ptx-items-start ptx-gap-[8px]", F ? "ptx-hidden" : "ptx-flex"),
|
|
2585
2590
|
children: [L && /* @__PURE__ */ jsx("p", {
|
|
2586
|
-
className: "text-xs text-[rgb(var(--
|
|
2591
|
+
className: "ptx-text-xs ptx-text-[rgb(var(--ptx-text-tage))]",
|
|
2587
2592
|
children: L
|
|
2588
2593
|
}), Y.map((a) => a.disabled ? /* @__PURE__ */ jsxs("div", {
|
|
2589
2594
|
"aria-disabled": "true",
|
|
@@ -2592,7 +2597,7 @@ var CHIP_BASE = "inline-flex h-[32px] max-w-full items-center gap-[8px] rounded-
|
|
|
2592
2597
|
children: [
|
|
2593
2598
|
a.icon,
|
|
2594
2599
|
/* @__PURE__ */ jsx("span", {
|
|
2595
|
-
className: cn("min-w-0 truncate", a.badge && "flex-1"),
|
|
2600
|
+
className: cn("ptx-min-w-0 ptx-truncate", a.badge && "ptx-flex-1"),
|
|
2596
2601
|
children: a.label
|
|
2597
2602
|
}),
|
|
2598
2603
|
a.badge && /* @__PURE__ */ jsx("span", {
|
|
@@ -2608,7 +2613,7 @@ var CHIP_BASE = "inline-flex h-[32px] max-w-full items-center gap-[8px] rounded-
|
|
|
2608
2613
|
children: [
|
|
2609
2614
|
a.icon,
|
|
2610
2615
|
/* @__PURE__ */ jsx("span", {
|
|
2611
|
-
className: cn("min-w-0 truncate", a.badge && "flex-1"),
|
|
2616
|
+
className: cn("ptx-min-w-0 ptx-truncate", a.badge && "ptx-flex-1"),
|
|
2612
2617
|
children: a.label
|
|
2613
2618
|
}),
|
|
2614
2619
|
a.badge && /* @__PURE__ */ jsx("span", {
|