@sentropic/design-system-vue 0.21.0 → 0.23.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
@@ -5529,6 +5529,128 @@
5529
5529
  background: var(--st-semantic-feedback-error);
5530
5530
  }
5531
5531
 
5532
+ .st-rangeSlider__header {
5533
+ align-items: baseline;
5534
+ display: flex;
5535
+ gap: 0.5rem;
5536
+ justify-content: space-between;
5537
+ }
5538
+
5539
+ .st-rangeSlider__value {
5540
+ color: var(--st-semantic-text-secondary);
5541
+ font-size: 0.875rem;
5542
+ font-variant-numeric: tabular-nums;
5543
+ }
5544
+
5545
+ .st-rangeSlider {
5546
+ align-items: center;
5547
+ display: flex;
5548
+ gap: 0.75rem;
5549
+ width: 100%;
5550
+ }
5551
+
5552
+ .st-rangeSlider__bounds {
5553
+ color: var(--st-semantic-text-muted);
5554
+ flex: 0 0 auto;
5555
+ font-size: 0.75rem;
5556
+ font-variant-numeric: tabular-nums;
5557
+ }
5558
+
5559
+ .st-rangeSlider__track {
5560
+ background: var(--st-component-control-border, var(--st-semantic-border-subtle));
5561
+ border-radius: 999px;
5562
+ flex: 1 1 auto;
5563
+ height: 0.25rem;
5564
+ position: relative;
5565
+ }
5566
+
5567
+ .st-rangeSlider--sm .st-rangeSlider__track {
5568
+ height: 0.1875rem;
5569
+ }
5570
+
5571
+ .st-rangeSlider--lg .st-rangeSlider__track {
5572
+ height: 0.375rem;
5573
+ }
5574
+
5575
+ .st-rangeSlider__fill {
5576
+ background: var(--st-semantic-action-primary);
5577
+ border-radius: 999px;
5578
+ display: block;
5579
+ height: 100%;
5580
+ position: absolute;
5581
+ top: 0;
5582
+ }
5583
+
5584
+ .st-rangeSlider__thumb {
5585
+ background: var(--st-semantic-action-primary);
5586
+ border-radius: 50%;
5587
+ box-sizing: border-box;
5588
+ cursor: pointer;
5589
+ height: 1rem;
5590
+ position: absolute;
5591
+ top: 50%;
5592
+ transform: translate(-50%, -50%);
5593
+ width: 1rem;
5594
+ }
5595
+
5596
+ .st-rangeSlider--sm .st-rangeSlider__thumb {
5597
+ height: 0.75rem;
5598
+ width: 0.75rem;
5599
+ }
5600
+
5601
+ .st-rangeSlider--lg .st-rangeSlider__thumb {
5602
+ height: 1.25rem;
5603
+ width: 1.25rem;
5604
+ }
5605
+
5606
+ .st-rangeSlider__thumb:focus-visible {
5607
+ outline: 2px solid var(--st-component-control-focusRing, var(--st-semantic-border-interactive));
5608
+ outline-offset: 4px;
5609
+ }
5610
+
5611
+ .st-rangeSlider__tooltip {
5612
+ background: var(--st-semantic-text-primary);
5613
+ border-radius: var(--st-component-control-radius, 0.375rem);
5614
+ bottom: calc(100% + 0.375rem);
5615
+ color: var(--st-semantic-surface-default);
5616
+ font-size: 0.6875rem;
5617
+ font-weight: 600;
5618
+ left: 50%;
5619
+ line-height: 1;
5620
+ opacity: 0;
5621
+ padding: 0.25rem 0.375rem;
5622
+ pointer-events: none;
5623
+ position: absolute;
5624
+ transform: translateX(-50%);
5625
+ transition: opacity var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);
5626
+ white-space: nowrap;
5627
+ }
5628
+
5629
+ .st-rangeSlider__thumb:hover .st-rangeSlider__tooltip,
5630
+ .st-rangeSlider__thumb:focus-visible .st-rangeSlider__tooltip {
5631
+ opacity: 1;
5632
+ }
5633
+
5634
+ .st-rangeSlider--disabled .st-rangeSlider__thumb,
5635
+ .st-rangeSlider--disabled .st-rangeSlider__fill {
5636
+ background: var(--st-semantic-text-muted);
5637
+ }
5638
+
5639
+ .st-rangeSlider--disabled .st-rangeSlider__thumb {
5640
+ cursor: not-allowed;
5641
+ }
5642
+
5643
+ .st-rangeSlider__track[aria-invalid="true"] .st-rangeSlider__fill,
5644
+ .st-rangeSlider__track[aria-invalid="true"] .st-rangeSlider__thumb {
5645
+ background: var(--st-semantic-feedback-error);
5646
+ }
5647
+
5648
+ @media (prefers-reduced-motion: reduce) {
5649
+ .st-rangeSlider__tooltip {
5650
+ transition: none;
5651
+ }
5652
+ }
5653
+
5532
5654
  .st-sparkline {
5533
5655
  display: inline-flex;
5534
5656
  line-height: 0;
@@ -10864,3 +10986,224 @@
10864
10986
  box-shadow: 0 0 0 2px var(--st-semantic-border-interactive);
10865
10987
  outline: none;
10866
10988
  }
