@elmethis/react 0.2.6 → 0.3.0

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.
Files changed (59) hide show
  1. package/README.md +3 -5
  2. package/lib/favicon.svg +1 -0
  3. package/lib/icons.svg +24 -0
  4. package/lib/index.react.cjs +1 -0
  5. package/lib/index.react.mjs +10 -0
  6. package/lib/style.css +2 -0
  7. package/lib-types/components/template/ElmTemplate.d.ts +6 -0
  8. package/lib-types/components/template/ElmTemplate.d.ts.map +1 -0
  9. package/lib-types/lib.d.ts +2 -0
  10. package/lib-types/lib.d.ts.map +1 -0
  11. package/package.json +39 -36
  12. package/dist/_virtual/compiler-runtime.mjs +0 -5
  13. package/dist/_virtual/compiler-runtime2.mjs +0 -4
  14. package/dist/_virtual/jsx-runtime.mjs +0 -5
  15. package/dist/_virtual/jsx-runtime2.mjs +0 -4
  16. package/dist/_virtual/react-compiler-runtime.development.mjs +0 -4
  17. package/dist/_virtual/react-compiler-runtime.production.mjs +0 -4
  18. package/dist/_virtual/react-jsx-runtime.development.mjs +0 -4
  19. package/dist/_virtual/react-jsx-runtime.production.mjs +0 -4
  20. package/dist/components/icon/ElmInlineIcon.d.ts +0 -3
  21. package/dist/components/icon/ElmInlineIcon.mjs +0 -19
  22. package/dist/components/icon/ElmInlineIcon.module.scss.mjs +0 -8
  23. package/dist/components/icon/ElmInlineIcon.stories.d.ts +0 -6
  24. package/dist/components/icon/ElmMdiIcon.d.ts +0 -9
  25. package/dist/components/icon/ElmMdiIcon.mjs +0 -52
  26. package/dist/components/icon/ElmMdiIcon.module.scss.mjs +0 -8
  27. package/dist/components/icon/ElmMdiIcon.stories.d.ts +0 -6
  28. package/dist/components/media/ElmImage.d.ts +0 -24
  29. package/dist/components/media/ElmImage.mjs +0 -153
  30. package/dist/components/media/ElmImage.module.scss.mjs +0 -14
  31. package/dist/components/media/ElmImage.stories.d.ts +0 -9
  32. package/dist/components/template/ElmTemplate.d.ts +0 -5
  33. package/dist/components/template/ElmTemplate.stories.d.ts +0 -6
  34. package/dist/components/typography/ElmBlockQuote.d.ts +0 -6
  35. package/dist/components/typography/ElmBlockQuote.mjs +0 -48
  36. package/dist/components/typography/ElmBlockQuote.module.scss.mjs +0 -8
  37. package/dist/components/typography/ElmBlockQuote.stories.d.ts +0 -7
  38. package/dist/components/typography/ElmCallout.d.ts +0 -9
  39. package/dist/components/typography/ElmCallout.mjs +0 -107
  40. package/dist/components/typography/ElmCallout.module.scss.mjs +0 -11
  41. package/dist/components/typography/ElmCallout.stories.d.ts +0 -10
  42. package/dist/components/typography/ElmInlineText.d.ts +0 -54
  43. package/dist/components/typography/ElmInlineText.mjs +0 -41
  44. package/dist/components/typography/ElmInlineText.module.scss.mjs +0 -20
  45. package/dist/components/typography/ElmInlineText.stories.d.ts +0 -11
  46. package/dist/components/typography/ElmParagraph.d.ts +0 -3
  47. package/dist/components/typography/ElmParagraph.mjs +0 -18
  48. package/dist/components/typography/ElmParagraph.stories.d.ts +0 -6
  49. package/dist/index.d.ts +0 -7
  50. package/dist/index.mjs +0 -28
  51. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs +0 -17
  52. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-compiler-runtime.development.mjs +0 -31
  53. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-compiler-runtime.production.mjs +0 -25
  54. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.mjs +0 -271
  55. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.production.mjs +0 -42
  56. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/compiler-runtime.mjs +0 -18
  57. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.mjs +0 -18
  58. package/dist/styles/text.module.scss.mjs +0 -8
  59. package/dist/vite.svg +0 -1
