@apia/theme 3.0.16 → 3.0.18

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",
@@ -3650,6 +3748,11 @@ const clean = (theme) => {
3650
3748
  rowGap: 2,
3651
3749
  ".listPanel__details": {
3652
3750
  pl: 6
3751
+ },
3752
+ ".responsiveTable__additionalInfoItem": {
3753
+ whiteSpace: "break-spaces",
3754
+ overflow: "hidden",
3755
+ wordBreak: "break-all"
3653
3756
  }
3654
3757
  },
3655
3758
  ".responsiveTable__additionalInfoContainer .responsiveTable__additionalInfoItem.separator": {
@@ -4451,19 +4554,32 @@ const toolbar = {
4451
4554
  const autocomplete = {
4452
4555
  "&:focus-within": focusOutline,
4453
4556
  ".autocomplete__inputWrapper": {
4454
- position: "relative"
4557
+ display: "flex",
4558
+ alignItems: "center",
4559
+ border: "1px solid",
4560
+ borderColor: "palette.border.field"
4561
+ },
4562
+ ".autocomplete__input": {
4563
+ textAlign: "left",
4564
+ whiteSpace: "nowrap",
4565
+ overflow: "hidden",
4566
+ textOverflow: "ellipsis",
4567
+ border: "none",
4568
+ outline: "none !important"
4455
4569
  },
4456
4570
  ".autocomplete__icons": {
4457
4571
  alignItems: "center",
4458
4572
  display: "flex",
4459
4573
  gap: 2,
4460
4574
  height: "24px",
4461
- position: "absolute",
4462
- right: "12px",
4463
- top: "calc(50% - 12px)",
4575
+ p: 3,
4576
+ position: "relative",
4577
+ width: "30px",
4464
4578
  ".autocomplete__loadingSpinner": {
4465
- width: "24px",
4466
- height: "24px"
4579
+ position: "absolute",
4580
+ right: "7px",
4581
+ width: "20px",
4582
+ height: "20px"
4467
4583
  },
4468
4584
  ".autocomplete__downArrow": {
4469
4585
  cursor: "pointer",
@@ -5371,7 +5487,7 @@ async function getRemarkable(extensions) {
5371
5487
 
5372
5488
  const parseMarkdown = async (options) => {
5373
5489
  const markdownLibrary = await getRemarkable(options.extensions);
5374
- const css = (await import('./styles-DWludKkV.js')).markdownParserStyles ?? new ErrorImporting();
5490
+ const css = (await import('./styles-CdKSTYgp.js')).markdownParserStyles ?? new ErrorImporting();
5375
5491
  if (css instanceof ErrorImporting)
5376
5492
  throw new Error("Could not import css, cannot continue");
5377
5493
  const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
@@ -5829,4 +5945,4 @@ class MarkdownBuilder {
5829
5945
  }
5830
5946
 
5831
5947
  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
5948
+ //# sourceMappingURL=index-DOCkz85H.js.map