@meonode/ui 0.0.1-alpha.13 → 0.0.1-alpha.2

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/README.md CHANGED
@@ -164,7 +164,7 @@ Contributions are welcome! Please feel free to contact me on discord: **[l7arome
164
164
 
165
165
  ---
166
166
 
167
- ## [License](https://github.com/l7aromeo/meonode-ui/blob/main/LICENSE)
167
+ ## [License](./LICENSE)
168
168
 
169
169
  The MIT License (MIT)
170
170
  Copyright (c) 2025 Ukasyah Rahmatullah Zada
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { BaseNodeInstance, NodeElement, NodeProps } from './node.type.js';
2
+ import { BaseNodeInstance, NodeElement, NodeProps } from './node.type.ts';
3
3
  /**
4
4
  * Factory function to create a BaseNode instance.
5
5
  * @param element The React element type.
@@ -1 +1 @@
1
- {"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAkF,SAAS,EAAE,MAAM,OAAO,CAAA;AACjH,OAAO,EACL,gBAAgB,EAIhB,WAAW,EACX,SAAS,EAIV,MAAM,mBAAmB,CAAA;AA+R1B;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAS9G;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,gBAAgB,CAAC,GAAG,CAAC,GAAG,SAAS,IACzG,OAAO,CAAC,wZAOjB"}
1
+ {"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAkF,SAAS,EAAE,MAAM,OAAO,CAAA;AACjH,OAAO,EACL,gBAAgB,EAIhB,WAAW,EACX,SAAS,EAIV,MAAM,mBAAmB,CAAA;AAkS1B;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAS9G;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,gBAAgB,CAAC,GAAG,CAAC,GAAG,SAAS,IACzG,OAAO,CAAC,wZAOjB"}
package/dist/core.node.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var _excluded=["children","nodeTheme"],_excluded2=["children","key"];function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}function _classCallCheck(b,a){if(!(b instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import{createElement,isValidElement}from"react";import{getComponentType,getCSSProps,getDOMProps,getElementTypeName,getValueByPath}from"./node.helper.js";import{isForwardRef,isMemo,isReactClassComponent,isValidElementType}from"./react-is.helper.js";/**
1
+ "use strict";var _excluded=["children","nodeTheme"],_excluded2=["children","key"];function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}function _classCallCheck(b,a){if(!(b instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import{createElement,isValidElement}from"react";import{getComponentType,getCSSProps,getDOMProps,getElementTypeName,getValueByPath}from"./node.helper.ts";import{isForwardRef,isMemo,isReactClassComponent,isValidElementType}from"./react-is.helper.ts";/**
2
2
  * Represents a node in a React component tree, providing a structured way to define and manipulate
3
3
  * React elements before they are rendered. Handles props processing, theme application, and child node management.
4
4
  * @template E The type of the React element this node represents (e.g., 'div', a custom component).
@@ -50,7 +50,7 @@ return e}/**
50
50
  * @param childIndex Optional index of the child if it's part of an array.
51
51
  * @returns The processed child.
52
52
  */},{key:"_processRawChild",value:function _processRawChild(a,b,c// Index for generating stable keys for array children
53
- ){var d=getComponentType(a),e=function generateIndexedKeyIfNeeded(a,b){if(b!==void 0&&null!==b)return b;if(void 0!==c){var d=getElementTypeName(a);return"".concat(d,"-").concat(c)}// No explicit key, and not an array child, so BaseNode constructor will handle.
53
+ ){var d=getComponentType(a),e=function generateIndexedKeyIfNeeded(a,b){if(b!==void 0&&null!==b)return b;if(void 0!==c){var d=getElementTypeName(a);return"".concat(d,"_child_").concat(c)}// No explicit key, and not an array child, so BaseNode constructor will handle.
54
54
  };// Helper to generate an indexed key if no explicit key is present and an index is available.
55
55
  // Case 1: Child is already a BaseNode instance
56
56
  if(a instanceof BaseNode||"object"===_typeof(a)&&null!==a&&!0===a._isBaseNode){var f=a,g=f.initialRawProps||{},h=g.nodeTheme,i=e(f.element,g.key);// Prefer child's own theme
@@ -62,8 +62,9 @@ var j=e(this._functionRenderer,void 0);return new BaseNode(this._functionRendere
62
62
  if(isValidElement(a)){// Extract props from the JSX element
63
63
  var k=a.props,l=(null===k||void 0===k?void 0:k.nodeTheme)||b,m=e(a.type,a.key);// Prefer nodeTheme from child's props, fallback to parent theme
64
64
  // Generate a stable key based on element type and index if needed
65
+ // Remove original key since we'll be using the generated/existing key
65
66
  // Create new BaseNode with props from JSX element
66
- return new BaseNode(a.type,_objectSpread(_objectSpread({},k),{},{nodeTheme:l,key:m}))}// Case 5: Child is an ElementType (string tag, class component, Memo/ForwardRef)
67
+ return delete k.key,new BaseNode(a.type,_objectSpread(_objectSpread({},k),{},{nodeTheme:l,key:m}))}// Case 5: Child is an ElementType (string tag, class component, Memo/ForwardRef)
67
68
  if(isReactClassComponent(a)||"object"===d&&(isMemo(a)||isForwardRef(a))){// ElementTypes don't have an intrinsic key from the rawChild itself.
68
69
  var n=e(a,void 0);return new BaseNode(a,{nodeTheme:b,key:n})}// Case 6: Fallback for other ReactNode types (e.g., Fragments, Portals if not caught by isValidElement)
69
70
  // These are returned as-is. If they are elements within an array, React expects them to have keys.
@@ -1,596 +1,596 @@
1
- import type { NodeProps } from './node.type.js';
1
+ import type { NodeProps } from './node.type.ts';
2
2
  /**
3
3
  * Represents the root HTML element.
4
4
  * @param props Optional properties for the HTML element.
5
5
  * @returns An HTML element node.
6
6
  */
7
- export declare const Html: (props?: NodeProps<"html">) => import("./node.type.js").BaseNodeInstance<"html">;
7
+ export declare const Html: (props?: NodeProps<"html">) => import("./node.type.ts").BaseNodeInstance<"html">;
8
8
  /**
9
9
  * Represents the body element of an HTML document.
10
10
  * @param props Optional properties for the body element.
11
11
  * @returns A body element node.
12
12
  */
13
- export declare const Body: (props?: NodeProps<"body">) => import("./node.type.js").BaseNodeInstance<"body">;
13
+ export declare const Body: (props?: NodeProps<"body">) => import("./node.type.ts").BaseNodeInstance<"body">;
14
14
  /**
15
15
  * Represents a div element.
16
16
  * @param props Optional properties for the div element.
17
17
  * @returns A div element node.
18
18
  */
19
- export declare const Div: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
19
+ export declare const Div: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
20
20
  /**
21
21
  * Represents a span element.
22
22
  * @param props Optional properties for the span element.
23
23
  * @returns A span element node.
24
24
  */
25
- export declare const Span: (props?: NodeProps<"span">) => import("./node.type.js").BaseNodeInstance<"span">;
25
+ export declare const Span: (props?: NodeProps<"span">) => import("./node.type.ts").BaseNodeInstance<"span">;
26
26
  /**
27
27
  * Represents a paragraph element.
28
28
  * @param props Optional properties for the paragraph element.
29
29
  * @returns A paragraph element node.
30
30
  */
31
- export declare const P: (props?: NodeProps<"p">) => import("./node.type.js").BaseNodeInstance<"p">;
31
+ export declare const P: (props?: NodeProps<"p">) => import("./node.type.ts").BaseNodeInstance<"p">;
32
32
  /**
33
33
  * Represents a preformatted text element.
34
34
  * @param props Optional properties for the pre element.
35
35
  * @returns A pre element node.
36
36
  */
37
- export declare const Pre: (props?: NodeProps<"pre">) => import("./node.type.js").BaseNodeInstance<"pre">;
37
+ export declare const Pre: (props?: NodeProps<"pre">) => import("./node.type.ts").BaseNodeInstance<"pre">;
38
38
  /**
39
39
  * Represents a code element for displaying code snippets.
40
40
  * @param props Optional properties for the code element.
41
41
  * @returns A code element node.
42
42
  */
43
- export declare const Code: (props?: NodeProps<"code">) => import("./node.type.js").BaseNodeInstance<"code">;
43
+ export declare const Code: (props?: NodeProps<"code">) => import("./node.type.ts").BaseNodeInstance<"code">;
44
44
  /**
45
45
  * Represents a column layout using flexbox.
46
46
  * @param props Optional properties for the column layout.
47
47
  * @returns A div element node with flexbox column layout.
48
48
  */
49
- export declare const Column: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
49
+ export declare const Column: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
50
50
  /**
51
51
  * Represents a row layout using flexbox.
52
52
  * @param props Optional properties for the row layout.
53
53
  * @returns A div element node with flexbox row layout.
54
54
  */
55
- export declare const Row: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
55
+ export declare const Row: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
56
56
  /**
57
57
  * Represents a grid layout.
58
58
  * @param props Optional properties for the grid layout.
59
59
  * @returns A div element node with grid layout.
60
60
  */
61
- export declare const Grid: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
61
+ export declare const Grid: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
62
62
  /**
63
63
  * Represents the main content of a document.
64
64
  * @param props Optional properties for the main element.
65
65
  * @returns A main element node.
66
66
  */
67
- export declare const Main: (props?: NodeProps<"main">) => import("./node.type.js").BaseNodeInstance<"main">;
67
+ export declare const Main: (props?: NodeProps<"main">) => import("./node.type.ts").BaseNodeInstance<"main">;
68
68
  /**
69
69
  * Represents a centered layout using flexbox.
70
70
  * @param props Optional properties for the centered layout.
71
71
  * @returns A div element node with centered flexbox layout.
72
72
  */
73
- export declare const Center: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
73
+ export declare const Center: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
74
74
  /**
75
75
  * Represents a relatively positioned element.
76
76
  * @param props Optional properties for the relatively positioned element.
77
77
  * @returns A div element node with relative positioning.
78
78
  */
79
- export declare const Relative: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
79
+ export declare const Relative: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
80
80
  /**
81
81
  * Represents an absolutely positioned element.
82
82
  * @param props Optional properties for the absolutely positioned element.
83
83
  * @returns A div element node with absolute positioning.
84
84
  */
85
- export declare const Absolute: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
85
+ export declare const Absolute: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
86
86
  /**
87
87
  * Represents a sticky positioned element.
88
88
  * @param props Optional properties for the sticky positioned element.
89
89
  * @returns A div element node with sticky positioning.
90
90
  */
91
- export declare const Sticky: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
91
+ export declare const Sticky: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
92
92
  /**
93
93
  * Represents a statically positioned element.
94
94
  * @param props Optional properties for the statically positioned element.
95
95
  * @returns A div element node with static positioning.
96
96
  */
97
- export declare const Static: (props?: NodeProps<"div">) => import("./node.type.js").BaseNodeInstance<"div">;
97
+ export declare const Static: (props?: NodeProps<"div">) => import("./node.type.ts").BaseNodeInstance<"div">;
98
98
  /**
99
99
  * Represents a level 1 heading.
100
100
  * @param props Optional properties for the h1 element.
101
101
  * @returns An h1 element node.
102
102
  */
103
- export declare const H1: (props?: NodeProps<"h1">) => import("./node.type.js").BaseNodeInstance<"h1">;
103
+ export declare const H1: (props?: NodeProps<"h1">) => import("./node.type.ts").BaseNodeInstance<"h1">;
104
104
  /**
105
105
  * Represents a level 2 heading.
106
106
  * @param props Optional properties for the h2 element.
107
107
  * @returns An h2 element node.
108
108
  */
109
- export declare const H2: (props?: NodeProps<"h2">) => import("./node.type.js").BaseNodeInstance<"h2">;
109
+ export declare const H2: (props?: NodeProps<"h2">) => import("./node.type.ts").BaseNodeInstance<"h2">;
110
110
  /**
111
111
  * Represents a level 3 heading.
112
112
  * @param props Optional properties for the h3 element.
113
113
  * @returns An h3 element node.
114
114
  */
115
- export declare const H3: (props?: NodeProps<"h3">) => import("./node.type.js").BaseNodeInstance<"h3">;
115
+ export declare const H3: (props?: NodeProps<"h3">) => import("./node.type.ts").BaseNodeInstance<"h3">;
116
116
  /**
117
117
  * Represents a level 4 heading.
118
118
  * @param props Optional properties for the h4 element.
119
119
  * @returns An h4 element node.
120
120
  */
121
- export declare const H4: (props?: NodeProps<"h4">) => import("./node.type.js").BaseNodeInstance<"h4">;
121
+ export declare const H4: (props?: NodeProps<"h4">) => import("./node.type.ts").BaseNodeInstance<"h4">;
122
122
  /**
123
123
  * Represents a level 5 heading.
124
124
  * @param props Optional properties for the h5 element.
125
125
  * @returns An h5 element node.
126
126
  */
127
- export declare const H5: (props?: NodeProps<"h5">) => import("./node.type.js").BaseNodeInstance<"h5">;
127
+ export declare const H5: (props?: NodeProps<"h5">) => import("./node.type.ts").BaseNodeInstance<"h5">;
128
128
  /**
129
129
  * Represents a level 6 heading.
130
130
  * @param props Optional properties for the h6 element.
131
131
  * @returns An h6 element node.
132
132
  */
133
- export declare const H6: (props?: NodeProps<"h6">) => import("./node.type.js").BaseNodeInstance<"h6">;
133
+ export declare const H6: (props?: NodeProps<"h6">) => import("./node.type.ts").BaseNodeInstance<"h6">;
134
134
  /**
135
135
  * Represents a strong emphasis element.
136
136
  * @param props Optional properties for the strong element.
137
137
  * @returns A strong element node.
138
138
  */
139
- export declare const Strong: (props?: NodeProps<"strong">) => import("./node.type.js").BaseNodeInstance<"strong">;
139
+ export declare const Strong: (props?: NodeProps<"strong">) => import("./node.type.ts").BaseNodeInstance<"strong">;
140
140
  /**
141
141
  * Represents an emphasized text element.
142
142
  * @param props Optional properties for the em element.
143
143
  * @returns An em element node.
144
144
  */
145
- export declare const Em: (props?: NodeProps<"em">) => import("./node.type.js").BaseNodeInstance<"em">;
145
+ export declare const Em: (props?: NodeProps<"em">) => import("./node.type.ts").BaseNodeInstance<"em">;
146
146
  /**
147
147
  * Represents a small text element.
148
148
  * @param props Optional properties for the small element.
149
149
  * @returns A small element node.
150
150
  */
151
- export declare const Small: (props?: NodeProps<"small">) => import("./node.type.js").BaseNodeInstance<"small">;
151
+ export declare const Small: (props?: NodeProps<"small">) => import("./node.type.ts").BaseNodeInstance<"small">;
152
152
  /**
153
153
  * Represents a marked text element.
154
154
  * @param props Optional properties for the mark element.
155
155
  * @returns A mark element node.
156
156
  */
157
- export declare const Mark: (props?: NodeProps<"mark">) => import("./node.type.js").BaseNodeInstance<"mark">;
157
+ export declare const Mark: (props?: NodeProps<"mark">) => import("./node.type.ts").BaseNodeInstance<"mark">;
158
158
  /**
159
159
  * Represents an ordered list.
160
160
  * @param props Optional properties for the ol element.
161
161
  * @returns An ol element node.
162
162
  */
163
- export declare const Ol: (props?: NodeProps<"ol">) => import("./node.type.js").BaseNodeInstance<"ol">;
163
+ export declare const Ol: (props?: NodeProps<"ol">) => import("./node.type.ts").BaseNodeInstance<"ol">;
164
164
  /**
165
165
  * Represents an unordered list.
166
166
  * @param props Optional properties for the ul element.
167
167
  * @returns A ul element node.
168
168
  */
169
- export declare const Ul: (props?: NodeProps<"ul">) => import("./node.type.js").BaseNodeInstance<"ul">;
169
+ export declare const Ul: (props?: NodeProps<"ul">) => import("./node.type.ts").BaseNodeInstance<"ul">;
170
170
  /**
171
171
  * Represents a list item.
172
172
  * @param props Optional properties for the li element.
173
173
  * @returns An li element node.
174
174
  */
175
- export declare const Li: (props?: NodeProps<"li">) => import("./node.type.js").BaseNodeInstance<"li">;
175
+ export declare const Li: (props?: NodeProps<"li">) => import("./node.type.ts").BaseNodeInstance<"li">;
176
176
  /**
177
177
  * Represents a description list.
178
178
  * @param props Optional properties for the dl element.
179
179
  * @returns A dl element node.
180
180
  */
181
- export declare const Dl: (props?: NodeProps<"dl">) => import("./node.type.js").BaseNodeInstance<"dl">;
181
+ export declare const Dl: (props?: NodeProps<"dl">) => import("./node.type.ts").BaseNodeInstance<"dl">;
182
182
  /**
183
183
  * Represents a term in a description list.
184
184
  * @param props Optional properties for the dt element.
185
185
  * @returns A dt element node.
186
186
  */
187
- export declare const Dt: (props?: NodeProps<"dt">) => import("./node.type.js").BaseNodeInstance<"dt">;
187
+ export declare const Dt: (props?: NodeProps<"dt">) => import("./node.type.ts").BaseNodeInstance<"dt">;
188
188
  /**
189
189
  * Represents a description in a description list.
190
190
  * @param props Optional properties for the dd element.
191
191
  * @returns A dd element node.
192
192
  */
193
- export declare const Dd: (props?: NodeProps<"dd">) => import("./node.type.js").BaseNodeInstance<"dd">;
193
+ export declare const Dd: (props?: NodeProps<"dd">) => import("./node.type.ts").BaseNodeInstance<"dd">;
194
194
  /**
195
195
  * Represents an HTML form.
196
196
  * @param props Optional properties for the form element.
197
197
  * @returns A form element node.
198
198
  */
199
- export declare const Form: (props?: NodeProps<"form">) => import("./node.type.js").BaseNodeInstance<"form">;
199
+ export declare const Form: (props?: NodeProps<"form">) => import("./node.type.ts").BaseNodeInstance<"form">;
200
200
  /**
201
201
  * Represents a label for an input element.
202
202
  * @param props Optional properties for the label element.
203
203
  * @returns A label element node.
204
204
  */
205
- export declare const Label: (props?: NodeProps<"label">) => import("./node.type.js").BaseNodeInstance<"label">;
205
+ export declare const Label: (props?: NodeProps<"label">) => import("./node.type.ts").BaseNodeInstance<"label">;
206
206
  /**
207
207
  * Represents an input element.
208
208
  * @param props Optional properties for the input element.
209
209
  * @returns An input element node.
210
210
  */
211
- export declare const Input: (props?: NodeProps<"input">) => import("./node.type.js").BaseNodeInstance<"input">;
211
+ export declare const Input: (props?: NodeProps<"input">) => import("./node.type.ts").BaseNodeInstance<"input">;
212
212
  /**
213
213
  * Represents a button element.
214
214
  * @param props Optional properties for the button element.
215
215
  * @returns A button element node.
216
216
  */
217
- export declare const Button: (props?: NodeProps<"button">) => import("./node.type.js").BaseNodeInstance<"button">;
217
+ export declare const Button: (props?: NodeProps<"button">) => import("./node.type.ts").BaseNodeInstance<"button">;
218
218
  /**
219
219
  * Represents a textarea element for multiline text input.
220
220
  * @param props Optional properties for the textarea element.
221
221
  * @returns A textarea element node.
222
222
  */
223
- export declare const Textarea: (props?: NodeProps<"textarea">) => import("./node.type.js").BaseNodeInstance<"textarea">;
223
+ export declare const Textarea: (props?: NodeProps<"textarea">) => import("./node.type.ts").BaseNodeInstance<"textarea">;
224
224
  /**
225
225
  * Represents a select dropdown element.
226
226
  * @param props Optional properties for the select element.
227
227
  * @returns A select element node.
228
228
  */
229
- export declare const Select: (props?: NodeProps<"select">) => import("./node.type.js").BaseNodeInstance<"select">;
229
+ export declare const Select: (props?: NodeProps<"select">) => import("./node.type.ts").BaseNodeInstance<"select">;
230
230
  /**
231
231
  * Represents an option within a select element.
232
232
  * @param props Optional properties for the option element.
233
233
  * @returns An option element node.
234
234
  */
235
- export declare const Option: (props?: NodeProps<"option">) => import("./node.type.js").BaseNodeInstance<"option">;
235
+ export declare const Option: (props?: NodeProps<"option">) => import("./node.type.ts").BaseNodeInstance<"option">;
236
236
  /**
237
237
  * Represents a fieldset element for grouping form elements.
238
238
  * @param props Optional properties for the fieldset element.
239
239
  * @returns A fieldset element node.
240
240
  */
241
- export declare const Fieldset: (props?: NodeProps<"fieldset">) => import("./node.type.js").BaseNodeInstance<"fieldset">;
241
+ export declare const Fieldset: (props?: NodeProps<"fieldset">) => import("./node.type.ts").BaseNodeInstance<"fieldset">;
242
242
  /**
243
243
  * Represents a legend for a fieldset.
244
244
  * @param props Optional properties for the legend element.
245
245
  * @returns A legend element node.
246
246
  */
247
- export declare const Legend: (props?: NodeProps<"legend">) => import("./node.type.js").BaseNodeInstance<"legend">;
247
+ export declare const Legend: (props?: NodeProps<"legend">) => import("./node.type.ts").BaseNodeInstance<"legend">;
248
248
  /**
249
249
  * Represents an option group within a select element.
250
250
  * @param props Optional properties for the optgroup element.
251
251
  * @returns An optgroup element node.
252
252
  */
253
- export declare const Optgroup: (props?: NodeProps<"optgroup">) => import("./node.type.js").BaseNodeInstance<"optgroup">;
253
+ export declare const Optgroup: (props?: NodeProps<"optgroup">) => import("./node.type.ts").BaseNodeInstance<"optgroup">;
254
254
  /**
255
255
  * Represents a table element.
256
256
  * @param props Optional properties for the table element.
257
257
  * @returns A table element node.
258
258
  */
259
- export declare const Table: (props?: NodeProps<"table">) => import("./node.type.js").BaseNodeInstance<"table">;
259
+ export declare const Table: (props?: NodeProps<"table">) => import("./node.type.ts").BaseNodeInstance<"table">;
260
260
  /**
261
261
  * Represents a table header section.
262
262
  * @param props Optional properties for the thead element.
263
263
  * @returns A thead element node.
264
264
  */
265
- export declare const Thead: (props?: NodeProps<"thead">) => import("./node.type.js").BaseNodeInstance<"thead">;
265
+ export declare const Thead: (props?: NodeProps<"thead">) => import("./node.type.ts").BaseNodeInstance<"thead">;
266
266
  /**
267
267
  * Represents a table body section.
268
268
  * @param props Optional properties for the tbody element.
269
269
  * @returns A tbody element node.
270
270
  */
271
- export declare const Tbody: (props?: NodeProps<"tbody">) => import("./node.type.js").BaseNodeInstance<"tbody">;
271
+ export declare const Tbody: (props?: NodeProps<"tbody">) => import("./node.type.ts").BaseNodeInstance<"tbody">;
272
272
  /**
273
273
  * Represents a table footer section.
274
274
  * @param props Optional properties for the tfoot element.
275
275
  * @returns A tfoot element node.
276
276
  */
277
- export declare const Tfoot: (props?: NodeProps<"tfoot">) => import("./node.type.js").BaseNodeInstance<"tfoot">;
277
+ export declare const Tfoot: (props?: NodeProps<"tfoot">) => import("./node.type.ts").BaseNodeInstance<"tfoot">;
278
278
  /**
279
279
  * Represents a table row.
280
280
  * @param props Optional properties for the tr element.
281
281
  * @returns A tr element node.
282
282
  */
283
- export declare const Tr: (props?: NodeProps<"tr">) => import("./node.type.js").BaseNodeInstance<"tr">;
283
+ export declare const Tr: (props?: NodeProps<"tr">) => import("./node.type.ts").BaseNodeInstance<"tr">;
284
284
  /**
285
285
  * Represents a table header cell.
286
286
  * @param props Optional properties for the th element.
287
287
  * @returns A th element node.
288
288
  */
289
- export declare const Th: (props?: NodeProps<"th">) => import("./node.type.js").BaseNodeInstance<"th">;
289
+ export declare const Th: (props?: NodeProps<"th">) => import("./node.type.ts").BaseNodeInstance<"th">;
290
290
  /**
291
291
  * Represents a table data cell.
292
292
  * @param props Optional properties for the td element.
293
293
  * @returns A td element node.
294
294
  */
295
- export declare const Td: (props?: NodeProps<"td">) => import("./node.type.js").BaseNodeInstance<"td">;
295
+ export declare const Td: (props?: NodeProps<"td">) => import("./node.type.ts").BaseNodeInstance<"td">;
296
296
  /**
297
297
  * Represents a table caption.
298
298
  * @param props Optional properties for the caption element.
299
299
  * @returns A caption element node.
300
300
  */
301
- export declare const Caption: (props?: NodeProps<"caption">) => import("./node.type.js").BaseNodeInstance<"caption">;
301
+ export declare const Caption: (props?: NodeProps<"caption">) => import("./node.type.ts").BaseNodeInstance<"caption">;
302
302
  /**
303
303
  * Represents a table column group.
304
304
  * @param props Optional properties for the colgroup element.
305
305
  * @returns A colgroup element node.
306
306
  */
307
- export declare const Colgroup: (props?: NodeProps<"colgroup">) => import("./node.type.js").BaseNodeInstance<"colgroup">;
307
+ export declare const Colgroup: (props?: NodeProps<"colgroup">) => import("./node.type.ts").BaseNodeInstance<"colgroup">;
308
308
  /**
309
309
  * Represents a table column.
310
310
  * @param props Optional properties for the col element.
311
311
  * @returns A col element node.
312
312
  */
313
- export declare const Col: (props?: NodeProps<"col">) => import("./node.type.js").BaseNodeInstance<"col">;
313
+ export declare const Col: (props?: NodeProps<"col">) => import("./node.type.ts").BaseNodeInstance<"col">;
314
314
  /**
315
315
  * Represents an image element (alias for Img).
316
316
  * @param props Optional properties for the img element.
317
317
  * @returns An img element node.
318
318
  */
319
- export declare const Image: (props?: NodeProps<"img">) => import("./node.type.js").BaseNodeInstance<"img">;
319
+ export declare const Image: (props?: NodeProps<"img">) => import("./node.type.ts").BaseNodeInstance<"img">;
320
320
  /**
321
321
  * Represents an image element.
322
322
  * @param props Optional properties for the img element.
323
323
  * @returns An img element node.
324
324
  */
325
- export declare const Img: (props?: NodeProps<"img">) => import("./node.type.js").BaseNodeInstance<"img">;
325
+ export declare const Img: (props?: NodeProps<"img">) => import("./node.type.ts").BaseNodeInstance<"img">;
326
326
  /**
327
327
  * Represents a video element.
328
328
  * @param props Optional properties for the video element.
329
329
  * @returns A video element node.
330
330
  */
331
- export declare const Video: (props?: NodeProps<"video">) => import("./node.type.js").BaseNodeInstance<"video">;
331
+ export declare const Video: (props?: NodeProps<"video">) => import("./node.type.ts").BaseNodeInstance<"video">;
332
332
  /**
333
333
  * Represents an audio element.
334
334
  * @param props Optional properties for the audio element.
335
335
  * @returns An audio element node.
336
336
  */
337
- export declare const Audio: (props?: NodeProps<"audio">) => import("./node.type.js").BaseNodeInstance<"audio">;
337
+ export declare const Audio: (props?: NodeProps<"audio">) => import("./node.type.ts").BaseNodeInstance<"audio">;
338
338
  /**
339
339
  * Represents a picture element.
340
340
  * @param props Optional properties for the picture element.
341
341
  * @returns A picture element node.
342
342
  */
343
- export declare const Picture: (props?: NodeProps<"picture">) => import("./node.type.js").BaseNodeInstance<"picture">;
343
+ export declare const Picture: (props?: NodeProps<"picture">) => import("./node.type.ts").BaseNodeInstance<"picture">;
344
344
  /**
345
345
  * Represents a source element.
346
346
  * @param props Optional properties for the source element.
347
347
  * @returns A source element node.
348
348
  */
349
- export declare const Source: (props?: NodeProps<"source">) => import("./node.type.js").BaseNodeInstance<"source">;
349
+ export declare const Source: (props?: NodeProps<"source">) => import("./node.type.ts").BaseNodeInstance<"source">;
350
350
  /**
351
351
  * Represents a text track element.
352
352
  * @param props Optional properties for the track element.
353
353
  * @returns A track element node.
354
354
  */
355
- export declare const Track: (props?: NodeProps<"track">) => import("./node.type.js").BaseNodeInstance<"track">;
355
+ export declare const Track: (props?: NodeProps<"track">) => import("./node.type.ts").BaseNodeInstance<"track">;
356
356
  /**
357
357
  * Represents a canvas element.
358
358
  * @param props Optional properties for the canvas element.
359
359
  * @returns A canvas element node.
360
360
  */
361
- export declare const Canvas: (props?: NodeProps<"canvas">) => import("./node.type.js").BaseNodeInstance<"canvas">;
361
+ export declare const Canvas: (props?: NodeProps<"canvas">) => import("./node.type.ts").BaseNodeInstance<"canvas">;
362
362
  /**
363
363
  * Represents an iframe element.
364
364
  * @param props Optional properties for the iframe element.
365
365
  * @returns An iframe element node.
366
366
  */
367
- export declare const Iframe: (props?: NodeProps<"iframe">) => import("./node.type.js").BaseNodeInstance<"iframe">;
367
+ export declare const Iframe: (props?: NodeProps<"iframe">) => import("./node.type.ts").BaseNodeInstance<"iframe">;
368
368
  /**
369
369
  * Represents an SVG container element.
370
370
  * @param props Optional properties for the svg element.
371
371
  * @returns An svg element node.
372
372
  */
373
- export declare const Svg: (props?: NodeProps<"svg">) => import("./node.type.js").BaseNodeInstance<"svg">;
373
+ export declare const Svg: (props?: NodeProps<"svg">) => import("./node.type.ts").BaseNodeInstance<"svg">;
374
374
  /**
375
375
  * Represents an SVG path element.
376
376
  * @param props Optional properties for the path element.
377
377
  * @returns A path element node.
378
378
  */
379
- export declare const SvgPath: (props?: NodeProps<"path">) => import("./node.type.js").BaseNodeInstance<"path">;
379
+ export declare const SvgPath: (props?: NodeProps<"path">) => import("./node.type.ts").BaseNodeInstance<"path">;
380
380
  /**
381
381
  * Represents an SVG circle element.
382
382
  * @param props Optional properties for the circle element.
383
383
  * @returns A circle element node.
384
384
  */
385
- export declare const SvgCircle: (props?: NodeProps<"circle">) => import("./node.type.js").BaseNodeInstance<"circle">;
385
+ export declare const SvgCircle: (props?: NodeProps<"circle">) => import("./node.type.ts").BaseNodeInstance<"circle">;
386
386
  /**
387
387
  * Represents an SVG ellipse element.
388
388
  * @param props Optional properties for the ellipse element.
389
389
  * @returns An ellipse element node.
390
390
  */
391
- export declare const SvgEllipse: (props?: NodeProps<"ellipse">) => import("./node.type.js").BaseNodeInstance<"ellipse">;
391
+ export declare const SvgEllipse: (props?: NodeProps<"ellipse">) => import("./node.type.ts").BaseNodeInstance<"ellipse">;
392
392
  /**
393
393
  * Represents an SVG line element.
394
394
  * @param props Optional properties for the line element.
395
395
  * @returns A line element node.
396
396
  */
397
- export declare const SvgLine: (props?: NodeProps<"line">) => import("./node.type.js").BaseNodeInstance<"line">;
397
+ export declare const SvgLine: (props?: NodeProps<"line">) => import("./node.type.ts").BaseNodeInstance<"line">;
398
398
  /**
399
399
  * Represents an SVG polyline element.
400
400
  * @param props Optional properties for the polyline element.
401
401
  * @returns A polyline element node.
402
402
  */
403
- export declare const SvgPolyline: (props?: NodeProps<"polyline">) => import("./node.type.js").BaseNodeInstance<"polyline">;
403
+ export declare const SvgPolyline: (props?: NodeProps<"polyline">) => import("./node.type.ts").BaseNodeInstance<"polyline">;
404
404
  /**
405
405
  * Represents an SVG polygon element.
406
406
  * @param props Optional properties for the polygon element.
407
407
  * @returns A polygon element node.
408
408
  */
409
- export declare const SvgPolygon: (props?: NodeProps<"polygon">) => import("./node.type.js").BaseNodeInstance<"polygon">;
409
+ export declare const SvgPolygon: (props?: NodeProps<"polygon">) => import("./node.type.ts").BaseNodeInstance<"polygon">;
410
410
  /**
411
411
  * Represents an SVG rectangle element.
412
412
  * @param props Optional properties for the rect element.
413
413
  * @returns A rect element node.
414
414
  */
415
- export declare const SvgRect: (props?: NodeProps<"rect">) => import("./node.type.js").BaseNodeInstance<"rect">;
415
+ export declare const SvgRect: (props?: NodeProps<"rect">) => import("./node.type.ts").BaseNodeInstance<"rect">;
416
416
  /**
417
417
  * Represents an SVG use element.
418
418
  * @param props Optional properties for the use element.
419
419
  * @returns A use element node.
420
420
  */
421
- export declare const SvgUse: (props?: NodeProps<"use">) => import("./node.type.js").BaseNodeInstance<"use">;
421
+ export declare const SvgUse: (props?: NodeProps<"use">) => import("./node.type.ts").BaseNodeInstance<"use">;
422
422
  /**
423
423
  * Represents an SVG definitions element.
424
424
  * @param props Optional properties for the defs element.
425
425
  * @returns A defs element node.
426
426
  */
427
- export declare const SvgDefs: (props?: NodeProps<"defs">) => import("./node.type.js").BaseNodeInstance<"defs">;
427
+ export declare const SvgDefs: (props?: NodeProps<"defs">) => import("./node.type.ts").BaseNodeInstance<"defs">;
428
428
  /**
429
429
  * Represents an SVG linear gradient element.
430
430
  * @param props Optional properties for the linearGradient element.
431
431
  * @returns A linearGradient element node.
432
432
  */
433
- export declare const SvgLinearGradient: (props?: NodeProps<"linearGradient">) => import("./node.type.js").BaseNodeInstance<"linearGradient">;
433
+ export declare const SvgLinearGradient: (props?: NodeProps<"linearGradient">) => import("./node.type.ts").BaseNodeInstance<"linearGradient">;
434
434
  /**
435
435
  * Represents an SVG radial gradient element.
436
436
  * @param props Optional properties for the radialGradient element.
437
437
  * @returns A radialGradient element node.
438
438
  */
439
- export declare const SvgRadialGradient: (props?: NodeProps<"radialGradient">) => import("./node.type.js").BaseNodeInstance<"radialGradient">;
439
+ export declare const SvgRadialGradient: (props?: NodeProps<"radialGradient">) => import("./node.type.ts").BaseNodeInstance<"radialGradient">;
440
440
  /**
441
441
  * Represents an SVG gradient stop element.
442
442
  * @param props Optional properties for the stop element.
443
443
  * @returns A stop element node.
444
444
  */
445
- export declare const SvgStop: (props?: NodeProps<"stop">) => import("./node.type.js").BaseNodeInstance<"stop">;
445
+ export declare const SvgStop: (props?: NodeProps<"stop">) => import("./node.type.ts").BaseNodeInstance<"stop">;
446
446
  /**
447
447
  * Represents an SVG symbol element.
448
448
  * @param props Optional properties for the symbol element.
449
449
  * @returns A symbol element node.
450
450
  */
451
- export declare const SvgSymbol: (props?: NodeProps<"symbol">) => import("./node.type.js").BaseNodeInstance<"symbol">;
451
+ export declare const SvgSymbol: (props?: NodeProps<"symbol">) => import("./node.type.ts").BaseNodeInstance<"symbol">;
452
452
  /**
453
453
  * Represents an SVG group element.
454
454
  * @param props Optional properties for the g element.
455
455
  * @returns A g element node.
456
456
  */
457
- export declare const SvgG: (props?: NodeProps<"g">) => import("./node.type.js").BaseNodeInstance<"g">;
457
+ export declare const SvgG: (props?: NodeProps<"g">) => import("./node.type.ts").BaseNodeInstance<"g">;
458
458
  /**
459
459
  * Represents an SVG text element.
460
460
  * @param props Optional properties for the text element.
461
461
  * @returns A text element node.
462
462
  */
463
- export declare const SvgText: (props?: NodeProps<"text">) => import("./node.type.js").BaseNodeInstance<"text">;
463
+ export declare const SvgText: (props?: NodeProps<"text">) => import("./node.type.ts").BaseNodeInstance<"text">;
464
464
  /**
465
465
  * Represents an SVG text span element.
466
466
  * @param props Optional properties for the tspan element.
467
467
  * @returns A tspan element node.
468
468
  */
469
- export declare const SvgTspan: (props?: NodeProps<"tspan">) => import("./node.type.js").BaseNodeInstance<"tspan">;
469
+ export declare const SvgTspan: (props?: NodeProps<"tspan">) => import("./node.type.ts").BaseNodeInstance<"tspan">;
470
470
  /**
471
471
  * Represents an anchor element.
472
472
  * @param props Optional properties for the a element.
473
473
  * @returns An a element node.
474
474
  */
475
- export declare const A: (props?: NodeProps<"a">) => import("./node.type.js").BaseNodeInstance<"a">;
475
+ export declare const A: (props?: NodeProps<"a">) => import("./node.type.ts").BaseNodeInstance<"a">;
476
476
  /**
477
477
  * Represents a navigation element.
478
478
  * @param props Optional properties for the nav element.
479
479
  * @returns A nav element node.
480
480
  */
481
- export declare const Nav: (props?: NodeProps<"nav">) => import("./node.type.js").BaseNodeInstance<"nav">;
481
+ export declare const Nav: (props?: NodeProps<"nav">) => import("./node.type.ts").BaseNodeInstance<"nav">;
482
482
  /**
483
483
  * Represents a header element.
484
484
  * @param props Optional properties for the header element.
485
485
  * @returns A header element node.
486
486
  */
487
- export declare const Header: (props?: NodeProps<"header">) => import("./node.type.js").BaseNodeInstance<"header">;
487
+ export declare const Header: (props?: NodeProps<"header">) => import("./node.type.ts").BaseNodeInstance<"header">;
488
488
  /**
489
489
  * Represents a footer element.
490
490
  * @param props Optional properties for the footer element.
491
491
  * @returns A footer element node.
492
492
  */
493
- export declare const Footer: (props?: NodeProps<"footer">) => import("./node.type.js").BaseNodeInstance<"footer">;
493
+ export declare const Footer: (props?: NodeProps<"footer">) => import("./node.type.ts").BaseNodeInstance<"footer">;
494
494
  /**
495
495
  * Represents an aside element.
496
496
  * @param props Optional properties for the aside element.
497
497
  * @returns An aside element node.
498
498
  */
499
- export declare const Aside: (props?: NodeProps<"aside">) => import("./node.type.js").BaseNodeInstance<"aside">;
499
+ export declare const Aside: (props?: NodeProps<"aside">) => import("./node.type.ts").BaseNodeInstance<"aside">;
500
500
  /**
501
501
  * Represents a section element.
502
502
  * @param props Optional properties for the section element.
503
503
  * @returns A section element node.
504
504
  */
505
- export declare const Section: (props?: NodeProps<"section">) => import("./node.type.js").BaseNodeInstance<"section">;
505
+ export declare const Section: (props?: NodeProps<"section">) => import("./node.type.ts").BaseNodeInstance<"section">;
506
506
  /**
507
507
  * Represents an article element.
508
508
  * @param props Optional properties for the article element.
509
509
  * @returns An article element node.
510
510
  */
511
- export declare const Article: (props?: NodeProps<"article">) => import("./node.type.js").BaseNodeInstance<"article">;
511
+ export declare const Article: (props?: NodeProps<"article">) => import("./node.type.ts").BaseNodeInstance<"article">;
512
512
  /**
513
513
  * Represents a figure element.
514
514
  * @param props Optional properties for the figure element.
515
515
  * @returns A figure element node.
516
516
  */
517
- export declare const Figure: (props?: NodeProps<"figure">) => import("./node.type.js").BaseNodeInstance<"figure">;
517
+ export declare const Figure: (props?: NodeProps<"figure">) => import("./node.type.ts").BaseNodeInstance<"figure">;
518
518
  /**
519
519
  * Represents a figure caption element.
520
520
  * @param props Optional properties for the figcaption element.
521
521
  * @returns A figcaption element node.
522
522
  */
523
- export declare const Figcaption: (props?: NodeProps<"figcaption">) => import("./node.type.js").BaseNodeInstance<"figcaption">;
523
+ export declare const Figcaption: (props?: NodeProps<"figcaption">) => import("./node.type.ts").BaseNodeInstance<"figcaption">;
524
524
  /**
525
525
  * Represents a blockquote element.
526
526
  * @param props Optional properties for the blockquote element.
527
527
  * @returns A blockquote element node.
528
528
  */
529
- export declare const Blockquote: (props?: NodeProps<"blockquote">) => import("./node.type.js").BaseNodeInstance<"blockquote">;
529
+ export declare const Blockquote: (props?: NodeProps<"blockquote">) => import("./node.type.ts").BaseNodeInstance<"blockquote">;
530
530
  /**
531
531
  * Represents an address element.
532
532
  * @param props Optional properties for the address element.
533
533
  * @returns An address element node.
534
534
  */
535
- export declare const Address: (props?: NodeProps<"address">) => import("./node.type.js").BaseNodeInstance<"address">;
535
+ export declare const Address: (props?: NodeProps<"address">) => import("./node.type.ts").BaseNodeInstance<"address">;
536
536
  /**
537
537
  * Represents a dialog element.
538
538
  * @param props Optional properties for the dialog element.
539
539
  * @returns A dialog element node.
540
540
  */
541
- export declare const Dialog: (props?: NodeProps<"dialog">) => import("./node.type.js").BaseNodeInstance<"dialog">;
541
+ export declare const Dialog: (props?: NodeProps<"dialog">) => import("./node.type.ts").BaseNodeInstance<"dialog">;
542
542
  /**
543
543
  * Represents a details element.
544
544
  * @param props Optional properties for the details element.
545
545
  * @returns A details element node.
546
546
  */
547
- export declare const Details: (props?: NodeProps<"details">) => import("./node.type.js").BaseNodeInstance<"details">;
547
+ export declare const Details: (props?: NodeProps<"details">) => import("./node.type.ts").BaseNodeInstance<"details">;
548
548
  /**
549
549
  * Represents a summary element.
550
550
  * @param props Optional properties for the summary element.
551
551
  * @returns A summary element node.
552
552
  */
553
- export declare const Summary: (props?: NodeProps<"summary">) => import("./node.type.js").BaseNodeInstance<"summary">;
553
+ export declare const Summary: (props?: NodeProps<"summary">) => import("./node.type.ts").BaseNodeInstance<"summary">;
554
554
  /**
555
555
  * Represents a head element.
556
556
  * @param props Optional properties for the head element.
557
557
  * @returns A head element node.
558
558
  */
559
- export declare const Head: (props?: NodeProps<"head">) => import("./node.type.js").BaseNodeInstance<"head">;
559
+ export declare const Head: (props?: NodeProps<"head">) => import("./node.type.ts").BaseNodeInstance<"head">;
560
560
  /**
561
561
  * Represents a meta element.
562
562
  * @param props Optional properties for the meta element.
563
563
  * @returns A meta element node.
564
564
  */
565
- export declare const Meta: (props?: NodeProps<"meta">) => import("./node.type.js").BaseNodeInstance<"meta">;
565
+ export declare const Meta: (props?: NodeProps<"meta">) => import("./node.type.ts").BaseNodeInstance<"meta">;
566
566
  /**
567
567
  * Represents a link element.
568
568
  * @param props Optional properties for the link element.
569
569
  * @returns A link element node.
570
570
  */
571
- export declare const Link: (props?: NodeProps<"link">) => import("./node.type.js").BaseNodeInstance<"link">;
571
+ export declare const Link: (props?: NodeProps<"link">) => import("./node.type.ts").BaseNodeInstance<"link">;
572
572
  /**
573
573
  * Represents a style element.
574
574
  * @param props Optional properties for the style element.
575
575
  * @returns A style element node.
576
576
  */
577
- export declare const Style: (props?: NodeProps<"style">) => import("./node.type.js").BaseNodeInstance<"style">;
577
+ export declare const Style: (props?: NodeProps<"style">) => import("./node.type.ts").BaseNodeInstance<"style">;
578
578
  /**
579
579
  * Represents a script element.
580
580
  * @param props Optional properties for the script element.
581
581
  * @returns A script element node.
582
582
  */
583
- export declare const Script: (props?: NodeProps<"script">) => import("./node.type.js").BaseNodeInstance<"script">;
583
+ export declare const Script: (props?: NodeProps<"script">) => import("./node.type.ts").BaseNodeInstance<"script">;
584
584
  /**
585
585
  * Represents a title element.
586
586
  * @param props Optional properties for the title element.
587
587
  * @returns A title element node.
588
588
  */
589
- export declare const Title: (props?: NodeProps<"title">) => import("./node.type.js").BaseNodeInstance<"title">;
589
+ export declare const Title: (props?: NodeProps<"title">) => import("./node.type.ts").BaseNodeInstance<"title">;
590
590
  /**
591
591
  * Represents a base element.
592
592
  * @param props Optional properties for the base element.
593
593
  * @returns A base element node.
594
594
  */
595
- export declare const Base: (props?: NodeProps<"base">) => import("./node.type.js").BaseNodeInstance<"base">;
595
+ export declare const Base: (props?: NodeProps<"base">) => import("./node.type.ts").BaseNodeInstance<"base">;
596
596
  //# sourceMappingURL=html.node.d.ts.map
package/dist/html.node.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import{Node}from"./core.node.js";// Basic HTML elements
1
+ "use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import{Node}from"./core.node.ts";// Basic HTML elements
2
2
  /**
3
3
  * Represents the root HTML element.
4
4
  * @param props Optional properties for the HTML element.
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, CSSProperties, ElementType } from 'react';
2
- import type { NodeElement, OriginalNodeProps } from './node.type.js';
2
+ import type { NodeElement, OriginalNodeProps } from './node.type.ts';
3
3
  /**
4
4
  * Returns a string describing the type of a given React component or element.
5
5
  *
@@ -1,4 +1,4 @@
1
- "use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}import cssPropertiesJson from"./json/css-properties.json"with{type:"json"};import{isContextConsumer,isContextProvider,isElement,isForwardRef,isFragment,isLazy,isMemo,isPortal,isProfiler,isReactClassComponent,isStrictMode,isSuspense,isSuspenseList}from"./react-is.helper.js";/**
1
+ "use strict";var _process$versions,_import$meta$resolve,_import$meta$resolve2,_import$meta;function _slicedToArray(a,b){return _arrayWithHoles(a)||_iterableToArrayLimit(a,b)||_unsupportedIterableToArray(a,b)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(b,c){if(b){if("string"==typeof b)return _arrayLikeToArray(b,c);var a={}.toString.call(b).slice(8,-1);return"Object"===a&&b.constructor&&(a=b.constructor.name),"Map"===a||"Set"===a?Array.from(b):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(b,c):void 0}}function _arrayLikeToArray(b,c){(null==c||c>b.length)&&(c=b.length);for(var d=0,f=Array(c);d<c;d++)f[d]=b[d];return f}function _iterableToArrayLimit(b,c){var d=null==b?null:"undefined"!=typeof Symbol&&b[Symbol.iterator]||b["@@iterator"];if(null!=d){var g,h,j,k,l=[],a=!0,m=!1;try{if(j=(d=d.call(b)).next,0===c){if(Object(d)!==d)return;a=!1}else for(;!(a=(g=j.call(d)).done)&&(l.push(g.value),l.length!==c);a=!0);}catch(a){m=!0,h=a}finally{try{if(!a&&null!=d["return"]&&(k=d["return"](),Object(k)!==k))return}finally{if(m)throw h}}return l}}function _arrayWithHoles(a){if(Array.isArray(a))return a}function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}var cssPropertiesJson=await("object"===("undefined"==typeof process?"undefined":_typeof(process))&&null!==(_process$versions=process.versions)&&void 0!==_process$versions&&_process$versions.node?Promise.all([import("fs"),import("module")]).then(function(a){var b=_slicedToArray(a,2),c=b[0],d=b[1];return new Promise(function(b){return function(a,f){return c.readFile(b,function(b,c){return b?f(b):a(c)})}}(d.createRequire(import.meta.url).resolve("./json/css-properties.json")))}).then(JSON.parse):fetch(null!==(_import$meta$resolve=null===(_import$meta$resolve2=(_import$meta=import.meta).resolve)||void 0===_import$meta$resolve2?void 0:_import$meta$resolve2.call(_import$meta,"./json/css-properties.json"))&&void 0!==_import$meta$resolve?_import$meta$resolve:new URL("./json/css-properties.json",import.meta.url)).then(function(a){return a.json()}));import{isContextConsumer,isContextProvider,isElement,isForwardRef,isFragment,isLazy,isMemo,isPortal,isProfiler,isReactClassComponent,isStrictMode,isSuspense,isSuspenseList}from"./react-is.helper.ts";/**
2
2
  * The list of CSS property names imported from the JSON file.
3
3
  * Used for validation and filtering of CSS-related props.
4
4
  */var cssProperties=cssPropertiesJson.properties;/**
@@ -1,7 +1,10 @@
1
1
  ```ts
2
2
  // Component wraps a React Server Component into a Client Component
3
3
  // Think of it like a factory that transforms JSX-like node definitions into actual React components
4
- import { Component, Column, Row, Div, Img, P } from '@meonode/ui'
4
+ import { Component } from '@src/lib/node/core.node'
5
+
6
+ // These are layout/HTML helpers that render to real DOM elements (e.g., <div>, <img>, <p>)
7
+ import { Column, Row, Div, Img, P } from '@src/lib/node/html.node'
5
8
 
6
9
  const theme = { background: { primary: 'red', secondary: 'blue' } }
7
10
 
@@ -1,7 +1,10 @@
1
1
  ```ts
2
2
 
3
3
  // Wraps a hook-capable component into a BaseNode-compatible Client Component
4
- import { Component, Column, Row, Div, P } from '@meonode/ui'
4
+ import { Component } from '@src/lib/node/core.node'
5
+
6
+ // Layout primitives (synthetic components for JSX-less DOM generation)
7
+ import { Column, Row, Div, P } from '@src/lib/node/html.node'
5
8
  import { useState, useEffect } from 'react'
6
9
 
7
10
  // Shared theme object passed into components. This may be written in a different file and imported.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meonode/ui",
3
3
  "description": "`@meonode/ui` is a lightweight yet powerful utility for the programmatic creation and manipulation of React elements. It offers an enhanced, structured way to define components, manage props (separating CSS from DOM attributes), handle theming, and compose children *before* they are rendered by React. This provides greater control and flexibility, especially for dynamic UIs and design systems.",
4
- "version": "0.0.1-alpha.13",
4
+ "version": "0.0.1-alpha.2",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",
@@ -19,17 +19,14 @@
19
19
  "README.md"
20
20
  ],
21
21
  "scripts": {
22
- "watch:build": "nodemon --watch src --ext ts,js,json --exec \"yarn build\"",
23
22
  "lint": "eslint --fix",
24
23
  "build": "rm -rf ./dist && babel src --out-dir dist --extensions \".ts,.js\" && tsc && tsc-alias && copyfiles -u 1 \"src/**/*.json\" dist",
25
- "publish:pre": "./prepublish.sh && yarn version -i prerelease && yarn npm publish --tag next",
26
- "publish:patch": "./prepublish.sh && yarn version -i patch && yarn npm publish --tag latest",
27
- "publish:minor": "./prepublish.sh && yarn version -i minor && yarn npm publish --tag latest",
28
- "publish:major": "./prepublish.sh && yarn version -i major && yarn npm publish --tag latest"
24
+ "publish": "npm publish"
29
25
  },
30
26
  "devDependencies": {
31
27
  "@babel/cli": "^7.0.0",
32
28
  "@babel/core": "^7.0.0",
29
+ "@babel/plugin-transform-json-modules": "^7.27.1",
33
30
  "@babel/preset-env": "^7.0.0",
34
31
  "@babel/preset-typescript": "^7.27.1",
35
32
  "@eslint/js": "^9.27.0",
@@ -44,7 +41,6 @@
44
41
  "eslint-plugin-jsdoc": "^50.6.17",
45
42
  "eslint-plugin-prettier": "^5.4.0",
46
43
  "eslint-plugin-unused-imports": "^4.1.4",
47
- "nodemon": "^3.1.10",
48
44
  "prettier": "^3.5.3",
49
45
  "tsc-alias": "^1.8.16",
50
46
  "typescript": "^5.8.3",
@@ -54,17 +50,5 @@
54
50
  "peerDependencies": {
55
51
  "react": "*"
56
52
  },
57
- "repository": {
58
- "type": "git",
59
- "url": "git+https://github.com/l7aromeo/meonode-ui.git"
60
- },
61
- "homepage": "https://github.com/l7aromeo/meonode-ui#readme",
62
- "bugs": {
63
- "url": "https://github.com/l7aromeo/meonode-ui/issues"
64
- },
65
- "publishConfig": {
66
- "access": "public"
67
- },
68
- "license": "MIT",
69
- "stableVersion": "0.0.1-alpha.12"
70
- }
53
+ "license": "MIT"
54
+ }