storybook 10.1.0-beta.2 → 10.1.0-beta.4

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.
Files changed (68) hide show
  1. package/dist/_browser-chunks/{chunk-L4RMQ7D7.js → chunk-BRX2HXH7.js} +75 -5
  2. package/dist/_node-chunks/{builder-manager-DE5CZGPU.js → builder-manager-T3A7QLUO.js} +26 -593
  3. package/dist/_node-chunks/{camelcase-3GPWEIYB.js → camelcase-WMMYRUH4.js} +7 -7
  4. package/dist/_node-chunks/{chunk-ZH4F5JWQ.js → chunk-3MVB5IZX.js} +28 -24
  5. package/dist/_node-chunks/{chunk-RZEXP6OF.js → chunk-5DEFF2GB.js} +7 -7
  6. package/dist/_node-chunks/{chunk-3GUEJ3O3.js → chunk-67VVNDJJ.js} +6 -6
  7. package/dist/_node-chunks/{chunk-RSFKUYLE.js → chunk-C6RLDV2P.js} +8 -8
  8. package/dist/_node-chunks/{chunk-77QRXLGA.js → chunk-CM44JL5Z.js} +6 -6
  9. package/dist/_node-chunks/{chunk-HGDN3STX.js → chunk-CSFSQ2I4.js} +7 -7
  10. package/dist/_node-chunks/{chunk-45XWOXXM.js → chunk-EFN4RLWH.js} +7 -7
  11. package/dist/_node-chunks/{chunk-D2CQN4LQ.js → chunk-EFTR6VSG.js} +9 -9
  12. package/dist/_node-chunks/{chunk-UWKUW2OJ.js → chunk-EJPOXNSG.js} +15 -15
  13. package/dist/_node-chunks/{chunk-6T6VTXDE.js → chunk-HDMHX5QM.js} +7 -7
  14. package/dist/_node-chunks/{chunk-EXJNST6P.js → chunk-HT32VUX7.js} +7 -7
  15. package/dist/_node-chunks/chunk-IQFN7VY4.js +23 -0
  16. package/dist/_node-chunks/{chunk-YZEOU7D5.js → chunk-JYAXWHGH.js} +9 -9
  17. package/dist/_node-chunks/chunk-K7U3BSTR.js +61 -0
  18. package/dist/_node-chunks/{chunk-NOLZUVQN.js → chunk-KAVR7KJP.js} +287 -281
  19. package/dist/_node-chunks/{chunk-HFPMBHAF.js → chunk-KI6KY2ZN.js} +13 -13
  20. package/dist/_node-chunks/{chunk-Z7F5CZXW.js → chunk-NORFPLB6.js} +7 -7
  21. package/dist/_node-chunks/{chunk-ODJGHT54.js → chunk-PMZEJJNX.js} +7 -7
  22. package/dist/_node-chunks/{chunk-F4HHDWJV.js → chunk-RSJK2D7X.js} +6 -6
  23. package/dist/_node-chunks/{chunk-PQF6TGKN.js → chunk-TBYOSPAV.js} +6 -6
  24. package/dist/_node-chunks/{chunk-KIW5GZKQ.js → chunk-TC7X5DN2.js} +10 -10
  25. package/dist/_node-chunks/{chunk-43AQPYQJ.js → chunk-TCLOOFNE.js} +7 -7
  26. package/dist/_node-chunks/{chunk-QAX2QIAO.js → chunk-VN7SAKM4.js} +6 -6
  27. package/dist/_node-chunks/{chunk-3FVKDIQ7.js → chunk-VW25O2YM.js} +6 -6
  28. package/dist/_node-chunks/{chunk-4CHMPSHM.js → chunk-WGBDDI6W.js} +642 -639
  29. package/dist/_node-chunks/chunk-YN3C74EA.js +18 -0
  30. package/dist/_node-chunks/{chunk-INMOMYVB.js → chunk-YTTOTUWC.js} +6 -6
  31. package/dist/_node-chunks/{chunk-PJAOEV2K.js → chunk-YZ3XRP4N.js} +6 -6
  32. package/dist/_node-chunks/{dist-RFQRGJD5.js → dist-L6XLFQOU.js} +9 -9
  33. package/dist/_node-chunks/{globby-WIMKMN5Q.js → globby-7IXLXFEA.js} +9 -9
  34. package/dist/_node-chunks/{lib-OBEY3MUM.js → lib-T5L2ZSAG.js} +7 -7
  35. package/dist/_node-chunks/{mdx-N42X6CFJ-7XA7LOVG.js → mdx-N42X6CFJ-GOOKUTSA.js} +8 -8
  36. package/dist/_node-chunks/{p-limit-VII3MYEU.js → p-limit-7GKATDEW.js} +7 -7
  37. package/dist/babel/index.js +10 -10
  38. package/dist/bin/core.js +12 -12
  39. package/dist/bin/dispatcher.js +11 -11
  40. package/dist/bin/loader.js +9 -9
  41. package/dist/cli/index.d.ts +1 -2
  42. package/dist/cli/index.js +18 -18
  43. package/dist/common/index.d.ts +553 -560
  44. package/dist/common/index.js +19 -21
  45. package/dist/components/index.js +35 -29
  46. package/dist/core-server/index.js +33 -33
  47. package/dist/core-server/presets/common-manager.js +74 -108
  48. package/dist/core-server/presets/common-override-preset.js +9 -9
  49. package/dist/core-server/presets/common-preset.js +25 -25
  50. package/dist/csf-tools/index.js +9 -9
  51. package/dist/manager/globals-runtime.js +142 -65
  52. package/dist/manager/runtime.js +139 -115
  53. package/dist/manager-api/index.js +1 -1
  54. package/dist/mocking-utils/index.js +8 -8
  55. package/dist/node-logger/index.d.ts +3 -1
  56. package/dist/node-logger/index.js +9 -9
  57. package/dist/preview-api/index.d.ts +68 -67
  58. package/dist/server-errors.js +11 -11
  59. package/dist/telemetry/index.js +23 -23
  60. package/dist/theming/create.d.ts +1 -1
  61. package/dist/theming/create.js +1 -1
  62. package/dist/theming/index.d.ts +65 -2
  63. package/dist/theming/index.js +6 -3
  64. package/dist/types/index.d.ts +1 -1
  65. package/package.json +2 -3
  66. package/dist/_node-chunks/chunk-CEFT3TLW.js +0 -18
  67. package/dist/_node-chunks/chunk-HG5BSY5V.js +0 -23
  68. package/dist/_node-chunks/chunk-Y35QWPHB.js +0 -61
