@elmethis/core 0.1.0 → 0.1.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.
|
@@ -5,6 +5,7 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
7
7
|
export declare const Colored: Story;
|
|
8
|
+
export declare const Kbd: Story;
|
|
8
9
|
export declare const Background: Story;
|
|
9
10
|
export declare const Ruby: Story;
|
|
10
11
|
export declare const Link: Story;
|
|
@@ -15,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
underline: { type: Boolean, default: false },
|
|
16
16
|
strikethrough: { type: Boolean, default: false },
|
|
17
17
|
code: { type: Boolean, default: false },
|
|
18
|
+
kbd: { type: Boolean },
|
|
18
19
|
backgroundColor: {},
|
|
19
20
|
ruby: {},
|
|
20
21
|
href: {},
|
|
@@ -37,6 +38,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
},
|
|
38
39
|
props.text
|
|
39
40
|
);
|
|
41
|
+
if (props.kbd) {
|
|
42
|
+
vnode = h("kbd", { class: style.kbd }, vnode);
|
|
43
|
+
}
|
|
40
44
|
if (props.strikethrough) {
|
|
41
45
|
vnode = h("del", {}, vnode);
|
|
42
46
|
}
|
|
@@ -3,24 +3,27 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode('.
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._text_1162l_1{padding:0;margin:0;white-space:pre-line;color:#000000b3;color:var(--color, rgba(0, 0, 0, .7));font-size:1em;font-size:var(--font-size, 1em);line-height:1em;line-height:var(--font-size, 1em);background-color:var(--background-color)}._text_1162l_1::-moz-selection{color:#ffffffb3;background-color:#000000b3;background-color:var(--color, rgba(0, 0, 0, .7))}._text_1162l_1::selection{color:#ffffffb3;background-color:#000000b3;background-color:var(--color, rgba(0, 0, 0, .7))}[data-theme=dark] ._text_1162l_1{color:#ffffffb3;color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._text_1162l_1::-moz-selection{color:#000000b3;background-color:#ffffffb3;background-color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._text_1162l_1::selection{color:#000000b3;background-color:#ffffffb3;background-color:var(--color, rgba(255, 255, 255, .7))}._code_1162l_22{margin-inline:.25rem;padding:2px .5em;font-size:calc(1em - 2px);border-radius:.125rem;background-color:#00000013;font-family:"Source Code Pro" monospace}._kbd_1162l_31{padding:.125rem .25rem;position:relative;border-radius:.125rem;background-color:#e6e6e6}[data-theme=dark] ._kbd_1162l_31{background-color:#404040}._kbd_1162l_31:before{z-index:-1;position:absolute;content:"";bottom:-.25em;left:0;height:100%;width:100%;background-color:#ccc;border-radius:0 0 .125rem .125rem;box-shadow:0 0 .125em #00000080}[data-theme=dark] ._kbd_1162l_31:before{background-color:#595959;box-shadow:0 0 .125em #ffffff80}._link_1162l_57{all:unset;box-sizing:border-box;padding:0 .25rem;font-size:var(--font-size);display:inline-flex;align-items:center;gap:.25rem;cursor:pointer;color:#6987b8;border-radius:.125rem .125rem 0 0;border-bottom:dashed 1px #6987b8;transition:background-color .2s,color .2s}._link_1162l_57:hover{background-color:#6987b833}._link_1162l_57:active{color:#59b57c;background-color:#59b57c33}._link_1162l_57:visited{color:#9771bd;border-bottom:dashed 1px #9771bd}._link_1162l_57:visited:hover{background-color:#9771bd33}._link_1162l_57:visited:active{color:#59b57c;background-color:#59b57c33}'));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
const text = "
|
|
14
|
-
const code = "
|
|
15
|
-
const
|
|
13
|
+
const text = "_text_1162l_1";
|
|
14
|
+
const code = "_code_1162l_22";
|
|
15
|
+
const kbd = "_kbd_1162l_31";
|
|
16
|
+
const link = "_link_1162l_57";
|
|
16
17
|
const style0 = {
|
|
17
18
|
text,
|
|
18
19
|
code,
|
|
20
|
+
kbd,
|
|
19
21
|
link
|
|
20
22
|
};
|
|
21
23
|
export {
|
|
22
24
|
code,
|
|
23
25
|
style0 as default,
|
|
26
|
+
kbd,
|
|
24
27
|
link,
|
|
25
28
|
text
|
|
26
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"lodash-es": "^4.17.21",
|
|
30
30
|
"nanoid": "^5.1.5",
|
|
31
31
|
"polished": "^4.3.1",
|
|
32
|
-
"shiki": "^3.
|
|
32
|
+
"shiki": "^3.4.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@notionhq/client": "^
|
|
35
|
+
"@notionhq/client": "^3.0.0",
|
|
36
36
|
"@storybook/vue3": "^8.6.12",
|
|
37
37
|
"@types/json-schema": "^7.0.15",
|
|
38
38
|
"@types/katex": "^0.16.7",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue-tsc": "^2.2.10"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"vue": "
|
|
55
|
+
"vue": "^3.4.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "vue-tsc && vite build"
|