@mitcsutt/kiln-ui 0.5.0 → 0.6.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.
@@ -0,0 +1,2 @@
1
+ /** `text` without its trailing newlines, found by a backward scan rather than a regex. */
2
+ export declare function trimTrailingNewlines(text: string): string;
@@ -0,0 +1,10 @@
1
+ //#region src/utils/newlines.ts
2
+ function e(e) {
3
+ let t = e.length;
4
+ for (; t > 0 && e[t - 1] === "\n";) t--;
5
+ return e.slice(0, t);
6
+ }
7
+ //#endregion
8
+ export { e as trimTrailingNewlines };
9
+
10
+ //# sourceMappingURL=newlines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newlines.js","names":["trimTrailingNewlines","end","text"],"sources":["../../src/utils/newlines.ts"],"sourcesContent":["/** `text` without its trailing newlines, found by a backward scan rather than a regex. */\nexport function trimTrailingNewlines(text: string): string {\n let end = text.length\n while (end > 0 && text[end - 1] === '\\n') end--\n return text.slice(0, end)\n}\n"],"mappings":";AACA,SAAgBA,EAAqB,GAAsB;CACzD,IAAIC,IAAMC,EAAK;CACf,OAAOD,IAAM,KAAKC,EAAKD,IAAM,OAAO,OAAM;CAC1C,OAAOC,EAAK,MAAM,GAAGD,CAAG;AAC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitcsutt/kiln-ui",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Kiln: a themeable React design system on Radix primitives, plain CSS and design tokens",
5
5
  "keywords": [
6
6
  "kiln",
@@ -36,6 +36,10 @@
36
36
  "types": "./dist/theme/script.d.ts",
37
37
  "default": "./dist/theme/script.js"
38
38
  },
39
+ "./highlight": {
40
+ "types": "./dist/highlight/index.d.ts",
41
+ "default": "./dist/highlight/index.js"
42
+ },
39
43
  "./styles.css": "./dist/styles.css",
40
44
  "./themes/monograph.css": "./dist/themes/monograph.css",
41
45
  "./themes/ledger.css": "./dist/themes/ledger.css",
@@ -72,6 +76,7 @@
72
76
  "publint": "^0.3.25",
73
77
  "react": "^19.3.0",
74
78
  "react-dom": "^19.3.0",
79
+ "shiki": "^4.5.0",
75
80
  "storybook": "^10.6.1",
76
81
  "typescript": "~6.0.3",
77
82
  "vite": "^8.3.2",
@@ -79,7 +84,13 @@
79
84
  },
80
85
  "peerDependencies": {
81
86
  "react": "^18.3.0 || ^19.0.0",
82
- "react-dom": "^18.3.0 || ^19.0.0"
87
+ "react-dom": "^18.3.0 || ^19.0.0",
88
+ "shiki": "^4.0.0"
89
+ },
90
+ "peerDependenciesMeta": {
91
+ "shiki": {
92
+ "optional": true
93
+ }
83
94
  },
84
95
  "engines": {
85
96
  "node": ">=22.12.0"
@@ -226,6 +226,7 @@ Merges class names, filtering falsy values.
226
226
  - [Tokens](https://kiln.mitchellsutton.com/docs/ui/foundations/tokens): the contract every theme fills in.
227
227
  - [Theming](https://kiln.mitchellsutton.com/docs/ui/foundations/theming): write a theme of your own.
228
228
  - [Button](https://kiln.mitchellsutton.com/docs/ui/actions/button): the reference component.
229
+ - [AI tooling](https://kiln.mitchellsutton.com/docs/tooling/ai): the agent skills that ship with kiln-ui, and how to load them into your coding agent.
229
230
 
230
231
  ## References
231
232