@@ -1,57 +1,57 @@
1
- import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
1
+ import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import "../../_node-chunks/chunk-ZH4F5JWQ.js";
12
+ import "../../_node-chunks/chunk-3MVB5IZX.js";
13
13
  import {
14
14
  parseStaticDir,
15
15
  sendTelemetryError,
16
16
  throttle
17
- } from "../../_node-chunks/chunk-HFPMBHAF.js";
18
- import "../../_node-chunks/chunk-45XWOXXM.js";
19
- import "../../_node-chunks/chunk-HG5BSY5V.js";
20
- import "../../_node-chunks/chunk-F4HHDWJV.js";
17
+ } from "../../_node-chunks/chunk-KI6KY2ZN.js";
18
+ import "../../_node-chunks/chunk-EFN4RLWH.js";
19
+ import "../../_node-chunks/chunk-IQFN7VY4.js";
20
+ import "../../_node-chunks/chunk-RSJK2D7X.js";
21
21
  import {
22
22
  getLastEvents,
23
23
  getSessionId
24
- } from "../../_node-chunks/chunk-3GUEJ3O3.js";
24
+ } from "../../_node-chunks/chunk-67VVNDJJ.js";
25
25
  import {
26
26
  globalSettings
27
- } from "../../_node-chunks/chunk-YZEOU7D5.js";
27
+ } from "../../_node-chunks/chunk-JYAXWHGH.js";
28
28
  import {
29
29
  invariant
30
- } from "../../_node-chunks/chunk-INMOMYVB.js";
30
+ } from "../../_node-chunks/chunk-YTTOTUWC.js";
31
31
  import {
32
32
  resolvePackageDir
33
- } from "../../_node-chunks/chunk-Z7F5CZXW.js";
34
- import "../../_node-chunks/chunk-QAX2QIAO.js";
33
+ } from "../../_node-chunks/chunk-NORFPLB6.js";
34
+ import "../../_node-chunks/chunk-VN7SAKM4.js";
35
35
  import {
36
36
  isAbsolute,
37
37
  join
38
- } from "../../_node-chunks/chunk-PQF6TGKN.js";
38
+ } from "../../_node-chunks/chunk-TBYOSPAV.js";
39
39
  import {
40
40
  loadConfig
41
- } from "../../_node-chunks/chunk-RSFKUYLE.js";
41
+ } from "../../_node-chunks/chunk-C6RLDV2P.js";
42
42
  import {
43
43
  require_dist
44
- } from "../../_node-chunks/chunk-6T6VTXDE.js";
45
- import "../../_node-chunks/chunk-D2CQN4LQ.js";
46
- import "../../_node-chunks/chunk-ODJGHT54.js";
44
+ } from "../../_node-chunks/chunk-HDMHX5QM.js";
45
+ import "../../_node-chunks/chunk-EFTR6VSG.js";
46
+ import "../../_node-chunks/chunk-PMZEJJNX.js";
47
47
  import {
48
48
  require_picocolors
49
- } from "../../_node-chunks/chunk-43AQPYQJ.js";
49
+ } from "../../_node-chunks/chunk-TCLOOFNE.js";
50
50
  import {
51
51
  __commonJS,
52
52
  __require,
53
53
  __toESM
54
- } from "../../_node-chunks/chunk-3FVKDIQ7.js";
54
+ } from "../../_node-chunks/chunk-VW25O2YM.js";
55
55
 
