@apipass/design-system 7.2.0 → 7.4.0

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 (24) hide show
  1. package/dist/lib/embedded-styles.js +2 -2
  2. package/dist/lib/style.css +1 -1
  3. package/dist/lib/ui/components/charts/TopList/TopList.cjs +1 -1
  4. package/dist/lib/ui/components/charts/TopList/TopList.cjs.map +1 -1
  5. package/dist/lib/ui/components/charts/TopList/TopList.js +49 -45
  6. package/dist/lib/ui/components/charts/TopList/TopList.js.map +1 -1
  7. package/dist/lib/ui/components/charts/TopList/top-list-option.cjs +1 -1
  8. package/dist/lib/ui/components/charts/TopList/top-list-option.cjs.map +1 -1
  9. package/dist/lib/ui/components/charts/TopList/top-list-option.js +148 -106
  10. package/dist/lib/ui/components/charts/TopList/top-list-option.js.map +1 -1
  11. package/dist/lib/ui/components/charts/chart-theme.cjs +1 -1
  12. package/dist/lib/ui/components/charts/chart-theme.cjs.map +1 -1
  13. package/dist/lib/ui/components/charts/chart-theme.js +6 -4
  14. package/dist/lib/ui/components/charts/chart-theme.js.map +1 -1
  15. package/dist/lib/ui/primitives/Button/Button.cjs.map +1 -1
  16. package/dist/lib/ui/primitives/Button/Button.js.map +1 -1
  17. package/dist/lib/ui/primitives/JsonViewer/json-code-mirror.cjs +1 -1
  18. package/dist/lib/ui/primitives/JsonViewer/json-code-mirror.cjs.map +1 -1
  19. package/dist/lib/ui/primitives/JsonViewer/json-code-mirror.js +23 -23
  20. package/dist/lib/ui/primitives/JsonViewer/json-code-mirror.js.map +1 -1
  21. package/dist/types/ui/components/charts/TopList/top-list-option.d.ts +1 -0
  22. package/dist/types/ui/components/charts/chart-theme.d.ts +2 -0
  23. package/dist/types/ui/primitives/Button/Button.d.ts +3 -3
  24. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { EditorView as f } from "@codemirror/view";
2
2
  import { json as u } from "@codemirror/lang-json";
