From 4b268503cb16a64fd2f915a2bb5c1f56774d1f50 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Mon, 11 Sep 2023 16:55:27 +0100 Subject: [PATCH] Support for sidebarblock (#48) * Support for sidebarblock * Build `asciidoc.css` --- components/dist/asciidoc.css | 4 ++++ components/dist/index.js.map | 2 +- components/src/assets/asciidoc.css | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/dist/asciidoc.css b/components/dist/asciidoc.css index e714b73..a779807 100644 --- a/components/dist/asciidoc.css +++ b/components/dist/asciidoc.css @@ -654,6 +654,10 @@ @apply my-3 border-default; } + .asciidoc-body .sidebarblock { + @apply bg-raise p-4 rounded-lg my-8 px-6 py-5; + } + @media print { a { color: inherit !important; diff --git a/components/dist/index.js.map b/components/dist/index.js.map index 4ba2da6..328ad30 100644 --- a/components/dist/index.js.map +++ b/components/dist/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../node_modules/domelementtype/lib/index.js","../../node_modules/html-react-parser/node_modules/domhandler/lib/node.js","../../node_modules/html-react-parser/node_modules/domhandler/lib/index.js","../../node_modules/entities/lib/generated/generated/decode-data-html.ts","../../node_modules/entities/lib/generated/generated/decode-data-xml.ts","../../node_modules/entities/lib/decode_codepoint.ts","../../node_modules/entities/lib/decode.ts","../../node_modules/htmlparser2/lib/Tokenizer.ts","../../node_modules/htmlparser2/lib/Parser.ts","../../node_modules/htmlparser2/node_modules/domhandler/lib/node.js","../../node_modules/htmlparser2/node_modules/domhandler/lib/index.js","../../node_modules/entities/lib/generated/generated/encode-html.ts","../../node_modules/entities/lib/escape.ts","../../node_modules/entities/lib/encode.ts","../../node_modules/entities/lib/index.ts","../../node_modules/htmlparser2/node_modules/dom-serializer/lib/foreignNames.js","../../node_modules/htmlparser2/node_modules/dom-serializer/lib/index.js","../../node_modules/htmlparser2/node_modules/domutils/lib/stringify.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/traversal.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/manipulation.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/querying.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/legacy.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/helpers.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/feeds.ts","../../node_modules/htmlparser2/node_modules/domutils/lib/index.ts","../../node_modules/htmlparser2/lib/index.ts","../../node_modules/html-dom-parser/node_modules/domhandler/lib/node.js","../../node_modules/html-dom-parser/node_modules/domhandler/lib/index.js","../../node_modules/html-dom-parser/lib/server/utilities.js","../../node_modules/html-dom-parser/lib/server/html-to-dom.js","../../node_modules/html-dom-parser/index.js","../../node_modules/react-property/lib/possibleStandardNamesOptimized.js","../../node_modules/react-property/lib/index.js","../../node_modules/inline-style-parser/index.js","../../node_modules/style-to-object/index.js","../../node_modules/style-to-js/cjs/utilities.js","../../node_modules/style-to-js/cjs/index.js","../../node_modules/html-react-parser/lib/utilities.js","../../node_modules/html-react-parser/lib/attributes-to-props.js","../../node_modules/html-react-parser/lib/dom-to-react.js","../../node_modules/html-react-parser/index.js","../../node_modules/classnames/index.js","../../node_modules/highlight.js/lib/core.js","../../node_modules/highlight.js/lib/languages/1c.js","../../node_modules/highlight.js/lib/languages/abnf.js","../../node_modules/highlight.js/lib/languages/accesslog.js","../../node_modules/highlight.js/lib/languages/actionscript.js","../../node_modules/highlight.js/lib/languages/ada.js","../../node_modules/highlight.js/lib/languages/angelscript.js","../../node_modules/highlight.js/lib/languages/apache.js","../../node_modules/highlight.js/lib/languages/applescript.js","../../node_modules/highlight.js/lib/languages/arcade.js","../../node_modules/highlight.js/lib/languages/arduino.js","../../node_modules/highlight.js/lib/languages/armasm.js","../../node_modules/highlight.js/lib/languages/xml.js","../../node_modules/highlight.js/lib/languages/asciidoc.js","../../node_modules/highlight.js/lib/languages/aspectj.js","../../node_modules/highlight.js/lib/languages/autohotkey.js","../../node_modules/highlight.js/lib/languages/autoit.js","../../node_modules/highlight.js/lib/languages/avrasm.js","../../node_modules/highlight.js/lib/languages/awk.js","../../node_modules/highlight.js/lib/languages/axapta.js","../../node_modules/highlight.js/lib/languages/bash.js","../../node_modules/highlight.js/lib/languages/basic.js","../../node_modules/highlight.js/lib/languages/bnf.js","../../node_modules/highlight.js/lib/languages/brainfuck.js","../../node_modules/highlight.js/lib/languages/c.js","../../node_modules/highlight.js/lib/languages/cal.js","../../node_modules/highlight.js/lib/languages/capnproto.js","../../node_modules/highlight.js/lib/languages/ceylon.js","../../node_modules/highlight.js/lib/languages/clean.js","../../node_modules/highlight.js/lib/languages/clojure.js","../../node_modules/highlight.js/lib/languages/clojure-repl.js","../../node_modules/highlight.js/lib/languages/cmake.js","../../node_modules/highlight.js/lib/languages/coffeescript.js","../../node_modules/highlight.js/lib/languages/coq.js","../../node_modules/highlight.js/lib/languages/cos.js","../../node_modules/highlight.js/lib/languages/cpp.js","../../node_modules/highlight.js/lib/languages/crmsh.js","../../node_modules/highlight.js/lib/languages/crystal.js","../../node_modules/highlight.js/lib/languages/csharp.js","../../node_modules/highlight.js/lib/languages/csp.js","../../node_modules/highlight.js/lib/languages/css.js","../../node_modules/highlight.js/lib/languages/d.js","../../node_modules/highlight.js/lib/languages/markdown.js","../../node_modules/highlight.js/lib/languages/dart.js","../../node_modules/highlight.js/lib/languages/delphi.js","../../node_modules/highlight.js/lib/languages/diff.js","../../node_modules/highlight.js/lib/languages/django.js","../../node_modules/highlight.js/lib/languages/dns.js","../../node_modules/highlight.js/lib/languages/dockerfile.js","../../node_modules/highlight.js/lib/languages/dos.js","../../node_modules/highlight.js/lib/languages/dsconfig.js","../../node_modules/highlight.js/lib/languages/dts.js","../../node_modules/highlight.js/lib/languages/dust.js","../../node_modules/highlight.js/lib/languages/ebnf.js","../../node_modules/highlight.js/lib/languages/elixir.js","../../node_modules/highlight.js/lib/languages/elm.js","../../node_modules/highlight.js/lib/languages/ruby.js","../../node_modules/highlight.js/lib/languages/erb.js","../../node_modules/highlight.js/lib/languages/erlang-repl.js","../../node_modules/highlight.js/lib/languages/erlang.js","../../node_modules/highlight.js/lib/languages/excel.js","../../node_modules/highlight.js/lib/languages/fix.js","../../node_modules/highlight.js/lib/languages/flix.js","../../node_modules/highlight.js/lib/languages/fortran.js","../../node_modules/highlight.js/lib/languages/fsharp.js","../../node_modules/highlight.js/lib/languages/gams.js","../../node_modules/highlight.js/lib/languages/gauss.js","../../node_modules/highlight.js/lib/languages/gcode.js","../../node_modules/highlight.js/lib/languages/gherkin.js","../../node_modules/highlight.js/lib/languages/glsl.js","../../node_modules/highlight.js/lib/languages/gml.js","../../node_modules/highlight.js/lib/languages/go.js","../../node_modules/highlight.js/lib/languages/golo.js","../../node_modules/highlight.js/lib/languages/gradle.js","../../node_modules/highlight.js/lib/languages/graphql.js","../../node_modules/highlight.js/lib/languages/groovy.js","../../node_modules/highlight.js/lib/languages/haml.js","../../node_modules/highlight.js/lib/languages/handlebars.js","../../node_modules/highlight.js/lib/languages/haskell.js","../../node_modules/highlight.js/lib/languages/haxe.js","../../node_modules/highlight.js/lib/languages/hsp.js","../../node_modules/highlight.js/lib/languages/http.js","../../node_modules/highlight.js/lib/languages/hy.js","../../node_modules/highlight.js/lib/languages/inform7.js","../../node_modules/highlight.js/lib/languages/ini.js","../../node_modules/highlight.js/lib/languages/irpf90.js","../../node_modules/highlight.js/lib/languages/isbl.js","../../node_modules/highlight.js/lib/languages/java.js","../../node_modules/highlight.js/lib/languages/javascript.js","../../node_modules/highlight.js/lib/languages/jboss-cli.js","../../node_modules/highlight.js/lib/languages/json.js","../../node_modules/highlight.js/lib/languages/julia.js","../../node_modules/highlight.js/lib/languages/julia-repl.js","../../node_modules/highlight.js/lib/languages/kotlin.js","../../node_modules/highlight.js/lib/languages/lasso.js","../../node_modules/highlight.js/lib/languages/latex.js","../../node_modules/highlight.js/lib/languages/ldif.js","../../node_modules/highlight.js/lib/languages/leaf.js","../../node_modules/highlight.js/lib/languages/less.js","../../node_modules/highlight.js/lib/languages/lisp.js","../../node_modules/highlight.js/lib/languages/livecodeserver.js","../../node_modules/highlight.js/lib/languages/livescript.js","../../node_modules/highlight.js/lib/languages/llvm.js","../../node_modules/highlight.js/lib/languages/lsl.js","../../node_modules/highlight.js/lib/languages/lua.js","../../node_modules/highlight.js/lib/languages/makefile.js","../../node_modules/highlight.js/lib/languages/mathematica.js","../../node_modules/highlight.js/lib/languages/matlab.js","../../node_modules/highlight.js/lib/languages/maxima.js","../../node_modules/highlight.js/lib/languages/mel.js","../../node_modules/highlight.js/lib/languages/mercury.js","../../node_modules/highlight.js/lib/languages/mipsasm.js","../../node_modules/highlight.js/lib/languages/mizar.js","../../node_modules/highlight.js/lib/languages/perl.js","../../node_modules/highlight.js/lib/languages/mojolicious.js","../../node_modules/highlight.js/lib/languages/monkey.js","../../node_modules/highlight.js/lib/languages/moonscript.js","../../node_modules/highlight.js/lib/languages/n1ql.js","../../node_modules/highlight.js/lib/languages/nestedtext.js","../../node_modules/highlight.js/lib/languages/nginx.js","../../node_modules/highlight.js/lib/languages/nim.js","../../node_modules/highlight.js/lib/languages/nix.js","../../node_modules/highlight.js/lib/languages/node-repl.js","../../node_modules/highlight.js/lib/languages/nsis.js","../../node_modules/highlight.js/lib/languages/objectivec.js","../../node_modules/highlight.js/lib/languages/ocaml.js","../../node_modules/highlight.js/lib/languages/openscad.js","../../node_modules/highlight.js/lib/languages/oxygene.js","../../node_modules/highlight.js/lib/languages/parser3.js","../../node_modules/highlight.js/lib/languages/pf.js","../../node_modules/highlight.js/lib/languages/pgsql.js","../../node_modules/highlight.js/lib/languages/php.js","../../node_modules/highlight.js/lib/languages/php-template.js","../../node_modules/highlight.js/lib/languages/plaintext.js","../../node_modules/highlight.js/lib/languages/pony.js","../../node_modules/highlight.js/lib/languages/powershell.js","../../node_modules/highlight.js/lib/languages/processing.js","../../node_modules/highlight.js/lib/languages/profile.js","../../node_modules/highlight.js/lib/languages/prolog.js","../../node_modules/highlight.js/lib/languages/properties.js","../../node_modules/highlight.js/lib/languages/protobuf.js","../../node_modules/highlight.js/lib/languages/puppet.js","../../node_modules/highlight.js/lib/languages/purebasic.js","../../node_modules/highlight.js/lib/languages/python.js","../../node_modules/highlight.js/lib/languages/python-repl.js","../../node_modules/highlight.js/lib/languages/q.js","../../node_modules/highlight.js/lib/languages/qml.js","../../node_modules/highlight.js/lib/languages/r.js","../../node_modules/highlight.js/lib/languages/reasonml.js","../../node_modules/highlight.js/lib/languages/rib.js","../../node_modules/highlight.js/lib/languages/roboconf.js","../../node_modules/highlight.js/lib/languages/routeros.js","../../node_modules/highlight.js/lib/languages/rsl.js","../../node_modules/highlight.js/lib/languages/ruleslanguage.js","../../node_modules/highlight.js/lib/languages/rust.js","../../node_modules/highlight.js/lib/languages/sas.js","../../node_modules/highlight.js/lib/languages/scala.js","../../node_modules/highlight.js/lib/languages/scheme.js","../../node_modules/highlight.js/lib/languages/scilab.js","../../node_modules/highlight.js/lib/languages/scss.js","../../node_modules/highlight.js/lib/languages/shell.js","../../node_modules/highlight.js/lib/languages/smali.js","../../node_modules/highlight.js/lib/languages/smalltalk.js","../../node_modules/highlight.js/lib/languages/sml.js","../../node_modules/highlight.js/lib/languages/sqf.js","../../node_modules/highlight.js/lib/languages/sql.js","../../node_modules/highlight.js/lib/languages/stan.js","../../node_modules/highlight.js/lib/languages/stata.js","../../node_modules/highlight.js/lib/languages/step21.js","../../node_modules/highlight.js/lib/languages/stylus.js","../../node_modules/highlight.js/lib/languages/subunit.js","../../node_modules/highlight.js/lib/languages/swift.js","../../node_modules/highlight.js/lib/languages/taggerscript.js","../../node_modules/highlight.js/lib/languages/yaml.js","../../node_modules/highlight.js/lib/languages/tap.js","../../node_modules/highlight.js/lib/languages/tcl.js","../../node_modules/highlight.js/lib/languages/thrift.js","../../node_modules/highlight.js/lib/languages/tp.js","../../node_modules/highlight.js/lib/languages/twig.js","../../node_modules/highlight.js/lib/languages/typescript.js","../../node_modules/highlight.js/lib/languages/vala.js","../../node_modules/highlight.js/lib/languages/vbnet.js","../../node_modules/highlight.js/lib/languages/vbscript.js","../../node_modules/highlight.js/lib/languages/vbscript-html.js","../../node_modules/highlight.js/lib/languages/verilog.js","../../node_modules/highlight.js/lib/languages/vhdl.js","../../node_modules/highlight.js/lib/languages/vim.js","../../node_modules/highlight.js/lib/languages/wasm.js","../../node_modules/highlight.js/lib/languages/wren.js","../../node_modules/highlight.js/lib/languages/x86asm.js","../../node_modules/highlight.js/lib/languages/xl.js","../../node_modules/highlight.js/lib/languages/xquery.js","../../node_modules/highlight.js/lib/languages/zephir.js","../../node_modules/highlight.js/lib/index.js","../src/index.ts","../src/asciidoc/Admonition.tsx","../../node_modules/html-react-parser/index.mjs","../src/utils.ts","../src/asciidoc/Listing.tsx","../../node_modules/highlight.js/es/index.js","../src/asciidoc/Table.tsx","../src/asciidoc/index.ts","../src/ui/badge/Badge.tsx","../src/ui/button/Button.tsx","../src/ui/spinner/Spinner.tsx","../src/ui/tabs/Tabs.tsx","../../icons/react/Access24Icon.tsx","../../icons/react/Action24Icon.tsx","../../icons/react/AddRoundel24Icon.tsx","../../icons/react/Calendar24Icon.tsx","../../icons/react/Chat24Icon.tsx","../../icons/react/Clipboard24Icon.tsx","../../icons/react/Cloud24Icon.tsx","../../icons/react/Compatibility24Icon.tsx","../../icons/react/Contrast24Icon.tsx","../../icons/react/Cpu24Icon.tsx","../../icons/react/Delete24Icon.tsx","../../icons/react/Dislike24Icon.tsx","../../icons/react/Document24Icon.tsx","../../icons/react/Dots24Icon.tsx","../../icons/react/Download24Icon.tsx","../../icons/react/Email24Icon.tsx","../../icons/react/Error24Icon.tsx","../../icons/react/Firewall24Icon.tsx","../../icons/react/Folder24Icon.tsx","../../icons/react/Gateway24Icon.tsx","../../icons/react/Heart24Icon.tsx","../../icons/react/Hide24Icon.tsx","../../icons/react/Hourglass24Icon.tsx","../../icons/react/Images24Icon.tsx","../../icons/react/Info24Icon.tsx","../../icons/react/Instances24Icon.tsx","../../icons/react/IpGlobal24Icon.tsx","../../icons/react/IpLocal24Icon.tsx","../../icons/react/Issues24Icon.tsx","../../icons/react/Key24Icon.tsx","../../icons/react/Like24Icon.tsx","../../icons/react/LoadBalancer24Icon.tsx","../../icons/react/Location24Icon.tsx","../../icons/react/Logs24Icon.tsx","../../icons/react/Networking24Icon.tsx","../../icons/react/Organization24Icon.tsx","../../icons/react/Overview24Icon.tsx","../../icons/react/Person24Icon.tsx","../../icons/react/PersonGroup24Icon.tsx","../../icons/react/Progress24Icon.tsx","../../icons/react/Prohibited24Icon.tsx","../../icons/react/Router24Icon.tsx","../../icons/react/Safety24Icon.tsx","../../icons/react/Security24Icon.tsx","../../icons/react/Racks24Icon.tsx","../../icons/react/Settings24Icon.tsx","../../icons/react/Snapshots24Icon.tsx","../../icons/react/SoftwareUpdate24Icon.tsx","../../icons/react/Speaker24Icon.tsx","../../icons/react/Storage24Icon.tsx","../../icons/react/Subnet24Icon.tsx","../../icons/react/Resize24Icon.tsx","../../icons/react/Terminal24Icon.tsx","../../icons/react/Transmit24Icon.tsx","../../icons/react/Wireless24Icon.tsx","../../icons/react/Access16Icon.tsx","../../icons/react/Action16Icon.tsx","../../icons/react/AddRoundel16Icon.tsx","../../icons/react/Calendar16Icon.tsx","../../icons/react/Chat16Icon.tsx","../../icons/react/Clipboard16Icon.tsx","../../icons/react/Cloud16Icon.tsx","../../icons/react/Close16Icon.tsx","../../icons/react/Compability16Icon.tsx","../../icons/react/Contrast16Icon.tsx","../../icons/react/Cpu16Icon.tsx","../../icons/react/Delete16Icon.tsx","../../icons/react/Dislike16Icon.tsx","../../icons/react/Document16Icon.tsx","../../icons/react/Dots16Icon.tsx","../../icons/react/DownloadRoundel16Icon.tsx","../../icons/react/Edit16Icon.tsx","../../icons/react/Email16Icon.tsx","../../icons/react/Error16Icon.tsx","../../icons/react/Firewall16Icon.tsx","../../icons/react/Folder16Icon.tsx","../../icons/react/Gateway16Icon.tsx","../../icons/react/Heart16Icon.tsx","../../icons/react/Hide16Icon.tsx","../../icons/react/Hourglass16Icon.tsx","../../icons/react/Images16Icon.tsx","../../icons/react/Info16Icon.tsx","../../icons/react/Instances16Icon.tsx","../../icons/react/Integration16Icon.tsx","../../icons/react/IpGlobal16Icon.tsx","../../icons/react/IpLocal16Icon.tsx","../../icons/react/Issues16Icon.tsx","../../icons/react/Key16Icon.tsx","../../icons/react/Like16Icon.tsx","../../icons/react/Link16Icon.tsx","../../icons/react/LoadBalancer16Icon.tsx","../../icons/react/Logs16Icon.tsx","../../icons/react/Metrics16Icon.tsx","../../icons/react/Networking16Icon.tsx","../../icons/react/NewWindow16Icon.tsx","../../icons/react/Notifications16Icon.tsx","../../icons/react/Organization16Icon.tsx","../../icons/react/Overview16Icon.tsx","../../icons/react/Person16Icon.tsx","../../icons/react/PersonGroup16Icon.tsx","../../icons/react/Profile16Icon.tsx","../../icons/react/Refresh16Icon.tsx","../../icons/react/Ram16Icon.tsx","../../icons/react/Repair16Icon.tsx","../../icons/react/Resize16Icon.tsx","../../icons/react/Router16Icon.tsx","../../icons/react/Search16Icon.tsx","../../icons/react/Security16Icon.tsx","../../icons/react/Servers16Icon.tsx","../../icons/react/Settings16Icon.tsx","../../icons/react/Show16Icon.tsx","../../icons/react/Snapshots16Icon.tsx","../../icons/react/SoftwareUpdate16Icon.tsx","../../icons/react/Ssd16Icon.tsx","../../icons/react/Storage16Icon.tsx","../../icons/react/Subnet16Icon.tsx","../../icons/react/Tags16Icon.tsx","../../icons/react/Terminal16Icon.tsx","../../icons/react/Time16Icon.tsx","../../icons/react/Transmit16Icon.tsx","../../icons/react/Add12Icon.tsx","../../icons/react/AddRoundel12Icon.tsx","../../icons/react/Checkmark12Icon.tsx","../../icons/react/Close12Icon.tsx","../../icons/react/DirectionRightIcon.tsx","../../icons/react/DirectionUpIcon.tsx","../../icons/react/DirectionDownIcon.tsx","../../icons/react/DirectionLeftIcon.tsx","../../icons/react/Clipboard12Icon.tsx","../../icons/react/Disabled12Icon.tsx","../../icons/react/Error12Icon.tsx","../../icons/react/Filter12Icon.tsx","../../icons/react/Key12Icon.tsx","../../icons/react/Loader12Icon.tsx","../../icons/react/More12Icon.tsx","../../icons/react/NextArrow12Icon.tsx","../../icons/react/PrevArrow12Icon.tsx","../../icons/react/OpenLink12Icon.tsx","../../icons/react/Repair12Icon.tsx","../../icons/react/Security12Icon.tsx","../../icons/react/Success12Icon.tsx","../../icons/react/Unauthorized12Icon.tsx","../../icons/react/Warning12Icon.tsx","../../icons/react/Question12Icon.tsx","../../icons/react/Hide12Icon.tsx","../../icons/react/SelectArrows6Icon.tsx","../../icons/react/Close8Icon.tsx","../src/ui/checkbox/Checkbox.tsx","../src/ui/empty-message/EmptyMessage.tsx","../src/ui/listbox/Listbox.tsx"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;\n/** Types of elements found in htmlparser2's DOM */\nvar ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for