@gostudent/shared-ui-library 1.33.0 → 2.0.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 (36) hide show
  1. package/dist/LineChartImpl-ocsbcloT.js +145 -0
  2. package/dist/{index-BetfWNU1.js → index-DYPksIJ5.js} +1679 -1661
  3. package/dist/index.js +41 -40
  4. package/dist/src/components/LineChart/LineChart.d.ts +1 -1
  5. package/dist/src/components/LineChart/LineChart.d.ts.map +1 -1
  6. package/dist/src/components/LineChart/LineChartImpl.d.ts +6 -2
  7. package/dist/src/components/LineChart/LineChartImpl.d.ts.map +1 -1
  8. package/dist/src/components/Tag/Tag.d.ts +4 -2
  9. package/dist/src/components/Tag/Tag.d.ts.map +1 -1
  10. package/dist/src/compositions/GradeHistoryChart/GradeHistoryChart.d.ts +6 -0
  11. package/dist/src/compositions/GradeHistoryChart/GradeHistoryChart.d.ts.map +1 -1
  12. package/dist/src/icons/PaperIcon.d.ts +8 -0
  13. package/dist/src/icons/PaperIcon.d.ts.map +1 -0
  14. package/dist/src/icons/index.d.ts +2 -0
  15. package/dist/src/icons/index.d.ts.map +1 -1
  16. package/dist/src/index.d.ts +2 -2
  17. package/dist/src/index.d.ts.map +1 -1
  18. package/dist/src/tokens/output/gs/semantic-colors/tokens.d.ts +3 -2
  19. package/dist/src/tokens/output/gs/semantic-colors/tokens.d.ts.map +1 -1
  20. package/dist/src/tokens/output/sk/semantic-colors/tokens.d.ts +3 -2
  21. package/dist/src/tokens/output/sk/semantic-colors/tokens.d.ts.map +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/themes/theme-gs.css +6 -5
  24. package/dist/themes/theme-sk.css +17 -16
  25. package/package.json +1 -1
  26. package/src/tokens/output/gs/semantic-colors/tokens.d.ts +3 -2
  27. package/src/tokens/output/gs/semantic-colors/tokens.js +3 -2
  28. package/src/tokens/output/gs/semantic-colors/tokens.ts +3 -2
  29. package/src/tokens/output/gs/semantic-colors/variables.css +6 -5
  30. package/src/tokens/output/sk/semantic-colors/tokens.d.ts +3 -2
  31. package/src/tokens/output/sk/semantic-colors/tokens.js +3 -2
  32. package/src/tokens/output/sk/semantic-colors/tokens.ts +3 -2
  33. package/src/tokens/output/sk/semantic-colors/variables.css +10 -9
  34. package/src/tokens/output/sk/semantic-font-desktop/variables.css +2 -2
  35. package/src/tokens/output/sk/semantic-font-mobile/variables.css +5 -5
  36. package/dist/LineChartImpl-DUgs8fvF.js +0 -155
@@ -69,14 +69,15 @@
69
69
  --color-surface-icons-pending: #f4c244;
70
70
  --color-surface-selected: #e3e8f6;
71
71
  --color-surface-disabled: #f8f8fa;
72
- --color-surface-subtle-blue: #f4f6fb;
73
- --color-surface-feedback-default: #f8f8fa;
72
+ --color-surface-light-steel: #f8f8fa;
74
73
  --color-surface-blue: #0b2fac;
75
74
  --color-surface-stepper: #3c59bd;
76
75
  --color-surface-tooltip: #232532;
77
76
  --color-surface-calendar-date: #0b2fac;
78
77
  --color-surface-calendar-triangle: #0b2fac;
79
78
  --color-surface-calendar-dot: #f4c244;
79
+ --color-surface-branded: #f4f6fb;
80
+ --color-surface-pill: #f4f6fb;
80
81
  --color-border-default: #dadbe5;
81
82
  --color-border-white: #ffffff;
82
83
  --color-border-focus: #0b2fac;
@@ -85,7 +86,7 @@
85
86
  --color-border-medium: #c3c5d5;
86
87
  --color-border-feedback-default: #555978;
87
88
  --color-border-dark: #131e29;
88
- --color-border-pill: #6d82cd;
89
+ --color-border-pill: #3c59bd;
89
90
  --color-border-selected: #0b2fac;
