rizzo-css 0.0.73 → 0.0.74
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 +1 -1
- package/bin/rizzo-css.js +14 -14
- package/dist/rizzo.min.css +6 -6
- package/package.json +1 -1
- package/scaffold/astro/Footer.astro +1 -1
- package/scaffold/react/base/package.json +1 -1
- package/scaffold/svelte/base/README-RIZZO.md +1 -0
- package/scaffold/svelte/base/vite.config.js +6 -0
- package/scaffold/svelte/variants/full/README-RIZZO.md +1 -0
- package/scaffold/svelte/variants/full/vite.config.js +6 -0
- package/scaffold/vanilla/README-RIZZO.md +1 -1
- package/scaffold/vanilla/components/accordion.html +6 -0
- package/scaffold/vanilla/components/alert-dialog.html +6 -0
- package/scaffold/vanilla/components/alert.html +6 -0
- package/scaffold/vanilla/components/aspect-ratio.html +6 -0
- package/scaffold/vanilla/components/avatar.html +6 -0
- package/scaffold/vanilla/components/back-to-top.html +6 -0
- package/scaffold/vanilla/components/badge.html +6 -0
- package/scaffold/vanilla/components/breadcrumb.html +6 -0
- package/scaffold/vanilla/components/button-group.html +6 -0
- package/scaffold/vanilla/components/button.html +6 -0
- package/scaffold/vanilla/components/calendar.html +6 -0
- package/scaffold/vanilla/components/cards.html +6 -0
- package/scaffold/vanilla/components/carousel.html +6 -0
- package/scaffold/vanilla/components/collapsible.html +6 -0
- package/scaffold/vanilla/components/context-menu.html +6 -0
- package/scaffold/vanilla/components/copy-to-clipboard.html +6 -0
- package/scaffold/vanilla/components/dashboard.html +6 -0
- package/scaffold/vanilla/components/divider.html +6 -0
- package/scaffold/vanilla/components/docs-sidebar.html +6 -0
- package/scaffold/vanilla/components/dropdown.html +6 -0
- package/scaffold/vanilla/components/empty.html +6 -0
- package/scaffold/vanilla/components/font-switcher.html +6 -0
- package/scaffold/vanilla/components/footer.html +6 -0
- package/scaffold/vanilla/components/forms.html +6 -0
- package/scaffold/vanilla/components/hover-card.html +6 -0
- package/scaffold/vanilla/components/icons.html +6 -0
- package/scaffold/vanilla/components/index.html +6 -0
- package/scaffold/vanilla/components/input-group.html +6 -0
- package/scaffold/vanilla/components/kbd.html +6 -0
- package/scaffold/vanilla/components/label.html +6 -0
- package/scaffold/vanilla/components/modal.html +6 -0
- package/scaffold/vanilla/components/navbar.html +6 -0
- package/scaffold/vanilla/components/pagination.html +6 -0
- package/scaffold/vanilla/components/popover.html +6 -0
- package/scaffold/vanilla/components/progress-bar.html +6 -0
- package/scaffold/vanilla/components/range-calendar.html +6 -0
- package/scaffold/vanilla/components/resizable.html +6 -0
- package/scaffold/vanilla/components/scroll-area.html +6 -0
- package/scaffold/vanilla/components/search.html +6 -0
- package/scaffold/vanilla/components/separator.html +6 -0
- package/scaffold/vanilla/components/settings.html +6 -0
- package/scaffold/vanilla/components/sheet.html +6 -0
- package/scaffold/vanilla/components/skeleton.html +6 -0
- package/scaffold/vanilla/components/slider.html +6 -0
- package/scaffold/vanilla/components/sound-effects.html +6 -0
- package/scaffold/vanilla/components/spinner.html +6 -0
- package/scaffold/vanilla/components/switch.html +6 -0
- package/scaffold/vanilla/components/table.html +6 -0
- package/scaffold/vanilla/components/tabs.html +6 -0
- package/scaffold/vanilla/components/theme-switcher.html +6 -0
- package/scaffold/vanilla/components/toast.html +6 -0
- package/scaffold/vanilla/components/toggle-group.html +6 -0
- package/scaffold/vanilla/components/toggle.html +6 -0
- package/scaffold/vanilla/components/tooltip.html +6 -0
- package/scaffold/vanilla/index.html +6 -0
- package/scaffold/vue/base/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ import 'rizzo-css';
|
|
|
72
72
|
**Without a bundler (plain HTML):** Use a CDN. Both unpkg and jsDelivr resolve the package root to the built CSS (via the `unpkg` / `jsdelivr` fields in this package). For reliability or to pin a version, use the explicit path:
|
|
73
73
|
|
|
74
74
|
```html
|
|
75
|
-
<!-- unpkg (pin version: replace @latest with @0.0.
|
|
75
|
+
<!-- unpkg (pin version: replace @latest with @0.0.74 or any version) -->
|
|
76
76
|
<link rel="stylesheet" href="https://unpkg.com/rizzo-css@latest/dist/rizzo.min.css" />
|
|
77
77
|
|
|
78
78
|
<!-- or jsDelivr -->
|
package/bin/rizzo-css.js
CHANGED
|
@@ -1131,7 +1131,7 @@ Options (init):
|
|
|
1131
1131
|
--no-install Do not run install; do not prompt (skip "Run <pm> install? (Y/n)")
|
|
1132
1132
|
--offline Use package manager cache only (no network). Passed to install/add when running PM.
|
|
1133
1133
|
--no-git With --yes, skip initializing a git repository (default with --yes is to run git init)
|
|
1134
|
-
(
|
|
1134
|
+
(Init create-new: we prompt "Run <pm> install? (Y/n)" first when the project has package.json, then "Initialize git? (Y/n)". With --yes we run install when --install and git init unless --no-git. Add does not prompt for git. rizzo-css.json is written only when the project does not already have one.)
|
|
1135
1135
|
|
|
1136
1136
|
Options (add) — run from your existing project root; you will choose a template then select components (or CSS only):
|
|
1137
1137
|
--template <t> css-only | landing | docs | dashboard | full (CSS only = stylesheet only; others = component picker)
|
|
@@ -3127,7 +3127,7 @@ async function cmdInit(argv) {
|
|
|
3127
3127
|
const pm = getPackageManagerCommands({ agent: selectedPm, command: selectedPm });
|
|
3128
3128
|
const nextStep = pm.install + ' && ' + pm.run('dev');
|
|
3129
3129
|
const runPrefix = projectDir !== cwd ? 'cd ' + pathRelative(cwd, projectDir) + ' && ' : '';
|
|
3130
|
-
const hasPackageJson = useHandpickAstro || useHandpickSvelte || useAstroBase || useSvelteBase || useReactBase || useVueBase || (selectedVariation === 'css-only' && (framework === 'astro' || framework === 'svelte' || framework === 'react' || framework === 'vue'));
|
|
3130
|
+
const hasPackageJson = useHandpickAstro || useHandpickSvelte || useAstroBase || useSvelteBase || useReactBase || useVueBase || (useFullVariant && framework !== 'vanilla') || (selectedVariation === 'css-only' && (framework === 'astro' || framework === 'svelte' || framework === 'react' || framework === 'vue'));
|
|
3131
3131
|
|
|
3132
3132
|
console.log('\n Scaffold complete. Summary above.');
|
|
3133
3133
|
|
|
@@ -3139,17 +3139,7 @@ async function cmdInit(argv) {
|
|
|
3139
3139
|
console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
3142
|
-
//
|
|
3143
|
-
if (!yes) {
|
|
3144
|
-
const shouldGitInit = await confirmGitInit();
|
|
3145
|
-
if (shouldGitInit) {
|
|
3146
|
-
runGitInit(projectDir);
|
|
3147
|
-
}
|
|
3148
|
-
} else if (!hasFlag(argv, '--no-git')) {
|
|
3149
|
-
runGitInit(projectDir);
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
|
-
// Package manager install: only for Astro/Svelte (Vanilla has no package.json)
|
|
3142
|
+
// Package manager install: prompt first (when interactive), then run if requested or --install. Only when project has package.json.
|
|
3153
3143
|
const installCmd = pm.install + (hasFlag(argv, '--offline') ? ' --offline' : '');
|
|
3154
3144
|
if (runInstallAfterScaffold && !noInstall && hasPackageJson) {
|
|
3155
3145
|
const dirLabel = projectDir !== cwd ? ' in ' + pathRelative(cwd, projectDir) : ' (current directory)';
|
|
@@ -3176,6 +3166,16 @@ async function cmdInit(argv) {
|
|
|
3176
3166
|
}
|
|
3177
3167
|
}
|
|
3178
3168
|
|
|
3169
|
+
// Git init: after install prompt — prompt when interactive, run when --yes (unless --no-git)
|
|
3170
|
+
if (!yes) {
|
|
3171
|
+
const shouldGitInit = await confirmGitInit();
|
|
3172
|
+
if (shouldGitInit) {
|
|
3173
|
+
runGitInit(projectDir);
|
|
3174
|
+
}
|
|
3175
|
+
} else if (!hasFlag(argv, '--no-git')) {
|
|
3176
|
+
runGitInit(projectDir);
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
3179
|
if (useHandpickAstro || useHandpickSvelte) {
|
|
3180
3180
|
const fw = useHandpickAstro ? 'Astro' : 'SvelteKit';
|
|
3181
3181
|
console.log(' - ' + fw + ' (manual): base + ' + selectedComponents.length + ' component(s). Run: ' + runPrefix + nextStep);
|
|
@@ -3192,7 +3192,7 @@ async function cmdInit(argv) {
|
|
|
3192
3192
|
if (useVueBase) {
|
|
3193
3193
|
console.log(' - Vue (Vite): app + ' + (componentsToCopy.length > 0 ? componentsToCopy.length + ' component(s).' : 'base.') + ' Run: ' + runPrefix + nextStep);
|
|
3194
3194
|
}
|
|
3195
|
-
const hasBaseScaffold = useAstroBase || useSvelteBase || useHandpickAstro || useHandpickSvelte || useReactBase || useVueBase || (selectedVariation === 'css-only' && (framework === 'astro' || framework === 'svelte' || framework === 'react' || framework === 'vue'));
|
|
3195
|
+
const hasBaseScaffold = useAstroBase || useSvelteBase || useHandpickAstro || useHandpickSvelte || useReactBase || useVueBase || useFullVariant || (selectedVariation === 'css-only' && (framework === 'astro' || framework === 'svelte' || framework === 'react' || framework === 'vue'));
|
|
3196
3196
|
if ((framework === 'astro' || framework === 'svelte' || framework === 'react' || framework === 'vue') && !hasBaseScaffold) {
|
|
3197
3197
|
const fw = framework === 'svelte' ? 'Svelte' : framework === 'react' ? 'React' : framework === 'vue' ? 'Vue' : 'Astro';
|
|
3198
3198
|
const createExample = getCreateProjectExample(pm, framework);
|