rizzo-css 0.0.38 → 0.0.39
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 +10 -13
- package/package.json +1 -1
- package/scaffold/astro-minimal/README-RIZZO.md +2 -2
- package/scaffold/svelte-minimal/README-RIZZO.md +2 -2
- package/scaffold/vanilla/README-RIZZO.md +3 -3
- package/scaffold/vanilla/components/accordion.html +6 -0
- package/scaffold/vanilla/components/alert.html +6 -0
- package/scaffold/vanilla/components/avatar.html +6 -0
- package/scaffold/vanilla/components/badge.html +6 -0
- package/scaffold/vanilla/components/breadcrumb.html +6 -0
- package/scaffold/vanilla/components/button.html +6 -0
- package/scaffold/vanilla/components/cards.html +6 -0
- package/scaffold/vanilla/components/copy-to-clipboard.html +6 -0
- package/scaffold/vanilla/components/divider.html +6 -0
- package/scaffold/vanilla/components/dropdown.html +6 -0
- package/scaffold/vanilla/components/forms.html +6 -0
- package/scaffold/vanilla/components/icons.html +6 -0
- package/scaffold/vanilla/components/index.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/progress-bar.html +6 -0
- package/scaffold/vanilla/components/search.html +6 -0
- package/scaffold/vanilla/components/settings.html +6 -0
- package/scaffold/vanilla/components/spinner.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/tooltip.html +6 -0
- package/scaffold/vanilla/index.html +6 -0
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ import 'rizzo-css';
|
|
|
61
61
|
**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:
|
|
62
62
|
|
|
63
63
|
```html
|
|
64
|
-
<!-- unpkg (pin version: replace @latest with @0.0.
|
|
64
|
+
<!-- unpkg (pin version: replace @latest with @0.0.39 or any version) -->
|
|
65
65
|
<link rel="stylesheet" href="https://unpkg.com/rizzo-css@latest/dist/rizzo.min.css" />
|
|
66
66
|
|
|
67
67
|
<!-- or jsDelivr -->
|
package/bin/rizzo-css.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { copyFileSync, mkdirSync, writeFileSync, existsSync, readFileSync, readdirSync, statSync, unlinkSync } = require('fs');
|
|
4
|
-
const { join, dirname, resolve: pathResolve, relative: pathRelative } = require('path');
|
|
4
|
+
const { join, dirname, resolve: pathResolve, relative: pathRelative, basename: pathBasename } = require('path');
|
|
5
5
|
const { spawnSync } = require('child_process');
|
|
6
6
|
const readline = require('readline');
|
|
7
7
|
|
|
@@ -1618,19 +1618,16 @@ async function cmdInit(argv) {
|
|
|
1618
1618
|
const projectChoice = await selectMenu(
|
|
1619
1619
|
[
|
|
1620
1620
|
{ value: 'cwd', label: 'Current directory' },
|
|
1621
|
-
{ value: '
|
|
1622
|
-
{ value: 'path', label: 'Enter path (directory to create or use)' },
|
|
1621
|
+
{ value: 'path', label: 'Enter path or project name (new folder)' },
|
|
1623
1622
|
],
|
|
1624
1623
|
'? Project location'
|
|
1625
1624
|
);
|
|
1626
|
-
if (projectChoice === '
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
console.log('No path entered. Using current directory.');
|
|
1633
|
-
customProjectPath = null;
|
|
1625
|
+
if (projectChoice === 'path') {
|
|
1626
|
+
const pathInput = await question('Path or project name (relative to cwd or absolute; empty = current directory): ');
|
|
1627
|
+
const trimmed = (pathInput || '').trim();
|
|
1628
|
+
if (trimmed) {
|
|
1629
|
+
customProjectPath = trimmed;
|
|
1630
|
+
name = pathBasename(pathResolve(cwd, trimmed));
|
|
1634
1631
|
}
|
|
1635
1632
|
}
|
|
1636
1633
|
|
|
@@ -1659,12 +1656,12 @@ async function cmdInit(argv) {
|
|
|
1659
1656
|
defaultLight = LIGHT_THEMES[0];
|
|
1660
1657
|
}
|
|
1661
1658
|
|
|
1662
|
-
const projectDirForPm = customProjectPath ? pathResolve(cwd, customProjectPath) :
|
|
1659
|
+
const projectDirForPm = customProjectPath ? pathResolve(cwd, customProjectPath) : cwd;
|
|
1663
1660
|
const pmArg = getFlagValue(argv, '--package-manager');
|
|
1664
1661
|
selectedPm = parsePackageManager(pmArg) || await promptPackageManager(projectDirForPm);
|
|
1665
1662
|
}
|
|
1666
1663
|
|
|
1667
|
-
const projectDir = customProjectPath ? pathResolve(cwd, customProjectPath) :
|
|
1664
|
+
const projectDir = customProjectPath ? pathResolve(cwd, customProjectPath) : cwd;
|
|
1668
1665
|
if (isDirNonEmpty(projectDir) && !yes) {
|
|
1669
1666
|
const ok = await confirmNonEmptyDir(projectDir);
|
|
1670
1667
|
if (!ok) {
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Astro + Rizzo CSS
|
|
1
|
+
# Astro + Rizzo CSS
|
|
2
2
|
|
|
3
3
|
```
|
|
4
4
|
/\___/\
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Design system · Vanilla · Astro · Svelte
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Astro project with Rizzo CSS. Scaffolded with `npx rizzo-css init --framework astro --template full`, **minimal**, or **manual**. When you choose **Full** or **Minimal**, the CLI copies all interactive Rizzo components (Button, Modal, Navbar, Search, Settings, ThemeSwitcher, etc.) into this project so they work together; **Manual** lets you pick which of those to include (all are pre-selected by default).
|
|
18
18
|
|
|
19
19
|
## Setup
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# SvelteKit + Rizzo CSS
|
|
1
|
+
# SvelteKit + Rizzo CSS
|
|
2
2
|
|
|
3
3
|
```
|
|
4
4
|
/\___/\
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Design system · Vanilla · Astro · Svelte
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
SvelteKit project with Rizzo CSS. Scaffolded with `npx rizzo-css init --framework svelte --template full`, **minimal**, or **manual**. When you choose **Full** or **Minimal**, the CLI copies all interactive Rizzo components (Button, Modal, Navbar, Search, Settings, ThemeSwitcher, etc.) into this project so they work together; **Manual** lets you pick which of those to include (all are pre-selected by default).
|
|
18
18
|
|
|
19
19
|
## Setup
|
|
20
20
|
|
|
@@ -27,7 +27,7 @@ If you prefer to load CSS from a CDN instead of the local file, replace the `<li
|
|
|
27
27
|
- `<link rel="stylesheet" href="https://unpkg.com/rizzo-css@latest/dist/rizzo.min.css" />`
|
|
28
28
|
- Or jsDelivr: `https://cdn.jsdelivr.net/npm/rizzo-css@latest/dist/rizzo.min.css`
|
|
29
29
|
|
|
30
|
-
(Replace `@latest` with a specific version, e.g. `@0.0.
|
|
30
|
+
(Replace `@latest` with a specific version, e.g. `@0.0.39`, in production.)
|
|
31
31
|
|
|
32
32
|
The CLI replaces placeholders in `index.html` (e.g. `{{DATA_THEME}}`, `{{TITLE}}`) when you run `rizzo-css init`. The theme selected during init is used on first load when you have no saved preference in the browser.
|
|
33
33
|
|
|
@@ -66,7 +66,7 @@ pnpm dlx serve .
|
|
|
66
66
|
|
|
67
67
|
## Other scaffolds
|
|
68
68
|
|
|
69
|
-
- **Astro:** `scaffold/astro-minimal/` —
|
|
70
|
-
- **Svelte:** `scaffold/svelte-minimal/` —
|
|
69
|
+
- **Astro:** `scaffold/astro-minimal/` — Astro app (Full or Minimal template); optional components from `scaffold/astro/` (see README-RIZZO.md).
|
|
70
|
+
- **Svelte:** `scaffold/svelte-minimal/` — SvelteKit app (Full or Minimal template); optional components from `scaffold/svelte/` (see README-RIZZO.md).
|
|
71
71
|
|
|
72
72
|
Docs: [rizzo-css.vercel.app](https://rizzo-css.vercel.app)
|