diff --git a/.figmaexportrc.js b/.figmaexportrc.js index e2f9e7c..267b03d 100644 --- a/.figmaexportrc.js +++ b/.figmaexportrc.js @@ -45,11 +45,6 @@ module.exports = { basename = `carat-${basename.split('=')[1].toLowerCase()}-12` } - // Update distro icon names to match what's in figma - if (dirname === 'distro') { - return `distro-${basename}.svg` - } - // Add the icon's size category as a postfix, if present if (!isNaN(parseInt(dirname))) { return `${basename}-${dirname}.svg` diff --git a/components/dist/index.d.ts b/components/dist/index.d.ts index 5d2cf98..08413af 100644 --- a/components/dist/index.d.ts +++ b/components/dist/index.d.ts @@ -30,8 +30,8 @@ declare const Badge: ({ className, children, color, variant, }: BadgeProps) => r declare const buttonSizes: readonly ["sm", "icon", "base"]; declare const variants: readonly ["primary", "secondary", "ghost", "danger"]; -type ButtonSize = (typeof buttonSizes)[number]; -type Variant = (typeof variants)[number]; +type ButtonSize = typeof buttonSizes[number]; +type Variant = typeof variants[number]; type ButtonStyleProps = { size?: ButtonSize; variant?: Variant; @@ -45,8 +45,8 @@ declare const Button: react.ForwardRefExoticComponent & declare const spinnerSizes: readonly ["base", "lg"]; declare const spinnerVariants: readonly ["primary", "secondary", "ghost", "danger"]; -type SpinnerSize = (typeof spinnerSizes)[number]; -type SpinnerVariant = (typeof spinnerVariants)[number]; +type SpinnerSize = typeof spinnerSizes[number]; +type SpinnerVariant = typeof spinnerVariants[number]; interface SpinnerProps { className?: string; size?: SpinnerSize; diff --git a/components/dist/index.js b/components/dist/index.js index cd6469d..4a96705 100644 --- a/components/dist/index.js +++ b/components/dist/index.js @@ -58782,7 +58782,7 @@ var import_jsx_runtime = require("react/jsx-runtime"); var Admonition = ({ node }) => { const attrs = node.getAttributes(); const content = (0, import_react_asciidoc.useGetContent)(node); - const contentModel = node.content_model; + const contentModel = node.getContentModel(); let icon; if (attrs.name === "caution") { icon = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Error12, {}); diff --git a/components/dist/index.js.map b/components/dist/index.js.map index 38fa63b..ce8a4fe 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/react/cjs/react.production.min.js","../../node_modules/react/cjs/react.development.js","../../node_modules/react/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"],"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