3
- import { foldGutter as g, syntaxHighlighting as p, HighlightStyle as m } from "@codemirror/language";
4
- import { tags as n } from "@lezer/highlight";
3
+ import { foldGutter as p, syntaxHighlighting as g, HighlightStyle as m } from "@codemirror/language";
4
+ import { tags as t } from "@lezer/highlight";
5
5
  const d = m.define([
6
- { tag: n.propertyName, color: "var(--json-viewer-color-key)" },
7
- { tag: n.string, color: "var(--json-viewer-color-string)", fontWeight: 600 },
8
- { tag: [n.number, n.bool, n.null], color: "var(--json-viewer-color-scalar)" },
9
- { tag: [n.separator, n.squareBracket, n.brace], color: "var(--json-viewer-color-punctuation)" }
10
- ]), w = f.theme({
6
+ { tag: t.propertyName, color: "var(--json-viewer-color-key)" },
7
+ { tag: t.string, color: "var(--json-viewer-color-string)", fontWeight: 600 },
8
+ { tag: [t.number, t.bool, t.null], color: "var(--json-viewer-color-scalar)" },
9
+ { tag: [t.separator, t.squareBracket, t.brace], color: "var(--json-viewer-color-punctuation)" }
10
+ ]), S = f.theme({
11
11
  "&": { backgroundColor: "transparent", color: "var(--json-viewer-color-punctuation)", fontSize: "13px" },
12
12
  "&.cm-focused": { outline: "none" },
13
13
  ".cm-content": { fontFamily: "var(--sds-typography-family-mono)", padding: "8px 124px 12px 4px" },
@@ -18,8 +18,8 @@ const d = m.define([
18
18
  paddingLeft: "5px"
19
19
  },
20
20
  ".cm-scroller": { overflow: "auto" }
21
- }), S = [u(), g(), p(d)];
22
- function b(r) {
21
+ }), b = [u(), p(), g(d)];
22
+ function x(r) {
23
23
  try {
24
24
  return JSON.stringify(r, null, 2) ?? "null";
25
25
  } catch {
@@ -29,41 +29,41 @@ function b(r) {
29
29
  function a(r) {
30
30
  return typeof r == "number" ? `${r}px` : r;
31
31
  }
32
- function x({ height: r, minHeight: e, maxHeight: i }) {
32
+ function E({ height: r, minHeight: e, maxHeight: i }) {
33
33
  const o = {};
34
34
  return r !== void 0 && (o["--json-viewer-height"] = a(r)), e !== void 0 && (o["--json-viewer-min-height"] = a(e)), i !== void 0 && (o["--json-viewer-max-height"] = a(i)), o;
35
35
  }
36
- function E(r) {
36
+ function k(r) {
37
37
  const e = [], i = r.length;
38
38
  let o = 0;
39
39
  for (; o < i && r[o] !== "{" && r[o] !== "["; ) o++;
40
40
  if (o >= i) return e;
41
- let s = 0, c = !1, l = -1;
41
+ let l = 0, c = !1, s = -1;
42
42
  for (; o < i; o++) {
43
- const t = r[o];
43
+ const n = r[o];
44
44
  if (c) {
45
- t === "\\" ? o++ : t === '"' && (c = !1);
45
+ n === "\\" ? o++ : n === '"' && (c = !1);
46
46
  continue;
47
47
  }
48
- if (t === '"') {
48
+ if (n === '"') {
49
49
  c = !0;
50
50
  continue;
51
51
  }
52
- if (t === "{" || t === "[") {
53
- s++, s === 2 && (l = o + 1);
52
+ if (n === "{" || n === "[") {
53
+ l++, l === 2 && (s = o + 1);
54
54
  continue;
55
55
  }
56
- (t === "}" || t === "]") && (s === 2 && l !== -1 && (e.push({ from: l, to: o }), l = -1), s--);
56
+ (n === "}" || n === "]") && (l === 2 && s !== -1 && (o === s || e.push({ from: s, to: o }), s = -1), l--);
57
57
  }
58
58
  return e;
59
59
  }
60
60
  export {
61
- E as computeFirstLevelFoldRanges,
62
- S as jsonEditorExtensions,
63
- w as jsonEditorTheme,
61
+ k as computeFirstLevelFoldRanges,
62
+ b as jsonEditorExtensions,
63
+ S as jsonEditorTheme,
64
64
  d as jsonHighlightStyle,
65
- b as serializeJson,
65
+ x as serializeJson,
66
66
  a as toCssSize,
67
- x as toEditorSizeStyle
67
+ E as toEditorSizeStyle
68
68
  };
69
69
  //# sourceMappingURL=json-code-mirror.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-code-mirror.js","sources":["../../../../../src/ui/primitives/JsonViewer/json-code-mirror.ts"],"sourcesContent":["import type { CSSProperties } from \"react\";\nimport { EditorView } from \"@codemirror/view\";\nimport { json } from \"@codemirror/lang-json\";\nimport { foldGutter, HighlightStyle, syntaxHighlighting } from \"@codemirror/language\";\nimport { tags as t } from \"@lezer/highlight\";\n\nexport const jsonHighlightStyle = HighlightStyle.define([\n { tag: t.propertyName, color: \"var(--json-viewer-color-key)\" },\n { tag: t.string, color: \"var(--json-viewer-color-string)\", fontWeight: 600 },\n { tag: [t.number, t.bool, t.null], color: \"var(--json-viewer-color-scalar)\" },\n { tag: [t.separator, t.squareBracket, t.brace], color: \"var(--json-viewer-color-punctuation)\" },\n]);\n\nexport const jsonEditorTheme = EditorView.theme({\n \"&\": { backgroundColor: \"transparent\", color: \"var(--json-viewer-color-punctuation)\", fontSize: \"13px\" },\n \"&.cm-focused\": { outline: \"none\" },\n \".cm-content\": { fontFamily: \"var(--sds-typography-family-mono)\", padding: \"8px 124px 12px 4px\" },\n \".cm-gutters\": {\n backgroundColor: \"transparent\",\n border: \"none\",\n color: \"var(--json-viewer-color-caret)\",\n paddingLeft: \"5px\",\n },\n \".cm-scroller\": { overflow: \"auto\" },\n});\n\nexport const jsonEditorExtensions = [json(), foldGutter(), syntaxHighlighting(jsonHighlightStyle)];\n\nexport function serializeJson(value: unknown): string {\n try {\n return JSON.stringify(value, null, 2) ?? \"null\";\n } catch {\n return String(value);\n }\n}\n\nexport function toCssSize(size: string | number): string {\n return typeof size === \"number\" ? `${size}px` : size;\n}\n\nexport interface JsonEditorSize {\n height?: string | number;\n minHeight?: string | number;\n maxHeight?: string | number;\n}\n\nexport function toEditorSizeStyle({ height, minHeight, maxHeight }: JsonEditorSize): CSSProperties {\n const sizeVariables: Record<string, string> = {};\n if (height !== undefined) sizeVariables[\"--json-viewer-height\"] = toCssSize(height);\n if (minHeight !== undefined) sizeVariables[\"--json-viewer-min-height\"] = toCssSize(minHeight);\n if (maxHeight !== undefined) sizeVariables[\"--json-viewer-max-height\"] = toCssSize(maxHeight);\n return sizeVariables as CSSProperties;\n}\n\n/**\n * Finds the fold range of every direct child (depth 1) of the root object/array\n * by scanning the text itself for matching brackets. This mirrors what\n * CodeMirror's `foldable()` would compute, but doesn't depend on the lezer\n * parser having finished tokenizing the document — which for a multi-MB\n * document is not guaranteed synchronously at mount time.\n */\nexport function computeFirstLevelFoldRanges(text: string): { from: number; to: number }[] {\n const ranges: { from: number; to: number }[] = [];\n const n = text.length;\n let i = 0;\n while (i < n && text[i] !== \"{\" && text[i] !== \"[\") i++;\n if (i >= n) return ranges;\n\n let depth = 0;\n let inString = false;\n let pendingStart = -1;\n for (; i < n; i++) {\n const ch = text[i];\n if (inString) {\n if (ch === \"\\\\\") i++;\n else if (ch === '\"') inString = false;\n continue;\n }\n if (ch === '\"') {\n inString = true;\n continue;\n }\n if (ch === \"{\" || ch === \"[\") {\n depth++;\n if (depth === 2) pendingStart = i + 1;\n continue;\n }\n if (ch === \"}\" || ch === \"]\") {\n if (depth === 2 && pendingStart !== -1) {\n ranges.push({ from: pendingStart, to: i });\n pendingStart = -1;\n }\n depth--;\n }\n }\n return ranges;\n}\n"],"names":["jsonHighlightStyle","HighlightStyle","t","jsonEditorTheme","EditorView","jsonEditorExtensions","json","foldGutter","syntaxHighlighting","serializeJson","value","toCssSize","size","toEditorSizeStyle","height","minHeight","maxHeight","sizeVariables","computeFirstLevelFoldRanges","text","ranges","n","i","depth","inString","pendingStart","ch"],"mappings":";;;;AAMO,MAAMA,IAAqBC,EAAe,OAAO;AAAA,EACtD,EAAE,KAAKC,EAAE,cAAc,OAAO,+BAAA;AAAA,EAC9B,EAAE,KAAKA,EAAE,QAAQ,OAAO,mCAAmC,YAAY,IAAA;AAAA,EACvE,EAAE,KAAK,CAACA,EAAE,QAAQA,EAAE,MAAMA,EAAE,IAAI,GAAG,OAAO,kCAAA;AAAA,EAC1C,EAAE,KAAK,CAACA,EAAE,WAAWA,EAAE,eAAeA,EAAE,KAAK,GAAG,OAAO,uCAAA;AACzD,CAAC,GAEYC,IAAkBC,EAAW,MAAM;AAAA,EAC9C,KAAK,EAAE,iBAAiB,eAAe,OAAO,wCAAwC,UAAU,OAAA;AAAA,EAChG,gBAAgB,EAAE,SAAS,OAAA;AAAA,EAC3B,eAAe,EAAE,YAAY,qCAAqC,SAAS,qBAAA;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AAK;AAC5B,MAAAH,KACIA,MAAU,MAAGE,IAAeH,IAAI;AACpC;AAAA,IACF;AACA,KAAII,MAAO,OAAOA,MAAO,SACnBH,MAAU,KAAKE,MAAiB,OAClCL,EAAO,KAAK,EAAE,MAAMK,GAAc,IAAIH,GAAG,GACzCG,IAAe,KAEjBF;AAAA,EAEJ;AACA,SAAOH;AACT;"}
1
+ {"version":3,"file":"json-code-mirror.js","sources":["../../../../../src/ui/primitives/JsonViewer/json-code-mirror.ts"],"sourcesContent":["import type { CSSProperties } from \"react\";\nimport { EditorView } from \"@codemirror/view\";\nimport { json } from \"@codemirror/lang-json\";\nimport { foldGutter, HighlightStyle, syntaxHighlighting } from \"@codemirror/language\";\nimport { tags as t } from \"@lezer/highlight\";\n\nexport const jsonHighlightStyle = HighlightStyle.define([\n { tag: t.propertyName, color: \"var(--json-viewer-color-key)\" },\n { tag: t.string, color: \"var(--json-viewer-color-string)\", fontWeight: 600 },\n { tag: [t.number, t.bool, t.null], color: \"var(--json-viewer-color-scalar)\" },\n { tag: [t.separator, t.squareBracket, t.brace], color: \"var(--json-viewer-color-punctuation)\" },\n]);\n\nexport const jsonEditorTheme = EditorView.theme({\n \"&\": { backgroundColor: \"transparent\", color: \"var(--json-viewer-color-punctuation)\", fontSize: \"13px\" },\n \"&.cm-focused\": { outline: \"none\" },\n \".cm-content\": { fontFamily: \"var(--sds-typography-family-mono)\", padding: \"8px 124px 12px 4px\" },\n \".cm-gutters\": {\n backgroundColor: \"transparent\",\n border: \"none\",\n color: \"var(--json-viewer-color-caret)\",\n paddingLeft: \"5px\",\n },\n \".cm-scroller\": { overflow: \"auto\" },\n});\n\nexport const jsonEditorExtensions = [json(), foldGutter(), syntaxHighlighting(jsonHighlightStyle)];\n\nexport function serializeJson(value: unknown): string {\n try {\n return JSON.stringify(value, null, 2) ?? \"null\";\n } catch {\n return String(value);\n }\n}\n\nexport function toCssSize(size: string | number): string {\n return typeof size === \"number\" ? `${size}px` : size;\n}\n\nexport interface JsonEditorSize {\n height?: string | number;\n minHeight?: string | number;\n maxHeight?: string | number;\n}\n\nexport function toEditorSizeStyle({ height, minHeight, maxHeight }: JsonEditorSize): CSSProperties {\n const sizeVariables: Record<string, string> = {};\n if (height !== undefined) sizeVariables[\"--json-viewer-height\"] = toCssSize(height);\n if (minHeight !== undefined) sizeVariables[\"--json-viewer-min-height\"] = toCssSize(minHeight);\n if (maxHeight !== undefined) sizeVariables[\"--json-viewer-max-height\"] = toCssSize(maxHeight);\n return sizeVariables as CSSProperties;\n}\n\n/**\n * Finds the fold range of every direct child (depth 1) of the root object/array\n * by scanning the text itself for matching brackets. This mirrors what\n * CodeMirror's `foldable()` would compute, but doesn't depend on the lezer\n * parser having finished tokenizing the document — which for a multi-MB\n * document is not guaranteed synchronously at mount time.\n */\nexport function computeFirstLevelFoldRanges(text: string): { from: number; to: number }[] {\n const ranges: { from: number; to: number }[] = [];\n const n = text.length;\n let i = 0;\n while (i < n && text[i] !== \"{\" && text[i] !== \"[\") i++;\n if (i >= n) return ranges;\n\n let depth = 0;\n let inString = false;\n let pendingStart = -1;\n for (; i < n; i++) {\n const ch = text[i];\n if (inString) {\n if (ch === \"\\\\\") i++;\n else if (ch === '\"') inString = false;\n continue;\n }\n if (ch === '\"') {\n inString = true;\n continue;\n }\n if (ch === \"{\" || ch === \"[\") {\n depth++;\n if (depth === 2) pendingStart = i + 1;\n continue;\n }\n if (ch === \"}\" || ch === \"]\") {\n if (depth === 2 && pendingStart !== -1) {\n const isEmptyBlock = i === pendingStart;\n if (!isEmptyBlock) ranges.push({ from: pendingStart, to: i });\n pendingStart = -1;\n }\n depth--;\n }\n }\n return ranges;\n}\n"],"names":["jsonHighlightStyle","HighlightStyle","t","jsonEditorTheme","EditorView","jsonEditorExtensions","json","foldGutter","syntaxHighlighting","serializeJson","value","toCssSize","size","toEditorSizeStyle","height","minHeight","maxHeight","sizeVariables","computeFirstLevelFoldRanges","text","ranges","n","i","depth","inString","pendingStart","ch"],"mappings":";;;;AAM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K,CAAS,IACrFC;AACT;AASO,SAASC,EAA4BC,GAA8C;AACxF,QAAMC,IAAyC,CAAA,GACzCC,IAAIF,EAAK;AACf,MAAIG,IAAI;AACR,SAAOA,IAAID,KAAKF,EAAKG,CAAC,MAAM,OAAOH,EAAKG,CAAC,MAAM,MAAK,CAAAA;AACpD,MAAIA,KAAKD,EAAG,QAAOD;AAEnB,MAAIG,IAAQ,GACRC,IAAW,IACXC,IAAe;AACnB,SAAOH,IAAID,GAAGC,KAAK;AACjB,UAAMI,IAAKP,EAAKG,CAAC;AACjB,QAAIE,GAAU;AACZ,MAAIE,MAAO,OAAMJ,MACRI,MAAO,QAAKF,IAAW;AAChC;AAAA,IACF;AACA,QAAIE,MAAO,KAAK;AACd,MAAAF,IAAW;AACX;AAAA,IACF;AACA,QAAIE,MAAO,OAAOA,MAAO,KAAK;AAC5B,MAAAH,KACIA,MAAU,MAAGE,IAAeH,IAAI;AACpC;AAAA,IACF;AACA,KAAII,MAAO,OAAOA,MAAO,SACnBH,MAAU,KAAKE,MAAiB,OACbH,MAAMG,KACRL,EAAO,KAAK,EAAE,MAAMK,GAAc,IAAIH,GAAG,GAC5DG,IAAe,KAEjBF;AAAA,EAEJ;AACA,SAAOH;AACT;"}
@@ -16,6 +16,7 @@ export interface TopListOptionInput {
16
16
  colorsByItemId: Record<string, string>;
17
17
  animate: boolean;
18
18
  labeledRowStep: number;
19
+ canvasWidthPx: number;
19
20
  valueFormatter?: (value: number) => string;
20
21
  }
21
22
  export declare function rankById(items: TopListItem[], sort: TopListSort): Map<string, number>;
@@ -4,6 +4,8 @@ export interface ChartTheme {
4
4
  axisLineColor: string;
5
5
  splitLineColor: string;
6
6
  labelColor: string;
7
+ emphasizedLabelColor: string;
8
+ trackColor: string;
7
9
  tooltipBackgroundColor: string;
8
10
  tooltipBorderColor: string;
9
11
  fontFamily: string;
@@ -8,18 +8,18 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonBaseProp
8
8
  variant?: Exclude<ButtonBaseProps["variant"], "danger-primary" | "danger-subtle">;
9
9
  } & React.RefAttributes<HTMLElement>>;
10
10
  export type ButtonDangerProps = Omit<ButtonBaseProps, "variant"> & {
11
- variant?: Exclude<ButtonBaseProps["variant"], "primary" | "subtle" | "neutral">;
11
+ variant?: Exclude<ButtonBaseProps["variant"], "primary" | "subtle" | "neutral" | "text">;
12
12
  };
13
13
  /**
14
14
  * Only used for destructive actions
15
15
  */
16
16
  export declare const ButtonDanger: React.ForwardRefExoticComponent<Omit<ButtonBaseProps, "variant"> & {
17
- variant?: Exclude<ButtonBaseProps["variant"], "primary" | "subtle" | "neutral">;
17
+ variant?: Exclude<ButtonBaseProps["variant"], "primary" | "subtle" | "neutral" | "text">;
18
18
  } & React.RefAttributes<HTMLElement>>;
19
19
  type ButtonBaseProps = {
20
20
  type?: ComponentPropsWithoutRef<"button">["type"];
21
21
  size?: "small" | "medium";
22
- variant?: "primary" | "neutral" | "subtle" | "danger-primary" | "danger-subtle";
22
+ variant?: "primary" | "neutral" | "subtle" | "text" | "danger-primary" | "danger-subtle";
23
23
  } & AnchorOrButtonProps;
24
24
  export type ButtonGroupProps = React.ComponentPropsWithoutRef<"div"> & {
25
25
  align?: "start" | "end" | "center" | "justify" | "stack";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apipass/design-system",
3
- "version": "7.2.0",
3
+ "version": "7.4.0",
4
4
  "type": "module",
5
5
  "description": "APIPass React Design System",
6
6
  "sideEffects": [