56
56
  // ../node_modules/shell-quote/quote.js
57
57
  var require_quote = __commonJS({
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
518
518
  var import_ts_dedent = __toESM(require_dist(), 1);
519
519
 
520
520
  // src/core-server/utils/get-component-variable-name.ts
521
- var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-3GPWEIYB.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
521
+ var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-WMMYRUH4.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
522
522
 
523
523
  // src/core-server/utils/new-story-templates/csf-factory-template.ts
524
524
  async function getCsfFactoryTemplateForNewStoryFile(data) {
@@ -783,7 +783,7 @@ async function searchFiles({
783
783
  ignoredFiles = IGNORED_FILES,
784
784
  fileExtensions = FILE_EXTENSIONS
785
785
  }) {
786
- let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-WIMKMN5Q.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
786
+ let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-7IXLXFEA.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
787
787
  `**/*${searchQuery}*.${fileExtensionsPattern}`,
788
788
  `**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
789
789
  ];
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
1
+ import CJS_COMPAT_NODE_URL_a6gceaz3qeh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_a6gceaz3qeh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_a6gceaz3qeh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_a6gceaz3qeh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_a6gceaz3qeh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_a6gceaz3qeh.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -38,9 +38,9 @@ import {
38
38
  vitestTransform,
39
39
  writeConfig,
40
40
  writeCsf
41
- } from "../_node-chunks/chunk-RSFKUYLE.js";
42
- import "../_node-chunks/chunk-6T6VTXDE.js";
43
- import "../_node-chunks/chunk-3FVKDIQ7.js";
41
+ } from "../_node-chunks/chunk-C6RLDV2P.js";
42
+ import "../_node-chunks/chunk-HDMHX5QM.js";
43
+ import "../_node-chunks/chunk-VW25O2YM.js";
44
44
  export {
45
45
  BadMetaError,
46
46
  ConfigFile,
@@ -7493,7 +7493,7 @@ var import_react4, tags, styled, init_emotion_styled_browser_esm = __esm({
7493
7493
  });
7494
7494
 
7495
7495
  // src/theming/base.ts
7496
- var color, background, typography, init_base = __esm({
7496
+ var color, background, typography, tokens, init_base = __esm({
7497
7497
  "src/theming/base.ts"() {
7498
7498
  "use strict";
7499
7499
  color = {
@@ -7522,7 +7522,7 @@ var color, background, typography, init_base = __esm({
7522
7522
  darker: "#454C54",
7523
7523
  darkest: "#2E3338",
7524
7524
  // For borders
7525
- border: "hsla(212, 50%, 30%, 0.15)",
7525
+ border: "hsl(212 50% 30% / 0.15)",
7526
7526
  // Status
7527
7527
  positive: "#66BF3C",
7528
7528
  warning: "#E69D00",
@@ -7589,6 +7589,69 @@ var color, background, typography, init_base = __esm({
7589
7589
  l3: 48,
7590
7590
  code: 90
7591
7591
  }
7592
+ }, tokens = {
7593
+ light: {
7594
+ fgColor: {
7595
+ default: color.darkest,
7596
+ muted: color.dark,
7597
+ accent: color.secondary,
7598
+ inverse: color.lightest,
7599
+ // TODO: add 'disabled'
7600
+ positive: "#427C27",
7601
+ warning: "#7A4100",
7602
+ negative: "#C23400",
7603
+ critical: "#FFFFFF"
7604
+ },
7605
+ bgColor: {
7606
+ default: color.lightest,
7607
+ muted: background.app,
7608
+ // TODO: add 'accent'? white or blue?
7609
+ positive: "#F1FFEB",
7610
+ warning: "#FFF7EB",
7611
+ negative: "#FFF0EB",
7612
+ critical: "#D13800"
7613
+ },
7614
+ borderColor: {
7615
+ default: color.border,
7616
+ muted: "hsl(0 0% 0% / 0.1)",
7617
+ inverse: "hsl(0 0% 100% / 0.1)",
7618
+ positive: "#BFE7AC",
7619
+ warning: "#FFCE85",
7620
+ negative: "#FFC3AD",
7621
+ critical: "hsl(16 100% 100% / 0)"
7622
+ }
7623
+ },
7624
+ dark: {
7625
+ fgColor: {
7626
+ default: "#C9CCCF",
7627
+ muted: "#95999D",
7628
+ accent: "#479DFF",
7629
+ inverse: "#1B1C1D",
7630
+ // TODO: add 'disabled'
7631
+ positive: "#86CE64",
7632
+ warning: "#FFAD33",
7633
+ negative: "#FF6933",
7634
+ critical: "#FF6933"
7635
+ },
7636
+ bgColor: {
7637
+ default: "#222325",
7638
+ muted: "#1B1C1D",
7639
+ // TODO: add 'accent'? white or blue?
7640
+ positive: "hsl(101 100% 100% / 0)",
7641
+ warning: "hsl(101 100% 100% / 0)",
7642
+ negative: "hsl(101 100% 100% / 0)",
7643
+ critical: "hsl(101 100% 100% / 0)"
7644
+ },
7645
+ borderColor: {
7646
+ default: "hsl(0 0% 100% / 0.1)",
7647
+ muted: "hsl(0 0% 100% / 0.5)",
7648
+ inverse: "hsl(0 0% 0% / 0.1)",
7649
+ positive: "hsl(101 52% 64% / 0.15)",
7650
+ warning: "hsl(36 100% 64% / 0.15)",
7651
+ negative: "hsl(16 100% 64% / 0.15)",
7652
+ critical: "#FF6933"
7653
+ }
7654
+ }
7592
7655
  };
7593
7656
  }
7594
7657
  });
@@ -7856,7 +7919,7 @@ var theme, dark_default, init_dark = __esm({
7856
7919
  appContentBg: "#222325",
7857
7920
  appHoverBg: "#233952",
7858
7921
  appPreviewBg: color.lightest,
7859
- appBorderColor: "rgba(255,255,255,.1)",
7922
+ appBorderColor: "hsl(0 0% 100% / 0.1)",
7860
7923
  appBorderRadius: 4,
7861
7924
  // Fonts
7862
7925
  fontBase: typography.fonts.base,
@@ -7872,11 +7935,11 @@ var theme, dark_default, init_dark = __esm({
7872
7935
  barBg: "#222325",
7873
7936
  // Form colors
7874
7937
  buttonBg: "#1B1C1D",
7875
- buttonBorder: "hsl(0 0 100 / 0.1)",
7938
+ buttonBorder: "hsl(0 0% 100% / 0.1)",
7876
7939
  booleanBg: "#1B1C1D",
7877
7940
  booleanSelectedBg: "#292B2E",
7878
7941
  inputBg: "#1B1C1D",
7879
- inputBorder: "hsl(0 0 100 / 0.1)",
7942
+ inputBorder: "hsl(0 0% 100% / 0.1)",
7880
7943
  inputTextColor: "#C9CCCF",
7881
7944
  inputBorderRadius: 4
7882
7945
  }, dark_default = theme;
@@ -8602,11 +8665,17 @@ var themesBase, preferredColorScheme, themes, create, init_create = __esm({
8602
8665
  }, preferredColorScheme = getPreferredColorScheme(), themes = {
8603
8666
  ...themesBase,
8604
8667
  normal: themesBase[preferredColorScheme]
8605
- }, create = (vars = { base: preferredColorScheme }, rest) => {
8668
+ }, create = (vars = {
8669
+ base: preferredColorScheme
8670
+ }, rest) => {
8606
8671
  let inherit = {
8672
+ // We always inherit the preferred color scheme.
8607
8673
  ...themes[preferredColorScheme],
8674
+ // And then the declared theme base if it exists.
8608
8675
  ...themes[vars.base] || {},
8676
+ // And then the actual theme content.
8609
8677
  ...vars,
8678
+ // If no theme base was declared, we declare the preferred color scheme as the base.
8610
8679
  base: themes[vars.base] ? vars.base : preferredColorScheme
8611
8680
  };
8612
8681
  return {
@@ -8913,6 +8982,7 @@ var lightSyntaxColors, darkSyntaxColors, createColors, convert, init_convert = _
8913
8982
  return {
8914
8983
  ...rest,
8915
8984
  base,
8985
+ ...base === "dark" ? tokens.dark : tokens.light,
8916
8986
  color: createColors(inherit),
8917
8987
  background: {
8918
8988
  app: appBg,
@@ -8967,13 +9037,13 @@ var lightSyntaxColors, darkSyntaxColors, createColors, convert, init_convert = _
8967
9037
  target: brandTarget
8968
9038
  },
8969
9039
  code: create2({
8970
- colors: base === "light" ? lightSyntaxColors : darkSyntaxColors,
9040
+ colors: base === "dark" ? darkSyntaxColors : lightSyntaxColors,
8971
9041
  mono: fontCode
8972
9042
  }),
8973
9043
  // Addon actions theme
8974
9044
  // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx
8975
9045
  addonActionsTheme: {
8976
- ...base === "light" ? chromeLight : chromeDark,
9046
+ ...base === "dark" ? chromeDark : chromeLight,
8977
9047
  BASE_FONT_FAMILY: fontCode,
8978
9048
  BASE_FONT_SIZE: typography.size.s2 - 1,
8979
9049
  BASE_LINE_HEIGHT: "18px",
@@ -9104,6 +9174,7 @@ __export(theming_exports, {
9104
9174
  lighten: () => lightenColor,
9105
9175
  styled: () => styled,
9106
9176
  themes: () => themes,
9177
+ tokens: () => tokens,
9107
9178
  typography: () => typography,
9108
9179
  useTheme: () => useTheme,
9109
9180
  withTheme: () => withTheme
@@ -9964,15 +10035,15 @@ var require_jsx = __commonJS({
9964
10035
  );
9965
10036
  var stringifyToken = function(token2) {
9966
10037
  return token2 ? typeof token2 == "string" ? token2 : typeof token2.content == "string" ? token2.content : token2.content.map(stringifyToken).join("") : "";
9967
- }, walkTokens = function(tokens) {
9968
- for (var openedTags = [], i2 = 0; i2 < tokens.length; i2++) {
9969
- var token2 = tokens[i2], notTagNorBrace = !1;
10038
+ }, walkTokens = function(tokens2) {
10039
+ for (var openedTags = [], i2 = 0; i2 < tokens2.length; i2++) {
10040
+ var token2 = tokens2[i2], notTagNorBrace = !1;
9970
10041
  if (typeof token2 != "string" && (token2.type === "tag" && token2.content[0] && token2.content[0].type === "tag" ? token2.content[0].content[0].content === "</" ? openedTags.length > 0 && openedTags[openedTags.length - 1].tagName === stringifyToken(token2.content[0].content[1]) && openedTags.pop() : token2.content[token2.content.length - 1].content === "/>" || openedTags.push({
9971
10042
  tagName: stringifyToken(token2.content[0].content[1]),
9972
10043
  openedBraces: 0
9973
10044
  }) : openedTags.length > 0 && token2.type === "punctuation" && token2.content === "{" ? openedTags[openedTags.length - 1].openedBraces++ : openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces > 0 && token2.type === "punctuation" && token2.content === "}" ? openedTags[openedTags.length - 1].openedBraces-- : notTagNorBrace = !0), (notTagNorBrace || typeof token2 == "string") && openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces === 0) {
9974
10045
  var plainText = stringifyToken(token2);
9975
- i2 < tokens.length - 1 && (typeof tokens[i2 + 1] == "string" || tokens[i2 + 1].type === "plain-text") && (plainText += stringifyToken(tokens[i2 + 1]), tokens.splice(i2 + 1, 1)), i2 > 0 && (typeof tokens[i2 - 1] == "string" || tokens[i2 - 1].type === "plain-text") && (plainText = stringifyToken(tokens[i2 - 1]) + plainText, tokens.splice(i2 - 1, 1), i2--), tokens[i2] = new Prism2.Token(
10046
+ i2 < tokens2.length - 1 && (typeof tokens2[i2 + 1] == "string" || tokens2[i2 + 1].type === "plain-text") && (plainText += stringifyToken(tokens2[i2 + 1]), tokens2.splice(i2 + 1, 1)), i2 > 0 && (typeof tokens2[i2 - 1] == "string" || tokens2[i2 - 1].type === "plain-text") && (plainText = stringifyToken(tokens2[i2 - 1]) + plainText, tokens2.splice(i2 - 1, 1), i2--), tokens2[i2] = new Prism2.Token(
9976
10047
  "plain-text",
9977
10048
  plainText,
9978
10049
  null,
@@ -10260,10 +10331,10 @@ var require_markdown = __commonJS({
10260
10331
  }), Prism2.hooks.add("after-tokenize", function(env) {
10261
10332
  if (env.language !== "markdown" && env.language !== "md")
10262
10333
  return;
10263
- function walkTokens(tokens) {
10264
- if (!(!tokens || typeof tokens == "string"))
10265
- for (var i2 = 0, l2 = tokens.length; i2 < l2; i2++) {
10266
- var token2 = tokens[i2];
10334
+ function walkTokens(tokens2) {
10335
+ if (!(!tokens2 || typeof tokens2 == "string"))
10336
+ for (var i2 = 0, l2 = tokens2.length; i2 < l2; i2++) {
10337
+ var token2 = tokens2[i2];
10267
10338
  if (token2.type !== "code") {
10268
10339
  walkTokens(token2.content);
10269
10340
  continue;
@@ -12289,8 +12360,8 @@ var require_prism_core = __commonJS({
12289
12360
  * @memberof Prism
12290
12361
  */
12291
12362
  util: {
12292
- encode: function encode2(tokens) {
12293
- return tokens instanceof Token ? new Token(tokens.type, encode2(tokens.content), tokens.alias) : Array.isArray(tokens) ? tokens.map(encode2) : tokens.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
12363
+ encode: function encode2(tokens2) {
12364
+ return tokens2 instanceof Token ? new Token(tokens2.type, encode2(tokens2.content), tokens2.alias) : Array.isArray(tokens2) ? tokens2.map(encode2) : tokens2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
12294
12365
  },
12295
12366
  /**
12296
12367
  * Returns the name of the type of the given value.
@@ -13190,8 +13261,8 @@ var require_core = __commonJS({
13190
13261
  value = result[index4], result[index4] = refract.Token.stringify(value, language, result);
13191
13262
  return result;
13192
13263
  }
13193
- function encode2(tokens) {
13194
- return tokens;
13264
+ function encode2(tokens2) {
13265
+ return tokens2;
13195
13266
  }
13196
13267
  function attributes(attrs) {
13197
13268
  var key;
@@ -15757,7 +15828,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15757
15828
  function rgb2(m3) {
15758
15829
  return callback("rgb", m3), "";
15759
15830
  }
15760
- var tokens = [{
15831
+ var tokens2 = [{
15761
15832
  pattern: /^\x08+/,
15762
15833
  sub: remove2
15763
15834
  }, {
@@ -15822,8 +15893,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15822
15893
  }
15823
15894
  var results1 = [], _text = text, length2 = _text.length;
15824
15895
  outer: for (; length2 > 0; ) {
15825
- for (var i2 = 0, o2 = 0, len = tokens.length; o2 < len; i2 = ++o2) {
15826
- var handler = tokens[i2];
15896
+ for (var i2 = 0, o2 = 0, len = tokens2.length; o2 < len; i2 = ++o2) {
15897
+ var handler = tokens2[i2];
15827
15898
  if (process2(handler, i2), text.length !== length2) {
15828
15899
  length2 = text.length;
15829
15900
  continue outer;
@@ -31892,32 +31963,33 @@ var BadgeWrapper = styled.div(
31892
31963
  switch (status) {
31893
31964
  case "critical":
31894
31965
  return {
31895
- color: theme3.color.critical,
31896
- background: theme3.background.critical
31966
+ color: theme3.fgColor.critical,
31967
+ background: theme3.bgColor.critical,
31968
+ boxShadow: `inset 0 0 0 1px ${theme3.borderColor.critical}`
31897
31969
  };
31898
31970
  case "negative":
31899
31971
  return {
31900
- color: theme3.color.negativeText,
31901
- background: theme3.background.negative,
31902
- boxShadow: theme3.base === "light" ? `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme3.color.negativeText)}` : "none"
31972
+ color: theme3.fgColor.negative,
31973
+ background: theme3.bgColor.negative,
31974
+ boxShadow: `inset 0 0 0 1px ${theme3.borderColor.negative}`
31903
31975
  };
31904
31976
  case "warning":
31905
31977
  return {
31906
- color: theme3.color.warningText,
31907
- background: theme3.background.warning,
31908
- boxShadow: theme3.base === "light" ? `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme3.color.warningText)}` : "none"
31978
+ color: theme3.fgColor.warning,
31979
+ background: theme3.bgColor.warning,
31980
+ boxShadow: `inset 0 0 0 1px ${theme3.borderColor.warning}`
31909
31981
  };
31910
31982
  case "neutral":
31911
31983
  return {
31912
- color: theme3.textMutedColor,
31913
- background: theme3.base === "light" ? theme3.background.app : theme3.barBg,
31984
+ color: theme3.fgColor.muted,
31985
+ background: theme3.base === "dark" ? theme3.barBg : theme3.background.app,
31914
31986
  boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.8, theme3.textMutedColor)}`