10989
+
10990
+ /* StepLineChart */
10991
+ .st-stepLineChart {
10992
+ color: var(--st-semantic-data-category1);
10993
+ display: block;
10994
+ font-family: inherit;
10995
+ position: relative;
10996
+ width: 100%;
10997
+ }
10998
+
10999
+ .st-stepLineChart--category1 { color: var(--st-semantic-data-category1); }
11000
+ .st-stepLineChart--category2 { color: var(--st-semantic-data-category2); }
11001
+ .st-stepLineChart--category3 { color: var(--st-semantic-data-category3); }
11002
+ .st-stepLineChart--category4 { color: var(--st-semantic-data-category4); }
11003
+ .st-stepLineChart--category5 { color: var(--st-semantic-data-category5); }
11004
+ .st-stepLineChart--category6 { color: var(--st-semantic-data-category6); }
11005
+ .st-stepLineChart--category7 { color: var(--st-semantic-data-category7); }
11006
+ .st-stepLineChart--category8 { color: var(--st-semantic-data-category8); }
11007
+
11008
+ .st-stepLineChart svg {
11009
+ display: block;
11010
+ overflow: visible;
11011
+ }
11012
+
11013
+ .st-stepLineChart__visual {
11014
+ display: block;
11015
+ }
11016
+
11017
+ .st-stepLineChart__grid {
11018
+ stroke: var(--st-component-stepLineChart-gridStroke, var(--st-semantic-border-subtle));
11019
+ stroke-dasharray: 2 3;
11020
+ stroke-width: 1;
11021
+ opacity: 0.7;
11022
+ }
11023
+
11024
+ .st-stepLineChart__axis {
11025
+ stroke: var(--st-component-stepLineChart-axisStroke, var(--st-semantic-border-subtle));
11026
+ stroke-width: 1;
11027
+ }
11028
+
11029
+ .st-stepLineChart__tickLabel {
11030
+ fill: var(--st-component-stepLineChart-labelColor, var(--st-semantic-text-secondary));
11031
+ font-size: 0.6875rem;
11032
+ }
11033
+
11034
+ .st-stepLineChart__line {
11035
+ stroke: currentColor;
11036
+ }
11037
+
11038
+ .st-stepLineChart__dot {
11039
+ fill: currentColor;
11040
+ stroke: var(--st-semantic-surface-default);
11041
+ stroke-width: 1.5;
11042
+ cursor: pointer;
11043
+ transition: r 120ms ease;
11044
+ }
11045
+
11046
+ .st-stepLineChart__dot:hover,
11047
+ .st-stepLineChart__dot:focus-visible {
11048
+ r: 5.5;
11049
+ }
11050
+
11051
+ .st-stepLineChart__dot:focus-visible {
11052
+ outline: 2px solid var(--st-semantic-border-interactive);
11053
+ outline-offset: 1px;
11054
+ }
11055
+
11056
+ .st-stepLineChart__tooltip {
11057
+ background: var(--st-component-stepLineChart-tooltipBackground, var(--st-semantic-surface-inverse));
11058
+ border-radius: var(--st-radius-sm, 0.25rem);
11059
+ color: var(--st-component-stepLineChart-tooltipText, var(--st-semantic-text-inverse));
11060
+ display: inline-flex;
11061
+ flex-direction: column;
11062
+ font-size: 0.75rem;
11063
+ gap: 0.125rem;
11064
+ line-height: 1.2;
11065
+ padding: 0.375rem 0.5rem;
11066
+ pointer-events: none;
11067
+ position: absolute;
11068
+ transform: translate(-50%, calc(-100% - 8px));
11069
+ white-space: nowrap;
11070
+ z-index: 1;
11071
+ }
11072
+
11073
+ .st-stepLineChart__tooltipLabel {
11074
+ font-weight: 600;
11075
+ }
11076
+
11077
+ .st-stepLineChart__tooltipValue {
11078
+ opacity: 0.85;
11079
+ }
11080
+
11081
+ @media (prefers-reduced-motion: reduce) {
11082
+ .st-stepLineChart__dot {
11083
+ transition: none;
11084
+ }
11085
+ }
11086
+
11087
+
11088
+ /* DivergentBarChart */
11089
+ .st-divergentBarChart {
11090
+ color: var(--st-component-divergentBarChart-labelColor, var(--st-semantic-text-secondary));
11091
+ display: block;
11092
+ font-family: inherit;
11093
+ position: relative;
11094
+ width: 100%;
11095
+ }
11096
+
11097
+ .st-divergentBarChart svg,
11098
+ .st-divergentBarChart__visual {
11099
+ display: block;
11100
+ overflow: visible;
11101
+ }
11102
+
11103
+ .st-divergentBarChart__grid {
11104
+ stroke: var(--st-component-divergentBarChart-gridStroke, var(--st-semantic-border-subtle));
11105
+ stroke-dasharray: 2 3;
11106
+ stroke-width: 1;
11107
+ opacity: 0.7;
11108
+ }
11109
+
11110
+ .st-divergentBarChart__axis {
11111
+ stroke: var(--st-component-divergentBarChart-axisStroke, var(--st-semantic-border-subtle));
11112
+ stroke-width: 1;
11113
+ }
11114
+
11115
+ .st-divergentBarChart__zeroAxis {
11116
+ stroke: var(--st-component-divergentBarChart-zeroStroke, var(--st-semantic-border-strong));
11117
+ stroke-width: 1.5;
11118
+ }
11119
+
11120
+ .st-divergentBarChart__tickLabel,
11121
+ .st-divergentBarChart__categoryLabel {
11122
+ fill: var(--st-component-divergentBarChart-labelColor, var(--st-semantic-text-secondary));
11123
+ font-size: 0.6875rem;
11124
+ }
11125
+
11126
+ .st-divergentBarChart__bar {
11127
+ cursor: pointer;
11128
+ transition: opacity var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);
11129
+ }
11130
+
11131
+ .st-divergentBarChart__bar--positive {
11132
+ fill: var(--st-component-divergentBarChart-positiveFill, var(--st-semantic-data-category5));
11133
+ }
11134
+
11135
+ .st-divergentBarChart__bar--negative {
11136
+ fill: var(--st-component-divergentBarChart-negativeFill, var(--st-semantic-data-category3));
11137
+ }
11138
+
11139
+ .st-divergentBarChart__bar--neutral,
11140
+ .st-divergentBarChart__bar--zero {
11141
+ fill: var(--st-component-divergentBarChart-neutralFill, var(--st-semantic-data-category6));
11142
+ }
11143
+
11144
+ .st-divergentBarChart__tooltip {
11145
+ background: var(--st-component-divergentBarChart-tooltipBackground, var(--st-semantic-surface-inverse));
11146
+ border-radius: var(--st-radius-sm, 0.25rem);
11147
+ color: var(--st-component-divergentBarChart-tooltipText, var(--st-semantic-text-inverse));
11148
+ display: inline-flex;
11149
+ flex-direction: column;
11150
+ font-size: 0.75rem;
11151
+ gap: 0.125rem;
11152
+ line-height: 1.2;
11153
+ padding: 0.375rem 0.5rem;
11154
+ pointer-events: none;
11155
+ position: absolute;
11156
+ transform: translate(-50%, calc(-100% - 8px));
11157
+ white-space: nowrap;
11158
+ z-index: 1;
11159
+ }
11160
+
11161
+ .st-divergentBarChart__tooltipLabel {
11162
+ font-weight: 600;
11163
+ }
11164
+
11165
+ .st-divergentBarChart__tooltipValue {
11166
+ opacity: 0.85;
11167
+ }
11168
+
11169
+ .st-divergentBarChart__legend {
11170
+ display: flex;
11171
+ flex-wrap: wrap;
11172
+ gap: var(--st-spacing-3, 0.75rem);
11173
+ list-style: none;
11174
+ margin: var(--st-spacing-2, 0.5rem) 0 0;
11175
+ padding: 0;
11176
+ }
11177
+
11178
+ .st-divergentBarChart__legendItem {
11179
+ align-items: center;
11180
+ color: var(--st-semantic-text-secondary);
11181
+ display: inline-flex;
11182
+ font-size: 0.75rem;
11183
+ gap: var(--st-spacing-1, 0.25rem);
11184
+ }
11185
+
11186
+ .st-divergentBarChart__legendSwatch {
11187
+ border-radius: 2px;
11188
+ height: 0.7rem;
11189
+ width: 0.7rem;
11190
+ }
11191
+
11192
+ .st-divergentBarChart__legendSwatch--positive {
11193
+ background: var(--st-component-divergentBarChart-positiveFill, var(--st-semantic-data-category5));
11194
+ }
11195
+
11196
+ .st-divergentBarChart__legendSwatch--negative {
11197
+ background: var(--st-component-divergentBarChart-negativeFill, var(--st-semantic-data-category3));
11198
+ }
11199
+
11200
+ .st-divergentBarChart__legendSwatch--neutral {
11201
+ background: var(--st-component-divergentBarChart-neutralFill, var(--st-semantic-data-category6));
11202
+ }
11203
+
11204
+ @media (prefers-reduced-motion: reduce) {
11205
+ .st-divergentBarChart__bar {
11206
+ transition: none;
11207
+ }
11208
+ }
11209
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/design-system-vue",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Vue 3 components for the Sentropic design system.",
5
5
  "type": "module",
6
6
  "publishConfig": {