@14ch/svelte-ui 0.0.45 → 0.0.47

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,4 @@
1
+ // Type stub for the CSS side-effect import (`@14ch/svelte-ui/styles`).
2
+ // CSS has no runtime exports; this file only satisfies TypeScript's `types`
3
+ // export condition so consumers don't get "no type declarations" errors.
4
+ export {};
@@ -487,7 +487,9 @@
487
487
  const displayValue = $derived.by(() => {
488
488
  const normalizedValue = value ?? '';
489
489
  if (normalizedValue !== '') {
490
- return escapeHtml(normalizedValue);
490
+ const html = escapeHtml(normalizedValue);
491
+ // 末尾が改行のとき、pre-wrap では最終行の高さが確保されず textarea と1行分ずれるためダミー空白を足す
492
+ return normalizedValue.endsWith('\n') ? html + ' ' : html;
491
493
  }
492
494
  // 値が空のとき: placeholder があればその幅・高さを確保して表示、なければ inline 時のみ  
493
495
  return placeholder ? escapeHtml(placeholder) : inline ? ' ' : '';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@14ch/svelte-ui",
3
3
  "description": "Modern Svelte UI components library with TypeScript support",
4
4
  "private": false,
5
- "version": "0.0.45",
5
+ "version": "0.0.47",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "svelte",
@@ -31,7 +31,10 @@
31
31
  "import": "./dist/index.js",
32
32
  "require": "./dist/index.js"
33
33
  },
34
- "./styles": "./dist/assets/styles/import.css",
34
+ "./styles": {
35
+ "types": "./dist/assets/styles/import.css.d.ts",
36
+ "default": "./dist/assets/styles/import.css"
37
+ },
35
38
  "./styles/*": "./dist/assets/styles/*"
36
39
  },
37
40
  "files": [