-module(sketch@lustre@element@html). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/sketch/lustre/element/html.gleam"). -export([html/2, base/1, head/2, link/1, meta/1, text/1, style/2, title/2, a/3, a_/2, abbr/3, abbr_/2, address/3, address_/2, area/2, area_/1, article/3, article_/2, aside/3, aside_/2, audio/3, audio_/2, b/3, b_/2, bdi/3, bdi_/2, bdo/3, bdo_/2, blockquote/3, blockquote_/2, body/3, body_/2, br/2, br_/1, button/3, button_/2, canvas/3, canvas_/2, caption/3, caption_/2, cite/3, cite_/2, code/3, code_/2, col/2, col_/1, colgroup/3, colgroup_/2, data/3, data_/2, datalist/3, datalist_/2, dd/3, dd_/2, del/3, del_/2, details/3, details_/2, dfn/3, dfn_/2, dialog/3, dialog_/2, 'div'/3, div_/2, dl/3, dl_/2, dt/3, dt_/2, em/3, em_/2, embed/2, embed_/1, fieldset/3, fieldset_/2, figcaption/3, figcaption_/2, figure/3, figure_/2, footer/3, footer_/2, form/3, form_/2, h1/3, h1_/2, h2/3, h2_/2, h3/3, h3_/2, h4/3, h4_/2, h5/3, h5_/2, h6/3, h6_/2, header/3, header_/2, hgroup/3, hgroup_/2, hr/2, hr_/1, i/3, i_/2, iframe/3, iframe_/2, img/2, img_/1, input/2, input_/1, ins/3, ins_/2, kbd/3, kbd_/2, label/3, label_/2, legend/3, legend_/2, li/3, li_/2, main/3, main_/2, map/3, map_/2, mark/3, mark_/2, math/3, math_/2, menu/3, menu_/2, meter/3, meter_/2, nav/3, nav_/2, noscript/3, noscript_/2, object/3, object_/2, ol/3, ol_/2, optgroup/3, optgroup_/2, option/3, option_/2, output/3, output_/2, p/3, p_/2, picture/3, picture_/2, portal/3, portal_/2, pre/3, pre_/2, progress/3, progress_/2, q/3, q_/2, rp/3, rp_/2, rt/3, rt_/2, ruby/3, ruby_/2, s/3, s_/2, samp/3, samp_/2, script/3, script_/2, search/3, search_/2, section/3, section_/2, select/3, select_/2, slot/3, slot_/2, small/3, small_/2, source/2, source_/1, span/3, span_/2, strong/3, strong_/2, sub/3, sub_/2, summary/3, summary_/2, sup/3, sup_/2, svg/3, svg_/2, table/3, table_/2, tbody/3, tbody_/2, td/3, td_/2, template/3, template_/2, textarea/3, textarea_/2, tfoot/3, tfoot_/2, th/3, th_/2, thead/3, thead_/2, time/3, time_/2, tr/3, tr_/2, track/2, track_/1, u/3, u_/2, ul/3, ul_/2, var/3, var_/2, video/3, video_/2, wbr/2, wbr_/1]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. ?MODULEDOC( " This module is a drop-in replacement for `lustre/element/html`. Just\n" " use the new functions, and everything will automagically be styled.\n" " Every stylable node has two functions: `[node]` and `[node]_`, the former\n" " applying a style, while the latter does not accept style, in case you don't\n" " need to style a node.\n" ). -file("src/sketch/lustre/element/html.gleam", 19). ?DOC( " The `` HTML element represents the root (top-level element) of an\n" " HTML document, so it is also referred to as the root element. All other\n" " elements must be descendants of this element. There can be only one ``\n" " element in a document.\n" "\n" " ---\n" "\n" " [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Element/html)\n" ). -spec html( list(lustre@vdom@vattr:attribute(OQW)), list(lustre@vdom@vnode:element(OQW)) ) -> lustre@vdom@vnode:element(OQW). html(Attributes, Children) -> sketch@lustre@element:element_(<<"html"/utf8>>, Attributes, Children). -file("src/sketch/lustre/element/html.gleam", 36). ?DOC( " The `` HTML element specifies the base URL to use for all relative\n" " URLs in a document. There can be only one `` element in a document.\n" "\n" " A document's used base URL can be accessed by scripts with `Node.baseURI`.\n" " If the document has no `` elements, then `baseURI` defaults to\n" " `location.href`.\n" "\n" " ---\n" "\n" " [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Element/base)\n" ). -spec base(list(lustre@vdom@vattr:attribute(ORC))) -> lustre@vdom@vnode:element(ORC). base(Attributes) -> sketch@lustre@element:element_(<<"base"/utf8>>, Attributes, []). -file("src/sketch/lustre/element/html.gleam", 51). ?DOC( " The `` HTML element contains machine-readable information (metadata)\n" " about the document, like its title, scripts, and style sheets. There can be\n" " only one `` element in an HTML document.\n" "\n" " > `` primarily holds information for machine processing, not\n" " > human-readability. For human-visible information, like top-level headings\n" " > and listed authors, see the `
` element.\n" "\n" " ---\n" "\n" " [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Element/head)\n" ). -spec head( list(lustre@vdom@vattr:attribute(ORG)), list(lustre@vdom@vnode:element(ORG)) ) -> lustre@vdom@vnode:element(ORG). head(Attributes, Children) -> sketch@lustre@element:element_(<<"head"/utf8>>, Attributes, Children). -file("src/sketch/lustre/element/html.gleam", 67). ?DOC( " The `` HTML element specifies relationships between the current\n" " document and an external resource. This element is most commonly used to\n" " link to stylesheets, but is also used to establish site icons (both \"favicon\"\n" " style icons and icons for the home screen and apps on mobile devices) among\n" " other things.\n" "\n" " ---\n" "\n" " [MDN Reference](https://developer.mozilla.org/docs/Web/HTML/Element/link)\n" ). -spec link(list(lustre@vdom@vattr:attribute(ORM))) -> lustre@vdom@vnode:element(ORM). link(Attributes) -> sketch@lustre@element:element_(<<"link"/utf8>>, Attributes, []). -file("src/sketch/lustre/element/html.gleam", 90). ?DOC( " The `` HTML element represents metadata that cannot be represented\n" " by other HTML meta-related elements, like ``, ``, `