@salesforce/webapp-template-app-react-sample-b2e-experimental 1.62.2 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.a4drules/webapp.md +0 -2
- package/dist/CHANGELOG.md +11 -0
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/package.json +11 -4
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/alert.tsx +61 -54
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/button.tsx +57 -57
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/card.tsx +86 -75
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/dialog.tsx +129 -110
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/field.tsx +208 -193
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/index.ts +64 -64
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/input.tsx +14 -14
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/label.tsx +17 -14
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/pagination.tsx +108 -88
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/select.tsx +156 -146
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/separator.tsx +19 -19
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/skeleton.tsx +10 -10
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/spinner.tsx +12 -11
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/table.tsx +96 -69
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/tabs.tsx +71 -61
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components.json +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/utils.ts +3 -3
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/styles/global.css +107 -107
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/dialog.tsx
CHANGED
|
@@ -1,143 +1,162 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Dialog as DialogPrimitive } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
5
|
-
import { Button } from
|
|
6
|
-
import { XIcon } from
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
import { Button } from './button';
|
|
6
|
+
import { XIcon } from 'lucide-react';
|
|
7
7
|
|
|
8
|
-
function Dialog({
|
|
9
|
-
|
|
8
|
+
function Dialog({
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
|
|
11
|
+
return <DialogPrimitive.Root data-slot="dialog" {...props} />;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
function DialogTrigger({
|
|
13
|
-
|
|
14
|
+
function DialogTrigger({
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
|
|
17
|
+
return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;
|
|
14
18
|
}
|
|
15
19
|
|
|
16
|
-
function DialogPortal({
|
|
17
|
-
|
|
20
|
+
function DialogPortal({
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<typeof DialogPrimitive.Portal>) {
|
|
23
|
+
return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;
|
|
18
24
|
}
|
|
19
25
|
|
|
20
|
-
function DialogClose({
|
|
21
|
-
|
|
26
|
+
function DialogClose({
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<typeof DialogPrimitive.Close>) {
|
|
29
|
+
return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;
|
|
22
30
|
}
|
|
23
31
|
|
|
24
32
|
function DialogOverlay({
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
27
35
|
}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
return (
|
|
37
|
+
<DialogPrimitive.Overlay
|
|
38
|
+
data-slot="dialog-overlay"
|
|
39
|
+
className={cn(
|
|
40
|
+
'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50',
|
|
41
|
+
className
|
|
42
|
+
)}
|
|
43
|
+
{...props}
|
|
44
|
+
/>
|
|
45
|
+
);
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
function DialogContent({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
className,
|
|
50
|
+
children,
|
|
51
|
+
showCloseButton = true,
|
|
52
|
+
...props
|
|
45
53
|
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
46
|
-
|
|
54
|
+
showCloseButton?: boolean;
|
|
47
55
|
}) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
56
|
+
return (
|
|
57
|
+
<DialogPortal>
|
|
58
|
+
<DialogOverlay />
|
|
59
|
+
<DialogPrimitive.Content
|
|
60
|
+
data-slot="dialog-content"
|
|
61
|
+
className={cn(
|
|
62
|
+
'bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none',
|
|
63
|
+
className
|
|
64
|
+
)}
|
|
65
|
+
{...props}
|
|
66
|
+
>
|
|
67
|
+
{children}
|
|
68
|
+
{showCloseButton && (
|
|
69
|
+
<DialogPrimitive.Close data-slot="dialog-close" asChild>
|
|
70
|
+
<Button
|
|
71
|
+
variant="ghost"
|
|
72
|
+
className="absolute top-2 right-2"
|
|
73
|
+
size="icon-sm"
|
|
74
|
+
>
|
|
75
|
+
<XIcon />
|
|
76
|
+
<span className="sr-only">Close</span>
|
|
77
|
+
</Button>
|
|
78
|
+
</DialogPrimitive.Close>
|
|
79
|
+
)}
|
|
80
|
+
</DialogPrimitive.Content>
|
|
81
|
+
</DialogPortal>
|
|
82
|
+
);
|
|
71
83
|
}
|
|
72
84
|
|
|
73
|
-
function DialogHeader({ className, ...props }: React.ComponentProps<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
86
|
+
return (
|
|
87
|
+
<div
|
|
88
|
+
data-slot="dialog-header"
|
|
89
|
+
className={cn('gap-2 flex flex-col', className)}
|
|
90
|
+
{...props}
|
|
91
|
+
/>
|
|
92
|
+
);
|
|
77
93
|
}
|
|
78
94
|
|
|
79
95
|
function DialogFooter({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}: React.ComponentProps<
|
|
85
|
-
|
|
96
|
+
className,
|
|
97
|
+
showCloseButton = false,
|
|
98
|
+
children,
|
|
99
|
+
...props
|
|
100
|
+
}: React.ComponentProps<'div'> & {
|
|
101
|
+
showCloseButton?: boolean;
|
|
86
102
|
}) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
return (
|
|
104
|
+
<div
|
|
105
|
+
data-slot="dialog-footer"
|
|
106
|
+
className={cn(
|
|
107
|
+
'bg-muted/50 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end',
|
|
108
|
+
className
|
|
109
|
+
)}
|
|
110
|
+
{...props}
|
|
111
|
+
>
|
|
112
|
+
{children}
|
|
113
|
+
{showCloseButton && (
|
|
114
|
+
<DialogPrimitive.Close asChild>
|
|
115
|
+
<Button variant="outline">Close</Button>
|
|
116
|
+
</DialogPrimitive.Close>
|
|
117
|
+
)}
|
|
118
|
+
</div>
|
|
119
|
+
);
|
|
104
120
|
}
|
|
105
121
|
|
|
106
|
-
function DialogTitle({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
122
|
+
function DialogTitle({
|
|
123
|
+
className,
|
|
124
|
+
...props
|
|
125
|
+
}: React.ComponentProps<typeof DialogPrimitive.Title>) {
|
|
126
|
+
return (
|
|
127
|
+
<DialogPrimitive.Title
|
|
128
|
+
data-slot="dialog-title"
|
|
129
|
+
className={cn('text-base leading-none font-medium', className)}
|
|
130
|
+
{...props}
|
|
131
|
+
/>
|
|
132
|
+
);
|
|
114
133
|
}
|
|
115
134
|
|
|
116
135
|
function DialogDescription({
|
|
117
|
-
|
|
118
|
-
|
|
136
|
+
className,
|
|
137
|
+
...props
|
|
119
138
|
}: React.ComponentProps<typeof DialogPrimitive.Description>) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
139
|
+
return (
|
|
140
|
+
<DialogPrimitive.Description
|
|
141
|
+
data-slot="dialog-description"
|
|
142
|
+
className={cn(
|
|
143
|
+
'text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3',
|
|
144
|
+
className
|
|
145
|
+
)}
|
|
146
|
+
{...props}
|
|
147
|
+
/>
|
|
148
|
+
);
|
|
130
149
|
}
|
|
131
150
|
|
|
132
151
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
152
|
+
Dialog,
|
|
153
|
+
DialogClose,
|
|
154
|
+
DialogContent,
|
|
155
|
+
DialogDescription,
|
|
156
|
+
DialogFooter,
|
|
157
|
+
DialogHeader,
|
|
158
|
+
DialogOverlay,
|
|
159
|
+
DialogPortal,
|
|
160
|
+
DialogTitle,
|
|
161
|
+
DialogTrigger,
|
|
143
162
|
};
|