@elmethis/react 0.2.3 → 0.2.5

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.
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._icon_19g82_1{margin:0;padding:0;display:inline-block;vertical-align:middle;height:1em}._icon_19g82_1::-moz-selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}._icon_19g82_1::selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}[data-theme=dark] ._icon_19g82_1{color:#ffffffb3;color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._icon_19g82_1::-moz-selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}[data-theme=dark] ._icon_19g82_1::selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}"));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const icon = "_icon_19g82_1";
14
2
  const style = {
15
3
  icon
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._icon_67eyp_1{fill:#555b67;fill:var(--color, #555b67);transition:fill .2s;flex-shrink:0}[data-theme=dark] ._icon_67eyp_1{fill:#b0b5be;fill:var(--dark-color, #b0b5be)}"));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const icon = "_icon_67eyp_1";
14
2
  const style = {
15
3
  icon
@@ -1,15 +1,4 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode('@charset "UTF-8";.fade-enter{opacity:0}.fade-enter-active{opacity:1;transition:opacity .3s}.fade-exit{opacity:1}.fade-exit-active{opacity:0;transition:opacity .3s}'));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
1
+ "use client";
13
2
  import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.mjs";
14
3
  import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.mjs";
15
4
  import { useRef, useState, useEffect } from "react";
@@ -18,7 +7,7 @@ import { ElmInlineText } from "../typography/ElmInlineText.mjs";
18
7
  import { mdiTooltipImage } from "@mdi/js";
19
8
  import { ElmMdiIcon } from "../icon/ElmMdiIcon.mjs";
20
9
  import { CSSTransition } from "react-transition-group";
21
-
10
+ /* empty css */
22
11
  const ElmImage = (t0) => {
23
12
  const $ = compilerRuntimeExports.c(37);
24
13
  let alt;
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._image_z5fgk_1{width:100%}._block-image_z5fgk_5{border-radius:.25rem;box-shadow:0 0 .125rem #000}._caption_z5fgk_10{margin-block:.5rem;display:flex;justify-content:center;align-items:center;gap:.5rem}._modal_z5fgk_18{position:fixed;z-index:10000;top:0;left:0;width:100%;height:100%;display:flex;justify-self:center;align-items:center;background-color:#3e434bcc;cursor:zoom-out}"));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const image = "_image_z5fgk_1";
14
2
  const caption = "_caption_z5fgk_10";
15
3
  const modal = "_modal_z5fgk_18";
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._blockquote_1msat_1{box-sizing:border-box;padding:.5rem 2rem;background-color:#e3e5e7;border-left:4px solid #606875}[data-theme=dark] ._blockquote_1msat_1{background-color:#3e434b;border-color:#b0b5be}._blockquote_1msat_1 a{all:unset;cursor:pointer;transition:color .1s}._blockquote_1msat_1 a:hover{color:#5879b0}._blockquote_1msat_1 cite{display:block;margin-block:1rem;text-align:right}"));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const blockquote = "_blockquote_1msat_1";
14
2
  const style = {
15
3
  blockquote
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode('._callout_pqkj1_1{box-sizing:border-box;padding:1rem 1rem 1rem 1.5rem;position:relative}._callout_pqkj1_1:after{position:absolute;content:"";top:0;left:0;width:4px;height:100%;background-color:var(--callout-color);z-index:-1}._callout_pqkj1_1:before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;background-color:var(--callout-color);opacity:.15;z-index:-1}._header_pqkj1_28{display:flex;justify-content:flex-start;align-items:center;gap:.5rem;margin-block-end:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}'));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const callout = "_callout_pqkj1_1";
14
2
  const header = "_header_pqkj1_28";
15
3
  const style = {
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode('._base_ctq5w_1{background-color:var(--background-color)}._underline_ctq5w_5{text-decoration:underline}._link_ctq5w_9{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;transition:background-color .2s,color .2s,opacity .2s}._link_ctq5w_9:hover{background-color:#6987b833}._link_ctq5w_9:active{opacity:.5}._link_ctq5w_9:visited{color:#9771bd;border-bottom:dashed 1px #9771bd}._link_ctq5w_9:visited:hover{background-color:#9771bd33}._code_ctq5w_36{margin-inline:.25rem;padding:2px .5em;font-size:calc(1em - 2px);border-radius:.125rem;background-color:#00000013;font-family:"Source Code Pro" monospace}._kbd_ctq5w_45{padding:.125rem .25rem;position:relative;border-radius:.125rem;background-color:#e6e6e6}[data-theme=dark] ._kbd_ctq5w_45{background-color:#404040}._kbd_ctq5w_45: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_ctq5w_45:before{background-color:#595959;box-shadow:0 0 .125em #ffffff80}'));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const base = "_base_ctq5w_1";
14
2
  const underline = "_underline_ctq5w_5";
15
3
  const link = "_link_ctq5w_9";
package/dist/index.mjs CHANGED
@@ -1,3 +1,15 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode('._icon_19g82_1{margin:0;padding:0;display:inline-block;vertical-align:middle;height:1em}._icon_19g82_1::-moz-selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}._icon_19g82_1::selection{filter:brightness(1000%);background-color:#00000040;background-color:var(--color, rgba(0, 0, 0, .25))}[data-theme=dark] ._icon_19g82_1{color:#ffffffb3;color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._icon_19g82_1::-moz-selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}[data-theme=dark] ._icon_19g82_1::selection{color:#000000b3;background-color:#ffffff40;background-color:var(--color, rgba(255, 255, 255, .25))}\n._blockquote_1msat_1{box-sizing:border-box;padding:.5rem 2rem;background-color:#e3e5e7;border-left:4px solid #606875}[data-theme=dark] ._blockquote_1msat_1{background-color:#3e434b;border-color:#b0b5be}._blockquote_1msat_1 a{all:unset;cursor:pointer;transition:color .1s}._blockquote_1msat_1 a:hover{color:#5879b0}._blockquote_1msat_1 cite{display:block;margin-block:1rem;text-align:right}\n._text_2fuj1_1{color:#606875;color:var(--color, #606875);font-size:normal;font-size:var(--font-size, normal)}._text_2fuj1_1::-moz-selection{color:#cccfd5;background-color:#3e434b;background-color:var(--color, #3e434b)}._text_2fuj1_1::selection{color:#cccfd5;background-color:#3e434b;background-color:var(--color, #3e434b)}[data-theme=dark] ._text_2fuj1_1{color:#b0b5be;color:var(--color, #b0b5be)}[data-theme=dark] ._text_2fuj1_1::-moz-selection{color:#3e434b;background-color:#cccfd5;background-color:var(--color, #cccfd5)}[data-theme=dark] ._text_2fuj1_1::selection{color:#3e434b;background-color:#cccfd5;background-color:var(--color, #cccfd5)}\n._icon_67eyp_1{fill:#555b67;fill:var(--color, #555b67);transition:fill .2s;flex-shrink:0}[data-theme=dark] ._icon_67eyp_1{fill:#b0b5be;fill:var(--dark-color, #b0b5be)}\n._base_ctq5w_1{background-color:var(--background-color)}._underline_ctq5w_5{text-decoration:underline}._link_ctq5w_9{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;transition:background-color .2s,color .2s,opacity .2s}._link_ctq5w_9:hover{background-color:#6987b833}._link_ctq5w_9:active{opacity:.5}._link_ctq5w_9:visited{color:#9771bd;border-bottom:dashed 1px #9771bd}._link_ctq5w_9:visited:hover{background-color:#9771bd33}._code_ctq5w_36{margin-inline:.25rem;padding:2px .5em;font-size:calc(1em - 2px);border-radius:.125rem;background-color:#00000013;font-family:"Source Code Pro" monospace}._kbd_ctq5w_45{padding:.125rem .25rem;position:relative;border-radius:.125rem;background-color:#e6e6e6}[data-theme=dark] ._kbd_ctq5w_45{background-color:#404040}._kbd_ctq5w_45: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_ctq5w_45:before{background-color:#595959;box-shadow:0 0 .125em #ffffff80}\n._callout_pqkj1_1{box-sizing:border-box;padding:1rem 1rem 1rem 1.5rem;position:relative}._callout_pqkj1_1:after{position:absolute;content:"";top:0;left:0;width:4px;height:100%;background-color:var(--callout-color);z-index:-1}._callout_pqkj1_1:before{position:absolute;content:"";top:0;left:0;width:100%;height:100%;background-color:var(--callout-color);opacity:.15;z-index:-1}._header_pqkj1_28{display:flex;justify-content:flex-start;align-items:center;gap:.5rem;margin-block-end:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}\n._image_z5fgk_1{width:100%}._block-image_z5fgk_5{border-radius:.25rem;box-shadow:0 0 .125rem #000}._caption_z5fgk_10{margin-block:.5rem;display:flex;justify-content:center;align-items:center;gap:.5rem}._modal_z5fgk_18{position:fixed;z-index:10000;top:0;left:0;width:100%;height:100%;display:flex;justify-self:center;align-items:center;background-color:#3e434bcc;cursor:zoom-out}\n@charset "UTF-8";.fade-enter{opacity:0}.fade-enter-active{opacity:1;transition:opacity .3s}.fade-exit{opacity:1}.fade-exit-active{opacity:0;transition:opacity .3s}'));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
1
13
  import { ElmInlineIcon } from "./components/icon/ElmInlineIcon.mjs";
2
14
  import { ElmMdiIcon } from "./components/icon/ElmMdiIcon.mjs";
3
15
  import { ElmImage } from "./components/media/ElmImage.mjs";
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { __exports as reactCompilerRuntime_development } from "../../../../../../_virtual/react-compiler-runtime.development.mjs";
2
3
  import require$$0 from "react";
3
4
  /**
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { __exports as reactCompilerRuntime_production } from "../../../../../../_virtual/react-compiler-runtime.production.mjs";
2
3
  import require$$0 from "react";
3
4
  /**
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { __exports as reactJsxRuntime_development } from "../../../../../../_virtual/react-jsx-runtime.development.mjs";
2
3
  import require$$0 from "react";
3
4
  /**
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { __exports as reactJsxRuntime_production } from "../../../../../../_virtual/react-jsx-runtime.production.mjs";
2
3
  /**
3
4
  * @license React
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { __module as compilerRuntime } from "../../../../../_virtual/compiler-runtime2.mjs";
2
3
  import { __require as requireReactCompilerRuntime_production } from "./cjs/react-compiler-runtime.production.mjs";
3
4
  import { __require as requireReactCompilerRuntime_development } from "./cjs/react-compiler-runtime.development.mjs";
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { __module as jsxRuntime } from "../../../../../_virtual/jsx-runtime2.mjs";
2
3
  import { __require as requireReactJsxRuntime_production } from "./cjs/react-jsx-runtime.production.mjs";
3
4
  import { __require as requireReactJsxRuntime_development } from "./cjs/react-jsx-runtime.development.mjs";
@@ -1,15 +1,3 @@
1
- (function() {
2
- "use strict";
3
- try {
4
- if (typeof document != "undefined") {
5
- var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode("._text_2fuj1_1{color:#606875;color:var(--color, #606875);font-size:normal;font-size:var(--font-size, normal)}._text_2fuj1_1::-moz-selection{color:#cccfd5;background-color:#3e434b;background-color:var(--color, #3e434b)}._text_2fuj1_1::selection{color:#cccfd5;background-color:#3e434b;background-color:var(--color, #3e434b)}[data-theme=dark] ._text_2fuj1_1{color:#b0b5be;color:var(--color, #b0b5be)}[data-theme=dark] ._text_2fuj1_1::-moz-selection{color:#3e434b;background-color:#cccfd5;background-color:var(--color, #cccfd5)}[data-theme=dark] ._text_2fuj1_1::selection{color:#3e434b;background-color:#cccfd5;background-color:var(--color, #cccfd5)}"));
7
- document.head.appendChild(elementStyle);
8
- }
9
- } catch (e) {
10
- console.error("vite-plugin-css-injected-by-js", e);
11
- }
12
- })();
13
1
  const text = "_text_2fuj1_1";
14
2
  const textStyle = {
15
3
  text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/react",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,6 +45,7 @@
45
45
  "globals": "^16.4.0",
46
46
  "postcss": "^8.5.6",
47
47
  "postcss-preset-env": "^10.4.0",
48
+ "rollup-plugin-preserve-directives": "^0.4.0",
48
49
  "typescript": "~5.9.3",
49
50
  "typescript-eslint": "^8.45.0",
50
51
  "vite": "^7.1.7",