@meonode/ui 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,408 @@
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
+ /**
3
+ * Represents the root HTML element.
4
+ * @param props Optional properties for the HTML element.
5
+ * @returns An HTML element node.
6
+ */export var Html=function Html(a){return Node("html",a)};/**
7
+ * Represents the body element of an HTML document.
8
+ * @param props Optional properties for the body element.
9
+ * @returns A body element node.
10
+ */export var Body=function Body(a){return Node("body",a)};/**
11
+ * Represents a div element.
12
+ * @param props Optional properties for the div element.
13
+ * @returns A div element node.
14
+ */export var Div=function Div(a){return Node("div",a)};/**
15
+ * Represents a span element.
16
+ * @param props Optional properties for the span element.
17
+ * @returns A span element node.
18
+ */export var Span=function Span(a){return Node("span",a)};/**
19
+ * Represents a paragraph element.
20
+ * @param props Optional properties for the paragraph element.
21
+ * @returns A paragraph element node.
22
+ */export var P=function P(a){return Node("p",a)};/**
23
+ * Represents a preformatted text element.
24
+ * @param props Optional properties for the pre element.
25
+ * @returns A pre element node.
26
+ */export var Pre=function Pre(a){return Node("pre",a)};/**
27
+ * Represents a code element for displaying code snippets.
28
+ * @param props Optional properties for the code element.
29
+ * @returns A code element node.
30
+ */export var Code=function Code(a){return Node("code",a)};// Layout components
31
+ /**
32
+ * Represents a column layout using flexbox.
33
+ * @param props Optional properties for the column layout.
34
+ * @returns A div element node with flexbox column layout.
35
+ */export var Column=function Column(a){return Div(_objectSpread({display:"flex",flexDirection:"column"},a))};/**
36
+ * Represents a row layout using flexbox.
37
+ * @param props Optional properties for the row layout.
38
+ * @returns A div element node with flexbox row layout.
39
+ */export var Row=function Row(a){return Div(_objectSpread({display:"flex",flexDirection:"row"},a))};/**
40
+ * Represents a grid layout.
41
+ * @param props Optional properties for the grid layout.
42
+ * @returns A div element node with grid layout.
43
+ */export var Grid=function Grid(a){return Div(_objectSpread({display:"grid"},a))};/**
44
+ * Represents the main content of a document.
45
+ * @param props Optional properties for the main element.
46
+ * @returns A main element node.
47
+ */export var Main=function Main(a){return Node("main",a)};/**
48
+ * Represents a centered layout using flexbox.
49
+ * @param props Optional properties for the centered layout.
50
+ * @returns A div element node with centered flexbox layout.
51
+ */export var Center=function Center(a){return Div(_objectSpread({display:"flex",alignItems:"center",justifyContent:"center"},a))};/**
52
+ * Represents a relatively positioned element.
53
+ * @param props Optional properties for the relatively positioned element.
54
+ * @returns A div element node with relative positioning.
55
+ */export var Relative=function Relative(a){return Div(_objectSpread({position:"relative"},a))};/**
56
+ * Represents an absolutely positioned element.
57
+ * @param props Optional properties for the absolutely positioned element.
58
+ * @returns A div element node with absolute positioning.
59
+ */export var Absolute=function Absolute(a){return Div(_objectSpread({position:"absolute"},a))};/**
60
+ * Represents a sticky positioned element.
61
+ * @param props Optional properties for the sticky positioned element.
62
+ * @returns A div element node with sticky positioning.
63
+ */export var Sticky=function Sticky(a){return Div(_objectSpread({position:"sticky"},a))};/**
64
+ * Represents a statically positioned element.
65
+ * @param props Optional properties for the statically positioned element.
66
+ * @returns A div element node with static positioning.
67
+ */export var Static=function Static(a){return Div(_objectSpread({position:"static"},a))};// Typography
68
+ /**
69
+ * Represents a level 1 heading.
70
+ * @param props Optional properties for the h1 element.
71
+ * @returns An h1 element node.
72
+ */export var H1=function H1(a){return Node("h1",a)};/**
73
+ * Represents a level 2 heading.
74
+ * @param props Optional properties for the h2 element.
75
+ * @returns An h2 element node.
76
+ */export var H2=function H2(a){return Node("h2",a)};/**
77
+ * Represents a level 3 heading.
78
+ * @param props Optional properties for the h3 element.
79
+ * @returns An h3 element node.
80
+ */export var H3=function H3(a){return Node("h3",a)};/**
81
+ * Represents a level 4 heading.
82
+ * @param props Optional properties for the h4 element.
83
+ * @returns An h4 element node.
84
+ */export var H4=function H4(a){return Node("h4",a)};/**
85
+ * Represents a level 5 heading.
86
+ * @param props Optional properties for the h5 element.
87
+ * @returns An h5 element node.
88
+ */export var H5=function H5(a){return Node("h5",a)};/**
89
+ * Represents a level 6 heading.
90
+ * @param props Optional properties for the h6 element.
91
+ * @returns An h6 element node.
92
+ */export var H6=function H6(a){return Node("h6",a)};/**
93
+ * Represents a strong emphasis element.
94
+ * @param props Optional properties for the strong element.
95
+ * @returns A strong element node.
96
+ */export var Strong=function Strong(a){return Node("strong",a)};/**
97
+ * Represents an emphasized text element.
98
+ * @param props Optional properties for the em element.
99
+ * @returns An em element node.
100
+ */export var Em=function Em(a){return Node("em",a)};/**
101
+ * Represents a small text element.
102
+ * @param props Optional properties for the small element.
103
+ * @returns A small element node.
104
+ */export var Small=function Small(a){return Node("small",a)};/**
105
+ * Represents a marked text element.
106
+ * @param props Optional properties for the mark element.
107
+ * @returns A mark element node.
108
+ */export var Mark=function Mark(a){return Node("mark",a)};// Lists
109
+ /**
110
+ * Represents an ordered list.
111
+ * @param props Optional properties for the ol element.
112
+ * @returns An ol element node.
113
+ */export var Ol=function Ol(a){return Node("ol",a)};/**
114
+ * Represents an unordered list.
115
+ * @param props Optional properties for the ul element.
116
+ * @returns A ul element node.
117
+ */export var Ul=function Ul(a){return Node("ul",a)};/**
118
+ * Represents a list item.
119
+ * @param props Optional properties for the li element.
120
+ * @returns An li element node.
121
+ */export var Li=function Li(a){return Node("li",a)};/**
122
+ * Represents a description list.
123
+ * @param props Optional properties for the dl element.
124
+ * @returns A dl element node.
125
+ */export var Dl=function Dl(a){return Node("dl",a)};/**
126
+ * Represents a term in a description list.
127
+ * @param props Optional properties for the dt element.
128
+ * @returns A dt element node.
129
+ */export var Dt=function Dt(a){return Node("dt",a)};/**
130
+ * Represents a description in a description list.
131
+ * @param props Optional properties for the dd element.
132
+ * @returns A dd element node.
133
+ */export var Dd=function Dd(a){return Node("dd",a)};// Forms and inputs
134
+ /**
135
+ * Represents an HTML form.
136
+ * @param props Optional properties for the form element.
137
+ * @returns A form element node.
138
+ */export var Form=function Form(a){return Node("form",a)};/**
139
+ * Represents a label for an input element.
140
+ * @param props Optional properties for the label element.
141
+ * @returns A label element node.
142
+ */export var Label=function Label(a){return Node("label",a)};/**
143
+ * Represents an input element.
144
+ * @param props Optional properties for the input element.
145
+ * @returns An input element node.
146
+ */export var Input=function Input(a){return Node("input",a)};/**
147
+ * Represents a button element.
148
+ * @param props Optional properties for the button element.
149
+ * @returns A button element node.
150
+ */export var Button=function Button(a){return Node("button",a)};/**
151
+ * Represents a textarea element for multiline text input.
152
+ * @param props Optional properties for the textarea element.
153
+ * @returns A textarea element node.
154
+ */export var Textarea=function Textarea(a){return Node("textarea",a)};/**
155
+ * Represents a select dropdown element.
156
+ * @param props Optional properties for the select element.
157
+ * @returns A select element node.
158
+ */export var Select=function Select(a){return Node("select",a)};/**
159
+ * Represents an option within a select element.
160
+ * @param props Optional properties for the option element.
161
+ * @returns An option element node.
162
+ */export var Option=function Option(a){return Node("option",a)};/**
163
+ * Represents a fieldset element for grouping form elements.
164
+ * @param props Optional properties for the fieldset element.
165
+ * @returns A fieldset element node.
166
+ */export var Fieldset=function Fieldset(a){return Node("fieldset",a)};/**
167
+ * Represents a legend for a fieldset.
168
+ * @param props Optional properties for the legend element.
169
+ * @returns A legend element node.
170
+ */export var Legend=function Legend(a){return Node("legend",a)};/**
171
+ * Represents an option group within a select element.
172
+ * @param props Optional properties for the optgroup element.
173
+ * @returns An optgroup element node.
174
+ */export var Optgroup=function Optgroup(a){return Node("optgroup",a)};// Tables
175
+ /**
176
+ * Represents a table element.
177
+ * @param props Optional properties for the table element.
178
+ * @returns A table element node.
179
+ */export var Table=function Table(a){return Node("table",a)};/**
180
+ * Represents a table header section.
181
+ * @param props Optional properties for the thead element.
182
+ * @returns A thead element node.
183
+ */export var Thead=function Thead(a){return Node("thead",a)};/**
184
+ * Represents a table body section.
185
+ * @param props Optional properties for the tbody element.
186
+ * @returns A tbody element node.
187
+ */export var Tbody=function Tbody(a){return Node("tbody",a)};/**
188
+ * Represents a table footer section.
189
+ * @param props Optional properties for the tfoot element.
190
+ * @returns A tfoot element node.
191
+ */export var Tfoot=function Tfoot(a){return Node("tfoot",a)};/**
192
+ * Represents a table row.
193
+ * @param props Optional properties for the tr element.
194
+ * @returns A tr element node.
195
+ */export var Tr=function Tr(a){return Node("tr",a)};/**
196
+ * Represents a table header cell.
197
+ * @param props Optional properties for the th element.
198
+ * @returns A th element node.
199
+ */export var Th=function Th(a){return Node("th",a)};/**
200
+ * Represents a table data cell.
201
+ * @param props Optional properties for the td element.
202
+ * @returns A td element node.
203
+ */export var Td=function Td(a){return Node("td",a)};/**
204
+ * Represents a table caption.
205
+ * @param props Optional properties for the caption element.
206
+ * @returns A caption element node.
207
+ */export var Caption=function Caption(a){return Node("caption",a)};/**
208
+ * Represents a table column group.
209
+ * @param props Optional properties for the colgroup element.
210
+ * @returns A colgroup element node.
211
+ */export var Colgroup=function Colgroup(a){return Node("colgroup",a)};/**
212
+ * Represents a table column.
213
+ * @param props Optional properties for the col element.
214
+ * @returns A col element node.
215
+ */export var Col=function Col(a){return Node("col",a)};// Media elements
216
+ /**
217
+ * Represents an image element (alias for Img).
218
+ * @param props Optional properties for the img element.
219
+ * @returns An img element node.
220
+ */export var Image=function Image(a){return Node("img",a)};/**
221
+ * Represents an image element.
222
+ * @param props Optional properties for the img element.
223
+ * @returns An img element node.
224
+ */export var Img=function Img(a){return Node("img",a)};/**
225
+ * Represents a video element.
226
+ * @param props Optional properties for the video element.
227
+ * @returns A video element node.
228
+ */export var Video=function Video(a){return Node("video",a)};/**
229
+ * Represents an audio element.
230
+ * @param props Optional properties for the audio element.
231
+ * @returns An audio element node.
232
+ */export var Audio=function Audio(a){return Node("audio",a)};/**
233
+ * Represents a picture element.
234
+ * @param props Optional properties for the picture element.
235
+ * @returns A picture element node.
236
+ */export var Picture=function Picture(a){return Node("picture",a)};/**
237
+ * Represents a source element.
238
+ * @param props Optional properties for the source element.
239
+ * @returns A source element node.
240
+ */export var Source=function Source(a){return Node("source",a)};/**
241
+ * Represents a text track element.
242
+ * @param props Optional properties for the track element.
243
+ * @returns A track element node.
244
+ */export var Track=function Track(a){return Node("track",a)};/**
245
+ * Represents a canvas element.
246
+ * @param props Optional properties for the canvas element.
247
+ * @returns A canvas element node.
248
+ */export var Canvas=function Canvas(a){return Node("canvas",a)};/**
249
+ * Represents an iframe element.
250
+ * @param props Optional properties for the iframe element.
251
+ * @returns An iframe element node.
252
+ */export var Iframe=function Iframe(a){return Node("iframe",a)};// SVG elements
253
+ /**
254
+ * Represents an SVG container element.
255
+ * @param props Optional properties for the svg element.
256
+ * @returns An svg element node.
257
+ */export var Svg=function Svg(a){return Node("svg",a)};/**
258
+ * Represents an SVG path element.
259
+ * @param props Optional properties for the path element.
260
+ * @returns A path element node.
261
+ */export var SvgPath=function SvgPath(a){return Node("path",a)};/**
262
+ * Represents an SVG circle element.
263
+ * @param props Optional properties for the circle element.
264
+ * @returns A circle element node.
265
+ */export var SvgCircle=function SvgCircle(a){return Node("circle",a)};/**
266
+ * Represents an SVG ellipse element.
267
+ * @param props Optional properties for the ellipse element.
268
+ * @returns An ellipse element node.
269
+ */export var SvgEllipse=function SvgEllipse(a){return Node("ellipse",a)};/**
270
+ * Represents an SVG line element.
271
+ * @param props Optional properties for the line element.
272
+ * @returns A line element node.
273
+ */export var SvgLine=function SvgLine(a){return Node("line",a)};/**
274
+ * Represents an SVG polyline element.
275
+ * @param props Optional properties for the polyline element.
276
+ * @returns A polyline element node.
277
+ */export var SvgPolyline=function SvgPolyline(a){return Node("polyline",a)};/**
278
+ * Represents an SVG polygon element.
279
+ * @param props Optional properties for the polygon element.
280
+ * @returns A polygon element node.
281
+ */export var SvgPolygon=function SvgPolygon(a){return Node("polygon",a)};/**
282
+ * Represents an SVG rectangle element.
283
+ * @param props Optional properties for the rect element.
284
+ * @returns A rect element node.
285
+ */export var SvgRect=function SvgRect(a){return Node("rect",a)};/**
286
+ * Represents an SVG use element.
287
+ * @param props Optional properties for the use element.
288
+ * @returns A use element node.
289
+ */export var SvgUse=function SvgUse(a){return Node("use",a)};/**
290
+ * Represents an SVG definitions element.
291
+ * @param props Optional properties for the defs element.
292
+ * @returns A defs element node.
293
+ */export var SvgDefs=function SvgDefs(a){return Node("defs",a)};/**
294
+ * Represents an SVG linear gradient element.
295
+ * @param props Optional properties for the linearGradient element.
296
+ * @returns A linearGradient element node.
297
+ */export var SvgLinearGradient=function SvgLinearGradient(a){return Node("linearGradient",a)};/**
298
+ * Represents an SVG radial gradient element.
299
+ * @param props Optional properties for the radialGradient element.
300
+ * @returns A radialGradient element node.
301
+ */export var SvgRadialGradient=function SvgRadialGradient(a){return Node("radialGradient",a)};/**
302
+ * Represents an SVG gradient stop element.
303
+ * @param props Optional properties for the stop element.
304
+ * @returns A stop element node.
305
+ */export var SvgStop=function SvgStop(a){return Node("stop",a)};/**
306
+ * Represents an SVG symbol element.
307
+ * @param props Optional properties for the symbol element.
308
+ * @returns A symbol element node.
309
+ */export var SvgSymbol=function SvgSymbol(a){return Node("symbol",a)};/**
310
+ * Represents an SVG group element.
311
+ * @param props Optional properties for the g element.
312
+ * @returns A g element node.
313
+ */export var SvgG=function SvgG(a){return Node("g",a)};/**
314
+ * Represents an SVG text element.
315
+ * @param props Optional properties for the text element.
316
+ * @returns A text element node.
317
+ */export var SvgText=function SvgText(a){return Node("text",a)};/**
318
+ * Represents an SVG text span element.
319
+ * @param props Optional properties for the tspan element.
320
+ * @returns A tspan element node.
321
+ */export var SvgTspan=function SvgTspan(a){return Node("tspan",a)};// Navigation and links
322
+ /**
323
+ * Represents an anchor element.
324
+ * @param props Optional properties for the a element.
325
+ * @returns An a element node.
326
+ */export var A=function A(a){return Node("a",a)};/**
327
+ * Represents a navigation element.
328
+ * @param props Optional properties for the nav element.
329
+ * @returns A nav element node.
330
+ */export var Nav=function Nav(a){return Node("nav",a)};// Document structure
331
+ /**
332
+ * Represents a header element.
333
+ * @param props Optional properties for the header element.
334
+ * @returns A header element node.
335
+ */export var Header=function Header(a){return Node("header",a)};/**
336
+ * Represents a footer element.
337
+ * @param props Optional properties for the footer element.
338
+ * @returns A footer element node.
339
+ */export var Footer=function Footer(a){return Node("footer",a)};/**
340
+ * Represents an aside element.
341
+ * @param props Optional properties for the aside element.
342
+ * @returns An aside element node.
343
+ */export var Aside=function Aside(a){return Node("aside",a)};/**
344
+ * Represents a section element.
345
+ * @param props Optional properties for the section element.
346
+ * @returns A section element node.
347
+ */export var Section=function Section(a){return Node("section",a)};/**
348
+ * Represents an article element.
349
+ * @param props Optional properties for the article element.
350
+ * @returns An article element node.
351
+ */export var Article=function Article(a){return Node("article",a)};/**
352
+ * Represents a figure element.
353
+ * @param props Optional properties for the figure element.
354
+ * @returns A figure element node.
355
+ */export var Figure=function Figure(a){return Node("figure",a)};/**
356
+ * Represents a figure caption element.
357
+ * @param props Optional properties for the figcaption element.
358
+ * @returns A figcaption element node.
359
+ */export var Figcaption=function Figcaption(a){return Node("figcaption",a)};/**
360
+ * Represents a blockquote element.
361
+ * @param props Optional properties for the blockquote element.
362
+ * @returns A blockquote element node.
363
+ */export var Blockquote=function Blockquote(a){return Node("blockquote",a)};/**
364
+ * Represents an address element.
365
+ * @param props Optional properties for the address element.
366
+ * @returns An address element node.
367
+ */export var Address=function Address(a){return Node("address",a)};/**
368
+ * Represents a dialog element.
369
+ * @param props Optional properties for the dialog element.
370
+ * @returns A dialog element node.
371
+ */export var Dialog=function Dialog(a){return Node("dialog",a)};/**
372
+ * Represents a details element.
373
+ * @param props Optional properties for the details element.
374
+ * @returns A details element node.
375
+ */export var Details=function Details(a){return Node("details",a)};/**
376
+ * Represents a summary element.
377
+ * @param props Optional properties for the summary element.
378
+ * @returns A summary element node.
379
+ */export var Summary=function Summary(a){return Node("summary",a)};// Document head elements
380
+ /**
381
+ * Represents a head element.
382
+ * @param props Optional properties for the head element.
383
+ * @returns A head element node.
384
+ */export var Head=function Head(a){return Node("head",a)};/**
385
+ * Represents a meta element.
386
+ * @param props Optional properties for the meta element.
387
+ * @returns A meta element node.
388
+ */export var Meta=function Meta(a){return Node("meta",a)};/**
389
+ * Represents a link element.
390
+ * @param props Optional properties for the link element.
391
+ * @returns A link element node.
392
+ */export var Link=function Link(a){return Node("link",a)};/**
393
+ * Represents a style element.
394
+ * @param props Optional properties for the style element.
395
+ * @returns A style element node.
396
+ */export var Style=function Style(a){return Node("style",a)};/**
397
+ * Represents a script element.
398
+ * @param props Optional properties for the script element.
399
+ * @returns A script element node.
400
+ */export var Script=function Script(a){return Node("script",a)};/**
401
+ * Represents a title element.
402
+ * @param props Optional properties for the title element.
403
+ * @returns A title element node.
404
+ */export var Title=function Title(a){return Node("title",a)};/**
405
+ * Represents a base element.
406
+ * @param props Optional properties for the base element.
407
+ * @returns A base element node.
408
+ */export var Base=function Base(a){return Node("base",a)};