@kahitsan/ksui 0.13.0 → 0.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kahitsan/ksui",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "ksui is a standalone set of SolidJS UI components for KahitSan/Hilinga and any SolidJS app. Published to the public npm registry and consumed as a normal dependency. Ships source under a `solid` export condition so the consumer's vite-plugin-solid compiles it with only solid-js externalized; it depends on nothing but solid-js + lucide-solid and injects its own CSS.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -46,9 +46,9 @@ function ensureModalStyle(): void {
46
46
  .ksui-modal-sheet-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;}
47
47
  @media (min-width:640px){.ksui-modal-sheet-overlay{align-items:center;padding:1rem;}}
48
48
  .ksui-modal-sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.7);backdrop-filter:blur(6px);}
49
- .ksui-modal-card{position:relative;z-index:10;width:100%;background:var(--ksui-modal-bg,#11161f);color:var(--ksui-modal-fg,inherit);border:1px solid var(--ksui-modal-border,rgba(245,158,11,0.3));border-radius:0.75rem;padding:1.5rem;box-shadow:0 25px 50px -12px rgba(0,0,0,0.6);max-height:90vh;overflow-x:hidden;overflow-y:auto;}
49
+ .ksui-modal-card{position:relative;z-index:10;width:100%;background:var(--ksui-modal-bg,#18181b);color:var(--ksui-modal-fg,inherit);border:1px solid var(--ksui-modal-border,rgba(245,158,11,0.3));border-radius:0.75rem;padding:1.5rem;box-shadow:0 25px 50px -12px rgba(0,0,0,0.6);max-height:90vh;overflow-x:hidden;overflow-y:auto;}
50
50
  .ksui-modal-card.danger{border-color:var(--ksui-modal-border-danger,rgba(239,68,68,0.3));}
51
- .ksui-modal-sheet-card{position:relative;z-index:10;width:100%;background:var(--ksui-modal-bg,#11161f);color:var(--ksui-modal-fg,inherit);border:1px solid var(--ksui-modal-border,rgba(245,158,11,0.3));box-shadow:0 25px 50px -12px rgba(0,0,0,0.6);max-height:92vh;overflow:hidden;overscroll-behavior:contain;}
51
+ .ksui-modal-sheet-card{position:relative;z-index:10;width:100%;background:var(--ksui-modal-bg,#18181b);color:var(--ksui-modal-fg,inherit);border:1px solid var(--ksui-modal-border,rgba(245,158,11,0.3));box-shadow:0 25px 50px -12px rgba(0,0,0,0.6);max-height:92vh;overflow:hidden;overscroll-behavior:contain;}
52
52
  .ksui-modal-sheet-card.danger{border-color:var(--ksui-modal-border-danger,rgba(239,68,68,0.3));}
53
53
  @media (min-width:640px){.ksui-modal-sheet-card{width:auto;border-radius:0.75rem;max-height:88vh;}}
54
54
  `;
package/tailwind.js CHANGED
@@ -2,21 +2,22 @@
2
2
  * @kahitsan/ksui Tailwind CSS plugin
3
3
  *
4
4
  * Registers all ksui component utility classes so consumers don't need
5
- * @source directives or manual safelisting. Add to your Tailwind config:
6
- *
7
- * // tailwind.config.js (v3)
8
- * plugins: [require("@kahitsan/ksui/tailwind")]
5
+ * manual safelisting. Load from CSS:
9
6
  *
10
7
  * // app.css (v4)
11
8
  * @plugin "@kahitsan/ksui/tailwind";
12
9
  *
13
- * The plugin safelists every Tailwind utility class that ksui components
14
- * reference in their source, ensuring they survive Tailwind's purge/scan
15
- * even though the class strings live in node_modules.
10
+ * This plugin registers .ks-* component classes via addComponents/addUtilities.
11
+ * Raw Tailwind utilities used by ksui components (bg-amber-600/20, etc.)
12
+ * require a separate @source directive pointing at the ksui src directory.
13
+ *
14
+ * IMPORTANT: This file uses ESM (export default) because the ksui package.json
15
+ * sets "type": "module". CommonJS (module.exports) will fail to load under
16
+ * Tailwind v4's @plugin directive, which uses dynamic import().
16
17
  */
17
18
 
18
19
  /** @type {import('tailwindcss').Plugin} */
19
- module.exports = function ksuiTailwindPlugin({ addUtilities, addComponents }) {
20
+ export default function ksuiTailwindPlugin({ addUtilities, addComponents }) {
20
21
  // ─── Button intents ────────────────────────────────────────────────
21
22
  // Primary (amber)
22
23
  addUtilities({
@@ -272,6 +273,6 @@ module.exports = function ksuiTailwindPlugin({ addUtilities, addComponents }) {
272
273
  });
273
274
  };
274
275
 
275
- module.exports.meta = {
276
+ export const meta = {
276
277
  name: "@kahitsan/ksui",
277
278
  };