@base-framework/atoms 1.0.21 → 1.0.23

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
@@ -124,6 +124,74 @@ Section([
124
124
  ])
125
125
  ```
126
126
 
127
+ ## Special Atoms
128
+ Special atoms are atoms that have been pre-configured with specific properties. These atoms are designed to simplify the creation of common components. This library has a few special atoms that can help create complex actions.
129
+
130
+ ### On Atom
131
+ The On atom allows a child to be added or removed based on a bindable data property. This atom makes the child not need to have am "onSet" property on a parent wrapper allowing for easier layouts with less code.
132
+
133
+ ```javascript
134
+
135
+ // The traditional way using a parent wrapper with an onSet property
136
+ Div({
137
+ class: "p-4 transition",
138
+ onState: ["loaded", (loaded) => (!loaded)
139
+ ? SkeletonPost()
140
+ : Post(post)
141
+ ]
142
+ })
143
+
144
+ // The new way using the On atom
145
+ Div({ class: "p-4 transition" }, [
146
+ On('loaded', (loaded) => (!loaded)
147
+ ? SkeletonPost()
148
+ : Post(post))
149
+ ])
150
+
151
+ // Or with a state
152
+ Div({ class: "p-4 transition" }, [
153
+ OnState('loaded', (loaded) => (!loaded)
154
+ ? SkeletonPost()
155
+ : Post(post))
156
+ ])
157
+
158
+ // Children can now be added dynamically without a wrapper
159
+ Div({ class: "p-4 transition" }, [
160
+ H1('Title'),
161
+
162
+ // this will add or remove this child based on the loaded state
163
+ On('loaded', (loaded) => (!loaded)
164
+ ? SkeletonPost()
165
+ : Post(post))
166
+ ])
167
+
168
+ ```
169
+
170
+ The On and OnState atoms support two overloads. The first overload is the data property to bind to and the second is the callback function that will be called when the data property changes.
171
+
172
+ ### On Atom Overloads
173
+ ```javascript
174
+
175
+ // This will watch to the component data, or context data, or component state in that order if the first two are not set in the component.
176
+ // data property, callback
177
+ On('loaded', (loaded) => (!loaded)
178
+ ? SkeletonPost()
179
+ : Post(post))
180
+
181
+ ```
182
+
183
+ The second overload allows for a custom data source to be use. This alllows for more flexibility with the layouts.
184
+
185
+ ```javascript
186
+
187
+ // watching on the component route
188
+ // data source, data property, callback
189
+ On(this.route, 'loaded', (loaded) => (!loaded)
190
+ ? SkeletonPost()
191
+ : Post(post))
192
+
193
+ ```
194
+
127
195
  ## Contributing
128
196
 
129
197
  Contributions to Base Framework are welcome. Follow these steps to contribute:
package/dist/atoms.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Atom as e}from"@base-framework/base";var r=(t,o)=>({...t,children:o}),p=t=>({...t,tag:"DOCTYPE"}),c=e((t,o)=>r({...t,tag:"html"},o)),g=e((t,o)=>r({...t,tag:"script"},o)),x=e((t,o)=>r({...t,tag:"style"},o)),i=e((t,o)=>r({...t,tag:"head"},o)),l=t=>({...t}),d=t=>({...t,tag:"meta"}),u=t=>({...t,tag:"link"}),b=e((t,o)=>r({...t,tag:"body"},o)),m=e((t,o)=>r(t,o)),h=e((t,o)=>r({...t,tag:"dialog"},o)),y=e((t,o)=>r({...t,tag:"span"},o)),S=e((t,o)=>r({...t,tag:"p"},o)),T=e((t,o)=>r({...t,tag:"a"},o)),a=e((t,o)=>r({...t,tag:"button"},o)),f=e((t,o)=>a({...t,type:"submit"},o)),D=e((t,o)=>r({...t,tag:"ul"},o)),H=e((t,o)=>r({...t,tag:"li"},o)),k=e(t=>r({...t,tag:"img"},null)),B=e(t=>r({...t,tag:"br"},null)),v=e(t=>r({...t,tag:"hr"},null)),A=e((t,o)=>r({...t,tag:"text"},o)),C=e((t,o)=>r({...t,tag:"h1"},o)),F=e((t,o)=>r({...t,tag:"h2"},o)),I=e((t,o)=>r({...t,tag:"h3"},o)),L=e((t,o)=>r({...t,tag:"h4"},o)),M=e((t,o)=>r({...t,tag:"h5"},o)),P=e((t,o)=>r({...t,tag:"h6"},o)),n=e(t=>r({...t,tag:"input"},null)),q=e((t,o)=>r({...t,tag:"label"},o)),O=e(t=>n({...t,type:"checkbox"})),R=e((t,o)=>r({...t,tag:"section"},o)),E=e((t,o)=>r({...t,tag:"article"},o)),U=e((t,o)=>r({...t,tag:"header"},o)),V=e((t,o)=>r({...t,tag:"footer"},o)),w=e((t,o)=>r({...t,tag:"nav"},o)),K=e((t,o)=>r({...t,tag:"aside"},o)),N=e((t,o)=>r({...t,tag:"figure"},o)),Q=e((t,o)=>r({...t,tag:"figcaption"},o)),W=e((t,o)=>r({...t,tag:"main"},o)),Y=e((t,o)=>r({...t,tag:"video"},o)),j=e((t,o)=>r({...t,tag:"audio"},o)),z=e((t,o)=>r({...t,tag:"table"},o)),G=e((t,o)=>r({...t,tag:"tr"},o)),J=e((t,o)=>r({...t,tag:"th"},o)),X=e((t,o)=>r({...t,tag:"td"},o)),Z=e((t,o)=>r({...t,tag:"thead"},o)),_=e((t,o)=>r({...t,tag:"tbody"},o)),$=e((t,o)=>r({...t,tag:"tfoot"},o)),tt=e((t,o)=>r({...t,tag:"form"},o)),ot=e((t,o)=>r({...t,tag:"select"},o)),et=e((t,o)=>r({...t,tag:"option"},o)),rt=e((t,o)=>r({...t,tag:"textarea"},o)),at=e((t,o)=>r({...t,tag:"canvas"},o)),nt=e((t,o)=>r({...t,tag:"progress"},o)),st=e((t,o)=>r({...t,tag:"blockquote"},o)),pt=e((t,o)=>r({...t,tag:"pre"},o)),ct=e((t,o)=>r({...t,tag:"code"},o)),gt=e((t,o)=>r({...t,tag:"ol"},o)),xt=e((t,o)=>r({...t,tag:"dl"},o)),it=e((t,o)=>r({...t,tag:"dt"},o)),lt=e((t,o)=>r({...t,tag:"dd"},o)),dt=e((t,o)=>r({...t,tag:"fieldset"},o)),ut=e((t,o)=>r({...t,tag:"legend"},o)),bt=e((t,o)=>r({...t,tag:"meter"},o)),mt=e((t,o)=>r({...t,tag:"iframe"},o)),ht=e((t,o)=>r({...t,tag:"details"},o)),yt=e((t,o)=>r({...t,tag:"summary"},o)),St=e((t,o)=>r({...t,tag:"em"},o)),Tt=e((t,o)=>r({...t,tag:"strong"},o)),ft=e((t,o)=>r({...t,tag:"small"},o)),Dt=e((t,o)=>r({...t,tag:"s"},o)),Ht=e((t,o)=>r({...t,tag:"cite"},o)),kt=e((t,o)=>r({...t,tag:"q"},o)),Bt=e((t,o)=>r({...t,tag:"dfn"},o)),vt=e((t,o)=>r({...t,tag:"abbr"},o)),At=e((t,o)=>r({...t,tag:"data"},o)),Ct=e((t,o)=>r({...t,tag:"time"},o)),Ft=e((t,o)=>r({...t,tag:"var"},o)),It=e((t,o)=>r({...t,tag:"samp"},o)),Lt=e((t,o)=>r({...t,tag:"kbd"},o)),Mt=e((t,o)=>r({...t,tag:"sub"},o)),Pt=e((t,o)=>r({...t,tag:"sup"},o)),qt=e((t,o)=>r({...t,tag:"i"},o)),Ot=e((t,o)=>r({...t,tag:"b"},o)),Rt=e((t,o)=>r({...t,tag:"u"},o)),Et=e((t,o)=>r({...t,tag:"mark"},o)),Ut=e((t,o)=>r({...t,tag:"ruby"},o)),Vt=e((t,o)=>r({...t,tag:"rt"},o)),wt=e((t,o)=>r({...t,tag:"rp"},o)),Kt=e((t,o)=>r({...t,tag:"bdi"},o)),Nt=e((t,o)=>r({...t,tag:"bdo"},o)),Qt=e(t=>r({...t,tag:"wbr"},null));export{T as A,vt as Abbr,E as Article,K as Aside,j as Audio,Ot as B,Kt as Bdi,Nt as Bdo,st as Blockquote,b as Body,B as Br,a as Button,at as Canvas,O as Checkbox,Ht as Cite,ct as Code,At as Data,lt as Dd,ht as Details,Bt as Dfn,h as Dialog,m as Div,xt as Dl,p as Doctype,it as Dt,St as Em,dt as Fieldset,Q as Figcaption,N as Figure,V as Footer,tt as Form,C as H1,F as H2,I as H3,L as H4,M as H5,P as H6,i as Head,U as Header,v as Hr,c as Html,qt as I,mt as Iframe,k as Img,n as Input,Lt as Kbd,q as Label,ut as Legend,H as Li,u as Link,W as Main,Et as Mark,d as Meta,bt as Meter,w as Nav,gt as Ol,et as Option,S as P,pt as Pre,nt as Progress,kt as Q,wt as Rp,Vt as Rt,Ut as Ruby,Dt as S,It as Samp,g as Script,R as Section,ot as Select,ft as Small,y as Span,Tt as Strong,x as Style,Mt as Sub,f as SubmitButton,yt as Summary,Pt as Sup,z as Table,_ as Tbody,X as Td,A as Text,rt as Textarea,$ as Tfoot,J as Th,Z as Thead,Ct as Time,l as Title,G as Tr,Rt as U,D as Ul,Ft as Var,Y as Video,Qt as Wbr};
1
+ import{Atom as e}from"@base-framework/base";import{Builder as x,dataBinder as i}from"@base-framework/base";var u=(t,o,s,r)=>!t||!r||r.isUnit!==!0||t.persist!==!0||!t.state?r:m(t,o,s,r),m=(t,o,s,r)=>{let a=o+":"+s,p=t.state,c=p.get(a);return typeof c<"u"&&(r=c),p.set(a,r),r},d=(t,o,s,r)=>{let a=null;return p=>{let c=t(p,o,r);if(!c)return;a&&x.removeNode(a),c=u(r,s,p,c);let g=x.build(c,null,r);a=g.children[0],o.parentNode.insertBefore(g,o.nextSibling)}},l=t=>({tag:"comment",textContent:"on placeholder",onCreated:t.onCreated}),f=t=>t.data?t.data:t.context&&t.context.data?t.context.data:t.state?t.state:null,b=(...t)=>{let o=[...t],s=o.pop();if(typeof s=="function")return l({onCreated:(r,a)=>{if(o.length<2){let c=f(a);o.unshift(c)}let p=d(s,r,o[1],a);i.watch(r,o[0],o[1],p)}})},h=(...t)=>{let o=[...t],s=o.pop();if(typeof s=="function")return l({onCreated:(r,a)=>{if(o.length<2){let c=a.state;o.unshift(c)}let p=d(s,r,o[1],a);i.watch(r,o[0],o[1],p)}})};var n=(t,o)=>({...t,children:o}),C=t=>({...t,tag:"DOCTYPE"}),D=e((t,o)=>n({...t,tag:"html"},o)),H=e((t,o)=>n({...t,tag:"script"},o)),O=e((t,o)=>n({...t,tag:"style"},o)),P=e((t,o)=>n({...t,tag:"head"},o)),A=t=>({...t}),R=t=>({...t,tag:"meta"}),F=t=>({...t,tag:"link"}),L=e((t,o)=>n({...t,tag:"body"},o)),I=e((t,o)=>n(t,o)),M=e((t,o)=>n({...t,tag:"dialog"},o)),q=e((t,o)=>n({...t,tag:"span"},o)),w=e((t,o)=>n({...t,tag:"p"},o)),E=e((t,o)=>n({...t,tag:"a"},o)),y=e((t,o)=>n({...t,tag:"button"},o)),N=e((t,o)=>y({...t,type:"submit"},o)),U=e((t,o)=>n({...t,tag:"ul"},o)),V=e((t,o)=>n({...t,tag:"li"},o)),K=e(t=>n({...t,tag:"img"},null)),Q=e(t=>n({...t,tag:"br"},null)),W=e(t=>n({...t,tag:"hr"},null)),Y=e((t,o)=>n({...t,tag:"text"},o)),j=e((t,o)=>n({...t,tag:"h1"},o)),z=e((t,o)=>n({...t,tag:"h2"},o)),G=e((t,o)=>n({...t,tag:"h3"},o)),J=e((t,o)=>n({...t,tag:"h4"},o)),X=e((t,o)=>n({...t,tag:"h5"},o)),Z=e((t,o)=>n({...t,tag:"h6"},o)),S=e(t=>n({...t,tag:"input"},null)),_=e((t,o)=>n({...t,tag:"label"},o)),$=e(t=>S({...t,type:"checkbox"})),tt=e((t,o)=>n({...t,tag:"section"},o)),ot=e((t,o)=>n({...t,tag:"article"},o)),et=e((t,o)=>n({...t,tag:"header"},o)),nt=e((t,o)=>n({...t,tag:"footer"},o)),rt=e((t,o)=>n({...t,tag:"nav"},o)),at=e((t,o)=>n({...t,tag:"aside"},o)),st=e((t,o)=>n({...t,tag:"figure"},o)),ct=e((t,o)=>n({...t,tag:"figcaption"},o)),pt=e((t,o)=>n({...t,tag:"main"},o)),gt=e((t,o)=>n({...t,tag:"video"},o)),xt=e((t,o)=>n({...t,tag:"audio"},o)),it=e((t,o)=>n({...t,tag:"table"},o)),dt=e((t,o)=>n({...t,tag:"tr"},o)),lt=e((t,o)=>n({...t,tag:"th"},o)),ut=e((t,o)=>n({...t,tag:"td"},o)),mt=e((t,o)=>n({...t,tag:"thead"},o)),ft=e((t,o)=>n({...t,tag:"tbody"},o)),bt=e((t,o)=>n({...t,tag:"tfoot"},o)),ht=e((t,o)=>n({...t,tag:"form"},o)),yt=e((t,o)=>n({...t,tag:"select"},o)),St=e((t,o)=>n({...t,tag:"option"},o)),kt=e((t,o)=>n({...t,tag:"textarea"},o)),Bt=e((t,o)=>n({...t,tag:"canvas"},o)),Tt=e((t,o)=>n({...t,tag:"progress"},o)),vt=e((t,o)=>n({...t,tag:"blockquote"},o)),Ct=e((t,o)=>n({...t,tag:"pre"},o)),Dt=e((t,o)=>n({...t,tag:"code"},o)),Ht=e((t,o)=>n({...t,tag:"ol"},o)),Ot=e((t,o)=>n({...t,tag:"dl"},o)),Pt=e((t,o)=>n({...t,tag:"dt"},o)),At=e((t,o)=>n({...t,tag:"dd"},o)),Rt=e((t,o)=>n({...t,tag:"fieldset"},o)),Ft=e((t,o)=>n({...t,tag:"legend"},o)),Lt=e((t,o)=>n({...t,tag:"meter"},o)),It=e((t,o)=>n({...t,tag:"iframe"},o)),Mt=e((t,o)=>n({...t,tag:"details"},o)),qt=e((t,o)=>n({...t,tag:"summary"},o)),wt=e((t,o)=>n({...t,tag:"em"},o)),Et=e((t,o)=>n({...t,tag:"strong"},o)),Nt=e((t,o)=>n({...t,tag:"small"},o)),Ut=e((t,o)=>n({...t,tag:"s"},o)),Vt=e((t,o)=>n({...t,tag:"cite"},o)),Kt=e((t,o)=>n({...t,tag:"q"},o)),Qt=e((t,o)=>n({...t,tag:"dfn"},o)),Wt=e((t,o)=>n({...t,tag:"abbr"},o)),Yt=e((t,o)=>n({...t,tag:"data"},o)),jt=e((t,o)=>n({...t,tag:"time"},o)),zt=e((t,o)=>n({...t,tag:"var"},o)),Gt=e((t,o)=>n({...t,tag:"samp"},o)),Jt=e((t,o)=>n({...t,tag:"kbd"},o)),Xt=e((t,o)=>n({...t,tag:"sub"},o)),Zt=e((t,o)=>n({...t,tag:"sup"},o)),_t=e((t,o)=>n({...t,tag:"i"},o)),$t=e((t,o)=>n({...t,tag:"b"},o)),to=e((t,o)=>n({...t,tag:"u"},o)),oo=e((t,o)=>n({...t,tag:"mark"},o)),eo=e((t,o)=>n({...t,tag:"ruby"},o)),no=e((t,o)=>n({...t,tag:"rt"},o)),ro=e((t,o)=>n({...t,tag:"rp"},o)),ao=e((t,o)=>n({...t,tag:"bdi"},o)),so=e((t,o)=>n({...t,tag:"bdo"},o)),co=e(t=>n({...t,tag:"wbr"},null));export{E as A,Wt as Abbr,ot as Article,at as Aside,xt as Audio,$t as B,ao as Bdi,so as Bdo,vt as Blockquote,L as Body,Q as Br,y as Button,Bt as Canvas,$ as Checkbox,Vt as Cite,Dt as Code,Yt as Data,At as Dd,Mt as Details,Qt as Dfn,M as Dialog,I as Div,Ot as Dl,C as Doctype,Pt as Dt,wt as Em,Rt as Fieldset,ct as Figcaption,st as Figure,nt as Footer,ht as Form,j as H1,z as H2,G as H3,J as H4,X as H5,Z as H6,P as Head,et as Header,W as Hr,D as Html,_t as I,It as Iframe,K as Img,S as Input,Jt as Kbd,_ as Label,Ft as Legend,V as Li,F as Link,pt as Main,oo as Mark,R as Meta,Lt as Meter,rt as Nav,Ht as Ol,b as On,h as OnState,St as Option,w as P,Ct as Pre,Tt as Progress,Kt as Q,ro as Rp,no as Rt,eo as Ruby,Ut as S,Gt as Samp,H as Script,tt as Section,yt as Select,Nt as Small,q as Span,Et as Strong,O as Style,Xt as Sub,N as SubmitButton,qt as Summary,Zt as Sup,it as Table,ft as Tbody,ut as Td,Y as Text,kt as Textarea,bt as Tfoot,lt as Th,mt as Thead,jt as Time,A as Title,dt as Tr,to as U,U as Ul,zt as Var,gt as Video,co as Wbr};
2
2
  //# sourceMappingURL=atoms.js.map
package/dist/atoms.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/atoms.js"],
4
- "sourcesContent": ["import { Atom } from '@base-framework/base';\r\n\r\n/**\r\n * Creates a generic HTML tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nconst Tag = (props, children) => {\r\n return { ...props, children };\r\n};\r\n\r\n/**\r\n * Creates a Doctype tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Doctype = (props) => ({ ...props, tag: 'DOCTYPE' });\r\n\r\n/**\r\n * Creates an HTML tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Html = Atom((props, children) => Tag({ ...props, tag: 'html' }, children));\r\n\r\n/**\r\n * Creates a script tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Script = Atom((props, children) => Tag({ ...props, tag: 'script' }, children));\r\n\r\n/**\r\n * Creates a style tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Style = Atom((props, children) => Tag({ ...props, tag: 'style' }, children));\r\n\r\n/**\r\n * Creates a head tag.\r\n *\r\n * @param {object} props - Properties for the head element.\r\n * @param {array} children - Children elements of the head.\r\n * @returns {object} - Returns an object representing the head element.\r\n */\r\nexport const Head = Atom((props, children) => Tag({ ...props, tag: 'head' }, children));\r\n\r\n/**\r\n * Creates a title tag.\r\n *\r\n * @param {object} props - Properties for the title element.\r\n */\r\nexport const Title = (props) =>\r\n{\r\n return { ...props };\r\n};\r\n\r\n/**\r\n * Creates a meta tag.\r\n *\r\n * @param {object} props - Properties for the meta element.\r\n * @returns {object} - Returns an object representing the meta element.\r\n */\r\nexport const Meta = (props) => ({ ...props, tag: 'meta' });\r\n\r\n/**\r\n * Creates a link tag.\r\n *\r\n * @param {object} props - Properties for the link element.\r\n * @returns {object} - Returns an object representing the link element.\r\n */\r\nexport const Link = (props) => ({ ...props, tag: 'link' });\r\n\r\n/**\r\n * Creates a body tag.\r\n *\r\n * @param {object} props - Properties for the body element.\r\n * @param {array} children - Children elements of the body.\r\n * @returns {object} - Returns an object representing the body element.\r\n */\r\nexport const Body = Atom((props, children) => Tag({ ...props, tag: 'body' }, children));\r\n\r\n/**\r\n * Creates a div element.\r\n *\r\n * @param {object} props - Properties for the div element.\r\n * @param {array} children - Children elements of the div.\r\n * @returns {object} - Returns an object representing the div element.\r\n */\r\nexport const Div = Atom((props, children) => Tag(props, children));\r\n\r\n/**\r\n * Creates a dialog element.\r\n *\r\n * @param {object} props - Properties for the div element.\r\n * @param {array} children - Children elements of the div.\r\n * @returns {object} - Returns an object representing the dialog element.\r\n */\r\nexport const Dialog = Atom((props, children) => Tag({ ...props, tag: 'dialog' }, children));\r\n\r\n/**\r\n * Creates a span element.\r\n *\r\n * @param {object} props - Properties for the span element.\r\n * @param {array} children - Children elements of the span.\r\n * @returns {object} - Returns an object representing the span element.\r\n */\r\nexport const Span = Atom((props, children) => Tag({ ...props, tag: 'span' }, children));\r\n\r\n/**\r\n * Creates a paragraph (p) element.\r\n *\r\n * @param {object} props - Properties for the paragraph element.\r\n * @param {array} children - Children elements of the paragraph.\r\n * @returns {object} - Returns an object representing the paragraph element.\r\n */\r\nexport const P = Atom((props, children) => Tag({ ...props, tag: 'p' }, children));\r\n\r\n/**\r\n * Creates an anchor (a) element.\r\n *\r\n * @param {object} props - Properties for the anchor element.\r\n * @param {array} children - Children elements of the anchor.\r\n * @return {object} - Returns an object representing the anchor element.\r\n */\r\nexport const A = Atom((props, children) => Tag({ ...props, tag: 'a' }, children));\r\n\r\n/**\r\n * Creates a button element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Button = Atom((props, children) => Tag({ ...props, tag: 'button' }, children));\r\n\r\n/**\r\n * Creates a submit button element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const SubmitButton = Atom((props, children) => Button({ ...props, type: 'submit' }, children));\r\n\r\n/**\r\n * Creates an unordered list (ul) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Ul = Atom((props, children) => Tag({ ...props, tag: 'ul' }, children));\r\n\r\n/**\r\n * Creates a list item (li) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Li = Atom((props, children) => Tag({ ...props, tag: 'li' }, children));\r\n\r\n/**\r\n * Creates an image (img) element.\r\n */\r\nexport const Img = Atom((props) => Tag({ ...props, tag: 'img' }, null));\r\n\r\n/**\r\n * Create a br element.\r\n *\r\n * @param {object} props - Properties for the br element.\r\n * @returns {object} - Returns an object representing the br element.\r\n */\r\nexport const Br = Atom((props) => Tag({ ...props, tag: 'br' }, null));\r\n\r\n/**\r\n * Creates a horizontal rule (hr) element.\r\n *\r\n * @param {object} props - Properties for the hr element.\r\n * @returns {object} - Returns an object representing the hr element.\r\n */\r\nexport const Hr = Atom((props) => Tag({ ...props, tag: 'hr' }, null));\r\n\r\n/**\r\n * Creates a text (text) element.\r\n *\r\n * @param {object} props - Properties for the text element.\r\n * @param {array} children - Children elements of the text element.\r\n * @returns {object} - Returns an object representing the text element.\r\n */\r\nexport const Text = Atom((props, children) => Tag({ ...props, tag: 'text' }, children));\r\n\r\n/**\r\n * Creates a header 1 (h1) element.\r\n *\r\n * @param {object} props - Properties for the h1 element.\r\n * @param {array} children - Children elements of the h1 element.\r\n * @returns {object} - Returns an object representing the h1 element.\r\n */\r\nexport const H1 = Atom((props, children) => Tag({ ...props, tag: 'h1' }, children));\r\n\r\n/**\r\n * Creates a header 2 (h2) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H2 = Atom((props, children) => Tag({ ...props, tag: 'h2' }, children));\r\n\r\n/**\r\n * Creates a header 3 (h3) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H3 = Atom((props, children) => Tag({ ...props, tag: 'h3' }, children));\r\n\r\n/**\r\n * Creates a header 4 (h4) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H4 = Atom((props, children) => Tag({ ...props, tag: 'h4' }, children));\r\n\r\n/**\r\n * Creates a header 5 (h5) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H5 = Atom((props, children) => Tag({ ...props, tag: 'h5' }, children));\r\n\r\n/**\r\n * Creates a header 6 (h6) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H6 = Atom((props, children) => Tag({ ...props, tag: 'h6' }, children));\r\n\r\n/**\r\n * Creates an input element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Input = Atom((props) => Tag({ ...props, tag: 'input' }, null));\r\n\r\n/**\r\n * Creates a label element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Label = Atom((props, children) => Tag({ ...props, tag: 'label' }, children));\r\n\r\n/**\r\n * Creates a checkbox input element.\r\n *\r\n * @param {object} props - Properties for the checkbox input element.\r\n * @returns {object} - Returns an object representing the checkbox input element.\r\n */\r\nexport const Checkbox = Atom((props) => Input({ ...props, type: 'checkbox' }));\r\n\r\n/**\r\n * Creates a section element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Section = Atom((props, children) => Tag({ ...props, tag: 'section' }, children));\r\n\r\n/**\r\n * Creates an article element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Article = Atom((props, children) => Tag({ ...props, tag: 'article' }, children));\r\n\r\n/**\r\n * Creates a header (header) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Header = Atom((props, children) => Tag({ ...props, tag: 'header' }, children));\r\n\r\n/**\r\n * Creates a footer element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Footer = Atom((props, children) => Tag({ ...props, tag: 'footer' }, children));\r\n\r\n/**\r\n * Creates a nav element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Nav = Atom((props, children) => Tag({ ...props, tag: 'nav' }, children));\r\n\r\n/**\r\n * Creates an aside element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Aside = Atom((props, children) => Tag({ ...props, tag: 'aside' }, children));\r\n\r\n/**\r\n * Creates a figure element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Figure = Atom((props, children) => Tag({ ...props, tag: 'figure' }, children));\r\n\r\n/**\r\n * Creates a figcaption element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Figcaption = Atom((props, children) => Tag({ ...props, tag: 'figcaption' }, children));\r\n\r\n/**\r\n * Creates a main element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Main = Atom((props, children) => Tag({ ...props, tag: 'main' }, children));\r\n\r\n/**\r\n * Creates a video element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Video = Atom((props, children) => Tag({ ...props, tag: 'video' }, children));\r\n\r\n/**\r\n * Creates an audio element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Audio = Atom((props, children) => Tag({ ...props, tag: 'audio' }, children));\r\n\r\n/**\r\n * Creates a table element.\r\n */\r\nexport const Table = Atom((props, children) => Tag({ ...props, tag: 'table' }, children));\r\n\r\n/**\r\n * Creates a table row (tr) element.\r\n */\r\nexport const Tr = Atom((props, children) => Tag({ ...props, tag: 'tr' }, children));\r\n\r\n/**\r\n * Creates a table header (th) element.\r\n */\r\nexport const Th = Atom((props, children) => Tag({ ...props, tag: 'th' }, children));\r\n\r\n/**\r\n * Creates a table data (td) element.\r\n */\r\nexport const Td = Atom((props, children) => Tag({ ...props, tag: 'td' }, children));\r\n\r\n/**\r\n * Creates a table header group (thead) element.\r\n */\r\nexport const Thead = Atom((props, children) => Tag({ ...props, tag: 'thead' }, children));\r\n\r\n/**\r\n * Creates a table body (tbody) element.\r\n */\r\nexport const Tbody = Atom((props, children) => Tag({ ...props, tag: 'tbody' }, children));\r\n\r\n/**\r\n * Creates a table footer (tfoot) element.\r\n */\r\nexport const Tfoot = Atom((props, children) => Tag({ ...props, tag: 'tfoot' }, children));\r\n\r\n/**\r\n * Creates a form element.\r\n */\r\nexport const Form = Atom((props, children) => Tag({ ...props, tag: 'form' }, children));\r\n\r\n/**\r\n * Creates a select element.\r\n */\r\nexport const Select = Atom((props, children) => Tag({ ...props, tag: 'select' }, children));\r\n\r\n/**\r\n * Creates an option element for a select tag.\r\n */\r\nexport const Option = Atom((props, children) => Tag({ ...props, tag: 'option' }, children));\r\n\r\n/**\r\n * Creates a textarea element.\r\n */\r\nexport const Textarea = Atom((props, children) => Tag({ ...props, tag: 'textarea' }, children));\r\n\r\n/**\r\n * Creates a canvas element.\r\n */\r\nexport const Canvas = Atom((props, children) => Tag({ ...props, tag: 'canvas' }, children));\r\n\r\n/**\r\n * Creates a progress element.\r\n */\r\nexport const Progress = Atom((props, children) => Tag({ ...props, tag: 'progress' }, children));\r\n\r\n/**\r\n * Creates a blockquote element.\r\n */\r\nexport const Blockquote = Atom((props, children) => Tag({ ...props, tag: 'blockquote' }, children));\r\n\r\n/**\r\n * Creates a preformatted text (pre) element.\r\n */\r\nexport const Pre = Atom((props, children) => Tag({ ...props, tag: 'pre' }, children));\r\n\r\n/**\r\n * Creates a code element.\r\n */\r\nexport const Code = Atom((props, children) => Tag({ ...props, tag: 'code' }, children));\r\n\r\n/**\r\n * Creates an ordered list (ol) element.\r\n */\r\nexport const Ol = Atom((props, children) => Tag({ ...props, tag: 'ol' }, children));\r\n\r\n/**\r\n * Creates a definition list (dl) element.\r\n */\r\nexport const Dl = Atom((props, children) => Tag({ ...props, tag: 'dl' }, children));\r\n\r\n/**\r\n * Creates a definition term (dt) element.\r\n */\r\nexport const Dt = Atom((props, children) => Tag({ ...props, tag: 'dt' }, children));\r\n\r\n/**\r\n * Creates a definition description (dd) element.\r\n */\r\nexport const Dd = Atom((props, children) => Tag({ ...props, tag: 'dd' }, children));\r\n\r\n/**\r\n * Creates a fieldset element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Fieldset = Atom((props, children) => Tag({ ...props, tag: 'fieldset' }, children));\r\n\r\n/**\r\n * Creates a legend element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Legend = Atom((props, children) => Tag({ ...props, tag: 'legend' }, children));\r\n\r\n/**\r\n * Creates a meter element.\r\n */\r\nexport const Meter = Atom((props, children) => Tag({ ...props, tag: 'meter' }, children));\r\n\r\n/**\r\n * Creates an iframe element.\r\n */\r\nexport const Iframe = Atom((props, children) => Tag({ ...props, tag: 'iframe' }, children));\r\n\r\n/**\r\n * Creates a details element.\r\n */\r\nexport const Details = Atom((props, children) => Tag({ ...props, tag: 'details' }, children));\r\n\r\n/**\r\n * Creates a summary element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Summary = Atom((props, children) => Tag({ ...props, tag: 'summary' }, children));\r\n\r\n/**\r\n * Creates an em element.\r\n */\r\nexport const Em = Atom((props, children) => Tag({ ...props, tag: 'em' }, children));\r\n\r\n/**\r\n * Creates a strong element.\r\n */\r\nexport const Strong = Atom((props, children) => Tag({ ...props, tag: 'strong' }, children));\r\n\r\n/**\r\n * Creates a small element.\r\n */\r\nexport const Small = Atom((props, children) => Tag({ ...props, tag: 'small' }, children));\r\n\r\n/**\r\n * Creates a s element (strikethrough).\r\n */\r\nexport const S = Atom((props, children) => Tag({ ...props, tag: 's' }, children));\r\n\r\n/**\r\n * Creates a cite element.\r\n */\r\nexport const Cite = Atom((props, children) => Tag({ ...props, tag: 'cite' }, children));\r\n\r\n/**\r\n * Creates a q element (inline quotation).\r\n */\r\nexport const Q = Atom((props, children) => Tag({ ...props, tag: 'q' }, children));\r\n\r\n/**\r\n * Creates a dfn element (definition element).\r\n */\r\nexport const Dfn = Atom((props, children) => Tag({ ...props, tag: 'dfn' }, children));\r\n\r\n/**\r\n * Creates an abbr element (abbreviation).\r\n */\r\nexport const Abbr = Atom((props, children) => Tag({ ...props, tag: 'abbr' }, children));\r\n\r\n/**\r\n * Creates a data element.\r\n */\r\nexport const Data = Atom((props, children) => Tag({ ...props, tag: 'data' }, children));\r\n\r\n/**\r\n * Creates a time element.\r\n */\r\nexport const Time = Atom((props, children) => Tag({ ...props, tag: 'time' }, children));\r\n\r\n/**\r\n * Creates a var element (variable).\r\n */\r\nexport const Var = Atom((props, children) => Tag({ ...props, tag: 'var' }, children));\r\n\r\n/**\r\n * Creates a samp element (sample output).\r\n */\r\nexport const Samp = Atom((props, children) => Tag({ ...props, tag: 'samp' }, children));\r\n\r\n/**\r\n * Creates a kbd element (keyboard input).\r\n */\r\nexport const Kbd = Atom((props, children) => Tag({ ...props, tag: 'kbd' }, children));\r\n\r\n/**\r\n * Creates a sub element (subscript).\r\n */\r\nexport const Sub = Atom((props, children) => Tag({ ...props, tag: 'sub' }, children));\r\n\r\n/**\r\n * Creates a sup element (superscript).\r\n */\r\nexport const Sup = Atom((props, children) => Tag({ ...props, tag: 'sup' }, children));\r\n\r\n/**\r\n * Creates an i element (italic).\r\n */\r\nexport const I = Atom((props, children) => Tag({ ...props, tag: 'i' }, children));\r\n\r\n/**\r\n * Creates a b element (bold).\r\n */\r\nexport const B = Atom((props, children) => Tag({ ...props, tag: 'b' }, children));\r\n\r\n/**\r\n * Creates a u element (underline).\r\n */\r\nexport const U = Atom((props, children) => Tag({ ...props, tag: 'u' }, children));\r\n\r\n/**\r\n * Creates a mark element.\r\n */\r\nexport const Mark = Atom((props, children) => Tag({ ...props, tag: 'mark' }, children));\r\n\r\n/**\r\n * Creates a ruby element (for East Asian typography).\r\n */\r\nexport const Ruby = Atom((props, children) => Tag({ ...props, tag: 'ruby' }, children));\r\n\r\n/**\r\n * Creates an rt element (explanation/pronunciation of characters in East Asian typography).\r\n */\r\nexport const Rt = Atom((props, children) => Tag({ ...props, tag: 'rt' }, children));\r\n\r\n/**\r\n * Creates an rp element (for East Asian fallback parenthesis).\r\n */\r\nexport const Rp = Atom((props, children) => Tag({ ...props, tag: 'rp' }, children));\r\n\r\n/**\r\n * Creates a bdi element (Bi-Directional Isolation).\r\n */\r\nexport const Bdi = Atom((props, children) => Tag({ ...props, tag: 'bdi' }, children));\r\n\r\n/**\r\n * Creates a bdo element (Bi-Directional Override).\r\n */\r\nexport const Bdo = Atom((props, children) => Tag({ ...props, tag: 'bdo' }, children));\r\n\r\n/**\r\n * Creates a wbr element (Word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,CAACE,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,MAAO,EAAGC,CAAQ,CAAC,EAKzEwF,GAAO3F,EAAK,CAACE,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,MAAO,EAAGC,CAAQ,CAAC,EAKzEyF,GAAK5F,EAAK,CAACE,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,IAAK,EAAGC,CAAQ,CAAC,EAKrE0F,GAAK7F,EAAK,CAACE,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,IAAK,EAAGC,CAAQ,CAAC,EAKrE2F,GAAM9F,EAAK,CAACE,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,KAAM,EAAGC,CAAQ,CAAC,EAKvE4F,GAAM/F,EAAK,CAACE,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,KAAM,EAAGC,CAAQ,CAAC,EAKvE6F,GAAMhG,EAAME,GAAUD,EAAI,CAAE,GAAGC,EAAO,IAAK,KAAM,EAAG,IAAI,CAAC",
6
- "names": ["Atom", "Tag", "props", "children", "Doctype", "Html", "Script", "Style", "Head", "Title", "Meta", "Link", "Body", "Div", "Dialog", "Span", "P", "A", "Button", "SubmitButton", "Ul", "Li", "Img", "Br", "Hr", "Text", "H1", "H2", "H3", "H4", "H5", "H6", "Input", "Label", "Checkbox", "Section", "Article", "Header", "Footer", "Nav", "Aside", "Figure", "Figcaption", "Main", "Video", "Audio", "Table", "Tr", "Th", "Td", "Thead", "Tbody", "Tfoot", "Form", "Select", "Option", "Textarea", "Canvas", "Progress", "Blockquote", "Pre", "Code", "Ol", "Dl", "Dt", "Dd", "Fieldset", "Legend", "Meter", "Iframe", "Details", "Summary", "Em", "Strong", "Small", "S", "Cite", "Q", "Dfn", "Abbr", "Data", "Time", "Var", "Samp", "Kbd", "Sub", "Sup", "I", "B", "U", "Mark", "Ruby", "Rt", "Rp", "Bdi", "Bdo", "Wbr"]
3
+ "sources": ["../src/atoms.js", "../src/on/on.js"],
4
+ "sourcesContent": ["import { Atom } from '@base-framework/base';\r\nimport { On, OnState } from './on/on.js';\r\nexport { On, OnState };\r\n\r\n/**\r\n * Creates a generic HTML tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nconst Tag = (props, children) => {\r\n return { ...props, children };\r\n};\r\n\r\n/**\r\n * Creates a Doctype tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Doctype = (props) => ({ ...props, tag: 'DOCTYPE' });\r\n\r\n/**\r\n * Creates an HTML tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Html = Atom((props, children) => Tag({ ...props, tag: 'html' }, children));\r\n\r\n/**\r\n * Creates a script tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Script = Atom((props, children) => Tag({ ...props, tag: 'script' }, children));\r\n\r\n/**\r\n * Creates a style tag.\r\n *\r\n * @param {object} props - Properties for the HTML element.\r\n * @param {array} children - Children elements of the HTML element.\r\n * @returns {object} - Returns an object representing the HTML element.\r\n */\r\nexport const Style = Atom((props, children) => Tag({ ...props, tag: 'style' }, children));\r\n\r\n/**\r\n * Creates a head tag.\r\n *\r\n * @param {object} props - Properties for the head element.\r\n * @param {array} children - Children elements of the head.\r\n * @returns {object} - Returns an object representing the head element.\r\n */\r\nexport const Head = Atom((props, children) => Tag({ ...props, tag: 'head' }, children));\r\n\r\n/**\r\n * Creates a title tag.\r\n *\r\n * @param {object} props - Properties for the title element.\r\n */\r\nexport const Title = (props) =>\r\n{\r\n return { ...props };\r\n};\r\n\r\n/**\r\n * Creates a meta tag.\r\n *\r\n * @param {object} props - Properties for the meta element.\r\n * @returns {object} - Returns an object representing the meta element.\r\n */\r\nexport const Meta = (props) => ({ ...props, tag: 'meta' });\r\n\r\n/**\r\n * Creates a link tag.\r\n *\r\n * @param {object} props - Properties for the link element.\r\n * @returns {object} - Returns an object representing the link element.\r\n */\r\nexport const Link = (props) => ({ ...props, tag: 'link' });\r\n\r\n/**\r\n * Creates a body tag.\r\n *\r\n * @param {object} props - Properties for the body element.\r\n * @param {array} children - Children elements of the body.\r\n * @returns {object} - Returns an object representing the body element.\r\n */\r\nexport const Body = Atom((props, children) => Tag({ ...props, tag: 'body' }, children));\r\n\r\n/**\r\n * Creates a div element.\r\n *\r\n * @param {object} props - Properties for the div element.\r\n * @param {array} children - Children elements of the div.\r\n * @returns {object} - Returns an object representing the div element.\r\n */\r\nexport const Div = Atom((props, children) => Tag(props, children));\r\n\r\n/**\r\n * Creates a dialog element.\r\n *\r\n * @param {object} props - Properties for the div element.\r\n * @param {array} children - Children elements of the div.\r\n * @returns {object} - Returns an object representing the dialog element.\r\n */\r\nexport const Dialog = Atom((props, children) => Tag({ ...props, tag: 'dialog' }, children));\r\n\r\n/**\r\n * Creates a span element.\r\n *\r\n * @param {object} props - Properties for the span element.\r\n * @param {array} children - Children elements of the span.\r\n * @returns {object} - Returns an object representing the span element.\r\n */\r\nexport const Span = Atom((props, children) => Tag({ ...props, tag: 'span' }, children));\r\n\r\n/**\r\n * Creates a paragraph (p) element.\r\n *\r\n * @param {object} props - Properties for the paragraph element.\r\n * @param {array} children - Children elements of the paragraph.\r\n * @returns {object} - Returns an object representing the paragraph element.\r\n */\r\nexport const P = Atom((props, children) => Tag({ ...props, tag: 'p' }, children));\r\n\r\n/**\r\n * Creates an anchor (a) element.\r\n *\r\n * @param {object} props - Properties for the anchor element.\r\n * @param {array} children - Children elements of the anchor.\r\n * @return {object} - Returns an object representing the anchor element.\r\n */\r\nexport const A = Atom((props, children) => Tag({ ...props, tag: 'a' }, children));\r\n\r\n/**\r\n * Creates a button element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Button = Atom((props, children) => Tag({ ...props, tag: 'button' }, children));\r\n\r\n/**\r\n * Creates a submit button element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const SubmitButton = Atom((props, children) => Button({ ...props, type: 'submit' }, children));\r\n\r\n/**\r\n * Creates an unordered list (ul) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Ul = Atom((props, children) => Tag({ ...props, tag: 'ul' }, children));\r\n\r\n/**\r\n * Creates a list item (li) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Li = Atom((props, children) => Tag({ ...props, tag: 'li' }, children));\r\n\r\n/**\r\n * Creates an image (img) element.\r\n */\r\nexport const Img = Atom((props) => Tag({ ...props, tag: 'img' }, null));\r\n\r\n/**\r\n * Create a br element.\r\n *\r\n * @param {object} props - Properties for the br element.\r\n * @returns {object} - Returns an object representing the br element.\r\n */\r\nexport const Br = Atom((props) => Tag({ ...props, tag: 'br' }, null));\r\n\r\n/**\r\n * Creates a horizontal rule (hr) element.\r\n *\r\n * @param {object} props - Properties for the hr element.\r\n * @returns {object} - Returns an object representing the hr element.\r\n */\r\nexport const Hr = Atom((props) => Tag({ ...props, tag: 'hr' }, null));\r\n\r\n/**\r\n * Creates a text (text) element.\r\n *\r\n * @param {object} props - Properties for the text element.\r\n * @param {array} children - Children elements of the text element.\r\n * @returns {object} - Returns an object representing the text element.\r\n */\r\nexport const Text = Atom((props, children) => Tag({ ...props, tag: 'text' }, children));\r\n\r\n/**\r\n * Creates a header 1 (h1) element.\r\n *\r\n * @param {object} props - Properties for the h1 element.\r\n * @param {array} children - Children elements of the h1 element.\r\n * @returns {object} - Returns an object representing the h1 element.\r\n */\r\nexport const H1 = Atom((props, children) => Tag({ ...props, tag: 'h1' }, children));\r\n\r\n/**\r\n * Creates a header 2 (h2) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H2 = Atom((props, children) => Tag({ ...props, tag: 'h2' }, children));\r\n\r\n/**\r\n * Creates a header 3 (h3) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H3 = Atom((props, children) => Tag({ ...props, tag: 'h3' }, children));\r\n\r\n/**\r\n * Creates a header 4 (h4) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H4 = Atom((props, children) => Tag({ ...props, tag: 'h4' }, children));\r\n\r\n/**\r\n * Creates a header 5 (h5) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H5 = Atom((props, children) => Tag({ ...props, tag: 'h5' }, children));\r\n\r\n/**\r\n * Creates a header 6 (h6) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const H6 = Atom((props, children) => Tag({ ...props, tag: 'h6' }, children));\r\n\r\n/**\r\n * Creates an input element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Input = Atom((props) => Tag({ ...props, tag: 'input' }, null));\r\n\r\n/**\r\n * Creates a label element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Label = Atom((props, children) => Tag({ ...props, tag: 'label' }, children));\r\n\r\n/**\r\n * Creates a checkbox input element.\r\n *\r\n * @param {object} props - Properties for the checkbox input element.\r\n * @returns {object} - Returns an object representing the checkbox input element.\r\n */\r\nexport const Checkbox = Atom((props) => Input({ ...props, type: 'checkbox' }));\r\n\r\n/**\r\n * Creates a section element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Section = Atom((props, children) => Tag({ ...props, tag: 'section' }, children));\r\n\r\n/**\r\n * Creates an article element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Article = Atom((props, children) => Tag({ ...props, tag: 'article' }, children));\r\n\r\n/**\r\n * Creates a header (header) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Header = Atom((props, children) => Tag({ ...props, tag: 'header' }, children));\r\n\r\n/**\r\n * Creates a footer element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Footer = Atom((props, children) => Tag({ ...props, tag: 'footer' }, children));\r\n\r\n/**\r\n * Creates a nav element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Nav = Atom((props, children) => Tag({ ...props, tag: 'nav' }, children));\r\n\r\n/**\r\n * Creates an aside element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Aside = Atom((props, children) => Tag({ ...props, tag: 'aside' }, children));\r\n\r\n/**\r\n * Creates a figure element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Figure = Atom((props, children) => Tag({ ...props, tag: 'figure' }, children));\r\n\r\n/**\r\n * Creates a figcaption element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Figcaption = Atom((props, children) => Tag({ ...props, tag: 'figcaption' }, children));\r\n\r\n/**\r\n * Creates a main element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Main = Atom((props, children) => Tag({ ...props, tag: 'main' }, children));\r\n\r\n/**\r\n * Creates a video element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Video = Atom((props, children) => Tag({ ...props, tag: 'video' }, children));\r\n\r\n/**\r\n * Creates an audio element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Audio = Atom((props, children) => Tag({ ...props, tag: 'audio' }, children));\r\n\r\n/**\r\n * Creates a table element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Table = Atom((props, children) => Tag({ ...props, tag: 'table' }, children));\r\n\r\n/**\r\n * Creates a table row (tr) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Tr = Atom((props, children) => Tag({ ...props, tag: 'tr' }, children));\r\n\r\n/**\r\n * Creates a table header (th) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Th = Atom((props, children) => Tag({ ...props, tag: 'th' }, children));\r\n\r\n/**\r\n * Creates a table data (td) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Td = Atom((props, children) => Tag({ ...props, tag: 'td' }, children));\r\n\r\n/**\r\n * Creates a table header group (thead) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Thead = Atom((props, children) => Tag({ ...props, tag: 'thead' }, children));\r\n\r\n/**\r\n * Creates a table body (tbody) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Tbody = Atom((props, children) => Tag({ ...props, tag: 'tbody' }, children));\r\n\r\n/**\r\n * Creates a table footer (tfoot) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Tfoot = Atom((props, children) => Tag({ ...props, tag: 'tfoot' }, children));\r\n\r\n/**\r\n * Creates a form element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Form = Atom((props, children) => Tag({ ...props, tag: 'form' }, children));\r\n\r\n/**\r\n * Creates a select element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Select = Atom((props, children) => Tag({ ...props, tag: 'select' }, children));\r\n\r\n/**\r\n * Creates an option element for a select tag.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Option = Atom((props, children) => Tag({ ...props, tag: 'option' }, children));\r\n\r\n/**\r\n * Creates a textarea element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Textarea = Atom((props, children) => Tag({ ...props, tag: 'textarea' }, children));\r\n\r\n/**\r\n * Creates a canvas element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Canvas = Atom((props, children) => Tag({ ...props, tag: 'canvas' }, children));\r\n\r\n/**\r\n * Creates a progress element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Progress = Atom((props, children) => Tag({ ...props, tag: 'progress' }, children));\r\n\r\n/**\r\n * Creates a blockquote element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Blockquote = Atom((props, children) => Tag({ ...props, tag: 'blockquote' }, children));\r\n\r\n/**\r\n * Creates a preformatted text (pre) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Pre = Atom((props, children) => Tag({ ...props, tag: 'pre' }, children));\r\n\r\n/**\r\n * Creates a code element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Code = Atom((props, children) => Tag({ ...props, tag: 'code' }, children));\r\n\r\n/**\r\n * Creates an ordered list (ol) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Ol = Atom((props, children) => Tag({ ...props, tag: 'ol' }, children));\r\n\r\n/**\r\n * Creates a definition list (dl) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Dl = Atom((props, children) => Tag({ ...props, tag: 'dl' }, children));\r\n\r\n/**\r\n * Creates a definition term (dt) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Dt = Atom((props, children) => Tag({ ...props, tag: 'dt' }, children));\r\n\r\n/**\r\n * Creates a definition description (dd) element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Dd = Atom((props, children) => Tag({ ...props, tag: 'dd' }, children));\r\n\r\n/**\r\n * Creates a fieldset element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Fieldset = Atom((props, children) => Tag({ ...props, tag: 'fieldset' }, children));\r\n\r\n/**\r\n * Creates a legend element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Legend = Atom((props, children) => Tag({ ...props, tag: 'legend' }, children));\r\n\r\n/**\r\n * Creates a meter element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Meter = Atom((props, children) => Tag({ ...props, tag: 'meter' }, children));\r\n\r\n/**\r\n * Creates an iframe element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Iframe = Atom((props, children) => Tag({ ...props, tag: 'iframe' }, children));\r\n\r\n/**\r\n * Creates a details element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Details = Atom((props, children) => Tag({ ...props, tag: 'details' }, children));\r\n\r\n/**\r\n * Creates a summary element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Summary = Atom((props, children) => Tag({ ...props, tag: 'summary' }, children));\r\n\r\n/**\r\n * Creates an em element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Em = Atom((props, children) => Tag({ ...props, tag: 'em' }, children));\r\n\r\n/**\r\n * Creates a strong element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Strong = Atom((props, children) => Tag({ ...props, tag: 'strong' }, children));\r\n\r\n/**\r\n * Creates a small element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Small = Atom((props, children) => Tag({ ...props, tag: 'small' }, children));\r\n\r\n/**\r\n * Creates a s element (strikethrough).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const S = Atom((props, children) => Tag({ ...props, tag: 's' }, children));\r\n\r\n/**\r\n * Creates a cite element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Cite = Atom((props, children) => Tag({ ...props, tag: 'cite' }, children));\r\n\r\n/**\r\n * Creates a q element (inline quotation).\r\n */\r\nexport const Q = Atom((props, children) => Tag({ ...props, tag: 'q' }, children));\r\n\r\n/**\r\n * Creates a dfn element (definition element).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Dfn = Atom((props, children) => Tag({ ...props, tag: 'dfn' }, children));\r\n\r\n/**\r\n * Creates an abbr element (abbreviation).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Abbr = Atom((props, children) => Tag({ ...props, tag: 'abbr' }, children));\r\n\r\n/**\r\n * Creates a data element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Data = Atom((props, children) => Tag({ ...props, tag: 'data' }, children));\r\n\r\n/**\r\n * Creates a time element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Time = Atom((props, children) => Tag({ ...props, tag: 'time' }, children));\r\n\r\n/**\r\n * Creates a var element (variable).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Var = Atom((props, children) => Tag({ ...props, tag: 'var' }, children));\r\n\r\n/**\r\n * Creates a samp element (sample output).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Samp = Atom((props, children) => Tag({ ...props, tag: 'samp' }, children));\r\n\r\n/**\r\n * Creates a kbd element (keyboard input).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Kbd = Atom((props, children) => Tag({ ...props, tag: 'kbd' }, children));\r\n\r\n/**\r\n * Creates a sub element (subscript).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Sub = Atom((props, children) => Tag({ ...props, tag: 'sub' }, children));\r\n\r\n/**\r\n * Creates a sup element (superscript).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Sup = Atom((props, children) => Tag({ ...props, tag: 'sup' }, children));\r\n\r\n/**\r\n * Creates an i element (italic).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const I = Atom((props, children) => Tag({ ...props, tag: 'i' }, children));\r\n\r\n/**\r\n * Creates a b element (bold).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const B = Atom((props, children) => Tag({ ...props, tag: 'b' }, children));\r\n\r\n/**\r\n * Creates a u element (underline).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const U = Atom((props, children) => Tag({ ...props, tag: 'u' }, children));\r\n\r\n/**\r\n * Creates a mark element.\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Mark = Atom((props, children) => Tag({ ...props, tag: 'mark' }, children));\r\n\r\n/**\r\n * Creates a ruby element (for East Asian typography).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Ruby = Atom((props, children) => Tag({ ...props, tag: 'ruby' }, children));\r\n\r\n/**\r\n * Creates an rt element (explanation/pronunciation of characters in East Asian typography).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Rt = Atom((props, children) => Tag({ ...props, tag: 'rt' }, children));\r\n\r\n/**\r\n * Creates an rp element (for East Asian fallback parenthesis).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Rp = Atom((props, children) => Tag({ ...props, tag: 'rp' }, children));\r\n\r\n/**\r\n * Creates a bdi element (Bi-Directional Isolation).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Bdi = Atom((props, children) => Tag({ ...props, tag: 'bdi' }, children));\r\n\r\n/**\r\n * Creates a bdo element (Bi-Directional Override).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Bdo = Atom((props, children) => Tag({ ...props, tag: 'bdo' }, children));\r\n\r\n/**\r\n * Creates a wbr element (Word Break Opportunity).\r\n *\r\n * @param {object} props - Properties for the element.\r\n * @param {array} children - Children elements.\r\n * @returns {object} - Returns an object representing the element.\r\n */\r\nexport const Wbr = Atom((props) => Tag({ ...props, tag: 'wbr' }, null));", "import { Builder, dataBinder } from \"@base-framework/base\";\r\n\r\n/**\r\n * This will set a previous result.\r\n *\r\n * @private\r\n * @param {object} parent\r\n * @param {string} prop\r\n * @param {string} value\r\n * @param {object} result\r\n * @returns {*}\r\n */\r\nconst checkPreviousResult = (parent, prop, value, result) =>\r\n{\r\n if (!parent || !result)\r\n {\r\n return result;\r\n }\r\n\r\n if (result.isUnit !== true || parent.persist !== true || !parent.state)\r\n {\r\n return result;\r\n }\r\n\r\n return setPreviousResult(parent, prop, value, result);\r\n};\r\n\r\n/**\r\n * This will set the previous result.\r\n *\r\n * @param {object} parent\r\n * @param {string} prop\r\n * @param {string} value\r\n * @param {object} result\r\n * @returns {*}\r\n */\r\nconst setPreviousResult = (parent, prop, value, result) =>\r\n{\r\n let key = prop + ':' + value,\r\n state = parent.state,\r\n previousResult = state.get(key);\r\n if (typeof previousResult !== 'undefined')\r\n {\r\n result = previousResult;\r\n }\r\n\r\n state.set(key, result);\r\n return result;\r\n};\r\n\r\n/**\r\n * This will set up the update layout function.\r\n *\r\n * @param {function} callBack\r\n * @param {object} ele\r\n * @param {string} prop\r\n * @param {object} parent\r\n * @returns {function}\r\n */\r\nconst updateLayout = (callBack, ele, prop, parent) =>\r\n{\r\n /**\r\n * This will hold the previous child element to\r\n * help remove it when updating.\r\n *\r\n * @type {(object|null)} prevEle\r\n */\r\n let prevEle = null;\r\n\r\n /**\r\n * This will update the layout.\r\n *\r\n * @param {object} value\r\n * @returns {void}\r\n */\r\n return (value) =>\r\n {\r\n let layout = callBack(value, ele, parent);\r\n if (!layout)\r\n {\r\n return;\r\n }\r\n\r\n /**\r\n * This will remove the previous element if it exists.\r\n */\r\n if (prevEle)\r\n {\r\n Builder.removeNode(prevEle);\r\n }\r\n\r\n /**\r\n * This will set the previous result if needed.\r\n */\r\n layout = checkPreviousResult(parent, prop, value, layout);\r\n\r\n /**\r\n * This will build the layout and insert it after the\r\n * comment element.\r\n */\r\n const frag = Builder.build(layout, null, parent);\r\n prevEle = frag.children[0];\r\n\r\n ele.parentNode.insertBefore(frag, ele.nextSibling);\r\n };\r\n};\r\n\r\n/**\r\n * This will create a comment.\r\n *\r\n * @param {object} props\r\n * @returns {object}\r\n */\r\nconst Comment = (props) => ({\r\n tag: 'comment',\r\n textContent: 'on placeholder',\r\n onCreated: props.onCreated\r\n});\r\n\r\n/**\r\n * This will get the parent set data.\r\n *\r\n * @param {object} parent\r\n * @returns {object|null}\r\n */\r\nexport const getParentData = (parent) =>\r\n{\r\n if (parent.data)\r\n {\r\n return parent.data;\r\n }\r\n\r\n if (parent.context && parent.context.data)\r\n {\r\n return parent.context.data;\r\n }\r\n\r\n if (parent.state)\r\n {\r\n return parent.state;\r\n }\r\n\r\n return null;\r\n};\r\n\r\n/**\r\n * This will create an on data tag.\r\n *\r\n * @overload\r\n * @param {object} data\r\n * @param {string} prop\r\n * @param {function} callBack\r\n *\r\n * @overload\r\n * @param {string} prop\r\n * @param {function} callBack\r\n *\r\n * @returns {object}\r\n */\r\nexport const On = (...args) =>\r\n{\r\n const settings = [...args];\r\n const callBack = settings.pop();\r\n if (typeof callBack !== 'function')\r\n {\r\n return;\r\n }\r\n\r\n /**\r\n * This will create a comment to use as a placeholder\r\n * to keep the layout in place.\r\n */\r\n return Comment({\r\n onCreated: (ele, parent) =>\r\n {\r\n if (settings.length < 2)\r\n {\r\n /**\r\n * This will get the parent data and add it to the\r\n * settings array.\r\n */\r\n const data = getParentData(parent);\r\n settings.unshift(data);\r\n }\r\n\r\n const update = updateLayout(callBack, ele, settings[1], parent);\r\n dataBinder.watch(ele, settings[0], settings[1], update);\r\n }\r\n });\r\n};\r\n\r\n/**\r\n * This will create an on state tag.\r\n *\r\n * @overload\r\n * @param {object} data\r\n * @param {string} prop\r\n * @param {function} callBack\r\n *\r\n * @overload\r\n * @param {string} prop\r\n * @param {function} callBack\r\n *\r\n * @returns {object}\r\n */\r\nexport const OnState = (...args) =>\r\n{\r\n const settings = [...args];\r\n const callBack = settings.pop();\r\n if (typeof callBack !== 'function')\r\n {\r\n return;\r\n }\r\n\r\n /**\r\n * This will create a comment to use as a placeholder\r\n * to keep the layout in place.\r\n */\r\n return Comment({\r\n onCreated: (ele, parent) =>\r\n {\r\n if (settings.length < 2)\r\n {\r\n const data = parent.state;\r\n settings.unshift(data);\r\n }\r\n\r\n const update = updateLayout(callBack, ele, settings[1], parent);\r\n dataBinder.watch(ele, settings[0], settings[1], update);\r\n }\r\n });\r\n};"],
5
+ "mappings": "AAAA,OAAS,QAAAA,MAAY,uBCArB,OAAS,WAAAC,EAAS,cAAAC,MAAkB,uBAYpC,IAAMC,EAAsB,CAACC,EAAQC,EAAMC,EAAOC,IAE1C,CAACH,GAAU,CAACG,GAKZA,EAAO,SAAW,IAAQH,EAAO,UAAY,IAAQ,CAACA,EAAO,MAEtDG,EAGJC,EAAkBJ,EAAQC,EAAMC,EAAOC,CAAM,EAYlDC,EAAoB,CAACJ,EAAQC,EAAMC,EAAOC,IAChD,CACI,IAAIE,EAAMJ,EAAO,IAAMC,EACvBI,EAAQN,EAAO,MACfO,EAAiBD,EAAM,IAAID,CAAG,EAC9B,OAAI,OAAOE,EAAmB,MAE1BJ,EAASI,GAGbD,EAAM,IAAID,EAAKF,CAAM,EACdA,CACX,EAWMK,EAAe,CAACC,EAAUC,EAAKT,EAAMD,IAC3C,CAOI,IAAIW,EAAU,KAQd,OAAQT,GACR,CACI,IAAIU,EAASH,EAASP,EAAOQ,EAAKV,CAAM,EACxC,GAAI,CAACY,EAED,OAMAD,GAEAd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,CAAE,GAAGC,EAAO,IAAK,MAAO,EAAGC,CAAQ,CAAC,EASzEyF,GAAOtF,EAAK,CAACJ,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,MAAO,EAAGC,CAAQ,CAAC,EASzE0F,GAAKvF,EAAK,CAACJ,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,IAAK,EAAGC,CAAQ,CAAC,EASrE2F,GAAKxF,EAAK,CAACJ,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,IAAK,EAAGC,CAAQ,CAAC,EASrE4F,GAAMzF,EAAK,CAACJ,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,KAAM,EAAGC,CAAQ,CAAC,EASvE6F,GAAM1F,EAAK,CAACJ,EAAOC,IAAaF,EAAI,CAAE,GAAGC,EAAO,IAAK,KAAM,EAAGC,CAAQ,CAAC,EASvE8F,GAAM3F,EAAMJ,GAAUD,EAAI,CAAE,GAAGC,EAAO,IAAK,KAAM,EAAG,IAAI,CAAC",
6
+ "names": ["Atom", "Builder", "dataBinder", "checkPreviousResult", "parent", "prop", "value", "result", "setPreviousResult", "key", "state", "previousResult", "updateLayout", "callBack", "ele", "prevEle", "layout", "frag", "Comment", "props", "getParentData", "On", "args", "settings", "data", "update", "OnState", "Tag", "props", "children", "Doctype", "Html", "Atom", "Script", "Style", "Head", "Title", "Meta", "Link", "Body", "Div", "Dialog", "Span", "P", "A", "Button", "SubmitButton", "Ul", "Li", "Img", "Br", "Hr", "Text", "H1", "H2", "H3", "H4", "H5", "H6", "Input", "Label", "Checkbox", "Section", "Article", "Header", "Footer", "Nav", "Aside", "Figure", "Figcaption", "Main", "Video", "Audio", "Table", "Tr", "Th", "Td", "Thead", "Tbody", "Tfoot", "Form", "Select", "Option", "Textarea", "Canvas", "Progress", "Blockquote", "Pre", "Code", "Ol", "Dl", "Dt", "Dd", "Fieldset", "Legend", "Meter", "Iframe", "Details", "Summary", "Em", "Strong", "Small", "S", "Cite", "Q", "Dfn", "Abbr", "Data", "Time", "Var", "Samp", "Kbd", "Sub", "Sup", "I", "B", "U", "Mark", "Ruby", "Rt", "Rp", "Bdi", "Bdo", "Wbr"]
7
7
  }
@@ -301,82 +301,162 @@ export const Video: Function;
301
301
  export const Audio: Function;
302
302
  /**
303
303
  * Creates a table element.
304
+ *
305
+ * @param {object} props - Properties for the element.
306
+ * @param {array} children - Children elements.
307
+ * @returns {object} - Returns an object representing the element.
304
308
  */
305
309
  export const Table: Function;
306
310
  /**
307
311
  * Creates a table row (tr) element.
312
+ *
313
+ * @param {object} props - Properties for the element.
314
+ * @param {array} children - Children elements.
315
+ * @returns {object} - Returns an object representing the element.
308
316
  */
309
317
  export const Tr: Function;
310
318
  /**
311
319
  * Creates a table header (th) element.
320
+ *
321
+ * @param {object} props - Properties for the element.
322
+ * @param {array} children - Children elements.
323
+ * @returns {object} - Returns an object representing the element.
312
324
  */
313
325
  export const Th: Function;
314
326
  /**
315
327
  * Creates a table data (td) element.
328
+ *
329
+ * @param {object} props - Properties for the element.
330
+ * @param {array} children - Children elements.
331
+ * @returns {object} - Returns an object representing the element.
316
332
  */
317
333
  export const Td: Function;
318
334
  /**
319
335
  * Creates a table header group (thead) element.
336
+ *
337
+ * @param {object} props - Properties for the element.
338
+ * @param {array} children - Children elements.
339
+ * @returns {object} - Returns an object representing the element.
320
340
  */
321
341
  export const Thead: Function;
322
342
  /**
323
343
  * Creates a table body (tbody) element.
344
+ *
345
+ * @param {object} props - Properties for the element.
346
+ * @param {array} children - Children elements.
347
+ * @returns {object} - Returns an object representing the element.
324
348
  */
325
349
  export const Tbody: Function;
326
350
  /**
327
351
  * Creates a table footer (tfoot) element.
352
+ *
353
+ * @param {object} props - Properties for the element.
354
+ * @param {array} children - Children elements.
355
+ * @returns {object} - Returns an object representing the element.
328
356
  */
329
357
  export const Tfoot: Function;
330
358
  /**
331
359
  * Creates a form element.
360
+ *
361
+ * @param {object} props - Properties for the element.
362
+ * @param {array} children - Children elements.
363
+ * @returns {object} - Returns an object representing the element.
332
364
  */
333
365
  export const Form: Function;
334
366
  /**
335
367
  * Creates a select element.
368
+ *
369
+ * @param {object} props - Properties for the element.
370
+ * @param {array} children - Children elements.
371
+ * @returns {object} - Returns an object representing the element.
336
372
  */
337
373
  export const Select: Function;
338
374
  /**
339
375
  * Creates an option element for a select tag.
376
+ *
377
+ * @param {object} props - Properties for the element.
378
+ * @param {array} children - Children elements.
379
+ * @returns {object} - Returns an object representing the element.
340
380
  */
341
381
  export const Option: Function;
342
382
  /**
343
383
  * Creates a textarea element.
384
+ *
385
+ * @param {object} props - Properties for the element.
386
+ * @param {array} children - Children elements.
387
+ * @returns {object} - Returns an object representing the element.
344
388
  */
345
389
  export const Textarea: Function;
346
390
  /**
347
391
  * Creates a canvas element.
392
+ *
393
+ * @param {object} props - Properties for the element.
394
+ * @param {array} children - Children elements.
395
+ * @returns {object} - Returns an object representing the element.
348
396
  */
349
397
  export const Canvas: Function;
350
398
  /**
351
399
  * Creates a progress element.
400
+ *
401
+ * @param {object} props - Properties for the element.
402
+ * @param {array} children - Children elements.
403
+ * @returns {object} - Returns an object representing the element.
352
404
  */
353
405
  export const Progress: Function;
354
406
  /**
355
407
  * Creates a blockquote element.
408
+ *
409
+ * @param {object} props - Properties for the element.
410
+ * @param {array} children - Children elements.
411
+ * @returns {object} - Returns an object representing the element.
356
412
  */
357
413
  export const Blockquote: Function;
358
414
  /**
359
415
  * Creates a preformatted text (pre) element.
416
+ *
417
+ * @param {object} props - Properties for the element.
418
+ * @param {array} children - Children elements.
419
+ * @returns {object} - Returns an object representing the element.
360
420
  */
361
421
  export const Pre: Function;
362
422
  /**
363
423
  * Creates a code element.
424
+ *
425
+ * @param {object} props - Properties for the element.
426
+ * @param {array} children - Children elements.
427
+ * @returns {object} - Returns an object representing the element.
364
428
  */
365
429
  export const Code: Function;
366
430
  /**
367
431
  * Creates an ordered list (ol) element.
432
+ *
433
+ * @param {object} props - Properties for the element.
434
+ * @param {array} children - Children elements.
435
+ * @returns {object} - Returns an object representing the element.
368
436
  */
369
437
  export const Ol: Function;
370
438
  /**
371
439
  * Creates a definition list (dl) element.
440
+ *
441
+ * @param {object} props - Properties for the element.
442
+ * @param {array} children - Children elements.
443
+ * @returns {object} - Returns an object representing the element.
372
444
  */
373
445
  export const Dl: Function;
374
446
  /**
375
447
  * Creates a definition term (dt) element.
448
+ *
449
+ * @param {object} props - Properties for the element.
450
+ * @param {array} children - Children elements.
451
+ * @returns {object} - Returns an object representing the element.
376
452
  */
377
453
  export const Dt: Function;
378
454
  /**
379
455
  * Creates a definition description (dd) element.
456
+ *
457
+ * @param {object} props - Properties for the element.
458
+ * @param {array} children - Children elements.
459
+ * @returns {object} - Returns an object representing the element.
380
460
  */
381
461
  export const Dd: Function;
382
462
  /**
@@ -397,14 +477,26 @@ export const Fieldset: Function;
397
477
  export const Legend: Function;
398
478
  /**
399
479
  * Creates a meter element.
480
+ *
481
+ * @param {object} props - Properties for the element.
482
+ * @param {array} children - Children elements.
483
+ * @returns {object} - Returns an object representing the element.
400
484
  */
401
485
  export const Meter: Function;
402
486
  /**
403
487
  * Creates an iframe element.
488
+ *
489
+ * @param {object} props - Properties for the element.
490
+ * @param {array} children - Children elements.
491
+ * @returns {object} - Returns an object representing the element.
404
492
  */
405
493
  export const Iframe: Function;
406
494
  /**
407
495
  * Creates a details element.
496
+ *
497
+ * @param {object} props - Properties for the element.
498
+ * @param {array} children - Children elements.
499
+ * @returns {object} - Returns an object representing the element.
408
500
  */
409
501
  export const Details: Function;
410
502
  /**
@@ -417,22 +509,42 @@ export const Details: Function;
417
509
  export const Summary: Function;
418
510
  /**
419
511
  * Creates an em element.
512
+ *
513
+ * @param {object} props - Properties for the element.
514
+ * @param {array} children - Children elements.
515
+ * @returns {object} - Returns an object representing the element.
420
516
  */
421
517
  export const Em: Function;
422
518
  /**
423
519
  * Creates a strong element.
520
+ *
521
+ * @param {object} props - Properties for the element.
522
+ * @param {array} children - Children elements.
523
+ * @returns {object} - Returns an object representing the element.
424
524
  */
425
525
  export const Strong: Function;
426
526
  /**
427
527
  * Creates a small element.
528
+ *
529
+ * @param {object} props - Properties for the element.
530
+ * @param {array} children - Children elements.
531
+ * @returns {object} - Returns an object representing the element.
428
532
  */
429
533
  export const Small: Function;
430
534
  /**
431
535
  * Creates a s element (strikethrough).
536
+ *
537
+ * @param {object} props - Properties for the element.
538
+ * @param {array} children - Children elements.
539
+ * @returns {object} - Returns an object representing the element.
432
540
  */
433
541
  export const S: Function;
434
542
  /**
435
543
  * Creates a cite element.
544
+ *
545
+ * @param {object} props - Properties for the element.
546
+ * @param {array} children - Children elements.
547
+ * @returns {object} - Returns an object representing the element.
436
548
  */
437
549
  export const Cite: Function;
438
550
  /**
@@ -441,77 +553,156 @@ export const Cite: Function;
441
553
  export const Q: Function;
442
554
  /**
443
555
  * Creates a dfn element (definition element).
556
+ *
557
+ * @param {object} props - Properties for the element.
558
+ * @param {array} children - Children elements.
559
+ * @returns {object} - Returns an object representing the element.
444
560
  */
445
561
  export const Dfn: Function;
446
562
  /**
447
563
  * Creates an abbr element (abbreviation).
564
+ *
565
+ * @param {object} props - Properties for the element.
566
+ * @param {array} children - Children elements.
567
+ * @returns {object} - Returns an object representing the element.
448
568
  */
449
569
  export const Abbr: Function;
450
570
  /**
451
571
  * Creates a data element.
572
+ *
573
+ * @param {object} props - Properties for the element.
574
+ * @param {array} children - Children elements.
575
+ * @returns {object} - Returns an object representing the element.
452
576
  */
453
577
  export const Data: Function;
454
578
  /**
455
579
  * Creates a time element.
580
+ *
581
+ * @param {object} props - Properties for the element.
582
+ * @param {array} children - Children elements.
583
+ * @returns {object} - Returns an object representing the element.
456
584
  */
457
585
  export const Time: Function;
458
586
  /**
459
587
  * Creates a var element (variable).
588
+ *
589
+ * @param {object} props - Properties for the element.
590
+ * @param {array} children - Children elements.
591
+ * @returns {object} - Returns an object representing the element.
460
592
  */
461
593
  export const Var: Function;
462
594
  /**
463
595
  * Creates a samp element (sample output).
596
+ *
597
+ * @param {object} props - Properties for the element.
598
+ * @param {array} children - Children elements.
599
+ * @returns {object} - Returns an object representing the element.
464
600
  */
465
601
  export const Samp: Function;
466
602
  /**
467
603
  * Creates a kbd element (keyboard input).
604
+ *
605
+ * @param {object} props - Properties for the element.
606
+ * @param {array} children - Children elements.
607
+ * @returns {object} - Returns an object representing the element.
468
608
  */
469
609
  export const Kbd: Function;
470
610
  /**
471
611
  * Creates a sub element (subscript).
612
+ *
613
+ * @param {object} props - Properties for the element.
614
+ * @param {array} children - Children elements.
615
+ * @returns {object} - Returns an object representing the element.
472
616
  */
473
617
  export const Sub: Function;
474
618
  /**
475
619
  * Creates a sup element (superscript).
620
+ *
621
+ * @param {object} props - Properties for the element.
622
+ * @param {array} children - Children elements.
623
+ * @returns {object} - Returns an object representing the element.
476
624
  */
477
625
  export const Sup: Function;
478
626
  /**
479
627
  * Creates an i element (italic).
628
+ *
629
+ * @param {object} props - Properties for the element.
630
+ * @param {array} children - Children elements.
631
+ * @returns {object} - Returns an object representing the element.
480
632
  */
481
633
  export const I: Function;
482
634
  /**
483
635
  * Creates a b element (bold).
636
+ *
637
+ * @param {object} props - Properties for the element.
638
+ * @param {array} children - Children elements.
639
+ * @returns {object} - Returns an object representing the element.
484
640
  */
485
641
  export const B: Function;
486
642
  /**
487
643
  * Creates a u element (underline).
644
+ *
645
+ * @param {object} props - Properties for the element.
646
+ * @param {array} children - Children elements.
647
+ * @returns {object} - Returns an object representing the element.
488
648
  */
489
649
  export const U: Function;
490
650
  /**
491
651
  * Creates a mark element.
652
+ *
653
+ * @param {object} props - Properties for the element.
654
+ * @param {array} children - Children elements.
655
+ * @returns {object} - Returns an object representing the element.
492
656
  */
493
657
  export const Mark: Function;
494
658
  /**
495
659
  * Creates a ruby element (for East Asian typography).
660
+ *
661
+ * @param {object} props - Properties for the element.
662
+ * @param {array} children - Children elements.
663
+ * @returns {object} - Returns an object representing the element.
496
664
  */
497
665
  export const Ruby: Function;
498
666
  /**
499
667
  * Creates an rt element (explanation/pronunciation of characters in East Asian typography).
668
+ *
669
+ * @param {object} props - Properties for the element.
670
+ * @param {array} children - Children elements.
671
+ * @returns {object} - Returns an object representing the element.
500
672
  */
501
673
  export const Rt: Function;
502
674
  /**
503
675
  * Creates an rp element (for East Asian fallback parenthesis).
676
+ *
677
+ * @param {object} props - Properties for the element.
678
+ * @param {array} children - Children elements.
679
+ * @returns {object} - Returns an object representing the element.
504
680
  */
505
681
  export const Rp: Function;
506
682
  /**
507
683
  * Creates a bdi element (Bi-Directional Isolation).
684
+ *
685
+ * @param {object} props - Properties for the element.
686
+ * @param {array} children - Children elements.
687
+ * @returns {object} - Returns an object representing the element.
508
688
  */
509
689
  export const Bdi: Function;
510
690
  /**
511
691
  * Creates a bdo element (Bi-Directional Override).
692
+ *
693
+ * @param {object} props - Properties for the element.
694
+ * @param {array} children - Children elements.
695
+ * @returns {object} - Returns an object representing the element.
512
696
  */
513
697
  export const Bdo: Function;
514
698
  /**
515
699
  * Creates a wbr element (Word Break Opportunity).
700
+ *
701
+ * @param {object} props - Properties for the element.
702
+ * @param {array} children - Children elements.
703
+ * @returns {object} - Returns an object representing the element.
516
704
  */
517
705
  export const Wbr: Function;
706
+ import { On } from './on/on.js';
707
+ import { OnState } from './on/on.js';
708
+ export { On, OnState };
@@ -0,0 +1,61 @@
1
+ export function getParentData(parent: object): object | null;
2
+ /**
3
+ * This will create an on data tag.
4
+ *
5
+ * @overload
6
+ * @param {object} data
7
+ * @param {string} prop
8
+ * @param {function} callBack
9
+ *
10
+ * @overload
11
+ * @param {string} prop
12
+ * @param {function} callBack
13
+ *
14
+ * @returns {object}
15
+ */
16
+ export function On(data: object, prop: string, callBack: Function): any;
17
+ /**
18
+ * This will create an on data tag.
19
+ *
20
+ * @overload
21
+ * @param {object} data
22
+ * @param {string} prop
23
+ * @param {function} callBack
24
+ *
25
+ * @overload
26
+ * @param {string} prop
27
+ * @param {function} callBack
28
+ *
29
+ * @returns {object}
30
+ */
31
+ export function On(prop: string, callBack: Function): object;
32
+ /**
33
+ * This will create an on state tag.
34
+ *
35
+ * @overload
36
+ * @param {object} data
37
+ * @param {string} prop
38
+ * @param {function} callBack
39
+ *
40
+ * @overload
41
+ * @param {string} prop
42
+ * @param {function} callBack
43
+ *
44
+ * @returns {object}
45
+ */
46
+ export function OnState(data: object, prop: string, callBack: Function): any;
47
+ /**
48
+ * This will create an on state tag.
49
+ *
50
+ * @overload
51
+ * @param {object} data
52
+ * @param {string} prop
53
+ * @param {function} callBack
54
+ *
55
+ * @overload
56
+ * @param {string} prop
57
+ * @param {function} callBack
58
+ *
59
+ * @returns {object}
60
+ */
61
+ export function OnState(prop: string, callBack: Function): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/atoms",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "This will add default atoms to the base framework.",
5
5
  "main": "./dist/atoms.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "typescript": "^5.4.2"
30
30
  },
31
31
  "dependencies": {
32
- "@base-framework/base": "^3.0.122"
32
+ "@base-framework/base": "^3.0.184"
33
33
  },
34
34
  "types": "dist/types/atoms.d.ts",
35
35
  "files": [