@apia/theme 4.0.29 → 4.0.31
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/dist/{index-BvID00ug.js → index-CC39t7Na.js} +75 -21
- package/dist/index-CC39t7Na.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{styles-DrJhu_P1.js → styles-DTFcbN8i.js} +2 -2
- package/dist/{styles-DrJhu_P1.js.map → styles-DTFcbN8i.js.map} +1 -1
- package/package.json +4 -4
- package/dist/index-BvID00ug.js.map +0 -1
|
@@ -3280,7 +3280,7 @@ const primary$4 = (theme) => {
|
|
|
3280
3280
|
insetBlockStart: 0,
|
|
3281
3281
|
backgroundColor: "palette.background.paper",
|
|
3282
3282
|
"tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
|
|
3283
|
-
"th,
|
|
3283
|
+
"& > th, & > .stateCell": {
|
|
3284
3284
|
variant: "buttons.primary",
|
|
3285
3285
|
py: responsive$1({ 0: 3, 4: 4 }),
|
|
3286
3286
|
px: responsive$1({ 0: 3, 4: 4 }),
|
|
@@ -5067,25 +5067,28 @@ const scheduler = {
|
|
|
5067
5067
|
".no__appoinments": {
|
|
5068
5068
|
border: "1px solid",
|
|
5069
5069
|
borderColor: "palette.border.field",
|
|
5070
|
-
padding: "10px"
|
|
5070
|
+
padding: "10px",
|
|
5071
|
+
borderRadius: "default"
|
|
5071
5072
|
},
|
|
5072
5073
|
".appoinments__details": {
|
|
5074
|
+
borderRadius: "default",
|
|
5075
|
+
borderCollapse: "collapse",
|
|
5073
5076
|
width: "100%",
|
|
5074
5077
|
textAlign: "left",
|
|
5075
5078
|
border: "1px solid",
|
|
5076
5079
|
borderColor: "palette.border.field",
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5080
|
+
"th, .appoinments__details_id": {
|
|
5081
|
+
fontWeight: "bold",
|
|
5082
|
+
border: "1px solid",
|
|
5083
|
+
borderColor: "palette.border.field",
|
|
5084
|
+
padding: "10px"
|
|
5085
|
+
},
|
|
5086
|
+
".appoinments__details_attribute": {
|
|
5087
|
+
border: "1px solid",
|
|
5088
|
+
borderColor: "palette.border.field",
|
|
5089
|
+
padding: "5px",
|
|
5090
|
+
minWidth: "200px"
|
|
5091
|
+
}
|
|
5089
5092
|
}
|
|
5090
5093
|
},
|
|
5091
5094
|
"&.scheduler": {
|
|
@@ -7035,7 +7038,9 @@ const topBox = {
|
|
|
7035
7038
|
justifyContent: "center",
|
|
7036
7039
|
display: "flex",
|
|
7037
7040
|
".HamburguerIconWrapper": {
|
|
7038
|
-
|
|
7041
|
+
"&:not(.forced)": {
|
|
7042
|
+
display: responsive$2({ 0: "none", 3: "flex", 4: "none" })
|
|
7043
|
+
},
|
|
7039
7044
|
width: "41px"
|
|
7040
7045
|
},
|
|
7041
7046
|
"button, a": {
|
|
@@ -7342,8 +7347,10 @@ const twoColumnsCentered = {
|
|
|
7342
7347
|
flex: responsive$2({ 0: "none", 5: "thisValueWasUnsetValue" })
|
|
7343
7348
|
},
|
|
7344
7349
|
".HamburguerIconWrapper": {
|
|
7350
|
+
"&:not(.forced)": {
|
|
7351
|
+
display: responsive$2({ 0: "none", 3: "flex", 4: "none" })
|
|
7352
|
+
},
|
|
7345
7353
|
alignItems: "center",
|
|
7346
|
-
display: responsive$2({ 0: "none", 3: "flex", 4: "none" }),
|
|
7347
7354
|
gap: 1,
|
|
7348
7355
|
justifyContent: "end",
|
|
7349
7356
|
paddingRight: "32px",
|
|
@@ -7392,7 +7399,9 @@ const twoColumnsList = {
|
|
|
7392
7399
|
".topBox__nav": {
|
|
7393
7400
|
display: "flex",
|
|
7394
7401
|
".HamburguerIconWrapper": {
|
|
7395
|
-
|
|
7402
|
+
"&:not(.forced)": {
|
|
7403
|
+
display: responsive$2({ 0: "none", 3: "flex" })
|
|
7404
|
+
}
|
|
7396
7405
|
}
|
|
7397
7406
|
}
|
|
7398
7407
|
}
|
|
@@ -7504,7 +7513,9 @@ const twoColumnsListOneColumnAside = {
|
|
|
7504
7513
|
".topBox__nav": {
|
|
7505
7514
|
display: "flex",
|
|
7506
7515
|
".HamburguerIconWrapper": {
|
|
7507
|
-
|
|
7516
|
+
"&:not(.forced)": {
|
|
7517
|
+
display: responsive$2({ 0: "none", 3: "flex" })
|
|
7518
|
+
}
|
|
7508
7519
|
}
|
|
7509
7520
|
}
|
|
7510
7521
|
}
|
|
@@ -8249,7 +8260,7 @@ async function getRemarkable(extensions) {
|
|
|
8249
8260
|
|
|
8250
8261
|
const parseMarkdown = async (options) => {
|
|
8251
8262
|
const markdownLibrary = await getRemarkable(options.extensions);
|
|
8252
|
-
const css = (await import('./styles-
|
|
8263
|
+
const css = (await import('./styles-DTFcbN8i.js')).markdownParserStyles ?? new ErrorImporting();
|
|
8253
8264
|
if (css instanceof ErrorImporting)
|
|
8254
8265
|
throw new Error("Could not import css, cannot continue");
|
|
8255
8266
|
const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
|
|
@@ -8267,7 +8278,50 @@ const parseMarkdown = async (options) => {
|
|
|
8267
8278
|
css(options.additionalStyles, options.extensions),
|
|
8268
8279
|
`${options?.additionalBodyContent?.before ?? ""}${htmlString}${options?.additionalBodyContent?.after ?? ""}`
|
|
8269
8280
|
);
|
|
8270
|
-
|
|
8281
|
+
let finalHtml = rendered;
|
|
8282
|
+
try {
|
|
8283
|
+
const DOMParserCtor = globalThis.DOMParser;
|
|
8284
|
+
const hasDOM = typeof DOMParserCtor !== "undefined" && typeof globalThis.document !== "undefined";
|
|
8285
|
+
if (hasDOM) {
|
|
8286
|
+
const parser = new DOMParserCtor();
|
|
8287
|
+
const doc = parser.parseFromString(finalHtml, "text/html");
|
|
8288
|
+
const body = doc.body;
|
|
8289
|
+
const headings = Array.from(
|
|
8290
|
+
body.querySelectorAll("h1, h2, h3")
|
|
8291
|
+
);
|
|
8292
|
+
for (const h of headings) {
|
|
8293
|
+
if (h.tagName === "H1") {
|
|
8294
|
+
h.classList.add("mt-high");
|
|
8295
|
+
}
|
|
8296
|
+
const parent = h.parentElement;
|
|
8297
|
+
if (parent && parent.tagName === "DIV" && parent.getAttribute("data-keep-with-next") === "true") {
|
|
8298
|
+
continue;
|
|
8299
|
+
}
|
|
8300
|
+
const wrapper = doc.createElement("div");
|
|
8301
|
+
wrapper.setAttribute(
|
|
8302
|
+
"style",
|
|
8303
|
+
"break-inside: avoid; display: flex; flex-direction: column; gap: var(--space-6)"
|
|
8304
|
+
);
|
|
8305
|
+
wrapper.setAttribute("data-keep-with-next", "true");
|
|
8306
|
+
h.parentNode.insertBefore(wrapper, h);
|
|
8307
|
+
let node = h;
|
|
8308
|
+
while (node) {
|
|
8309
|
+
const next = node.nextSibling;
|
|
8310
|
+
wrapper.appendChild(node);
|
|
8311
|
+
if (next && next.tagName) {
|
|
8312
|
+
const tag = String(next.tagName);
|
|
8313
|
+
if (/^H[1-6]$/.test(tag)) {
|
|
8314
|
+
break;
|
|
8315
|
+
}
|
|
8316
|
+
}
|
|
8317
|
+
node = next;
|
|
8318
|
+
}
|
|
8319
|
+
}
|
|
8320
|
+
finalHtml = doc.documentElement.outerHTML;
|
|
8321
|
+
}
|
|
8322
|
+
} catch {
|
|
8323
|
+
}
|
|
8324
|
+
return finalHtml;
|
|
8271
8325
|
};
|
|
8272
8326
|
assignHelp(parseMarkdown);
|
|
8273
8327
|
|
|
@@ -8707,4 +8761,4 @@ class MarkdownBuilder {
|
|
|
8707
8761
|
}
|
|
8708
8762
|
|
|
8709
8763
|
export { ApiaThemeProvider as A, MarkdownTableOfContents as B, Form as F, MaterialInput as M, Table as T, getColorStates as a, getColorsAndStatesByDefinition as b, getColorsAndStatesByPath as c, getColorsByDefinition as d, getColorsByPath as e, getOneColorState as f, getColorState as g, applyStatesGetColor as h, makeStyledComponent as i, injectStyles as j, getSpacingLayouts as k, spacing as l, markdownExtensions as m, smallButton as n, focusOutline as o, parsePalette as p, getVariant as q, responsive$1 as r, spacingLayouts as s, MarkdownBlock as t, useMainTheme as u, MarkdownBuilder as v, parseMarkdown as w, MarkdownList as x, MarkdownParagraph as y, MarkdownTable as z };
|
|
8710
|
-
//# sourceMappingURL=index-
|
|
8764
|
+
//# sourceMappingURL=index-CC39t7Na.js.map
|