@juspay/svelte-ui-components 2.100.0 → 2.100.1
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.
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
>
|
|
41
41
|
{#if !hideArrow && direction !== 'neutral'}
|
|
42
42
|
<span class="delta-indicator-arrow delta-arrow-{direction}" aria-hidden="true">
|
|
43
|
-
<svg viewBox="0 0
|
|
43
|
+
<svg viewBox="0 0 24 24"
|
|
44
|
+
><path d="M22 7L13.5 15.5L8.5 10.5L2 17" /><path d="M16 7H22V13" /></svg
|
|
45
|
+
>
|
|
44
46
|
</span>
|
|
45
47
|
{/if}
|
|
46
48
|
<span class="delta-indicator-text">{text}</span>
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
.delta-indicator {
|
|
51
53
|
display: inline-flex;
|
|
52
54
|
align-items: center;
|
|
53
|
-
gap: var(--delta-indicator-gap,
|
|
55
|
+
gap: var(--delta-indicator-gap, 4px);
|
|
54
56
|
font-size: var(--delta-indicator-font-size, 13px);
|
|
55
57
|
font-weight: var(--delta-indicator-font-weight, 600);
|
|
56
58
|
line-height: 1;
|
|
@@ -78,18 +80,25 @@
|
|
|
78
80
|
|
|
79
81
|
.delta-indicator-arrow {
|
|
80
82
|
display: inline-flex;
|
|
81
|
-
width: var(--delta-indicator-arrow-size,
|
|
82
|
-
height: var(--delta-indicator-arrow-size,
|
|
83
|
+
width: var(--delta-indicator-arrow-size, 16px);
|
|
84
|
+
height: var(--delta-indicator-arrow-size, 16px);
|
|
83
85
|
flex-shrink: 0;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
.delta-indicator-arrow svg {
|
|
87
89
|
width: 100%;
|
|
88
90
|
height: 100%;
|
|
89
|
-
fill:
|
|
91
|
+
fill: none;
|
|
92
|
+
stroke: currentColor;
|
|
93
|
+
stroke-width: var(--delta-indicator-arrow-stroke-width, 2);
|
|
94
|
+
stroke-linecap: round;
|
|
95
|
+
stroke-linejoin: round;
|
|
90
96
|
}
|
|
91
97
|
|
|
98
|
+
/* Down-trend mirrors the up-trend glyph vertically (line falling to the
|
|
99
|
+
lower-right, arrowhead at the bottom-right) — the Untitled UI trend-down-01
|
|
100
|
+
shape. A 180deg rotation would instead point down-left. */
|
|
92
101
|
.delta-arrow-down {
|
|
93
|
-
transform:
|
|
102
|
+
transform: scaleY(-1);
|
|
94
103
|
}
|
|
95
104
|
</style>
|