@yummacss/nitro 0.2.0 → 0.2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # [@yummacss/nitro](https://www.npmjs.com/package/@yummacss/nitro)
2
2
 
3
- The engine behind Yumma CSS.
3
+ The generator engine for Yumma CSS.
4
4
 
5
5
  [![NPM Version](https://img.shields.io/npm/v/@yummacss/nitro?style=plastic&label=@yummacss/nitro&labelColor=eaedfc&color=413cb8)](https://www.npmjs.com/package/@yummacss/nitro)
6
6
  [![NPM Downloads](https://img.shields.io/npm/d18m/@yummacss/nitro?style=plastic&label=downloads&labelColor=eaedfc&color=413cb8)](https://www.npmjs.com/package/@yummacss/nitro)
@@ -0,0 +1,6 @@
1
+ import { baseStyles, generator } from "./generator-nVaSRO2o.js";
2
+
3
+ //#region src/tokenizer.d.ts
4
+ declare function tokenizer(content: string): string[];
5
+ //#endregion
6
+ export { baseStyles, generator, tokenizer };
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/base-styles.d.ts
4
+ declare const baseStyles = "*,\n*::before,\n*::after {\n box-sizing: border-box;\n border: 0 solid;\n}\n\n* {\n margin: 0;\n padding: 0;\n}\n\nhtml {\n font-family: system-ui, sans-serif;\n}\n\nbody {\n -webkit-font-smoothing: antialiased;\n font-family: inherit;\n line-height: 1.5;\n}\n\ncanvas,\nimg,\npicture,\nsvg,\nvideo {\n display: block;\n max-width: 100%;\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n background-color: transparent;\n font-family: inherit;\n padding: .5rem;\n}\n\nbutton:not([class]),\ninput:not([class]),\noptgroup:not([class]),\nselect:not([class]),\ntextarea:not([class]) {\n border: 1px solid #bfc2c7;\n}\n\na,\nbutton,\ninput,\nselect,\nsummary,\ntextarea {\n &:focus {\n outline: 2px solid transparent;\n }\n}\n\ntextarea:not([rows]) {\n min-height: 10em;\n}\n\nbutton {\n cursor: pointer;\n}\n\nbutton:disabled,\ninput:disabled,\nselect:disabled,\ntextarea:disabled {\n cursor: not-allowed;\n opacity: .5;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n overflow-wrap: break-word;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: 1rem;\n font-weight: 600;\n text-wrap: balance;\n}\n\np {\n text-wrap: pretty;\n}\n\nb,\nstrong {\n font-weight: 700;\n}\n\nsmall {\n font-size: 80%;\n line-height: 1.4;\n}\n\npre,\ncode,\nkbd,\nsamp {\n font-family: monospace;\n font-size: 1em;\n}\n\na {\n color: inherit;\n text-decoration: none;\n}\n\nol,\nul {\n list-style: none;\n padding: 0;\n}\n\nth {\n font-size: 1rem;\n font-weight: 600;\n}\n\nhr {\n border-top: 1px solid #bfc2c7;\n height: 0;\n margin: 1em 0;\n}\n\ndetails {\n display: block;\n}\n\nsummary {\n display: list-item;\n}";
5
+ //#endregion
6
+ //#region src/config/schema.d.ts
7
+ declare const configName = "yumma.config.mjs";
8
+ declare const ConfigSchema: z.ZodObject<{
9
+ source: z.ZodDefault<z.ZodArray<z.ZodString>>;
10
+ output: z.ZodDefault<z.ZodString>;
11
+ buildOptions: z.ZodDefault<z.ZodObject<{
12
+ reset: z.ZodDefault<z.ZodBoolean>;
13
+ minify: z.ZodDefault<z.ZodBoolean>;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ type Config = z.infer<typeof ConfigSchema>;
17
+ //#endregion
18
+ //#region src/generator.d.ts
19
+ declare function generator(usedClasses: Set<string>, config: Config): string;
20
+ //#endregion
21
+ export { Config, ConfigSchema, baseStyles, configName, generator };
@@ -0,0 +1,6 @@
1
+ import { Config, ConfigSchema, baseStyles, configName, generator } from "./generator-nVaSRO2o.js";
2
+
3
+ //#region src/extractor.d.ts
4
+ declare function extractor(patterns: string[]): Promise<Set<string>>;
5
+ //#endregion
6
+ export { type Config, ConfigSchema, baseStyles, configName, extractor, generator };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yummacss/nitro",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The engine behind Yumma CSS.",
5
5
  "keywords": [
6
6
  "css-framework",
@@ -34,8 +34,7 @@
34
34
  "typescript": "^5.9.2"
35
35
  },
36
36
  "publishConfig": {
37
- "access": "public",
38
- "provenance": false
37
+ "access": "public"
39
38
  },
40
39
  "scripts": {
41
40
  "build": "tsdown",