@besaitech/ng-design-system 0.0.64 → 0.0.66

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@besaitech/ng-design-system",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -13,6 +13,11 @@
13
13
  "@angular/router": "^20.3.0 || ^21.0.0 || ^22.0.0"
14
14
  },
15
15
  "dependencies": {
16
+ "d3-array": "^3.2.4",
17
+ "d3-delaunay": "^6.0.4",
18
+ "d3-hierarchy": "^3.1.2",
19
+ "d3-scale": "^4.0.2",
20
+ "d3-shape": "^3.2.0",
16
21
  "tslib": "^2.3.0"
17
22
  },
18
23
  "sideEffects": false,
package/themes/base.css CHANGED
@@ -138,6 +138,86 @@ html.dark {
138
138
  * --sds-dark-tint, --sds-dark-tint-hover, --sds-dark-tint-active, --sds-dark-tint-border, --sds-dark-on-tint
139
139
  */
140
140
 
141
+ /*
142
+ * Data-viz palette — consumed by the sds-*-chart family (line, bar, scatter, donut, heatmap, treemap,
143
+ * sparkline, kpi). Plain custom properties, not @theme tokens: a chart paints them through `style.fill`,
144
+ * never through a utility class, so they need no Tailwind output.
145
+ *
146
+ * The 8 categorical slots are a validated colour-blind-safe ORDER (adjacent pairs clear ΔE 8 under
147
+ * protan/deutan/tritan simulation in both modes) — the order is the safety mechanism, so re-order or
148
+ * re-step them only after re-validating. A series takes the slot of its position in the `series` array
149
+ * and keeps it when other series are hidden (colour follows the entity, never its rank). A brand may
150
+ * override any slot in its own preset, e.g. `--sds-chart-1: var(--color-brand-500)`.
151
+ *
152
+ * Dark mode is SELECTED, not flipped: the same eight hues re-stepped for the dark surface.
153
+ */
154
+ :root {
155
+ --sds-chart-1: #2a78d6; /* blue */
156
+ --sds-chart-2: #eb6834; /* orange */
157
+ --sds-chart-3: #1baf7a; /* aqua */
158
+ --sds-chart-4: #eda100; /* yellow */
159
+ --sds-chart-5: #e87ba4; /* magenta */
160
+ --sds-chart-6: #008300; /* green */
161
+ --sds-chart-7: #4a3aa7; /* violet */
162
+ --sds-chart-8: #e34948; /* red */
163
+
164
+ /* Chrome — hairline grid one step off the surface, a slightly firmer baseline/axis. */
165
+ --sds-chart-grid: #eef0f4;
166
+ --sds-chart-axis: #d3d8e2;
167
+
168
+ /* Sequential (magnitude): one hue, near-zero recedes toward the surface. */
169
+ --sds-chart-seq-0: #e3eefc;
170
+ --sds-chart-seq-1: #0d366b;
171
+ /* Diverging (polarity): warm/cool poles around a neutral gray midpoint — never a hue at the middle. */
172
+ --sds-chart-div-neg: #d03b3b;
173
+ --sds-chart-div-mid: #efeeeb;
174
+ --sds-chart-div-pos: #1c5cab;
175
+ /* Ink for a label set inside a ramp-coloured cell: `lo` on the pale end, `hi` on the strong end. */
176
+ --sds-chart-ink-lo: #1b2440;
177
+ --sds-chart-ink-hi: #ffffff;
178
+
179
+ /* Ink for a label set ON a categorical fill (treemap tiles): the higher-contrast of white / near-black per slot. */
180
+ --sds-chart-1-ink: #ffffff;
181
+ --sds-chart-2-ink: #10131c;
182
+ --sds-chart-3-ink: #10131c;
183
+ --sds-chart-4-ink: #10131c;
184
+ --sds-chart-5-ink: #10131c;
185
+ --sds-chart-6-ink: #ffffff;
186
+ --sds-chart-7-ink: #ffffff;
187
+ --sds-chart-8-ink: #10131c;
188
+ }
189
+
190
+ html.dark {
191
+ --sds-chart-1: #3987e5;
192
+ --sds-chart-2: #d95926;
193
+ --sds-chart-3: #199e70;
194
+ --sds-chart-4: #c98500;
195
+ --sds-chart-5: #d55181;
196
+ --sds-chart-6: #008300;
197
+ --sds-chart-7: #9085e9;
198
+ --sds-chart-8: #e66767;
199
+
200
+ --sds-chart-grid: #26262b;
201
+ --sds-chart-axis: #3a3a41;
202
+
203
+ --sds-chart-seq-0: #1d2633;
204
+ --sds-chart-seq-1: #9ec5f4;
205
+ --sds-chart-div-neg: #e66767;
206
+ --sds-chart-div-mid: #34343a;
207
+ --sds-chart-div-pos: #5598e7;
208
+ --sds-chart-ink-lo: #f4f4f5;
209
+ --sds-chart-ink-hi: #0b0b0d;
210
+
211
+ --sds-chart-1-ink: #0b0b0d;
212
+ --sds-chart-2-ink: #0b0b0d;
213
+ --sds-chart-3-ink: #0b0b0d;
214
+ --sds-chart-4-ink: #0b0b0d;
215
+ --sds-chart-5-ink: #0b0b0d;
216
+ --sds-chart-6-ink: #ffffff;
217
+ --sds-chart-7-ink: #0b0b0d;
218
+ --sds-chart-8-ink: #0b0b0d;
219
+ }
220
+
141
221
  /* Honour a reader's reduced-motion setting: the ambient drift is decoration, so it simply stops. */
142
222
  @media (prefers-reduced-motion: reduce) {
143
223
  .animate-sds-ambient {