@apia/theme 3.0.13 → 4.0.1
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/html-B-K0BIiw.js.map +1 -1
- package/dist/{index-CGg8tjIE.js → index-CcjXuxbb.js} +108 -3
- package/dist/index-CcjXuxbb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{styles-DWludKkV.js → styles-BaY8MoR4.js} +2 -2
- package/dist/styles-BaY8MoR4.js.map +1 -0
- package/jsx-runtime/dist/jsx-runtime.d.ts +3 -3
- package/jsx-runtime/dist/theme-ui-jsx-runtime.browser.esm.js +2 -2
- package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.d.ts +2 -2
- package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.d.ts.map +1 -1
- package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.dev.js +21 -21
- package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.js +7 -7
- package/jsx-runtime/dist/theme-ui-jsx-runtime.cjs.prod.js +21 -21
- package/jsx-runtime/dist/theme-ui-jsx-runtime.esm.js +2 -2
- package/jsx-runtime/dist/theme-ui-jsx-runtime.worker.esm.js +2 -2
- package/jsx-runtime/package.json +8 -8
- package/package.json +3 -3
- package/dist/index-CGg8tjIE.js.map +0 -1
- package/dist/styles-DWludKkV.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-B-K0BIiw.js","sources":["../src/markdown/html.ts"],"sourcesContent":["import { IMarkdownHtml } from './types';\
|
|
1
|
+
{"version":3,"file":"html-B-K0BIiw.js","sources":["../src/markdown/html.ts"],"sourcesContent":["import { IMarkdownHtml } from './types';\n\nexport const markdownHtml: IMarkdownHtml = (\n title: string,\n css: string,\n body: string,\n) => `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>${title}</title>\n <style>\n${css}\n </style>\n</head>\n<body>\n <main id=\"Container\">${body}</main>\n</body>\n</html>`;\n"],"names":[],"mappings":"AAEO,MAAM,YAA8B,GAAA,CACzC,KACA,EAAA,GAAA,EACA,IACG,KAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAA,EAKM,KAAK,CAAA;AAAA;AAAA,EAEd,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA,uBAAA,EAIoB,IAAI,CAAA;AAAA;AAAA,OAAA;;;;"}
|
|
@@ -6,7 +6,7 @@ import { jsx, Fragment } from 'theme-ui/jsx-runtime';
|
|
|
6
6
|
import { ThemeUIProvider, useThemeUI, Box, ThemeProvider } from 'theme-ui';
|
|
7
7
|
import { useState, useRef, useMemo, Suspense } from 'react';
|
|
8
8
|
import { useMount, setValueByPath, EventEmitter } from '@apia/util';
|
|
9
|
-
import { spacing as spacing$1 } from '@apia/theme';
|
|
9
|
+
import { spacing as spacing$1, responsive as responsive$2 } from '@apia/theme';
|
|
10
10
|
|
|
11
11
|
function defaultLighten(color, ratio) {
|
|
12
12
|
return tinycolor(color).lighten(ratio ?? 20).toRgbString();
|
|
@@ -2798,6 +2798,102 @@ const buttonsBar = {
|
|
|
2798
2798
|
};
|
|
2799
2799
|
var buttonsBar$1 = buttonsBar;
|
|
2800
2800
|
|
|
2801
|
+
const apiaFinder = {
|
|
2802
|
+
additionalFiltersModal: {
|
|
2803
|
+
resize: "none",
|
|
2804
|
+
".modal__main": {
|
|
2805
|
+
resize: "none"
|
|
2806
|
+
},
|
|
2807
|
+
".modal__content": {
|
|
2808
|
+
overflow: "hidden",
|
|
2809
|
+
"&.modal__content": {
|
|
2810
|
+
flexDirection: "column",
|
|
2811
|
+
gap: spacing$1(4),
|
|
2812
|
+
".additionalFilters__navbar": {
|
|
2813
|
+
display: "flex",
|
|
2814
|
+
justifyContent: "end",
|
|
2815
|
+
gap: spacing$1(4)
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
},
|
|
2819
|
+
".additionalFiltersContent": {
|
|
2820
|
+
width: "100%",
|
|
2821
|
+
minWidth: "min(600px, 75vw)",
|
|
2822
|
+
maxWidth: "600px",
|
|
2823
|
+
overflow: "hidden",
|
|
2824
|
+
display: "flex",
|
|
2825
|
+
flexDirection: "column",
|
|
2826
|
+
maxHeight: "100%",
|
|
2827
|
+
gap: spacing$1(3),
|
|
2828
|
+
".accordionElement, .accordion__item": {
|
|
2829
|
+
maxHeight: "100%",
|
|
2830
|
+
overflow: "hidden",
|
|
2831
|
+
display: "flex",
|
|
2832
|
+
flexDirection: "column",
|
|
2833
|
+
flexGrow: 100,
|
|
2834
|
+
mb: spacing$1(0),
|
|
2835
|
+
".content, .accordion__item__content": {
|
|
2836
|
+
overflow: "auto",
|
|
2837
|
+
"&>div": {
|
|
2838
|
+
border: "1px solid",
|
|
2839
|
+
borderColor: "palette.border.article",
|
|
2840
|
+
p: spacing$1(5),
|
|
2841
|
+
"& label": {
|
|
2842
|
+
flexDirection: "column",
|
|
2843
|
+
justifyContent: "stretch",
|
|
2844
|
+
textAlign: "left",
|
|
2845
|
+
alignItems: "stretch",
|
|
2846
|
+
span: {
|
|
2847
|
+
mb: spacing$1(1)
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
},
|
|
2853
|
+
"#FilterTypes_content": {
|
|
2854
|
+
"& label": {
|
|
2855
|
+
mb: spacing$1(4)
|
|
2856
|
+
},
|
|
2857
|
+
".confirmRow": {
|
|
2858
|
+
textAlign: "right"
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
},
|
|
2863
|
+
".modal__main": {
|
|
2864
|
+
maxHeight: responsive$2({ 0: "100vh", 5: "85vh", 6: "75vh" }),
|
|
2865
|
+
maxWidth: "max-content",
|
|
2866
|
+
'&[style*="width"]': {
|
|
2867
|
+
maxWidth: "unset"
|
|
2868
|
+
},
|
|
2869
|
+
".confirm__content": {
|
|
2870
|
+
justifyContent: "space-between",
|
|
2871
|
+
maxHeight: "100%",
|
|
2872
|
+
overflow: "hidden",
|
|
2873
|
+
width: "100%",
|
|
2874
|
+
display: "flex",
|
|
2875
|
+
flexDirection: "column",
|
|
2876
|
+
".finder__content": {
|
|
2877
|
+
maxWidth: "100%",
|
|
2878
|
+
flexGrow: 100,
|
|
2879
|
+
border: "1px solid",
|
|
2880
|
+
borderColor: "palette.border.section",
|
|
2881
|
+
overflow: "auto",
|
|
2882
|
+
".selection__keyHandler": {
|
|
2883
|
+
width: "100%"
|
|
2884
|
+
}
|
|
2885
|
+
},
|
|
2886
|
+
".finder__statistics": {
|
|
2887
|
+
flexShrink: 0
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
},
|
|
2891
|
+
".results": {
|
|
2892
|
+
mt: "7px"
|
|
2893
|
+
}
|
|
2894
|
+
};
|
|
2895
|
+
var apiaFinder$1 = apiaFinder;
|
|
2896
|
+
|
|
2801
2897
|
const modals = {
|
|
2802
2898
|
apiaApi,
|
|
2803
2899
|
buttonsBar: buttonsBar$1,
|
|
@@ -2805,6 +2901,7 @@ const modals = {
|
|
|
2805
2901
|
...overlay,
|
|
2806
2902
|
table: table$1,
|
|
2807
2903
|
tableModal: tableModal$1,
|
|
2904
|
+
apiaFinder: apiaFinder$1,
|
|
2808
2905
|
main: {
|
|
2809
2906
|
boxShadow: "modals",
|
|
2810
2907
|
borderRadius: "modals",
|
|
@@ -4509,6 +4606,14 @@ const aiMessage = {
|
|
|
4509
4606
|
position: "absolute",
|
|
4510
4607
|
variant: "buttons.icon-outline-danger"
|
|
4511
4608
|
},
|
|
4609
|
+
".descriptionButton": {
|
|
4610
|
+
borderRadius: "5px",
|
|
4611
|
+
right: "28px",
|
|
4612
|
+
top: "-2px",
|
|
4613
|
+
zIndex: "15",
|
|
4614
|
+
position: "absolute",
|
|
4615
|
+
variant: "buttons.icon-outline"
|
|
4616
|
+
},
|
|
4512
4617
|
genericBox: {
|
|
4513
4618
|
margin: "10px",
|
|
4514
4619
|
display: "flex",
|
|
@@ -5371,7 +5476,7 @@ async function getRemarkable(extensions) {
|
|
|
5371
5476
|
|
|
5372
5477
|
const parseMarkdown = async (options) => {
|
|
5373
5478
|
const markdownLibrary = await getRemarkable(options.extensions);
|
|
5374
|
-
const css = (await import('./styles-
|
|
5479
|
+
const css = (await import('./styles-BaY8MoR4.js')).markdownParserStyles ?? new ErrorImporting();
|
|
5375
5480
|
if (css instanceof ErrorImporting)
|
|
5376
5481
|
throw new Error("Could not import css, cannot continue");
|
|
5377
5482
|
const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
|
|
@@ -5829,4 +5934,4 @@ class MarkdownBuilder {
|
|
|
5829
5934
|
}
|
|
5830
5935
|
|
|
5831
5936
|
export { ApiaThemeProvider as A, MarkdownBlock as M, 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, MarkdownBuilder as t, useMainTheme as u, parseMarkdown as v, MarkdownList as w, MarkdownParagraph as x, MarkdownTable as y, MarkdownTableOfContents as z };
|
|
5832
|
-
//# sourceMappingURL=index-
|
|
5937
|
+
//# sourceMappingURL=index-CcjXuxbb.js.map
|