@tableslayer/ui 0.1.20 → 0.1.22
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/dist/components/TextHighlight/TextHighlight.svelte +44 -0
- package/dist/components/TextHighlight/TextHighlight.svelte.d.ts +7 -0
- package/dist/components/TextHighlight/index.d.ts +1 -0
- package/dist/components/TextHighlight/index.js +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/package.json +15 -15
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconWrapper from '../Icon/Icon.svelte';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
text: string;
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
+
icon?: any;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
let { text, icon }: Props = $props();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<span class="textHighlight">
|
|
14
|
+
{#if icon}
|
|
15
|
+
<IconWrapper Icon={icon} size="0.875em" class="textHighlight__icon" />
|
|
16
|
+
{/if}
|
|
17
|
+
<span class="textHighlight__text">{text}</span>
|
|
18
|
+
</span>
|
|
19
|
+
|
|
20
|
+
<style>
|
|
21
|
+
.textHighlight {
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0.25em;
|
|
25
|
+
font-family: var(--font-mono);
|
|
26
|
+
font-size: 0.95em;
|
|
27
|
+
padding: 0.1em 0.35em;
|
|
28
|
+
color: var(--fg);
|
|
29
|
+
background-color: var(--contrastLowest);
|
|
30
|
+
border: var(--borderThin);
|
|
31
|
+
border-color: var(--contrastEmpty);
|
|
32
|
+
border-radius: var(--radius-1);
|
|
33
|
+
vertical-align: baseline;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.textHighlight__text {
|
|
37
|
+
line-height: 1.2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:global(.textHighlight__icon) {
|
|
41
|
+
color: var(--fg);
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextHighlight } from './TextHighlight.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TextHighlight } from './TextHighlight.svelte';
|
package/dist/components/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tableslayer/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"license": "FSL-1.1-ALv2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,34 +56,34 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@magidoc/plugin-svelte-marked": "^6.3.0",
|
|
58
58
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
59
|
-
"@sveltejs/kit": "^2.
|
|
59
|
+
"@sveltejs/kit": "^2.59.1",
|
|
60
60
|
"@sveltejs/package": "^2.5.7",
|
|
61
|
-
"@sveltejs/vite-plugin-svelte": "^7.
|
|
61
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
62
62
|
"@tableslayer/eslint-config": "workspace:*",
|
|
63
63
|
"@tableslayer/tsconfig": "workspace:*",
|
|
64
64
|
"@types/chroma-js": "^3.1.2",
|
|
65
|
-
"@types/node": "^25.6.
|
|
65
|
+
"@types/node": "^25.6.2",
|
|
66
66
|
"@types/marked": "^6.0.0",
|
|
67
|
-
"marked": "^18.0.
|
|
68
|
-
"svelte": "5.55.
|
|
69
|
-
"svelte-check": "^4.4.
|
|
67
|
+
"marked": "^18.0.3",
|
|
68
|
+
"svelte": "5.55.5",
|
|
69
|
+
"svelte-check": "^4.4.8",
|
|
70
70
|
"typedoc": "^0.28.19",
|
|
71
71
|
"typescript": "^6.0.3",
|
|
72
|
-
"vite": "^8.0.
|
|
72
|
+
"vite": "^8.0.12"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@floating-ui/dom": "^1.7.6",
|
|
76
|
-
"@tabler/icons-svelte": "^3.
|
|
77
|
-
"@tiptap/core": "^3.
|
|
78
|
-
"@tiptap/extension-link": "^3.
|
|
79
|
-
"@tiptap/extension-typography": "^3.
|
|
80
|
-
"@tiptap/pm": "^3.
|
|
81
|
-
"@tiptap/starter-kit": "^3.
|
|
76
|
+
"@tabler/icons-svelte": "^3.44.0",
|
|
77
|
+
"@tiptap/core": "^3.23.1",
|
|
78
|
+
"@tiptap/extension-link": "^3.23.1",
|
|
79
|
+
"@tiptap/extension-typography": "^3.23.1",
|
|
80
|
+
"@tiptap/pm": "^3.23.1",
|
|
81
|
+
"@tiptap/starter-kit": "^3.23.1",
|
|
82
82
|
"chroma-js": "^3.2.0",
|
|
83
83
|
"class-variance-authority": "^0.7.1",
|
|
84
84
|
"shiki": "^4.0.2",
|
|
85
85
|
"uuid": "^14.0.0",
|
|
86
|
-
"zod": "^4.3
|
|
86
|
+
"zod": "^4.4.3"
|
|
87
87
|
},
|
|
88
88
|
"svelte": "./dist/index.js",
|
|
89
89
|
"types": "./dist/index.d.ts",
|