@sentropic/design-system-vue 0.20.1 → 0.22.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
@@ -10864,3 +10864,224 @@
10864
10864
  box-shadow: 0 0 0 2px var(--st-semantic-border-interactive);
10865
10865
  outline: none;
10866
10866
  }
10867
+
10868
+ /* StepLineChart */
10869
+ .st-stepLineChart {
10870
+ color: var(--st-semantic-data-category1);
10871
+ display: block;
10872
+ font-family: inherit;
10873
+ position: relative;
10874
+ width: 100%;
10875
+ }
10876
+
10877
+ .st-stepLineChart--category1 { color: var(--st-semantic-data-category1); }
10878
+ .st-stepLineChart--category2 { color: var(--st-semantic-data-category2); }
10879
+ .st-stepLineChart--category3 { color: var(--st-semantic-data-category3); }
10880
+ .st-stepLineChart--category4 { color: var(--st-semantic-data-category4); }
10881
+ .st-stepLineChart--category5 { color: var(--st-semantic-data-category5); }
10882
+ .st-stepLineChart--category6 { color: var(--st-semantic-data-category6); }
10883
+ .st-stepLineChart--category7 { color: var(--st-semantic-data-category7); }
10884
+ .st-stepLineChart--category8 { color: var(--st-semantic-data-category8); }
10885
+
10886
+ .st-stepLineChart svg {
10887
+ display: block;
10888
+ overflow: visible;
10889
+ }
10890
+
10891
+ .st-stepLineChart__visual {
10892
+ display: block;
10893
+ }
10894
+
10895
+ .st-stepLineChart__grid {
10896
+ stroke: var(--st-component-stepLineChart-gridStroke, var(--st-semantic-border-subtle));
10897
+ stroke-dasharray: 2 3;
10898
+ stroke-width: 1;
10899
+ opacity: 0.7;
10900
+ }
10901
+
10902
+ .st-stepLineChart__axis {
10903
+ stroke: var(--st-component-stepLineChart-axisStroke, var(--st-semantic-border-subtle));
10904
+ stroke-width: 1;
10905
+ }
10906
+
10907
+ .st-stepLineChart__tickLabel {
10908
+ fill: var(--st-component-stepLineChart-labelColor, var(--st-semantic-text-secondary));
10909
+ font-size: 0.6875rem;
10910
+ }
10911
+
10912
+ .st-stepLineChart__line {
10913
+ stroke: currentColor;
10914
+ }
10915
+
10916
+ .st-stepLineChart__dot {
10917
+ fill: currentColor;
10918
+ stroke: var(--st-semantic-surface-default);
10919
+ stroke-width: 1.5;
10920
+ cursor: pointer;
10921
+ transition: r 120ms ease;
10922
+ }
10923
+
10924
+ .st-stepLineChart__dot:hover,
10925
+ .st-stepLineChart__dot:focus-visible {
10926
+ r: 5.5;
10927
+ }
10928
+
10929
+ .st-stepLineChart__dot:focus-visible {
10930
+ outline: 2px solid var(--st-semantic-border-interactive);
10931
+ outline-offset: 1px;
10932
+ }
10933
+
10934
+ .st-stepLineChart__tooltip {
10935
+ background: var(--st-component-stepLineChart-tooltipBackground, var(--st-semantic-surface-inverse));
10936
+ border-radius: var(--st-radius-sm, 0.25rem);
10937
+ color: var(--st-component-stepLineChart-tooltipText, var(--st-semantic-text-inverse));
10938
+ display: inline-flex;
10939
+ flex-direction: column;
10940
+ font-size: 0.75rem;
10941
+ gap: 0.125rem;
10942
+ line-height: 1.2;
10943
+ padding: 0.375rem 0.5rem;
10944
+ pointer-events: none;
10945
+ position: absolute;
10946
+ transform: translate(-50%, calc(-100% - 8px));
10947
+ white-space: nowrap;
10948
+ z-index: 1;
10949
+ }
10950
+
10951
+ .st-stepLineChart__tooltipLabel {
10952
+ font-weight: 600;
10953
+ }
10954
+
10955
+ .st-stepLineChart__tooltipValue {
10956
+ opacity: 0.85;
10957
+ }
10958
+
10959
+ @media (prefers-reduced-motion: reduce) {
10960
+ .st-stepLineChart__dot {
10961
+ transition: none;
10962
+ }
10963
+ }
10964
+
10965
+
10966
+ /* DivergentBarChart */
10967
+ .st-divergentBarChart {
10968
+ color: var(--st-component-divergentBarChart-labelColor, var(--st-semantic-text-secondary));
10969
+ display: block;
10970
+ font-family: inherit;
10971
+ position: relative;
10972
+ width: 100%;
10973
+ }
10974
+
10975
+ .st-divergentBarChart svg,
10976
+ .st-divergentBarChart__visual {
10977
+ display: block;
10978
+ overflow: visible;
10979
+ }
10980
+
10981
+ .st-divergentBarChart__grid {
10982
+ stroke: var(--st-component-divergentBarChart-gridStroke, var(--st-semantic-border-subtle));
10983
+ stroke-dasharray: 2 3;
10984
+ stroke-width: 1;
10985
+ opacity: 0.7;
10986
+ }
10987
+
10988
+ .st-divergentBarChart__axis {
10989
+ stroke: var(--st-component-divergentBarChart-axisStroke, var(--st-semantic-border-subtle));
10990
+ stroke-width: 1;
10991
+ }
10992
+
10993
+ .st-divergentBarChart__zeroAxis {
10994
+ stroke: var(--st-component-divergentBarChart-zeroStroke, var(--st-semantic-border-strong));
10995
+ stroke-width: 1.5;
10996
+ }
10997
+
10998
+ .st-divergentBarChart__tickLabel,
10999
+ .st-divergentBarChart__categoryLabel {
11000
+ fill: var(--st-component-divergentBarChart-labelColor, var(--st-semantic-text-secondary));
11001
+ font-size: 0.6875rem;
11002
+ }
11003
+
11004
+ .st-divergentBarChart__bar {
11005
+ cursor: pointer;
11006
+ transition: opacity var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);
11007
+ }
11008
+
11009
+ .st-divergentBarChart__bar--positive {
11010
+ fill: var(--st-component-divergentBarChart-positiveFill, var(--st-semantic-data-category5));
11011
+ }
11012
+
11013
+ .st-divergentBarChart__bar--negative {
11014
+ fill: var(--st-component-divergentBarChart-negativeFill, var(--st-semantic-data-category3));
11015
+ }
11016
+
11017
+ .st-divergentBarChart__bar--neutral,
11018
+ .st-divergentBarChart__bar--zero {
11019
+ fill: var(--st-component-divergentBarChart-neutralFill, var(--st-semantic-data-category6));
11020
+ }
11021
+
11022
+ .st-divergentBarChart__tooltip {
11023
+ background: var(--st-component-divergentBarChart-tooltipBackground, var(--st-semantic-surface-inverse));
11024
+ border-radius: var(--st-radius-sm, 0.25rem);
11025
+ color: var(--st-component-divergentBarChart-tooltipText, var(--st-semantic-text-inverse));
11026
+ display: inline-flex;
11027
+ flex-direction: column;
11028
+ font-size: 0.75rem;
11029
+ gap: 0.125rem;
11030
+ line-height: 1.2;
11031
+ padding: 0.375rem 0.5rem;
11032
+ pointer-events: none;
11033
+ position: absolute;
11034
+ transform: translate(-50%, calc(-100% - 8px));
11035
+ white-space: nowrap;
11036
+ z-index: 1;
11037
+ }
11038
+
11039
+ .st-divergentBarChart__tooltipLabel {
11040
+ font-weight: 600;
11041
+ }
11042
+
11043
+ .st-divergentBarChart__tooltipValue {
11044
+ opacity: 0.85;
11045
+ }
11046
+
11047
+ .st-divergentBarChart__legend {
11048
+ display: flex;
11049
+ flex-wrap: wrap;
11050
+ gap: var(--st-spacing-3, 0.75rem);
11051
+ list-style: none;
11052
+ margin: var(--st-spacing-2, 0.5rem) 0 0;
11053
+ padding: 0;
11054
+ }
11055
+
11056
+ .st-divergentBarChart__legendItem {
11057
+ align-items: center;
11058
+ color: var(--st-semantic-text-secondary);
11059
+ display: inline-flex;
11060
+ font-size: 0.75rem;
11061
+ gap: var(--st-spacing-1, 0.25rem);
11062
+ }
11063
+
11064
+ .st-divergentBarChart__legendSwatch {
11065
+ border-radius: 2px;
11066
+ height: 0.7rem;
11067
+ width: 0.7rem;
11068
+ }
11069
+
11070
+ .st-divergentBarChart__legendSwatch--positive {
11071
+ background: var(--st-component-divergentBarChart-positiveFill, var(--st-semantic-data-category5));
11072
+ }
11073
+
11074
+ .st-divergentBarChart__legendSwatch--negative {
11075
+ background: var(--st-component-divergentBarChart-negativeFill, var(--st-semantic-data-category3));
11076
+ }
11077
+
11078
+ .st-divergentBarChart__legendSwatch--neutral {
11079
+ background: var(--st-component-divergentBarChart-neutralFill, var(--st-semantic-data-category6));
11080
+ }
11081
+
11082
+ @media (prefers-reduced-motion: reduce) {
11083
+ .st-divergentBarChart__bar {
11084
+ transition: none;
11085
+ }
11086
+ }
11087
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/design-system-vue",
3
- "version": "0.20.1",
3
+ "version": "0.22.0",
4
4
  "description": "Vue 3 components for the Sentropic design system.",
5
5
  "type": "module",
6
6
  "publishConfig": {