@apia/theme 4.0.30 → 4.0.32
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-DYGQfvLC.js} +88 -21
- package/dist/index-DYGQfvLC.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{styles-DrJhu_P1.js → styles-BQLlZhHD.js} +2 -2
- package/dist/{styles-DrJhu_P1.js.map → styles-BQLlZhHD.js.map} +1 -1
- package/package.json +4 -4
- package/dist/index-BvID00ug.js.map +0 -1
|
@@ -3116,6 +3116,13 @@ const modals = {
|
|
|
3116
3116
|
backgroundColor: "palette.background.default"
|
|
3117
3117
|
}
|
|
3118
3118
|
}
|
|
3119
|
+
},
|
|
3120
|
+
".table_container": {
|
|
3121
|
+
flexGrow: 1
|
|
3122
|
+
},
|
|
3123
|
+
".pagination": {
|
|
3124
|
+
position: "sticky",
|
|
3125
|
+
bottom: "0"
|
|
3119
3126
|
}
|
|
3120
3127
|
},
|
|
3121
3128
|
".responsiveTableContext__wrapper": {
|
|
@@ -3280,7 +3287,7 @@ const primary$4 = (theme) => {
|
|
|
3280
3287
|
insetBlockStart: 0,
|
|
3281
3288
|
backgroundColor: "palette.background.paper",
|
|
3282
3289
|
"tr:not(.filtersRow):not(.responsiveTable__filters__row)": {
|
|
3283
|
-
"th,
|
|
3290
|
+
"& > th, & > .stateCell": {
|
|
3284
3291
|
variant: "buttons.primary",
|
|
3285
3292
|
py: responsive$1({ 0: 3, 4: 4 }),
|
|
3286
3293
|
px: responsive$1({ 0: 3, 4: 4 }),
|
|
@@ -3358,6 +3365,9 @@ const primary$4 = (theme) => {
|
|
|
3358
3365
|
"tr.filtersRow, tr.responsiveTable__filters__row": {
|
|
3359
3366
|
backgroundColor: "components.primaryTable.body.backgroundColor",
|
|
3360
3367
|
boxShadow: "tableFilters",
|
|
3368
|
+
".stateCell": {
|
|
3369
|
+
background: "form.fields.disabled.backgroundColor"
|
|
3370
|
+
},
|
|
3361
3371
|
"td.noFilter[class]": {
|
|
3362
3372
|
background: "form.fields.disabled.backgroundColor"
|
|
3363
3373
|
},
|
|
@@ -4494,6 +4504,9 @@ const accordion = {
|
|
|
4494
4504
|
alignItems: "stretch",
|
|
4495
4505
|
flexShrink: 0
|
|
4496
4506
|
},
|
|
4507
|
+
".filtersRender": {
|
|
4508
|
+
width: "100%"
|
|
4509
|
+
},
|
|
4497
4510
|
".accordion__item__button__rightGroup": {
|
|
4498
4511
|
flexShrink: 0
|
|
4499
4512
|
},
|
|
@@ -5067,25 +5080,28 @@ const scheduler = {
|
|
|
5067
5080
|
".no__appoinments": {
|
|
5068
5081
|
border: "1px solid",
|
|
5069
5082
|
borderColor: "palette.border.field",
|
|
5070
|
-
padding: "10px"
|
|
5083
|
+
padding: "10px",
|
|
5084
|
+
borderRadius: "default"
|
|
5071
5085
|
},
|
|
5072
5086
|
".appoinments__details": {
|
|
5087
|
+
borderRadius: "default",
|
|
5088
|
+
borderCollapse: "collapse",
|
|
5073
5089
|
width: "100%",
|
|
5074
5090
|
textAlign: "left",
|
|
5075
5091
|
border: "1px solid",
|
|
5076
5092
|
borderColor: "palette.border.field",
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5093
|
+
"th, .appoinments__details_id": {
|
|
5094
|
+
fontWeight: "bold",
|
|
5095
|
+
border: "1px solid",
|
|
5096
|
+
borderColor: "palette.border.field",
|
|
5097
|
+
padding: "10px"
|
|
5098
|
+
},
|
|
5099
|
+
".appoinments__details_attribute": {
|
|
5100
|
+
border: "1px solid",
|
|
5101
|
+
borderColor: "palette.border.field",
|
|
5102
|
+
padding: "5px",
|
|
5103
|
+
minWidth: "200px"
|
|
5104
|
+
}
|
|
5089
5105
|
}
|
|
5090
5106
|
},
|
|
5091
5107
|
"&.scheduler": {
|
|
@@ -7035,7 +7051,9 @@ const topBox = {
|
|
|
7035
7051
|
justifyContent: "center",
|
|
7036
7052
|
display: "flex",
|
|
7037
7053
|
".HamburguerIconWrapper": {
|
|
7038
|
-
|
|
7054
|
+
"&:not(.forced)": {
|
|
7055
|
+
display: responsive$2({ 0: "none", 3: "flex", 4: "none" })
|
|
7056
|
+
},
|
|
7039
7057
|
width: "41px"
|
|
7040
7058
|
},
|
|
7041
7059
|
"button, a": {
|
|
@@ -7342,8 +7360,10 @@ const twoColumnsCentered = {
|
|
|
7342
7360
|
flex: responsive$2({ 0: "none", 5: "thisValueWasUnsetValue" })
|
|
7343
7361
|
},
|
|
7344
7362
|
".HamburguerIconWrapper": {
|
|
7363
|
+
"&:not(.forced)": {
|
|
7364
|
+
display: responsive$2({ 0: "none", 3: "flex", 4: "none" })
|
|
7365
|
+
},
|
|
7345
7366
|
alignItems: "center",
|
|
7346
|
-
display: responsive$2({ 0: "none", 3: "flex", 4: "none" }),
|
|
7347
7367
|
gap: 1,
|
|
7348
7368
|
justifyContent: "end",
|
|
7349
7369
|
paddingRight: "32px",
|
|
@@ -7392,7 +7412,9 @@ const twoColumnsList = {
|
|
|
7392
7412
|
".topBox__nav": {
|
|
7393
7413
|
display: "flex",
|
|
7394
7414
|
".HamburguerIconWrapper": {
|
|
7395
|
-
|
|
7415
|
+
"&:not(.forced)": {
|
|
7416
|
+
display: responsive$2({ 0: "none", 3: "flex" })
|
|
7417
|
+
}
|
|
7396
7418
|
}
|
|
7397
7419
|
}
|
|
7398
7420
|
}
|
|
@@ -7504,7 +7526,9 @@ const twoColumnsListOneColumnAside = {
|
|
|
7504
7526
|
".topBox__nav": {
|
|
7505
7527
|
display: "flex",
|
|
7506
7528
|
".HamburguerIconWrapper": {
|
|
7507
|
-
|
|
7529
|
+
"&:not(.forced)": {
|
|
7530
|
+
display: responsive$2({ 0: "none", 3: "flex" })
|
|
7531
|
+
}
|
|
7508
7532
|
}
|
|
7509
7533
|
}
|
|
7510
7534
|
}
|
|
@@ -8249,7 +8273,7 @@ async function getRemarkable(extensions) {
|
|
|
8249
8273
|
|
|
8250
8274
|
const parseMarkdown = async (options) => {
|
|
8251
8275
|
const markdownLibrary = await getRemarkable(options.extensions);
|
|
8252
|
-
const css = (await import('./styles-
|
|
8276
|
+
const css = (await import('./styles-BQLlZhHD.js')).markdownParserStyles ?? new ErrorImporting();
|
|
8253
8277
|
if (css instanceof ErrorImporting)
|
|
8254
8278
|
throw new Error("Could not import css, cannot continue");
|
|
8255
8279
|
const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
|
|
@@ -8267,7 +8291,50 @@ const parseMarkdown = async (options) => {
|
|
|
8267
8291
|
css(options.additionalStyles, options.extensions),
|
|
8268
8292
|
`${options?.additionalBodyContent?.before ?? ""}${htmlString}${options?.additionalBodyContent?.after ?? ""}`
|
|
8269
8293
|
);
|
|
8270
|
-
|
|
8294
|
+
let finalHtml = rendered;
|
|
8295
|
+
try {
|
|
8296
|
+
const DOMParserCtor = globalThis.DOMParser;
|
|
8297
|
+
const hasDOM = typeof DOMParserCtor !== "undefined" && typeof globalThis.document !== "undefined";
|
|
8298
|
+
if (hasDOM) {
|
|
8299
|
+
const parser = new DOMParserCtor();
|
|
8300
|
+
const doc = parser.parseFromString(finalHtml, "text/html");
|
|
8301
|
+
const body = doc.body;
|
|
8302
|
+
const headings = Array.from(
|
|
8303
|
+
body.querySelectorAll("h1, h2, h3")
|
|
8304
|
+
);
|
|
8305
|
+
for (const h of headings) {
|
|
8306
|
+
if (h.tagName === "H1") {
|
|
8307
|
+
h.classList.add("mt-high");
|
|
8308
|
+
}
|
|
8309
|
+
const parent = h.parentElement;
|
|
8310
|
+
if (parent && parent.tagName === "DIV" && parent.getAttribute("data-keep-with-next") === "true") {
|
|
8311
|
+
continue;
|
|
8312
|
+
}
|
|
8313
|
+
const wrapper = doc.createElement("div");
|
|
8314
|
+
wrapper.setAttribute(
|
|
8315
|
+
"style",
|
|
8316
|
+
"break-inside: avoid; display: flex; flex-direction: column; gap: var(--space-6)"
|
|
8317
|
+
);
|
|
8318
|
+
wrapper.setAttribute("data-keep-with-next", "true");
|
|
8319
|
+
h.parentNode.insertBefore(wrapper, h);
|
|
8320
|
+
let node = h;
|
|
8321
|
+
while (node) {
|
|
8322
|
+
const next = node.nextSibling;
|
|
8323
|
+
wrapper.appendChild(node);
|
|
8324
|
+
if (next && next.tagName) {
|
|
8325
|
+
const tag = String(next.tagName);
|
|
8326
|
+
if (/^H[1-6]$/.test(tag)) {
|
|
8327
|
+
break;
|
|
8328
|
+
}
|
|
8329
|
+
}
|
|
8330
|
+
node = next;
|
|
8331
|
+
}
|
|
8332
|
+
}
|
|
8333
|
+
finalHtml = doc.documentElement.outerHTML;
|
|
8334
|
+
}
|
|
8335
|
+
} catch {
|
|
8336
|
+
}
|
|
8337
|
+
return finalHtml;
|
|
8271
8338
|
};
|
|
8272
8339
|
assignHelp(parseMarkdown);
|
|
8273
8340
|
|
|
@@ -8707,4 +8774,4 @@ class MarkdownBuilder {
|
|
|
8707
8774
|
}
|
|
8708
8775
|
|
|
8709
8776
|
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-
|
|
8777
|
+
//# sourceMappingURL=index-DYGQfvLC.js.map
|