@apia/theme 3.0.15 → 3.0.17

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.
@@ -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();
@@ -1234,6 +1234,7 @@ const alerts = {
1234
1234
  fontWeight: "normal",
1235
1235
  maxHeight: "60vh",
1236
1236
  overflow: "auto",
1237
+ overflowX: "hidden",
1237
1238
  p: 0,
1238
1239
  "&:focus": {
1239
1240
  outline: "none"
@@ -1878,7 +1879,7 @@ const root = {
1878
1879
  "&:focus": focusOutline
1879
1880
  },
1880
1881
  body: {
1881
- minHeight: "100vh"
1882
+ // minHeight: '100vh',
1882
1883
  },
1883
1884
  h1: {
1884
1885
  fontSize: responsive$1({ 0: 26, 3: 32 })
@@ -2798,6 +2799,102 @@ const buttonsBar = {
2798
2799
  };
2799
2800
  var buttonsBar$1 = buttonsBar;
2800
2801
 
2802
+ const apiaFinder = {
2803
+ additionalFiltersModal: {
2804
+ resize: "none",
2805
+ ".modal__main": {
2806
+ resize: "none"
2807
+ },
2808
+ ".modal__content": {
2809
+ overflow: "hidden",
2810
+ "&.modal__content": {
2811
+ flexDirection: "column",
2812
+ gap: spacing$1(4),
2813
+ ".additionalFilters__navbar": {
2814
+ display: "flex",
2815
+ justifyContent: "end",
2816
+ gap: spacing$1(4)
2817
+ }
2818
+ }
2819
+ },
2820
+ ".additionalFiltersContent": {
2821
+ width: "100%",
2822
+ minWidth: "min(600px, 75vw)",
2823
+ maxWidth: "600px",
2824
+ overflow: "hidden",
2825
+ display: "flex",
2826
+ flexDirection: "column",
2827
+ maxHeight: "100%",
2828
+ gap: spacing$1(3),
2829
+ ".accordionElement, .accordion__item": {
2830
+ maxHeight: "100%",
2831
+ overflow: "hidden",
2832
+ display: "flex",
2833
+ flexDirection: "column",
2834
+ flexGrow: 100,
2835
+ mb: spacing$1(0),
2836
+ ".content, .accordion__item__content": {
2837
+ overflow: "auto",
2838
+ "&>div": {
2839
+ border: "1px solid",
2840
+ borderColor: "palette.border.article",
2841
+ p: spacing$1(5),
2842
+ "& label": {
2843
+ flexDirection: "column",
2844
+ justifyContent: "stretch",
2845
+ textAlign: "left",
2846
+ alignItems: "stretch",
2847
+ span: {
2848
+ mb: spacing$1(1)
2849
+ }
2850
+ }
2851
+ }
2852
+ }
2853
+ },
2854
+ "#FilterTypes_content": {
2855
+ "& label": {
2856
+ mb: spacing$1(4)
2857
+ },
2858
+ ".confirmRow": {
2859
+ textAlign: "right"
2860
+ }
2861
+ }
2862
+ }
2863
+ },
2864
+ ".modal__main": {
2865
+ maxHeight: responsive$2({ 0: "100vh", 5: "85vh", 6: "75vh" }),
2866
+ maxWidth: "max-content",
2867
+ '&[style*="width"]': {
2868
+ maxWidth: "unset"
2869
+ },
2870
+ ".confirm__content": {
2871
+ justifyContent: "space-between",
2872
+ maxHeight: "100%",
2873
+ overflow: "hidden",
2874
+ width: "100%",
2875
+ display: "flex",
2876
+ flexDirection: "column",
2877
+ ".finder__content": {
2878
+ maxWidth: "100%",
2879
+ flexGrow: 100,
2880
+ border: "1px solid",
2881
+ borderColor: "palette.border.section",
2882
+ overflow: "auto",
2883
+ ".selection__keyHandler": {
2884
+ width: "100%"
2885
+ }
2886
+ },
2887
+ ".finder__statistics": {
2888
+ flexShrink: 0
2889
+ }
2890
+ }
2891
+ },
2892
+ ".results": {
2893
+ mt: "7px"
2894
+ }
2895
+ };
2896
+ var apiaFinder$1 = apiaFinder;
2897
+
2801
2898
  const modals = {
2802
2899
  apiaApi,
2803
2900
  buttonsBar: buttonsBar$1,
@@ -2805,6 +2902,7 @@ const modals = {
2805
2902
  ...overlay,
2806
2903
  table: table$1,
2807
2904
  tableModal: tableModal$1,
2905
+ apiaFinder: apiaFinder$1,
2808
2906
  main: {
2809
2907
  boxShadow: "modals",
2810
2908
  borderRadius: "modals",
@@ -2822,7 +2920,6 @@ const modals = {
2822
2920
  "&>div>div": {
2823
2921
  overflow: "hidden",
2824
2922
  flexGrow: 0,
2825
- flexShrink: 0,
2826
2923
  p: "3px",
2827
2924
  width: "100%"
2828
2925
  },
@@ -2956,7 +3053,8 @@ const modals = {
2956
3053
  },
2957
3054
  cal: {
2958
3055
  variant: "layout.common.modals.sm",
2959
- width: "350px"
3056
+ width: "400px",
3057
+ maxWidth: "400px"
2960
3058
  },
2961
3059
  editGrid: {
2962
3060
  variant: "layout.common.modals.main",
@@ -5371,7 +5469,7 @@ async function getRemarkable(extensions) {
5371
5469
 
5372
5470
  const parseMarkdown = async (options) => {
5373
5471
  const markdownLibrary = await getRemarkable(options.extensions);
5374
- const css = (await import('./styles-DWludKkV.js')).markdownParserStyles ?? new ErrorImporting();
5472
+ const css = (await import('./styles-LVUMy7Mt.js')).markdownParserStyles ?? new ErrorImporting();
5375
5473
  if (css instanceof ErrorImporting)
5376
5474
  throw new Error("Could not import css, cannot continue");
5377
5475
  const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
@@ -5829,4 +5927,4 @@ class MarkdownBuilder {
5829
5927
  }
5830
5928
 
5831
5929
  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-CGg8tjIE.js.map
5930
+ //# sourceMappingURL=index-BkIq8Zxt.js.map