@sentropic/design-system-react 0.13.0 → 0.14.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.
package/dist/styles.css CHANGED
@@ -9032,3 +9032,404 @@
9032
9032
  .st-treemapChart__legendSwatch--category6 { background: var(--st-semantic-data-category6); }
9033
9033
  .st-treemapChart__legendSwatch--category7 { background: var(--st-semantic-data-category7); }
9034
9034
  .st-treemapChart__legendSwatch--category8 { background: var(--st-semantic-data-category8); }
9035
+
9036
+ /* ── Lot 2 : Heatmap / Sankey / BoxPlot / Histogram / Radar / Sunburst ── */
9037
+
9038
+ .st-heatmapChart,
9039
+ .st-histogramChart,
9040
+ .st-boxPlotChart,
9041
+ .st-radarChart,
9042
+ .st-sankeyChart,
9043
+ .st-sunburstChart {
9044
+ color: var(--st-semantic-text-secondary);
9045
+ display: block;
9046
+ font-family: inherit;
9047
+ max-width: 100%;
9048
+ position: relative;
9049
+ width: 100%;
9050
+ }
9051
+
9052
+ .st-heatmapChart svg,
9053
+ .st-heatmapChart__visual,
9054
+ .st-histogramChart svg,
9055
+ .st-histogramChart__visual,
9056
+ .st-boxPlotChart svg,
9057
+ .st-boxPlotChart__visual,
9058
+ .st-radarChart svg,
9059
+ .st-radarChart__visual,
9060
+ .st-sankeyChart svg,
9061
+ .st-sankeyChart__visual,
9062
+ .st-sunburstChart svg,
9063
+ .st-sunburstChart__visual {
9064
+ display: block;
9065
+ overflow: visible;
9066
+ }
9067
+
9068
+ /* ── Axis labels ── */
9069
+ .st-heatmapChart__axisLabel,
9070
+ .st-histogramChart__label,
9071
+ .st-boxPlotChart__label,
9072
+ .st-radarChart__axisLabel,
9073
+ .st-sankeyChart__nodeLabel {
9074
+ fill: var(--st-semantic-text-secondary);
9075
+ font-size: 0.75rem;
9076
+ }
9077
+
9078
+ /* ── Axes / grids ── */
9079
+ .st-histogramChart__axis,
9080
+ .st-boxPlotChart__axis {
9081
+ stroke: var(--st-semantic-border-subtle);
9082
+ stroke-width: 1;
9083
+ }
9084
+
9085
+ .st-radarChart__ring,
9086
+ .st-radarChart__axis {
9087
+ stroke: var(--st-semantic-border-subtle);
9088
+ stroke-width: 1;
9089
+ }
9090
+
9091
+ .st-radarChart__ring {
9092
+ fill: none;
9093
+ }
9094
+
9095
+ /* ── Heatmap ── */
9096
+ .st-heatmapChart__plot {
9097
+ fill: none;
9098
+ stroke: var(--st-semantic-border-subtle);
9099
+ stroke-width: 1;
9100
+ }
9101
+
9102
+ .st-heatmapChart__cell {
9103
+ cursor: pointer;
9104
+ stroke: var(--st-semantic-surface-default, Canvas);
9105
+ stroke-width: 1;
9106
+ transition: opacity 120ms ease;
9107
+ }
9108
+
9109
+ .st-heatmapChart__cell--dim {
9110
+ opacity: 0.45;
9111
+ }
9112
+
9113
+ /* ── Histogram ── */
9114
+ .st-histogramChart__bar {
9115
+ cursor: pointer;
9116
+ transition: opacity 120ms ease;
9117
+ }
9118
+
9119
+ .st-histogramChart__bar--dim {
9120
+ opacity: 0.45;
9121
+ }
9122
+
9123
+ /* ── BoxPlot ── */
9124
+ .st-boxPlotChart__axis,
9125
+ .st-boxPlotChart__whisker,
9126
+ .st-boxPlotChart__whiskerCap {
9127
+ stroke: var(--st-semantic-border-subtle);
9128
+ stroke-width: 1;
9129
+ }
9130
+
9131
+ .st-boxPlotChart__median {
9132
+ stroke: var(--st-semantic-text-primary);
9133
+ stroke-width: 2;
9134
+ }
9135
+
9136
+ .st-boxPlotChart__box {
9137
+ cursor: pointer;
9138
+ fill-opacity: 0.72;
9139
+ stroke: var(--st-semantic-surface-default, Canvas);
9140
+ stroke-width: 1;
9141
+ transition: opacity 120ms ease;
9142
+ }
9143
+
9144
+ .st-boxPlotChart__box--dim {
9145
+ opacity: 0.45;
9146
+ }
9147
+
9148
+ .st-boxPlotChart__outlier {
9149
+ fill: var(--st-semantic-surface-default, Canvas);
9150
+ stroke: var(--st-semantic-text-secondary);
9151
+ stroke-width: 1.5;
9152
+ }
9153
+
9154
+ /* ── Radar ── */
9155
+ .st-radarChart__polygon {
9156
+ cursor: pointer;
9157
+ fill-opacity: 0.16;
9158
+ stroke-width: 2;
9159
+ transition: opacity 120ms ease;
9160
+ }
9161
+
9162
+ .st-radarChart__polygon--dim {
9163
+ opacity: 0.35;
9164
+ }
9165
+
9166
+ .st-radarChart__point {
9167
+ stroke: var(--st-semantic-surface-default, Canvas);
9168
+ stroke-width: 1;
9169
+ }
9170
+
9171
+ /* ── Sankey ── */
9172
+ .st-sankeyChart__node {
9173
+ stroke: var(--st-semantic-surface-default, Canvas);
9174
+ stroke-width: 1;
9175
+ }
9176
+
9177
+ .st-sankeyChart__link {
9178
+ cursor: pointer;
9179
+ fill: none;
9180
+ opacity: 0.38;
9181
+ stroke-linecap: round;
9182
+ transition: opacity 120ms ease;
9183
+ }
9184
+
9185
+ .st-sankeyChart__link:hover {
9186
+ opacity: 0.62;
9187
+ }
9188
+
9189
+ .st-sankeyChart__link--dim {
9190
+ opacity: 0.16;
9191
+ }
9192
+
9193
+ /* ── Sunburst ── */
9194
+ .st-sunburstChart__arc {
9195
+ cursor: pointer;
9196
+ stroke: var(--st-semantic-surface-default, Canvas);
9197
+ stroke-width: 1;
9198
+ transition: opacity 120ms ease;
9199
+ }
9200
+
9201
+ .st-sunburstChart__arc--dim {
9202
+ opacity: 0.4;
9203
+ }
9204
+
9205
+ .st-sunburstChart__label {
9206
+ font-size: 0.68rem;
9207
+ font-weight: 650;
9208
+ pointer-events: none;
9209
+ }
9210
+
9211
+ /* ── Category fills — cells / bars / boxes / nodes / arcs ── */
9212
+ .st-heatmapChart__cell--category1,
9213
+ .st-histogramChart__bar--category1,
9214
+ .st-boxPlotChart__box--category1,
9215
+ .st-sankeyChart__node--category1,
9216
+ .st-sunburstChart__arc--category1 { fill: var(--st-semantic-data-category1); }
9217
+ .st-heatmapChart__cell--category2,
9218
+ .st-histogramChart__bar--category2,
9219
+ .st-boxPlotChart__box--category2,
9220
+ .st-sankeyChart__node--category2,
9221
+ .st-sunburstChart__arc--category2 { fill: var(--st-semantic-data-category2); }
9222
+ .st-heatmapChart__cell--category3,
9223
+ .st-histogramChart__bar--category3,
9224
+ .st-boxPlotChart__box--category3,
9225
+ .st-sankeyChart__node--category3,
9226
+ .st-sunburstChart__arc--category3 { fill: var(--st-semantic-data-category3); }
9227
+ .st-heatmapChart__cell--category4,
9228
+ .st-histogramChart__bar--category4,
9229
+ .st-boxPlotChart__box--category4,
9230
+ .st-sankeyChart__node--category4,
9231
+ .st-sunburstChart__arc--category4 { fill: var(--st-semantic-data-category4); }
9232
+ .st-heatmapChart__cell--category5,
9233
+ .st-histogramChart__bar--category5,
9234
+ .st-boxPlotChart__box--category5,
9235
+ .st-sankeyChart__node--category5,
9236
+ .st-sunburstChart__arc--category5 { fill: var(--st-semantic-data-category5); }
9237
+ .st-heatmapChart__cell--category6,
9238
+ .st-histogramChart__bar--category6,
9239
+ .st-boxPlotChart__box--category6,
9240
+ .st-sankeyChart__node--category6,
9241
+ .st-sunburstChart__arc--category6 { fill: var(--st-semantic-data-category6); }
9242
+ .st-heatmapChart__cell--category7,
9243
+ .st-histogramChart__bar--category7,
9244
+ .st-boxPlotChart__box--category7,
9245
+ .st-sankeyChart__node--category7,
9246
+ .st-sunburstChart__arc--category7 { fill: var(--st-semantic-data-category7); }
9247
+ .st-heatmapChart__cell--category8,
9248
+ .st-histogramChart__bar--category8,
9249
+ .st-boxPlotChart__box--category8,
9250
+ .st-sankeyChart__node--category8,
9251
+ .st-sunburstChart__arc--category8 { fill: var(--st-semantic-data-category8); }
9252
+
9253
+ /* ── Radar polygon + point (fill + stroke) ── */
9254
+ .st-radarChart__polygon--category1,
9255
+ .st-radarChart__point--category1,
9256
+ .st-radarChart__legendSwatch--category1 { fill: var(--st-semantic-data-category1); stroke: var(--st-semantic-data-category1); background: var(--st-semantic-data-category1); }
9257
+ .st-radarChart__polygon--category2,
9258
+ .st-radarChart__point--category2,
9259
+ .st-radarChart__legendSwatch--category2 { fill: var(--st-semantic-data-category2); stroke: var(--st-semantic-data-category2); background: var(--st-semantic-data-category2); }
9260
+ .st-radarChart__polygon--category3,
9261
+ .st-radarChart__point--category3,
9262
+ .st-radarChart__legendSwatch--category3 { fill: var(--st-semantic-data-category3); stroke: var(--st-semantic-data-category3); background: var(--st-semantic-data-category3); }
9263
+ .st-radarChart__polygon--category4,
9264
+ .st-radarChart__point--category4,
9265
+ .st-radarChart__legendSwatch--category4 { fill: var(--st-semantic-data-category4); stroke: var(--st-semantic-data-category4); background: var(--st-semantic-data-category4); }
9266
+ .st-radarChart__polygon--category5,
9267
+ .st-radarChart__point--category5,
9268
+ .st-radarChart__legendSwatch--category5 { fill: var(--st-semantic-data-category5); stroke: var(--st-semantic-data-category5); background: var(--st-semantic-data-category5); }
9269
+ .st-radarChart__polygon--category6,
9270
+ .st-radarChart__point--category6,
9271
+ .st-radarChart__legendSwatch--category6 { fill: var(--st-semantic-data-category6); stroke: var(--st-semantic-data-category6); background: var(--st-semantic-data-category6); }
9272
+ .st-radarChart__polygon--category7,
9273
+ .st-radarChart__point--category7,
9274
+ .st-radarChart__legendSwatch--category7 { fill: var(--st-semantic-data-category7); stroke: var(--st-semantic-data-category7); background: var(--st-semantic-data-category7); }
9275
+ .st-radarChart__polygon--category8,
9276
+ .st-radarChart__point--category8,
9277
+ .st-radarChart__legendSwatch--category8 { fill: var(--st-semantic-data-category8); stroke: var(--st-semantic-data-category8); background: var(--st-semantic-data-category8); }
9278
+
9279
+ /* ── Sankey links (stroke seulement) ── */
9280
+ .st-sankeyChart__link--category1 { stroke: var(--st-semantic-data-category1); }
9281
+ .st-sankeyChart__link--category2 { stroke: var(--st-semantic-data-category2); }
9282
+ .st-sankeyChart__link--category3 { stroke: var(--st-semantic-data-category3); }
9283
+ .st-sankeyChart__link--category4 { stroke: var(--st-semantic-data-category4); }
9284
+ .st-sankeyChart__link--category5 { stroke: var(--st-semantic-data-category5); }
9285
+ .st-sankeyChart__link--category6 { stroke: var(--st-semantic-data-category6); }
9286
+ .st-sankeyChart__link--category7 { stroke: var(--st-semantic-data-category7); }
9287
+ .st-sankeyChart__link--category8 { stroke: var(--st-semantic-data-category8); }
9288
+
9289
+ /* ── Heatmap legend (gradient ramp) ── */
9290
+ .st-heatmapChart__legend {
9291
+ align-items: center;
9292
+ display: flex;
9293
+ gap: var(--st-spacing-2, 0.5rem);
9294
+ margin-top: var(--st-spacing-2, 0.5rem);
9295
+ }
9296
+
9297
+ .st-heatmapChart__legendRamp {
9298
+ display: inline-grid;
9299
+ grid-template-columns: repeat(8, minmax(0.75rem, 1fr));
9300
+ min-width: 8rem;
9301
+ }
9302
+
9303
+ .st-heatmapChart__legendSwatch {
9304
+ display: block;
9305
+ height: 0.5rem;
9306
+ }
9307
+
9308
+ .st-heatmapChart__legendText {
9309
+ color: var(--st-semantic-text-secondary);
9310
+ font-size: 0.75rem;
9311
+ }
9312
+
9313
+ .st-heatmapChart__legendSwatch--category1 { background: var(--st-semantic-data-category1); }
9314
+ .st-heatmapChart__legendSwatch--category2 { background: var(--st-semantic-data-category2); }
9315
+ .st-heatmapChart__legendSwatch--category3 { background: var(--st-semantic-data-category3); }
9316
+ .st-heatmapChart__legendSwatch--category4 { background: var(--st-semantic-data-category4); }
9317
+ .st-heatmapChart__legendSwatch--category5 { background: var(--st-semantic-data-category5); }
9318
+ .st-heatmapChart__legendSwatch--category6 { background: var(--st-semantic-data-category6); }
9319
+ .st-heatmapChart__legendSwatch--category7 { background: var(--st-semantic-data-category7); }
9320
+ .st-heatmapChart__legendSwatch--category8 { background: var(--st-semantic-data-category8); }
9321
+
9322
+ /* ── Radar legend ── */
9323
+ .st-radarChart__legend {
9324
+ display: flex;
9325
+ flex-wrap: wrap;
9326
+ gap: var(--st-spacing-2, 0.5rem) var(--st-spacing-4, 1rem);
9327
+ list-style: none;
9328
+ margin: var(--st-spacing-2, 0.5rem) 0 0;
9329
+ padding: 0;
9330
+ }
9331
+
9332
+ .st-radarChart__legendItem {
9333
+ align-items: center;
9334
+ color: var(--st-semantic-text-secondary);
9335
+ display: inline-flex;
9336
+ font-size: 0.75rem;
9337
+ gap: var(--st-spacing-2, 0.5rem);
9338
+ }
9339
+
9340
+ .st-radarChart__legendSwatch {
9341
+ display: inline-block;
9342
+ height: 0.625rem;
9343
+ width: 0.625rem;
9344
+ }
9345
+
9346
+ /* ── Sunburst legend ── */
9347
+ .st-sunburstChart__legend {
9348
+ display: flex;
9349
+ flex-wrap: wrap;
9350
+ gap: var(--st-spacing-2, 0.5rem) var(--st-spacing-4, 1rem);
9351
+ list-style: none;
9352
+ margin: var(--st-spacing-2, 0.5rem) 0 0;
9353
+ padding: 0;
9354
+ }
9355
+
9356
+ .st-sunburstChart__legendItem {
9357
+ align-items: center;
9358
+ color: var(--st-semantic-text-secondary);
9359
+ display: inline-flex;
9360
+ font-size: 0.75rem;
9361
+ gap: var(--st-spacing-2, 0.5rem);
9362
+ }
9363
+
9364
+ .st-sunburstChart__legendSwatch {
9365
+ display: inline-block;
9366
+ height: 0.625rem;
9367
+ width: 0.625rem;
9368
+ }
9369
+
9370
+ .st-sunburstChart__legendSwatch--category1 { background: var(--st-semantic-data-category1); }
9371
+ .st-sunburstChart__legendSwatch--category2 { background: var(--st-semantic-data-category2); }
9372
+ .st-sunburstChart__legendSwatch--category3 { background: var(--st-semantic-data-category3); }
9373
+ .st-sunburstChart__legendSwatch--category4 { background: var(--st-semantic-data-category4); }
9374
+ .st-sunburstChart__legendSwatch--category5 { background: var(--st-semantic-data-category5); }
9375
+ .st-sunburstChart__legendSwatch--category6 { background: var(--st-semantic-data-category6); }
9376
+ .st-sunburstChart__legendSwatch--category7 { background: var(--st-semantic-data-category7); }
9377
+ .st-sunburstChart__legendSwatch--category8 { background: var(--st-semantic-data-category8); }
9378
+
9379
+ /* ── Tooltips communs ── */
9380
+ .st-heatmapChart__tooltip,
9381
+ .st-histogramChart__tooltip,
9382
+ .st-boxPlotChart__tooltip,
9383
+ .st-radarChart__tooltip,
9384
+ .st-sankeyChart__tooltip,
9385
+ .st-sunburstChart__tooltip {
9386
+ background: var(--st-semantic-surface-inverse);
9387
+ border-radius: var(--st-radius-sm, 0.25rem);
9388
+ color: var(--st-semantic-text-inverse);
9389
+ display: inline-flex;
9390
+ flex-direction: column;
9391
+ font-size: 0.75rem;
9392
+ gap: 0.125rem;
9393
+ line-height: 1.2;
9394
+ padding: 0.375rem 0.5rem;
9395
+ pointer-events: none;
9396
+ position: absolute;
9397
+ transform: translate(-50%, -115%);
9398
+ white-space: nowrap;
9399
+ z-index: 1;
9400
+ }
9401
+
9402
+ .st-radarChart__tooltip {
9403
+ left: 50%;
9404
+ top: 50%;
9405
+ transform: translate(-50%, -50%);
9406
+ }
9407
+
9408
+ .st-heatmapChart__tooltipLabel,
9409
+ .st-histogramChart__tooltipLabel,
9410
+ .st-boxPlotChart__tooltipLabel,
9411
+ .st-radarChart__tooltipLabel,
9412
+ .st-sankeyChart__tooltipLabel,
9413
+ .st-sunburstChart__tooltipLabel {
9414
+ font-weight: 600;
9415
+ }
9416
+
9417
+ .st-heatmapChart__tooltipValue,
9418
+ .st-histogramChart__tooltipValue,
9419
+ .st-boxPlotChart__tooltipValue,
9420
+ .st-sankeyChart__tooltipValue,
9421
+ .st-sunburstChart__tooltipValue {
9422
+ opacity: 0.85;
9423
+ }
9424
+
9425
+ /* ── reduced-motion ── */
9426
+ @media (prefers-reduced-motion: reduce) {
9427
+ .st-heatmapChart__cell,
9428
+ .st-histogramChart__bar,
9429
+ .st-boxPlotChart__box,
9430
+ .st-radarChart__polygon,
9431
+ .st-sankeyChart__link,
9432
+ .st-sunburstChart__arc {
9433
+ transition: none;
9434
+ }
9435
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/design-system-react",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "React components for the Sentropic design system.",
5
5
  "type": "module",
6
6
  "publishConfig": {