@apia/theme 4.0.15 → 4.0.16

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.
@@ -1 +1 @@
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;AAAA;AAAA;AAAA;AAAA,uBAAA,EAIoB,IAAI,CAAA;AAAA;AAAA,OAAA;;;;"}
1
+ {"version":3,"file":"html-B-K0BIiw.js","sources":["../src/markdown/html.ts"],"sourcesContent":["import { IMarkdownHtml } from './types';\r\n\r\nexport const markdownHtml: IMarkdownHtml = (\r\n title: string,\r\n css: string,\r\n body: string,\r\n) => `<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <title>${title}</title>\r\n <style>\r\n${css}\r\n </style>\r\n</head>\r\n<body>\r\n <main id=\"Container\">${body}</main>\r\n</body>\r\n</html>`;\r\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;;;;"}
@@ -1253,6 +1253,7 @@ const MaterialInput = ({ title, label, boxProperties, ...props }) => /* @__PURE_
1253
1253
  ]
1254
1254
  }
1255
1255
  );
1256
+ var MaterialInput$1 = MaterialInput;
1256
1257
 
1257
1258
  const Form = (props) => /* @__PURE__ */ jsx(Box, { as: "form", ...props });
1258
1259
 
@@ -1675,6 +1676,7 @@ const buttons = {
1675
1676
  ...smallButton
1676
1677
  }
1677
1678
  };
1679
+ var buttons$1 = buttons;
1678
1680
 
1679
1681
  const text = {
1680
1682
  default: {
@@ -1694,6 +1696,7 @@ const text = {
1694
1696
  fontWeight: "heading"
1695
1697
  }
1696
1698
  };
1699
+ var text$1 = text;
1697
1700
 
1698
1701
  const transitions = {
1699
1702
  "@keyframes growHorizontal": {
@@ -1906,9 +1909,10 @@ const menu = {
1906
1909
  color: theme.palette.text.primary
1907
1910
  })
1908
1911
  };
1912
+ var menu$1 = menu;
1909
1913
 
1910
1914
  const root = {
1911
- ...menu,
1915
+ ...menu$1,
1912
1916
  height: "100%",
1913
1917
  "*": {
1914
1918
  fontFamily: "body",
@@ -2085,7 +2089,7 @@ const baseTheme = () => {
2085
2089
  "1260px",
2086
2090
  "1580px"
2087
2091
  ],
2088
- buttons,
2092
+ buttons: buttons$1,
2089
2093
  colors: {},
2090
2094
  fonts: {
2091
2095
  body: '"InterVariable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif, Roboto',
@@ -2152,7 +2156,7 @@ const baseTheme = () => {
2152
2156
  iconLg: "32px",
2153
2157
  iconXl: "48px"
2154
2158
  },
2155
- text,
2159
+ text: text$1,
2156
2160
  zIndices: {
2157
2161
  stickyElements: 600,
2158
2162
  menu: 1e3,
@@ -2190,6 +2194,7 @@ const customCheckbox = {
2190
2194
  })
2191
2195
  /* PREPEND HERE */
2192
2196
  };
2197
+ var customCheckbox$1 = customCheckbox;
2193
2198
 
2194
2199
  const checkbox = {
2195
2200
  borderRadius: "default",
@@ -2244,6 +2249,7 @@ const checkbox = {
2244
2249
  }
2245
2250
  }
2246
2251
  };
2252
+ var checkbox$1 = checkbox;
2247
2253
 
2248
2254
  const dateInput = {
2249
2255
  display: "flex",
@@ -2298,6 +2304,7 @@ const dateInput = {
2298
2304
  }),
2299
2305
  backgroundColor: void 0
2300
2306
  };
2307
+ var dateInput$1 = dateInput;
2301
2308
 
2302
2309
  const iconInput = {
2303
2310
  display: "flex",
@@ -2330,6 +2337,7 @@ const iconInput = {
2330
2337
  border: "none"
2331
2338
  }
2332
2339
  };
2340
+ var iconInput$1 = iconInput;
2333
2341
 
2334
2342
  const input = {
2335
2343
  variant: "text.default",
@@ -2376,6 +2384,7 @@ const input = {
2376
2384
  }
2377
2385
  }
2378
2386
  };
