create-ec-app 1.7.0 → 1.9.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/README.md +72 -17
- package/dist/cssScope.js +3 -5
- package/dist/cssScope.js.map +1 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +129 -53
- package/dist/index.js.map +1 -1
- package/dist/libFunctions.d.ts +13 -6
- package/dist/libFunctions.d.ts.map +1 -1
- package/dist/libFunctions.js +24 -9
- package/dist/libFunctions.js.map +1 -1
- package/dist/pcf.d.ts.map +1 -1
- package/dist/pcf.js +4 -1
- package/dist/pcf.js.map +1 -1
- package/dist/portalContainers.js +7 -5
- package/dist/portalContainers.js.map +1 -1
- package/package.json +18 -11
- package/scripts/build-generated.mjs +59 -0
- package/scripts/refresh-shadcn-template.ts +406 -0
- package/scripts/smoke-scaffold.mjs +245 -0
- package/templates/base/eslint.config.js +1 -1
- package/templates/base/package-lock.json +380 -476
- package/templates/base/package.json +14 -19
- package/templates/pcf/base/package-lock.json +35 -53
- package/templates/targets/code-apps/AGENTS.md +187 -0
- package/templates/targets/code-apps/CLAUDE.md +1 -0
- package/templates/targets/code-apps/package.patch.json +1 -1
- package/templates/targets/power-pages/AGENTS.md +192 -0
- package/templates/targets/power-pages/CLAUDE.md +1 -0
- package/templates/targets/power-pages/README.md +22 -2
- package/templates/targets/power-pages/src/App.patch.tsx +3 -1
- package/templates/targets/power-pages/src/components/shared/AuthError.tsx +18 -0
- package/templates/targets/power-pages/src/context/AuthContext.tsx +0 -4
- package/templates/targets/swa/AGENTS.md +181 -0
- package/templates/targets/swa/CLAUDE.md +1 -0
- package/templates/targets/webresource/AGENTS.md +179 -67
- package/templates/targets/webresource/CLAUDE.md +1 -0
- package/templates/targets/webresource/README.md +5 -5
- package/templates/ui/kendo/package.patch.json +2 -2
- package/templates/ui/shadcn-ui/SHADCN_TEMPLATE.md +20 -0
- package/templates/ui/shadcn-ui/package.patch.json +18 -9
- package/templates/ui/shadcn-ui/src/components/ui/accordion.tsx +79 -0
- package/templates/ui/shadcn-ui/src/components/ui/alert-dialog.tsx +199 -0
- package/templates/ui/shadcn-ui/src/components/ui/alert.tsx +76 -0
- package/templates/ui/shadcn-ui/src/components/ui/aspect-ratio.tsx +11 -0
- package/templates/ui/shadcn-ui/src/components/ui/attachment.tsx +206 -0
- package/templates/ui/shadcn-ui/src/components/ui/avatar.tsx +110 -0
- package/templates/ui/shadcn-ui/src/components/ui/badge.tsx +49 -0
- package/templates/ui/shadcn-ui/src/components/ui/breadcrumb.tsx +122 -0
- package/templates/ui/shadcn-ui/src/components/ui/bubble.tsx +125 -0
- package/templates/ui/shadcn-ui/src/components/ui/button-group.tsx +83 -0
- package/templates/ui/shadcn-ui/src/components/ui/button.tsx +67 -0
- package/templates/ui/shadcn-ui/src/components/ui/calendar.tsx +222 -0
- package/templates/ui/shadcn-ui/src/components/ui/card.tsx +103 -0
- package/templates/ui/shadcn-ui/src/components/ui/carousel.tsx +240 -0
- package/templates/ui/shadcn-ui/src/components/ui/chart.tsx +373 -0
- package/templates/ui/shadcn-ui/src/components/ui/checkbox.tsx +31 -0
- package/templates/ui/shadcn-ui/src/components/ui/collapsible.tsx +33 -0
- package/templates/ui/shadcn-ui/src/components/ui/combobox.tsx +299 -0
- package/templates/ui/shadcn-ui/src/components/ui/command.tsx +195 -0
- package/templates/ui/shadcn-ui/src/components/ui/context-menu.tsx +264 -0
- package/templates/ui/shadcn-ui/src/components/ui/dialog.tsx +170 -0
- package/templates/ui/shadcn-ui/src/components/ui/direction.tsx +22 -0
- package/templates/ui/shadcn-ui/src/components/ui/drawer.tsx +134 -0
- package/templates/ui/shadcn-ui/src/components/ui/dropdown-menu.tsx +272 -0
- package/templates/ui/shadcn-ui/src/components/ui/empty.tsx +104 -0
- package/templates/ui/shadcn-ui/src/components/ui/field.tsx +236 -0
- package/templates/ui/shadcn-ui/src/components/ui/hover-card.tsx +44 -0
- package/templates/ui/shadcn-ui/src/components/ui/input-group.tsx +156 -0
- package/templates/ui/shadcn-ui/src/components/ui/input-otp.tsx +87 -0
- package/templates/ui/shadcn-ui/src/components/ui/input.tsx +19 -0
- package/templates/ui/shadcn-ui/src/components/ui/item.tsx +196 -0
- package/templates/ui/shadcn-ui/src/components/ui/kbd.tsx +26 -0
- package/templates/ui/shadcn-ui/src/components/ui/label.tsx +22 -0
- package/templates/ui/shadcn-ui/src/components/ui/marker.tsx +69 -0
- package/templates/ui/shadcn-ui/src/components/ui/menubar.tsx +282 -0
- package/templates/ui/shadcn-ui/src/components/ui/message-scroller.tsx +129 -0
- package/templates/ui/shadcn-ui/src/components/ui/message.tsx +92 -0
- package/templates/ui/shadcn-ui/src/components/ui/native-select.tsx +61 -0
- package/templates/ui/shadcn-ui/src/components/ui/navigation-menu.tsx +164 -0
- package/templates/ui/shadcn-ui/src/components/ui/pagination.tsx +129 -0
- package/templates/ui/shadcn-ui/src/components/ui/popover.tsx +89 -0
- package/templates/ui/shadcn-ui/src/components/ui/progress.tsx +31 -0
- package/templates/ui/shadcn-ui/src/components/ui/radio-group.tsx +42 -0
- package/templates/ui/shadcn-ui/src/components/ui/resizable.tsx +50 -0
- package/templates/ui/shadcn-ui/src/components/ui/scroll-area.tsx +53 -0
- package/templates/ui/shadcn-ui/src/components/ui/select.tsx +194 -0
- package/templates/ui/shadcn-ui/src/components/ui/separator.tsx +26 -0
- package/templates/ui/shadcn-ui/src/components/ui/sheet.tsx +149 -0
- package/templates/ui/shadcn-ui/src/components/ui/sidebar.tsx +702 -0
- package/templates/ui/shadcn-ui/src/components/ui/skeleton.tsx +13 -0
- package/templates/ui/shadcn-ui/src/components/ui/slider.tsx +59 -0
- package/templates/ui/shadcn-ui/src/components/ui/sonner.tsx +47 -0
- package/templates/ui/shadcn-ui/src/components/ui/spinner.tsx +10 -0
- package/templates/ui/shadcn-ui/src/components/ui/switch.tsx +33 -0
- package/templates/ui/shadcn-ui/src/components/ui/table.tsx +114 -0
- package/templates/ui/shadcn-ui/src/components/ui/tabs.tsx +90 -0
- package/templates/ui/shadcn-ui/src/components/ui/textarea.tsx +18 -0
- package/templates/ui/shadcn-ui/src/components/ui/toggle-group.tsx +87 -0
- package/templates/ui/shadcn-ui/src/components/ui/toggle.tsx +45 -0
- package/templates/ui/shadcn-ui/src/components/ui/tooltip.tsx +59 -0
- package/templates/ui/shadcn-ui/src/index.patch.css +0 -118
- package/templates/ui/shadcn-ui/src/runtime/PortalContainer.ts +8 -0
- package/templates/base/biome.json +0 -54
|
@@ -1,122 +1,4 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
|
-
@import "tw-animate-css";
|
|
3
2
|
@import "shadcn/tailwind.css";
|
|
4
3
|
|
|
5
4
|
@custom-variant hover (&:hover);
|
|
6
|
-
@custom-variant dark (&:is(.dark *));
|
|
7
|
-
|
|
8
|
-
@theme inline {
|
|
9
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
10
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
11
|
-
--radius-lg: var(--radius);
|
|
12
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
13
|
-
--color-background: var(--background);
|
|
14
|
-
--color-foreground: var(--foreground);
|
|
15
|
-
--color-card: var(--card);
|
|
16
|
-
--color-card-foreground: var(--card-foreground);
|
|
17
|
-
--color-popover: var(--popover);
|
|
18
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
19
|
-
--color-primary: var(--primary);
|
|
20
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
21
|
-
--color-secondary: var(--secondary);
|
|
22
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
23
|
-
--color-muted: var(--muted);
|
|
24
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
25
|
-
--color-accent: var(--accent);
|
|
26
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
27
|
-
--color-destructive: var(--destructive);
|
|
28
|
-
--color-border: var(--border);
|
|
29
|
-
--color-input: var(--input);
|
|
30
|
-
--color-ring: var(--ring);
|
|
31
|
-
--color-chart-1: var(--chart-1);
|
|
32
|
-
--color-chart-2: var(--chart-2);
|
|
33
|
-
--color-chart-3: var(--chart-3);
|
|
34
|
-
--color-chart-4: var(--chart-4);
|
|
35
|
-
--color-chart-5: var(--chart-5);
|
|
36
|
-
--color-sidebar: var(--sidebar);
|
|
37
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
38
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
39
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
40
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
41
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
42
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
43
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:root {
|
|
47
|
-
--radius: 0.625rem;
|
|
48
|
-
--background: oklch(1 0 0);
|
|
49
|
-
--foreground: oklch(0.145 0 0);
|
|
50
|
-
--card: oklch(1 0 0);
|
|
51
|
-
--card-foreground: oklch(0.145 0 0);
|
|
52
|
-
--popover: oklch(1 0 0);
|
|
53
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
54
|
-
--primary: oklch(0.205 0 0);
|
|
55
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
56
|
-
--secondary: oklch(0.97 0 0);
|
|
57
|
-
--secondary-foreground: oklch(0.205 0 0);
|
|
58
|
-
--muted: oklch(0.97 0 0);
|
|
59
|
-
--muted-foreground: oklch(0.556 0 0);
|
|
60
|
-
--accent: oklch(0.97 0 0);
|
|
61
|
-
--accent-foreground: oklch(0.205 0 0);
|
|
62
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
63
|
-
--border: oklch(0.922 0 0);
|
|
64
|
-
--input: oklch(0.922 0 0);
|
|
65
|
-
--ring: oklch(0.708 0 0);
|
|
66
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
67
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
68
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
69
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
70
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
71
|
-
--sidebar: oklch(0.985 0 0);
|
|
72
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
73
|
-
--sidebar-primary: oklch(0.205 0 0);
|
|
74
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
75
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
76
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
77
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
78
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.dark {
|
|
82
|
-
--background: oklch(0.145 0 0);
|
|
83
|
-
--foreground: oklch(0.985 0 0);
|
|
84
|
-
--card: oklch(0.205 0 0);
|
|
85
|
-
--card-foreground: oklch(0.985 0 0);
|
|
86
|
-
--popover: oklch(0.205 0 0);
|
|
87
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
88
|
-
--primary: oklch(0.922 0 0);
|
|
89
|
-
--primary-foreground: oklch(0.205 0 0);
|
|
90
|
-
--secondary: oklch(0.269 0 0);
|
|
91
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
92
|
-
--muted: oklch(0.269 0 0);
|
|
93
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
94
|
-
--accent: oklch(0.269 0 0);
|
|
95
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
96
|
-
--destructive: oklch(0.704 0.191 22.216);
|
|
97
|
-
--border: oklch(1 0 0 / 10%);
|
|
98
|
-
--input: oklch(1 0 0 / 15%);
|
|
99
|
-
--ring: oklch(0.556 0 0);
|
|
100
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
101
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
102
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
103
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
104
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
105
|
-
--sidebar: oklch(0.205 0 0);
|
|
106
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
107
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
108
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
109
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
110
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
111
|
-
--sidebar-border: oklch(1 0 0 / 10%);
|
|
112
|
-
--sidebar-ring: oklch(0.556 0 0);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@layer base {
|
|
116
|
-
* {
|
|
117
|
-
@apply border-border outline-ring/50;
|
|
118
|
-
}
|
|
119
|
-
body {
|
|
120
|
-
@apply bg-background text-foreground;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.3.6/schema.json",
|
|
3
|
-
"linter": {
|
|
4
|
-
"enabled": true,
|
|
5
|
-
"rules": {
|
|
6
|
-
"recommended": true,
|
|
7
|
-
"correctness": {
|
|
8
|
-
"noUnusedVariables": "error"
|
|
9
|
-
},
|
|
10
|
-
"suspicious": {
|
|
11
|
-
"noExplicitAny": "error"
|
|
12
|
-
},
|
|
13
|
-
"style": {
|
|
14
|
-
"useConst": "error"
|
|
15
|
-
},
|
|
16
|
-
"a11y": {
|
|
17
|
-
"recommended": true
|
|
18
|
-
},
|
|
19
|
-
"complexity": {
|
|
20
|
-
"recommended": true
|
|
21
|
-
},
|
|
22
|
-
"performance": {
|
|
23
|
-
"recommended": true
|
|
24
|
-
},
|
|
25
|
-
"security": {
|
|
26
|
-
"recommended": true
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"assist": {
|
|
31
|
-
"enabled": true
|
|
32
|
-
},
|
|
33
|
-
"formatter": {
|
|
34
|
-
"indentStyle": "tab",
|
|
35
|
-
"indentWidth": 4,
|
|
36
|
-
"lineWidth": 80
|
|
37
|
-
},
|
|
38
|
-
"javascript": {
|
|
39
|
-
"formatter": {
|
|
40
|
-
"quoteStyle": "double",
|
|
41
|
-
"semicolons": "always",
|
|
42
|
-
"arrowParentheses": "always",
|
|
43
|
-
"trailingCommas": "es5",
|
|
44
|
-
"bracketSpacing": true,
|
|
45
|
-
"jsxQuoteStyle": "double",
|
|
46
|
-
"quoteProperties": "asNeeded"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"json": {
|
|
50
|
-
"formatter": {
|
|
51
|
-
"enabled": true
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|