@salesforce/webapp-template-app-react-sample-b2e-experimental 1.62.0 → 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.
Files changed (23) hide show
  1. package/dist/.a4drules/webapp.md +0 -2
  2. package/dist/CHANGELOG.md +27 -0
  3. package/dist/force-app/main/default/webapplications/appreactsampleb2e/package.json +11 -4
  4. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/alert.tsx +61 -54
  5. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/button.tsx +57 -57
  6. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/card.tsx +86 -75
  7. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/dialog.tsx +129 -110
  8. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/field.tsx +208 -193
  9. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/index.ts +64 -64
  10. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/input.tsx +14 -14
  11. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/label.tsx +17 -14
  12. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/pagination.tsx +108 -88
  13. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/select.tsx +156 -146
  14. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/separator.tsx +19 -19
  15. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/skeleton.tsx +10 -10
  16. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/spinner.tsx +12 -11
  17. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/table.tsx +96 -69
  18. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ui/tabs.tsx +71 -61
  19. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components.json +1 -1
  20. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/utils.ts +3 -3
  21. package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/styles/global.css +107 -107
  22. package/dist/package.json +1 -1
  23. package/package.json +2 -3
@@ -1,143 +1,162 @@
1
- import * as React from "react";
2
- import { Dialog as DialogPrimitive } from "radix-ui";
1
+ import * as React from 'react';
2
+ import { Dialog as DialogPrimitive } from 'radix-ui';
3
3
 
4
- import { cn } from "../../lib/utils";
5
- import { Button } from "./button";
6
- import { XIcon } from "lucide-react";
4
+ import { cn } from '../../lib/utils';
5
+ import { Button } from './button';
6
+ import { XIcon } from 'lucide-react';
7
7
 
8
- function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {
9
- return <DialogPrimitive.Root data-slot="dialog" {...props} />;
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({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {
13
- return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;
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({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {
17
- return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;
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({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {
21
- return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;
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
- className,
26
- ...props
33
+ className,
34
+ ...props
27
35
  }: React.ComponentProps<typeof DialogPrimitive.Overlay>) {
28
- return (
29
- <DialogPrimitive.Overlay
30
- data-slot="dialog-overlay"
31
- className={cn(
32
- "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",
33
- className,
34
- )}
35
- {...props}
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
- className,
42
- children,
43
- showCloseButton = true,
44
- ...props
49
+ className,
50
+ children,
51
+ showCloseButton = true,
52
+ ...props
45
53
  }: React.ComponentProps<typeof DialogPrimitive.Content> & {
46
- showCloseButton?: boolean;
54
+ showCloseButton?: boolean;
47
55
  }) {
48
- return (
49
- <DialogPortal>
50
- <DialogOverlay />
51
- <DialogPrimitive.Content
52
- data-slot="dialog-content"
53
- className={cn(
54
- "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",
55
- className,
56
- )}
57
- {...props}
58
- >
59
- {children}
60
- {showCloseButton && (
61
- <DialogPrimitive.Close data-slot="dialog-close" asChild>
62
- <Button variant="ghost" className="absolute top-2 right-2" size="icon-sm">
63
- <XIcon />
64
- <span className="sr-only">Close</span>
65
- </Button>
66
- </DialogPrimitive.Close>
67
- )}
68
- </DialogPrimitive.Content>
69
- </DialogPortal>
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<"div">) {
74
- return (
75
- <div data-slot="dialog-header" className={cn("gap-2 flex flex-col", className)} {...props} />
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
- className,
81
- showCloseButton = false,
82
- children,
83
- ...props
84
- }: React.ComponentProps<"div"> & {
85
- showCloseButton?: boolean;
96
+ className,
97
+ showCloseButton = false,
98
+ children,
99
+ ...props
100
+ }: React.ComponentProps<'div'> & {
101
+ showCloseButton?: boolean;
86
102
  }) {
87
- return (
88
- <div
89
- data-slot="dialog-footer"
90
- className={cn(
91
- "bg-muted/50 rounded-b-xl border-t p-4 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
92
- className,
93
- )}
94
- {...props}
95
- >
96
- {children}
97
- {showCloseButton && (
98
- <DialogPrimitive.Close asChild>
99
- <Button variant="outline">Close</Button>
100
- </DialogPrimitive.Close>
101
- )}
102
- </div>
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({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {
107
- return (
108
- <DialogPrimitive.Title
109
- data-slot="dialog-title"
110
- className={cn("text-base leading-none font-medium", className)}
111
- {...props}
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
- className,
118
- ...props
136
+ className,
137
+ ...props
119
138
  }: React.ComponentProps<typeof DialogPrimitive.Description>) {
120
- return (
121
- <DialogPrimitive.Description
122
- data-slot="dialog-description"
123
- className={cn(
124
- "text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3",
125
- className,
126
- )}
127
- {...props}
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
- Dialog,
134
- DialogClose,
135
- DialogContent,
136
- DialogDescription,
137
- DialogFooter,
138
- DialogHeader,
139
- DialogOverlay,
140
- DialogPortal,
141
- DialogTitle,
142
- DialogTrigger,
152
+ Dialog,
153
+ DialogClose,
154
+ DialogContent,
155
+ DialogDescription,
156
+ DialogFooter,
157
+ DialogHeader,
158
+ DialogOverlay,
159
+ DialogPortal,
160
+ DialogTitle,
161
+ DialogTrigger,
143
162
  };