2387
+ var input$1 = input;
2379
2388
 
2380
2389
  const label = {
2381
2390
  variant: "text.default",
@@ -2402,6 +2411,7 @@ const label = {
2402
2411
  }
2403
2412
  }
2404
2413
  };
2414
+ var label$1 = label;
2405
2415
 
2406
2416
  const radio = {
2407
2417
  width: "32px",
@@ -2414,6 +2424,7 @@ const radio = {
2414
2424
  fill: "inherit"
2415
2425
  }
2416
2426
  };
2427
+ var radio$1 = radio;
2417
2428
 
2418
2429
  const select = {
2419
2430
  variant: "text.default",
@@ -2438,6 +2449,7 @@ const select = {
2438
2449
  display: "none"
2439
2450
  }
2440
2451
  };
2452
+ var select$1 = select;
2441
2453
 
2442
2454
  function selectMultiple(theme) {
2443
2455
  return {
@@ -2483,6 +2495,7 @@ const Switch = {
2483
2495
  },
2484
2496
  backgroundColor: "form.fields.checked.borderColor"
2485
2497
  };
2498
+ var Switch$1 = Switch;
2486
2499
 
2487
2500
  const textarea = {
2488
2501
  height: "100%",
@@ -2490,6 +2503,7 @@ const textarea = {
2490
2503
  resize: "vertical",
2491
2504
  variant: "forms.input"
2492
2505
  };
2506
+ var textarea$1 = textarea;
2493
2507
 
2494
2508
  const deletableInput = {
2495
2509
  border: "1px solid",
@@ -2549,21 +2563,22 @@ const deletableInput = {
2549
2563
  }
2550
2564
  }
2551
2565
  };
2566
+ var deletableInput$1 = deletableInput;
2552
2567
 
2553
2568
  const forms$1 = (theme) => {
2554
2569
  return {
2555
- checkbox,
2556
- customCheckbox,
2557
- dateInput,
2558
- deletableInput,
2559
- iconInput,
2560
- input,
2561
- label,
2562
- radio,
2563
- select,
2570
+ checkbox: checkbox$1,
2571
+ customCheckbox: customCheckbox$1,
2572
+ dateInput: dateInput$1,
2573
+ deletableInput: deletableInput$1,
2574
+ iconInput: iconInput$1,
2575
+ input: input$1,
2576
+ label: label$1,
2577
+ radio: radio$1,
2578
+ select: select$1,
2564
2579
  selectMultiple: selectMultiple(theme),
2565
- switch: Switch,
2566
- textarea,
2580
+ switch: Switch$1,
2581
+ textarea: textarea$1,
2567
2582
  /* PREPEND HERE */
2568
2583
  'input[type="date"]': {
2569
2584
  variant: "forms.input"
@@ -2724,6 +2739,7 @@ const confirm = {
2724
2739
  }
2725
2740
  }
2726
2741
  };
2742
+ var confirm$1 = confirm;
2727
2743
 
2728
2744
  const table = {
2729
2745
  display: "flex",
@@ -2756,6 +2772,7 @@ const table = {
2756
2772
  }
2757
2773
  }
2758
2774
  };
2775
+ var table$1 = table;
2759
2776
 
2760
2777
  const tableModal = {
2761
2778
  additionalFiltersModal: {
@@ -2848,6 +2865,7 @@ const tableModal = {
2848
2865
  mt: "7px"
2849
2866
  }
2850
2867
  };
2868
+ var tableModal$1 = tableModal;
2851
2869
 
2852
2870
  const buttonsBar = {
2853
2871
  flexDirection: "row",
@@ -2856,6 +2874,7 @@ const buttonsBar = {
2856
2874
  gap: spacing$1(3),
2857
2875
  mb: spacing$1(0)
2858
2876
  };
2877
+ var buttonsBar$1 = buttonsBar;
2859
2878
 
2860
2879
  const apiaFinder = {
2861
2880
  additionalFiltersModal: {
@@ -2951,15 +2970,16 @@ const apiaFinder = {
2951
2970
  mt: "7px"
2952
2971
  }
2953
2972
  };
2973
+ var apiaFinder$1 = apiaFinder;
2954
2974
 
2955
2975
  const modals = {
2956
2976
  apiaApi,
2957
- buttonsBar,
2958
- confirm,
2977
+ buttonsBar: buttonsBar$1,
2978
+ confirm: confirm$1,
2959
2979
  ...overlay,
2960
- table,
2961
- tableModal,
2962
- apiaFinder,
2980
+ table: table$1,
2981
+ tableModal: tableModal$1,
2982
+ apiaFinder: apiaFinder$1,
2963
2983
  main: {
2964
2984
  boxShadow: "modals",
2965
2985
  borderRadius: "modals",
@@ -3164,7 +3184,7 @@ function getSelectionStyles() {
3164
3184
  };
3165
3185
  }
3166
3186
 
3167
- const primary$4 = (theme) => {
3187
+ const primary$6 = (theme) => {
3168
3188
  return {
3169
3189
  variant: "colors.tables.primary",
3170
3190
  width: "100%",
@@ -3547,7 +3567,7 @@ const responsive = (theme) => {
3547
3567
  };
3548
3568
  };
3549
3569
 
3550
- const secondary = {
3570
+ const secondary$1 = {
3551
3571
  variant: "layout.common.tables.primary",
3552
3572
  borderColor: "components.secondaryTable.borderColor",
3553
3573
  "& thead": {
@@ -3877,10 +3897,10 @@ const tables = (theme) => {
3877
3897
  return {
3878
3898
  accordion: accordion$1,
3879
3899
  information,
3880
- primary: primary$4(theme),
3900
+ primary: primary$6(theme),
3881
3901
  print,
3882
3902
  responsive: responsive(theme),
3883
- secondary,
3903
+ secondary: secondary$1,
3884
3904
  clean: clean(theme)
3885
3905
  /* PREPEND HERE */
3886
3906
  };
@@ -3980,7 +4000,7 @@ const forms = {
3980
4000
  /* PREPEND HERE */
3981
4001
  };
3982
4002
 
3983
- const primary$3 = (theme) => {
4003
+ const primary$4 = (theme) => {
3984
4004
  return {
3985
4005
  /* PREPEND HERE */
3986
4006
  position: "relative",
@@ -4114,6 +4134,7 @@ const primary$3 = (theme) => {
4114
4134
  }
4115
4135
  };
4116
4136
  };
4137
+ var primary$5 = primary$4;
4117
4138
 
4118
4139
  const mobx = (theme) => {
4119
4140
  return {
@@ -4196,13 +4217,14 @@ const mobx = (theme) => {
4196
4217
  }
4197
4218
  };
4198
4219
  };
4220
+ var mobx$1 = mobx;
4199
4221
 
4200
4222
  const trees = {
4201
- mobx,
4202
- primary: primary$3
4223
+ mobx: mobx$1,
4224
+ primary: primary$5
4203
4225
  };
4204
4226
 
4205
- const primary$2 = {
4227
+ const primary$3 = {
4206
4228
  background: "white",
4207
4229
  border: "1px solid #ccc",
4208
4230
  borderRadius: "tooltips",
@@ -4212,7 +4234,7 @@ const primary$2 = {
4212
4234
  };
4213
4235
 
4214
4236
  const tooltips = {
4215
- primary: primary$2
4237
+ primary: primary$3
4216
4238
  /* PREPEND HERE */
4217
4239
  };
4218
4240
 
@@ -4348,20 +4370,24 @@ const common$1 = (type) => ({
4348
4370
  const primary$1 = {
4349
4371
  ...common$1("components.paginationPrimary")
4350
4372
  };
4373
+ var primary$2 = primary$1;
4351
4374
 
4352
4375
  const datagrid = {
4353
4376
  ...common$1("components.paginationDatagrid")
4354
4377
  };
4378
+ var datagrid$1 = datagrid;
4355
4379
 
4356
4380
  const primary = {
4357
4381
  ...common$1("components.paginationSecondary")
4358
4382
  };
4383
+ var secondary = primary;
4359
4384
 
4360
4385
  const pagination = {
4361
- primary: primary$1,
4362
- datagrid,
4363
- secondary: primary
4386
+ primary: primary$2,
4387
+ datagrid: datagrid$1,
4388
+ secondary
4364
4389
  };
4390
+ var pagination$1 = pagination;
4365
4391
 
4366
4392
  const accordion = {
4367
4393
  primary: {
@@ -4709,6 +4735,7 @@ const autocomplete = {
4709
4735
  }
4710
4736
  }
4711
4737
  };
4738
+ var autocomplete$1 = autocomplete;
4712
4739
 
4713
4740
  const datePicker = {
4714
4741
  maxWidth: "400px"
@@ -4808,9 +4835,9 @@ const infoButton = {
4808
4835
  const components = {
4809
4836
  /* PREPEND HERE */
4810
4837
  accordion,
4811
- autocomplete,
4838
+ autocomplete: autocomplete$1,
4812
4839
  datePicker,
4813
- pagination,
4840
+ pagination: pagination$1,
4814
4841
  chat: chat$1,
4815
4842
  toolbar,
4816
4843
  aiMessage,
@@ -4841,9 +4868,10 @@ const labelBox = {
4841
4868
  }
4842
4869
  }
4843
4870
  };
4871
+ var labelBox$1 = labelBox;
4844
4872
 
4845
4873
  const boxes = {
4846
- labelBox
4874
+ labelBox: labelBox$1
4847
4875
  /* PREPEND HERE */
4848
4876
  };
4849
4877
 
@@ -5026,11 +5054,13 @@ const formsAssistant = {
5026
5054
  }
5027
5055
  }
5028
5056
  };
5057
+ var formsAssistant$1 = formsAssistant;
5029
5058
 
5030
5059
  const execution = {
5031
- formsAssistant
5060
+ formsAssistant: formsAssistant$1
5032
5061
  /* PREPEND HERE */
5033
5062
  };
5063
+ var execution$1 = execution;
5034
5064
 
5035
5065
  const connectors = {
5036
5066
  testResult: {
@@ -5057,8 +5087,9 @@ const connectors = {
5057
5087
  }
5058
5088
  }
5059
5089
  };
5090
+ var connectors$1 = connectors;
5060
5091
 
5061
- keyframes`
5092
+ const vibrate = keyframes`
5062
5093
  0% {
5063
5094
  transform: rotate(0);
5064
5095
  }
@@ -5094,7 +5125,8 @@ const fadeInFromTop = keyframes`
5094
5125
  opacity: 1;
5095
5126
  }
5096
5127
  `;
5097
- const animations = { fadeInFromBottom, fadeInFromTop };
5128
+ const animations = { vibrate, fadeInFromBottom, fadeInFromTop };
5129
+ var animations$1 = animations;
5098
5130
 
5099
5131
  const semanticSearch = {
5100
5132
  execution: {
@@ -5344,7 +5376,7 @@ const semanticSearch = {
5344
5376
  }
5345
5377
  },
5346
5378
  ".history": {
5347
- animation: `${animations.fadeInFromBottom} 0.3s`,
5379
+ animation: `${animations$1.fadeInFromBottom} 0.3s`,
5348
5380
  padding: "100px 32px 80px 32px",
5349
5381
  border: "none",
5350
5382
  height: "unset"
@@ -5397,7 +5429,7 @@ const semanticSearch = {
5397
5429
  gap: spacing(5)
5398
5430
  },
5399
5431
  ".list_results": {
5400
- animation: `${animations.fadeInFromTop} 0.3s`,
5432
+ animation: `${animations$1.fadeInFromTop} 0.3s`,
5401
5433
  height: "100%",
5402
5434
  width: responsive$1({ 0: "100%", 3: "75vw", 5: "50vw" }),
5403
5435
  mx: "auto",
@@ -5426,11 +5458,12 @@ const semanticSearch = {
5426
5458
  };
5427
5459
 
5428
5460
  const ai = {
5429
- connectors,
5430
- execution,
5461
+ connectors: connectors$1,
5462
+ execution: execution$1,
5431
5463
  semanticSearch
5432
5464
  /* PREPEND HERE */
5433
5465
  };
5466
+ var ai$1 = ai;
5434
5467
 
5435
5468
  const form = {
5436
5469
  /* PREPEND HERE */
@@ -5724,7 +5757,7 @@ const common = (theme) => {
5724
5757
  components,
5725
5758
  trees,
5726
5759
  tooltips,
5727
- ai,
5760
+ ai: ai$1,
5728
5761
  chat
5729
5762
  /* PREPEND HERE */
5730
5763
  };
@@ -6481,7 +6514,7 @@ async function getRemarkable(extensions) {
6481
6514
 
6482
6515
  const parseMarkdown = async (options) => {
6483
6516
  const markdownLibrary = await getRemarkable(options.extensions);
6484
- const css = (await import('./styles-CdyzuHLg.js')).markdownParserStyles ?? new ErrorImporting();
6517
+ const css = (await import('./styles-B_o_dZr1.js')).markdownParserStyles ?? new ErrorImporting();
6485
6518
  if (css instanceof ErrorImporting)
6486
6519
  throw new Error("Could not import css, cannot continue");
6487
6520
  const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
@@ -6549,7 +6582,7 @@ class MarkdownHeader extends MarkdownParagraph {
6549
6582
  var __defProp$2 = Object.defineProperty;
6550
6583
  var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6551
6584
  var __publicField$2 = (obj, key, value) => {
6552
- __defNormalProp$2(obj, key + "" , value);
6585
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
6553
6586
  return value;
6554
6587
  };
6555
6588
  class MarkdownList extends MarkdownBlock {
@@ -6599,7 +6632,7 @@ class MarkdownList extends MarkdownBlock {
6599
6632
  var __defProp$1 = Object.defineProperty;
6600
6633
  var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6601
6634
  var __publicField$1 = (obj, key, value) => {
6602
- __defNormalProp$1(obj, key + "" , value);
6635
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
6603
6636
  return value;
6604
6637
  };
6605
6638
  var __accessCheck = (obj, member, msg) => {
@@ -6938,5 +6971,5 @@ class MarkdownBuilder {
6938
6971
  }
6939
6972
  }
6940
6973
 
6941
- export { ApiaThemeProvider as A, MarkdownTableOfContents as B, Form as F, MaterialInput 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, MarkdownBlock as t, useMainTheme as u, MarkdownBuilder as v, parseMarkdown as w, MarkdownList as x, MarkdownParagraph as y, MarkdownTable as z };
6942
- //# sourceMappingURL=index-BSfm5Owk.js.map
6974
+ export { ApiaThemeProvider as A, MarkdownTableOfContents as B, Form as F, MaterialInput$1 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, MarkdownBlock as t, useMainTheme as u, MarkdownBuilder as v, parseMarkdown as w, MarkdownList as x, MarkdownParagraph as y, MarkdownTable as z };
6975
+ //# sourceMappingURL=index-MgxPjTTE.js.map