31915
31987
  };
31916
31988
  case "positive":
31917
31989
  return {
31918
- color: theme3.color.positiveText,
31919
- background: theme3.background.positive,
31920
- boxShadow: theme3.base === "light" ? `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme3.color.positiveText)}` : "none"
31990
+ color: theme3.fgColor.positive,
31991
+ background: theme3.bgColor.positive,
31992
+ boxShadow: `inset 0 0 0 1px ${theme3.borderColor.positive}`
31921
31993
  };
31922
31994
  case "active":
31923
31995
  return {
@@ -40618,11 +40690,11 @@ var Markers;
40618
40690
  })(Markers = Markers || (Markers = {}));
40619
40691
 
40620
40692
  // ../node_modules/comment-parser/es6/stringifier/index.js
40621
- function join(tokens) {
40622
- return tokens.start + tokens.delimiter + tokens.postDelimiter + tokens.tag + tokens.postTag + tokens.type + tokens.postType + tokens.name + tokens.postName + tokens.description + tokens.end + tokens.lineEnd;
40693
+ function join(tokens2) {
40694
+ return tokens2.start + tokens2.delimiter + tokens2.postDelimiter + tokens2.tag + tokens2.postTag + tokens2.type + tokens2.postType + tokens2.name + tokens2.postName + tokens2.description + tokens2.end + tokens2.lineEnd;
40623
40695
  }
40624
40696
  function getStringifier() {
40625
- return (block) => block.source.map(({ tokens }) => join(tokens)).join(`
40697
+ return (block) => block.source.map(({ tokens: tokens2 }) => join(tokens2)).join(`
40626
40698
  `);
40627
40699
  }
40628
40700
 
@@ -61021,7 +61093,7 @@ init_dist();
61021
61093
  var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
61022
61094
 
61023
61095
  // src/manager-api/version.ts
61024
- var version = "10.1.0-beta.2";
61096
+ var version = "10.1.0-beta.4";
61025
61097
 
61026
61098
  // src/manager-api/modules/versions.ts
61027
61099
  var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
@@ -63346,7 +63418,7 @@ function parseNumberSkeletonFromString(skeleton) {
63346
63418
  throw new Error("Number skeleton cannot be empty");
63347
63419
  for (var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x2) {
63348
63420
  return x2.length > 0;
63349
- }), tokens = [], _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
63421
+ }), tokens2 = [], _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
63350
63422
  var stringToken = stringTokens_1[_i], stemAndOptions = stringToken.split("/");
63351
63423
  if (stemAndOptions.length === 0)
63352
63424
  throw new Error("Invalid number skeleton");
@@ -63355,9 +63427,9 @@ function parseNumberSkeletonFromString(skeleton) {
63355
63427
  if (option.length === 0)
63356
63428
  throw new Error("Invalid number skeleton");
63357
63429
  }
63358
- tokens.push({ stem, options });
63430
+ tokens2.push({ stem, options });
63359
63431
  }
63360
- return tokens;
63432
+ return tokens2;
63361
63433
  }
63362
63434
  function icuUnitToEcma(unit) {
63363
63435
  return unit.replace(/^(.*?)-/, "");
@@ -63427,8 +63499,8 @@ function parseNotationOptions(opt) {
63427
63499
  var result = {}, signOpts = parseSign(opt);
63428
63500
  return signOpts || result;
63429
63501
  }
63430
- function parseNumberSkeleton(tokens) {
63431
- for (var result = {}, _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
63502
+ function parseNumberSkeleton(tokens2) {
63503
+ for (var result = {}, _i = 0, tokens_1 = tokens2; _i < tokens_1.length; _i++) {
63432
63504
  var token2 = tokens_1[_i];
63433
63505
  switch (token2.stem) {
63434
63506
  case "percent":
@@ -65441,18 +65513,18 @@ var IDENTIFIER_PREFIX_RE_1, Parser = (
65441
65513
  err: null
65442
65514
  };
65443
65515
  }, Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location4) {
65444
- var tokens = [];
65516
+ var tokens2 = [];
65445
65517
  try {
65446
- tokens = parseNumberSkeletonFromString(skeleton);
65518
+ tokens2 = parseNumberSkeletonFromString(skeleton);
65447
65519
  } catch {
65448
65520
  return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location4);
65449
65521
  }
65450
65522
  return {
65451
65523
  val: {
65452
65524
  type: SKELETON_TYPE.number,
65453
- tokens,
65525
+ tokens: tokens2,
65454
65526
  location: location4,
65455
- parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens) : {}
65527
+ parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens2) : {}
65456
65528
  },
65457
65529
  err: null
65458
65530
  };
@@ -68834,26 +68906,28 @@ var import_react112 = __toESM(require_react(), 1);
68834
68906
  init_theming();
68835
68907
  var Input = styled.input(({ theme: theme3 }) => ({
68836
68908
  appearance: "none",
68909
+ backgroundColor: theme3.input.background,
68910
+ border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
68911
+ borderRadius: 2,
68837
68912
  display: "grid",
68838
- placeContent: "center",
68839
- width: 14,
68840
- height: 14,
68841
68913
  flexShrink: 0,
68914
+ height: 14,
68842
68915
  margin: 0,
68843
- border: `1px solid ${theme3.input.border}`,
68844
- borderRadius: 2,
68845
- backgroundColor: theme3.input.background,
68916
+ placeContent: "center",
68846
68917
  transition: "background-color 0.1s",
68918
+ width: 14,
68847
68919
  "&:enabled": {
68848
68920
  cursor: "pointer"
68849
68921
  },
68850
68922
  "&:disabled": {
68851
- backgroundColor: theme3.base === "light" ? color.light : "transparent"
68923
+ backgroundColor: "transparent",
68924
+ borderColor: theme3.input.border
68852
68925
  },
68853
68926
  "&:disabled:checked, &:disabled:indeterminate": {
68854
- backgroundColor: theme3.base === "light" ? color.mediumdark : theme3.color.dark
68927
+ backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark
68855
68928
  },
68856
68929
  "&:checked, &:indeterminate": {
68930
+ border: "none",
68857
68931
  backgroundColor: color.secondary
68858
68932
  },
68859
68933
  "&:checked::before": {
@@ -69003,27 +69077,30 @@ var import_react116 = __toESM(require_react(), 1);
69003
69077
  init_theming();
69004
69078
  var Input4 = styled.input(({ theme: theme3 }) => ({
69005
69079
  appearance: "none",
69080
+ backgroundColor: theme3.input.background,
69081
+ border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`,
69082
+ borderRadius: 8,
69006
69083
  display: "grid",
69007
- placeContent: "center",
69008
- width: 16,
69009
- height: 16,
69010
69084
  flexShrink: 0,
69085
+ height: 16,
69011
69086
  margin: -1,
69012
- border: `1px solid ${theme3.input.border}`,
69013
- borderRadius: 8,
69014
- backgroundColor: theme3.input.background,
69087
+ placeContent: "center",
69015
69088
  transition: "background-color 0.1s",
69089
+ width: 16,
69016
69090
  "&:enabled": {
69017
69091
  cursor: "pointer"
69018
69092
  },
69019
69093
  "&:disabled": {
69020
- backgroundColor: theme3.base === "light" ? color.light : "transparent"
69094
+ backgroundColor: "transparent",
69095
+ borderColor: theme3.input.border
69021
69096
  },
69022
69097
  "&:disabled:checked": {
69023
- backgroundColor: theme3.base === "light" ? color.light : theme3.color.mediumdark
69098
+ backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark,
69099
+ borderColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark
69024
69100
  },
69025
69101
  "&:checked": {
69026
69102
  backgroundColor: color.secondary,
69103
+ borderColor: color.secondary,
69027
69104
  boxShadow: `inset 0 0 0 2px ${theme3.input.background}`
69028
69105
  },
69029
69106
  "&:enabled:focus-visible": {