90
91
  --color-text-primary: #131e29;
91
92
  --color-text-secondary: #555978;
@@ -105,8 +106,8 @@
105
106
  --color-in-progress-border: #5dc18b;
106
107
  --color-in-progress-dot: #5dc18b;
107
108
  --color-in-progress-dot-flash: #c5e9d5;
108
- --color-subjects-de-bi-ph-hi: #ca04a9;
109
- --color-subjects-it-es-tr: #c6005c;
109
+ --color-subjects-de-bi-ph-hi: #c6005c;
110
+ --color-subjects-it-es-tr: #db30c4;
110
111
  --color-subjects-ma: #008599;
111
112
  --color-subjects-la-ch-fr: #c83e20;
112
113
  --color-subjects-nl-en: #7b62d7;
@@ -66,14 +66,15 @@ export declare const t: {
66
66
  readonly colorSurfaceIconsPending: string;
67
67
  readonly colorSurfaceSelected: string;
68
68
  readonly colorSurfaceDisabled: string;
69
- readonly colorSurfaceSubtleBlue: string;
70
- readonly colorSurfaceFeedbackDefault: string;
69
+ readonly colorSurfaceLightSteel: string;
71
70
  readonly colorSurfaceBlue: string;
72
71
  readonly colorSurfaceStepper: string;
73
72
  readonly colorSurfaceTooltip: string;
74
73
  readonly colorSurfaceCalendarDate: string;
75
74
  readonly colorSurfaceCalendarTriangle: string;
76
75
  readonly colorSurfaceCalendarDot: string;
76
+ readonly colorSurfaceBranded: string;
77
+ readonly colorSurfacePill: string;
77
78
  readonly colorBorderDefault: string;
78
79
  readonly colorBorderWhite: string;
79
80
  readonly colorBorderFocus: string;
@@ -66,14 +66,15 @@ export const t = {
66
66
  colorSurfaceIconsPending: 'var(--color-surface-icons-pending)',
67
67
  colorSurfaceSelected: 'var(--color-surface-selected)',
68
68
  colorSurfaceDisabled: 'var(--color-surface-disabled)',
69
- colorSurfaceSubtleBlue: 'var(--color-surface-subtle-blue)',
70
- colorSurfaceFeedbackDefault: 'var(--color-surface-feedback-default)',
69
+ colorSurfaceLightSteel: 'var(--color-surface-light-steel)',
71
70
  colorSurfaceBlue: 'var(--color-surface-blue)',
72
71
  colorSurfaceStepper: 'var(--color-surface-stepper)',
73
72
  colorSurfaceTooltip: 'var(--color-surface-tooltip)',
74
73
  colorSurfaceCalendarDate: 'var(--color-surface-calendar-date)',
75
74
  colorSurfaceCalendarTriangle: 'var(--color-surface-calendar-triangle)',
76
75
  colorSurfaceCalendarDot: 'var(--color-surface-calendar-dot)',
76
+ colorSurfaceBranded: 'var(--color-surface-branded)',
77
+ colorSurfacePill: 'var(--color-surface-pill)',
77
78
  colorBorderDefault: 'var(--color-border-default)',
78
79
  colorBorderWhite: 'var(--color-border-white)',
79
80
  colorBorderFocus: 'var(--color-border-focus)',
@@ -66,14 +66,15 @@ export const t = {
66
66
  colorSurfaceIconsPending: 'var(--color-surface-icons-pending)',
67
67
  colorSurfaceSelected: 'var(--color-surface-selected)',
68
68
  colorSurfaceDisabled: 'var(--color-surface-disabled)',
69
- colorSurfaceSubtleBlue: 'var(--color-surface-subtle-blue)',
70
- colorSurfaceFeedbackDefault: 'var(--color-surface-feedback-default)',
69
+ colorSurfaceLightSteel: 'var(--color-surface-light-steel)',
71
70
  colorSurfaceBlue: 'var(--color-surface-blue)',
72
71
  colorSurfaceStepper: 'var(--color-surface-stepper)',
73
72
  colorSurfaceTooltip: 'var(--color-surface-tooltip)',
74
73
  colorSurfaceCalendarDate: 'var(--color-surface-calendar-date)',
75
74
  colorSurfaceCalendarTriangle: 'var(--color-surface-calendar-triangle)',
76
75
  colorSurfaceCalendarDot: 'var(--color-surface-calendar-dot)',
76
+ colorSurfaceBranded: 'var(--color-surface-branded)',
77
+ colorSurfacePill: 'var(--color-surface-pill)',
77
78
  colorBorderDefault: 'var(--color-border-default)',
78
79
  colorBorderWhite: 'var(--color-border-white)',
79
80
  colorBorderFocus: 'var(--color-border-focus)',
@@ -58,10 +58,10 @@
58
58
  --color-feedback-error-text: #000000;
59
59
  --color-surface-default: #ffffff;
60
60
  --color-surface-subtle-steel: #f0f1f4;
61
- --color-surface-hover: #bfd2e9;
61
+ --color-surface-hover: #e9e9ef;
62
62
  --color-surface-icons-medium: #131e29;
63
63
  --color-surface-icons-default: #555978;
64
- --color-surface-icons-primary: #c10223;
64
+ --color-surface-icons-primary: #131e29;
65
65
  --color-surface-icons-disabled: #dadbe5;
66
66
  --color-surface-icons-tooltip: #749ecf;
67
67
  --color-surface-icons-white: #ffffff;
@@ -69,14 +69,15 @@
69
69
  --color-surface-icons-pending: #f4c534;
70
70
  --color-surface-selected: #bfd2e9;
71
71
  --color-surface-disabled: #f8f8fa;
72
- --color-surface-subtle-blue: #eaf1f8;
73
- --color-surface-feedback-default: #f8f8fa;
72
+ --color-surface-light-steel: #f8f8fa;
74
73
  --color-surface-blue: #306eb8;
75
- --color-surface-stepper: #598bc6;
74
+ --color-surface-stepper: #131e29;
76
75
  --color-surface-tooltip: #232532;
77
76
  --color-surface-calendar-date: #131e29;
78
77
  --color-surface-calendar-triangle: #c10223;
79
78
  --color-surface-calendar-dot: #f4c534;
79
+ --color-surface-branded: #ffffff;
80
+ --color-surface-pill: #eaf1f8;
80
81
  --color-border-default: #dadbe5;
81
82
  --color-border-white: #ffffff;
82
83
  --color-border-focus: #131e29;
@@ -85,8 +86,8 @@
85
86
  --color-border-medium: #c3c5d5;
86
87
  --color-border-feedback-default: #555978;
87
88
  --color-border-dark: #131e29;
88
- --color-border-pill: #749ecf;
89
- --color-border-selected: #306eb8;
89
+ --color-border-pill: #598bc6;
90
+ --color-border-selected: #131e29;
90
91
  --color-text-primary: #131e29;
91
92
  --color-text-secondary: #555978;
92
93
  --color-text-inverse: #ffffff;
@@ -105,8 +106,8 @@
105
106
  --color-in-progress-border: #5dc18b;
106
107
  --color-in-progress-dot: #5dc18b;
107
108
  --color-in-progress-dot-flash: #c5e9d5;
108
- --color-subjects-de-bi-ph-hi: #ca04a9;
109
- --color-subjects-it-es-tr: #c6005c;
109
+ --color-subjects-de-bi-ph-hi: #c6005c;
110
+ --color-subjects-it-es-tr: #db30c4;
110
111
  --color-subjects-ma: #117781;
111
112
  --color-subjects-la-ch-fr: #c83e20;
112
113
  --color-subjects-nl-en: #a249a8;
@@ -24,8 +24,8 @@
24
24
  --font-desktop-heading-line-height-h6: 1.25rem;
25
25
  --font-desktop-subtitle-font-size-md: 1.5rem;
26
26
  --font-desktop-subtitle-font-size-sm: 1.125rem;
27
- --font-desktop-subtitle-font-weight-md: 500;
28
- --font-desktop-subtitle-font-weight-sm: 400;
27
+ --font-desktop-subtitle-font-weight-md: 700;
28
+ --font-desktop-subtitle-font-weight-sm: 800;
29
29
  --font-desktop-subtitle-line-height-md: 2rem;
30
30
  --font-desktop-subtitle-line-height-sm: 1.75rem;
31
31
  --font-desktop-body-font-weight-md: 600;
@@ -12,15 +12,15 @@
12
12
  --font-mobile-heading-line-height-h3: 1.75rem;
13
13
  --font-mobile-heading-line-height-h4: 1.5rem;
14
14
  --font-mobile-heading-font-weight-h1: 800;
15
- --font-mobile-heading-font-weight-h2: 700;
16
- --font-mobile-heading-font-weight-h3: 600;
17
- --font-mobile-heading-font-weight-h4: 700;
15
+ --font-mobile-heading-font-weight-h2: 800;
16
+ --font-mobile-heading-font-weight-h3: 700;
17
+ --font-mobile-heading-font-weight-h4: 800;
18
18
  --font-mobile-subtitle-font-size-md: 1rem;
19
19
  --font-mobile-subtitle-font-size-sm: 0.875rem;
20
20
  --font-mobile-subtitle-line-height-md: 1.5rem;
21
21
  --font-mobile-subtitle-line-height-sm: 1.25rem;
22
- --font-mobile-subtitle-font-weight-md: 500;
23
- --font-mobile-subtitle-font-weight-sm: 600;
22
+ --font-mobile-subtitle-font-weight-md: 700;
23
+ --font-mobile-subtitle-font-weight-sm: 700;
24
24
  --font-mobile-body-font-weight-md: 500;
25
25
  --font-mobile-body-font-weight-sm: 400;
26
26
  --font-mobile-body-font-size-md: 1rem;
@@ -1,155 +0,0 @@
1
- import { jsx as e, jsxs as n, Fragment as D } from "react/jsx-runtime";
2
- import { ResponsiveContainer as y, LineChart as W, CartesianGrid as w, XAxis as C, YAxis as S, Tooltip as A, Legend as M, Line as m, ReferenceLine as _ } from "recharts";
3
- import { s as t, f as g, e as B } from "./index-BetfWNU1.js";
4
- const v = [
5
- "var(--color-chart-series-1)",
6
- "var(--color-chart-series-2)",
7
- "var(--color-chart-series-3)",
8
- "var(--color-chart-series-4)",
9
- "var(--color-chart-series-5)",
10
- "var(--color-chart-series-6)",
11
- "var(--color-chart-series-7)",
12
- "var(--color-chart-series-8)"
13
- ];
14
- function E(a) {
15
- let r = 0;
16
- for (let l = 0; l < a.length; l++)
17
- r = a.charCodeAt(l) + ((r << 5) - r);
18
- return v[Math.abs(r) % v.length];
19
- }
20
- function R({ active: a, payload: r, label: l, locale: c }) {
21
- if (!a || !(r != null && r.length)) return null;
22
- const d = l != null ? new Date(l) : null, i = d ? g(d, "d MMM yyyy", { locale: c }) : "";
23
- return /* @__PURE__ */ n("div", { className: t.tooltip, role: "tooltip", children: [
24
- i && /* @__PURE__ */ e("p", { className: t.tooltipDate, children: i }),
25
- r.map((s) => /* @__PURE__ */ n("div", { className: t.tooltipRow, children: [
26
- /* @__PURE__ */ e("span", { className: t.tooltipDot, style: { background: s.color }, "aria-hidden": "true" }),
27
- /* @__PURE__ */ e("span", { className: t.tooltipLabel, children: s.name }),
28
- /* @__PURE__ */ e("span", { className: t.tooltipValue, children: s.value })
29
- ] }, s.name))
30
- ] });
31
- }
32
- function T({ payload: a }) {
33
- return a != null && a.length ? /* @__PURE__ */ e("ul", { className: t.legend, role: "list", children: a.map((r) => /* @__PURE__ */ n("li", { className: t.legendItem, children: [
34
- r.type === "plainline" ? /* @__PURE__ */ e("svg", { className: t.legendLineSvg, viewBox: "0 0 24 4", "aria-hidden": "true", children: /* @__PURE__ */ e("line", { x1: "0", y1: "2", x2: "24", y2: "2", stroke: r.color, strokeWidth: "2", strokeDasharray: "4 3" }) }) : /* @__PURE__ */ e("svg", { className: t.legendLineSvg, viewBox: "0 0 24 4", "aria-hidden": "true", children: /* @__PURE__ */ e("line", { x1: "0", y1: "2", x2: "24", y2: "2", stroke: r.color, strokeWidth: "2" }) }),
35
- /* @__PURE__ */ e("span", { className: t.legendLabel, children: r.value })
36
- ] }, r.value)) }) : null;
37
- }
38
- function K({
39
- data: a,
40
- series: r,
41
- yDomain: l,
42
- yTicks: c,
43
- reversed: d = !1,
44
- referenceLine: i,
45
- colorMap: s,
46
- locale: k = B,
47
- labels: p,
48
- renderTooltipContent: f,
49
- height: x = 240,
50
- className: L
51
- }) {
52
- if (!a.length)
53
- return /* @__PURE__ */ e("div", { className: t.empty, role: "status", children: p.noData });
54
- const u = k, N = [t.root, L].filter(Boolean).join(" ");
55
- return /* @__PURE__ */ e("figure", { className: N, children: /* @__PURE__ */ e("div", { className: t.chart, children: /* @__PURE__ */ e(y, { width: "100%", height: x, children: /* @__PURE__ */ n(W, { data: [...a], margin: { top: 8, right: 8, bottom: 0, left: -16 }, children: [
56
- /* @__PURE__ */ e(
57
- w,
58
- {
59
- strokeDasharray: "none",
60
- stroke: "var(--color-border-default, #dadbe5)",
61
- strokeWidth: 1,
62
- vertical: !1
63
- }
64
- ),
65
- /* @__PURE__ */ e(
66
- C,
67
- {
68
- dataKey: "ts",
69
- type: "number",
70
- scale: "time",
71
- domain: ["dataMin", "dataMax"],
72
- tickFormatter: (o) => g(new Date(o), "d MMM", { locale: u }),
73
- tick: { fontSize: 11, fill: "var(--color-text-secondary, #555978)" },
74
- axisLine: { stroke: "var(--color-border-default, #dadbe5)" },
75
- tickLine: !1,
76
- minTickGap: 40
77
- }
78
- ),
79
- /* @__PURE__ */ e(
80
- S,
81
- {
82
- domain: [...l],
83
- ticks: c ? [...c] : void 0,
84
- reversed: d,
85
- tick: { fontSize: 11, fill: "var(--color-text-secondary, #555978)" },
86
- axisLine: !1,
87
- tickLine: !1,
88
- width: 28
89
- }
90
- ),
91
- /* @__PURE__ */ e(
92
- A,
93
- {
94
- content: (o) => {
95
- const h = { ...o, locale: u };
96
- return f ? f(h) : /* @__PURE__ */ e(R, { ...h });
97
- },
98
- cursor: { stroke: "var(--color-border-medium, #c3c5d5)", strokeWidth: 1 }
99
- }
100
- ),
101
- /* @__PURE__ */ e(
102
- M,
103
- {
104
- content: (o) => /* @__PURE__ */ e(T, { ...o }),
105
- verticalAlign: "bottom"
106
- }
107
- ),
108
- r.map(({ key: o, label: h }) => {
109
- const b = (s == null ? void 0 : s[o]) ?? E(o);
110
- return /* @__PURE__ */ e(
111
- m,
112
- {
113
- type: "monotone",
114
- dataKey: o,
115
- name: h ?? o,
116
- stroke: b,
117
- strokeWidth: 2,
118
- dot: { r: 4, strokeWidth: 2, fill: "var(--color-surface-default, #ffffff)" },
119
- activeDot: { r: 6, strokeWidth: 2 },
120
- connectNulls: !1
121
- },
122
- o
123
- );
124
- }),
125
- i && /* @__PURE__ */ n(D, { children: [
126
- /* @__PURE__ */ e(
127
- m,
128
- {
129
- dataKey: "__ref__",
130
- name: i.label,
131
- stroke: "var(--color-chart-reference)",
132
- strokeDasharray: "6 4",
133
- strokeWidth: 1.5,
134
- dot: !1,
135
- activeDot: !1,
136
- legendType: "plainline"
137
- }
138
- ),
139
- /* @__PURE__ */ e(
140
- _,
141
- {
142
- y: i.value,
143
- stroke: "var(--color-chart-reference)",
144
- strokeDasharray: "6 4",
145
- strokeWidth: 1.5,
146
- label: !1,
147
- ifOverflow: "extendDomain"
148
- }
149
- )
150
- ] })
151
- ] }) }) }) });
152
- }
153
- export {
154
- K as default
155
- };