diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..c21c654
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# デフォルトの無視対象ファイル
+/shelf/
+/workspace.xml
+# エディターベースの HTTP クライアントリクエスト
+/httpRequests/
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..5055868
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,63 @@
+
+
{#each lines as line, i}
{@const lineNumber = i + 1}
@@ -76,9 +76,8 @@
background: var(--background, none);
margin: var(--margin, 0);
padding: var(--padding, 0);
- white-space: var(--white-space, pre-wrap);
+ white-space: pre-wrap;
tab-size: var(--tab-size, 2);
- box-sizing: var(--box-sizing, border-box);
scrollbar-width: var(--scrollbar-width, thin);
scrollbar-color: var(--scrollbar-color, auto);
@@ -87,7 +86,7 @@
width: var(--content-width, max-content);
height: var(--content-height, max-content);
padding: calc(var(--line-number-font-size, 14px) * 0.4) 0;
- white-space: nowrap;
+ white-space: var(--white-space, nowrap);
user-select: none;
-webkit-user-select: none;
--omission-icon-size: calc(var(--line-number-font-size, 14px) * 0.8);
diff --git a/src/lib/ui/HighlightedRemovedLines.svelte b/src/lib/ui/HighlightedRemovedLines.svelte
index 50f1a8c..42c1ad4 100644
--- a/src/lib/ui/HighlightedRemovedLines.svelte
+++ b/src/lib/ui/HighlightedRemovedLines.svelte
@@ -56,7 +56,7 @@
display: block;
width: calc(100% - var(--omission-icon-size));
height: 100%;
- background-color: var(--removed-line-color, #ffb74c);
+ background-color: var(--omission-icon-color, #ffb74c);
}
display: flex;
diff --git a/src/lib/ui/OmissionIcon.svelte b/src/lib/ui/OmissionIcon.svelte
index 7768646..3b7c944 100644
--- a/src/lib/ui/OmissionIcon.svelte
+++ b/src/lib/ui/OmissionIcon.svelte
@@ -6,9 +6,7 @@
}
-
+
diff --git a/src/sample/components/propertyList/PropertyItem.svelte b/src/sample/components/propertyList/PropertyItem.svelte
new file mode 100644
index 0000000..1813f67
--- /dev/null
+++ b/src/sample/components/propertyList/PropertyItem.svelte
@@ -0,0 +1,51 @@
+
+
+
+ {item.type}
+ {item.required ? 'Required' : 'Optional'}
+ {#if !item.required}
+ default: {item.default}
+ {/if}
+ {item.description}{item.name}
+
+ {#each properties as property}
+
+
+
diff --git a/src/sample/components/propertyList/propertyItem.ts b/src/sample/components/propertyList/propertyItem.ts
new file mode 100644
index 0000000..c715da3
--- /dev/null
+++ b/src/sample/components/propertyList/propertyItem.ts
@@ -0,0 +1,14 @@
+export type PropertyItem =
+ | {
+ name: string;
+ type: string;
+ required: false;
+ default: string;
+ description: string;
+ }
+ | {
+ name: string;
+ type: string;
+ required: true;
+ description: string;
+ };
diff --git a/src/sample/header/Header.svelte b/src/sample/header/Header.svelte
index d984397..5405bf5 100644
--- a/src/sample/header/Header.svelte
+++ b/src/sample/header/Header.svelte
@@ -1,4 +1,4 @@
-Svelte Diff Highlighting