@@ -1,271 +0,0 @@
1
- "use strict";
2
- import { __exports as reactJsxRuntime_development } from "../../../../../../_virtual/react-jsx-runtime.development.mjs";
3
- import require$$0 from "react";
4
- /**
5
- * @license React
6
- * react-jsx-runtime.development.js
7
- *
8
- * Copyright (c) Meta Platforms, Inc. and affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
- var hasRequiredReactJsxRuntime_development;
14
- function requireReactJsxRuntime_development() {
15
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
16
- hasRequiredReactJsxRuntime_development = 1;
17
- "production" !== process.env.NODE_ENV && (function() {
18
- function getComponentNameFromType(type) {
19
- if (null == type) return null;
20
- if ("function" === typeof type)
21
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
22
- if ("string" === typeof type) return type;
23
- switch (type) {
24
- case REACT_FRAGMENT_TYPE:
25
- return "Fragment";
26
- case REACT_PROFILER_TYPE:
27
- return "Profiler";
28
- case REACT_STRICT_MODE_TYPE:
29
- return "StrictMode";
30
- case REACT_SUSPENSE_TYPE:
31
- return "Suspense";
32
- case REACT_SUSPENSE_LIST_TYPE:
33
- return "SuspenseList";
34
- case REACT_ACTIVITY_TYPE:
35
- return "Activity";
36
- }
37
- if ("object" === typeof type)
38
- switch ("number" === typeof type.tag && console.error(
39
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
40
- ), type.$$typeof) {
41
- case REACT_PORTAL_TYPE:
42
- return "Portal";
43
- case REACT_CONTEXT_TYPE:
44
- return type.displayName || "Context";
45
- case REACT_CONSUMER_TYPE:
46
- return (type._context.displayName || "Context") + ".Consumer";
47
- case REACT_FORWARD_REF_TYPE:
48
- var innerType = type.render;
49
- type = type.displayName;
50
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
51
- return type;
52
- case REACT_MEMO_TYPE:
53
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
54
- case REACT_LAZY_TYPE:
55
- innerType = type._payload;
56
- type = type._init;
57
- try {
58
- return getComponentNameFromType(type(innerType));
59
- } catch (x) {
60
- }
61
- }
62
- return null;
63
- }
64
- function testStringCoercion(value) {
65
- return "" + value;
66
- }
67
- function checkKeyStringCoercion(value) {
68
- try {
69
- testStringCoercion(value);
70
- var JSCompiler_inline_result = false;
71
- } catch (e) {
72
- JSCompiler_inline_result = true;
73
- }
74
- if (JSCompiler_inline_result) {
75
- JSCompiler_inline_result = console;
76
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
77
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
78
- JSCompiler_temp_const.call(
79
- JSCompiler_inline_result,
80
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
81
- JSCompiler_inline_result$jscomp$0
82
- );
83
- return testStringCoercion(value);
84
- }
85
- }
86
- function getTaskName(type) {
87
- if (type === REACT_FRAGMENT_TYPE) return "<>";
88
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
89
- return "<...>";
90
- try {
91
- var name = getComponentNameFromType(type);
92
- return name ? "<" + name + ">" : "<...>";
93
- } catch (x) {
94
- return "<...>";
95
- }
96
- }
97
- function getOwner() {
98
- var dispatcher = ReactSharedInternals.A;
99
- return null === dispatcher ? null : dispatcher.getOwner();
100
- }
101
- function UnknownOwner() {
102
- return Error("react-stack-top-frame");
103
- }
104
- function hasValidKey(config) {
105
- if (hasOwnProperty.call(config, "key")) {
106
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
107
- if (getter && getter.isReactWarning) return false;
108
- }
109
- return void 0 !== config.key;
110
- }
111
- function defineKeyPropWarningGetter(props, displayName) {
112
- function warnAboutAccessingKey() {
113
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
114
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
115
- displayName
116
- ));
117
- }
118
- warnAboutAccessingKey.isReactWarning = true;
119
- Object.defineProperty(props, "key", {
120
- get: warnAboutAccessingKey,
121
- configurable: true
122
- });
123
- }
124
- function elementRefGetterWithDeprecationWarning() {
125
- var componentName = getComponentNameFromType(this.type);
126
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
127
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
128
- ));
129
- componentName = this.props.ref;
130
- return void 0 !== componentName ? componentName : null;
131
- }
132
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
133
- var refProp = props.ref;
134
- type = {
135
- $$typeof: REACT_ELEMENT_TYPE,
136
- type,
137
- key,
138
- props,
139
- _owner: owner
140
- };
141
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
142
- enumerable: false,
143
- get: elementRefGetterWithDeprecationWarning
144
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
145
- type._store = {};
146
- Object.defineProperty(type._store, "validated", {
147
- configurable: false,
148
- enumerable: false,
149
- writable: true,
150
- value: 0
151
- });
152
- Object.defineProperty(type, "_debugInfo", {
153
- configurable: false,
154
- enumerable: false,
155
- writable: true,
156
- value: null
157
- });
158
- Object.defineProperty(type, "_debugStack", {
159
- configurable: false,
160
- enumerable: false,
161
- writable: true,
162
- value: debugStack
163
- });
164
- Object.defineProperty(type, "_debugTask", {
165
- configurable: false,
166
- enumerable: false,
167
- writable: true,
168
- value: debugTask
169
- });
170
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
171
- return type;
172
- }
173
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
174
- var children = config.children;
175
- if (void 0 !== children)
176
- if (isStaticChildren)
177
- if (isArrayImpl(children)) {
178
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
179
- validateChildKeys(children[isStaticChildren]);
180
- Object.freeze && Object.freeze(children);
181
- } else
182
- console.error(
183
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
184
- );
185
- else validateChildKeys(children);
186
- if (hasOwnProperty.call(config, "key")) {
187
- children = getComponentNameFromType(type);
188
- var keys = Object.keys(config).filter(function(k) {
189
- return "key" !== k;
190
- });
191
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
192
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
193
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
194
- isStaticChildren,
195
- children,
196
- keys,
197
- children
198
- ), didWarnAboutKeySpread[children + isStaticChildren] = true);
199
- }
200
- children = null;
201
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
202
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
203
- if ("key" in config) {
204
- maybeKey = {};
205
- for (var propName in config)
206
- "key" !== propName && (maybeKey[propName] = config[propName]);
207
- } else maybeKey = config;
208
- children && defineKeyPropWarningGetter(
209
- maybeKey,
210
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
211
- );
212
- return ReactElement(
213
- type,
214
- children,
215
- maybeKey,
216
- getOwner(),
217
- debugStack,
218
- debugTask
219
- );
220
- }
221
- function validateChildKeys(node) {
222
- isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
223
- }
224
- function isValidElement(object) {
225
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
226
- }
227
- var React = require$$0, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
228
- return null;
229
- };
230
- React = {
231
- react_stack_bottom_frame: function(callStackForError) {
232
- return callStackForError();
233
- }
234
- };
235
- var specialPropKeyWarningShown;
236
- var didWarnAboutElementRef = {};
237
- var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
238
- React,
239
- UnknownOwner
240
- )();
241
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
242
- var didWarnAboutKeySpread = {};
243
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
244
- reactJsxRuntime_development.jsx = function(type, config, maybeKey) {
245
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
246
- return jsxDEVImpl(
247
- type,
248
- config,
249
- maybeKey,
250
- false,
251
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
252
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
253
- );
254
- };
255
- reactJsxRuntime_development.jsxs = function(type, config, maybeKey) {
256
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
257
- return jsxDEVImpl(
258
- type,
259
- config,
260
- maybeKey,
261
- true,
262
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
263
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
264
- );
265
- };
266
- })();
267
- return reactJsxRuntime_development;
268
- }
269
- export {
270
- requireReactJsxRuntime_development as __require
271
- };
@@ -1,42 +0,0 @@
1
- "use strict";
2
- import { __exports as reactJsxRuntime_production } from "../../../../../../_virtual/react-jsx-runtime.production.mjs";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var hasRequiredReactJsxRuntime_production;
13
- function requireReactJsxRuntime_production() {
14
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
15
- hasRequiredReactJsxRuntime_production = 1;
16
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
17
- function jsxProd(type, config, maybeKey) {
18
- var key = null;
19
- void 0 !== maybeKey && (key = "" + maybeKey);
20
- void 0 !== config.key && (key = "" + config.key);
21
- if ("key" in config) {
22
- maybeKey = {};
23
- for (var propName in config)
24
- "key" !== propName && (maybeKey[propName] = config[propName]);
25
- } else maybeKey = config;
26
- config = maybeKey.ref;
27
- return {
28
- $$typeof: REACT_ELEMENT_TYPE,
29
- type,
30
- key,
31
- ref: void 0 !== config ? config : null,
32
- props: maybeKey
33
- };
34
- }
35
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
36
- reactJsxRuntime_production.jsx = jsxProd;
37
- reactJsxRuntime_production.jsxs = jsxProd;
38
- return reactJsxRuntime_production;
39
- }
40
- export {
41
- requireReactJsxRuntime_production as __require
42
- };
@@ -1,18 +0,0 @@
1
- "use strict";
2
- import { __module as compilerRuntime } from "../../../../../_virtual/compiler-runtime2.mjs";
3
- import { __require as requireReactCompilerRuntime_production } from "./cjs/react-compiler-runtime.production.mjs";
4
- import { __require as requireReactCompilerRuntime_development } from "./cjs/react-compiler-runtime.development.mjs";
5
- var hasRequiredCompilerRuntime;
6
- function requireCompilerRuntime() {
7
- if (hasRequiredCompilerRuntime) return compilerRuntime.exports;
8
- hasRequiredCompilerRuntime = 1;
9
- if (process.env.NODE_ENV === "production") {
10
- compilerRuntime.exports = requireReactCompilerRuntime_production();
11
- } else {
12
- compilerRuntime.exports = requireReactCompilerRuntime_development();
13
- }
14
- return compilerRuntime.exports;
15
- }
16
- export {
17
- requireCompilerRuntime as __require
18
- };
@@ -1,18 +0,0 @@
1
- "use strict";
2
- import { __module as jsxRuntime } from "../../../../../_virtual/jsx-runtime2.mjs";
3
- import { __require as requireReactJsxRuntime_production } from "./cjs/react-jsx-runtime.production.mjs";
4
- import { __require as requireReactJsxRuntime_development } from "./cjs/react-jsx-runtime.development.mjs";
5
- var hasRequiredJsxRuntime;
6
- function requireJsxRuntime() {
7
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
8
- hasRequiredJsxRuntime = 1;
9
- if (process.env.NODE_ENV === "production") {
10
- jsxRuntime.exports = requireReactJsxRuntime_production();
11
- } else {
12
- jsxRuntime.exports = requireReactJsxRuntime_development();
13
- }
14
- return jsxRuntime.exports;
15
- }
16
- export {
17
- requireJsxRuntime as __require
18
- };
@@ -1,8 +0,0 @@
1
- const text = "_text_2fuj1_1";
2
- const textStyle = {
3
- text
4
- };
5
- export {
6
- textStyle as default,
7
- text
8
- };
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>