rizzo-css 0.0.59 → 0.0.60
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 +6 -1
- package/package.json +1 -2
- 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/cards.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/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/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/starter/index.html +0 -13
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ import 'rizzo-css';
|
|
|
68
68
|
**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:
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
|
-
<!-- unpkg (pin version: replace @latest with @0.0.
|
|
71
|
+
<!-- unpkg (pin version: replace @latest with @0.0.60 or any version) -->
|
|
72
72
|
<link rel="stylesheet" href="https://unpkg.com/rizzo-css@latest/dist/rizzo.min.css" />
|
|
73
73
|
|
|
74
74
|
<!-- or jsDelivr -->
|
package/bin/rizzo-css.js
CHANGED
|
@@ -40,11 +40,16 @@ const ANSI_RESET = '\x1b[0m';
|
|
|
40
40
|
/** Evenly spread column bounds (6 chars per color for first 6, rest for 7th). */
|
|
41
41
|
const BANNER_BOUNDS = [0, 6, 12, 18, 24, 30, 36];
|
|
42
42
|
|
|
43
|
-
/**
|
|
43
|
+
/** Cat lines (0–4) use red; RIZZOCSS block (5–9) uses rainbow. No ANSI if stdout is not TTY or FORCE_COLOR=0. */
|
|
44
44
|
function getBanner() {
|
|
45
45
|
const useColor = (process.stdout.isTTY || process.env.FORCE_COLOR === '1') && process.env.FORCE_COLOR !== '0';
|
|
46
46
|
if (!useColor) return CLI_BANNER + '\n';
|
|
47
47
|
const lines = CLI_BANNER.split('\n');
|
|
48
|
+
const CAT_END = 4;
|
|
49
|
+
const red = BANNER_RAINBOW[0];
|
|
50
|
+
for (let i = 0; i <= CAT_END && i < lines.length; i++) {
|
|
51
|
+
lines[i] = ansiFg(red.r, red.g, red.b) + lines[i] + ANSI_RESET;
|
|
52
|
+
}
|
|
48
53
|
const RIZZOCSS_START = 5;
|
|
49
54
|
const RIZZOCSS_END = 9;
|
|
50
55
|
for (let i = RIZZOCSS_START; i <= RIZZOCSS_END; i++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rizzo-css",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"engines": { "node": ">=18" },
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "cd ../.. && pnpm run lint:css:fix && pnpm run build:css && node scripts/copy-scaffold.js && node scripts/prepare-vanilla-scaffold.js"
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"scaffold/shared",
|
|
33
33
|
"scaffold/svelte",
|
|
34
34
|
"scaffold/utils",
|
|
35
|
-
"scaffold/starter",
|
|
36
35
|
"scaffold/vanilla"
|
|
37
36
|
],
|
|
38
37
|
"keywords": [
|
|
@@ -28,7 +28,7 @@ If you prefer to load CSS from a CDN instead of the local file, replace the `<li
|
|
|
28
28
|
- `<link rel="stylesheet" href="https://unpkg.com/rizzo-css@latest/dist/rizzo.min.css" />`
|
|
29
29
|
- Or jsDelivr: `https://cdn.jsdelivr.net/npm/rizzo-css@latest/dist/rizzo.min.css`
|
|
30
30
|
|
|
31
|
-
(Replace `@latest` with a specific version, e.g. `@0.0.
|
|
31
|
+
(Replace `@latest` with a specific version, e.g. `@0.0.60`, in production.)
|
|
32
32
|
|
|
33
33
|
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.
|
|
34
34
|
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" data-theme="{{DATA_THEME}}">{{THEME_LIST_COMMENT}}
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>{{TITLE}}</title>
|
|
7
|
-
<link rel="stylesheet" href="{{LINK_HREF}}" />
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<h1>Hello, Rizzo CSS</h1>
|
|
11
|
-
<p>Edit this file and add components. Docs: <a href="https://rizzo-css.vercel.app">rizzo-css.vercel.app</a></p>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|