@scalar/sidebar 0.9.32 → 0.9.34
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/README.md +2 -3
- package/dist/style.css +93 -82
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -7,9 +7,8 @@ Scalar sidebar component and sidebar state management
|
|
|
7
7
|
Scalar is an open-source API platform for teams who want beautiful developer interfaces without vendor lock-in.
|
|
8
8
|
|
|
9
9
|
- **[API References](https://scalar.com/products/api-references/getting-started)** — Interactive API documentation from OpenAPI and AsyncAPI specs.
|
|
10
|
-
- **[Docs](https://scalar.com/products/docs/getting-started)** — Write in Markdown/MDX, generate API references, sync with two-way Git.
|
|
11
|
-
- **[
|
|
12
|
-
- **[MCP Servers](https://scalar.com/products/agent/getting-started)** — Generate secure MCP servers from your API spec.
|
|
10
|
+
- **[Developer Docs](https://scalar.com/products/docs/getting-started)** — Write in Markdown/MDX, generate API references, sync with two-way Git.
|
|
11
|
+
- **[SDK Generator](https://scalar.com/products/sdk-generator/getting-started)** — Type-safe SDKs and CLIs in TypeScript, Python, Go, PHP, Java, and Ruby.
|
|
13
12
|
- **[API Client](https://scalar.com/products/api-client/getting-started)** — Open-source, offline-first Postman alternative built on OpenAPI.
|
|
14
13
|
|
|
15
14
|
20M+ monthly npm installs · 15,500+ GitHub stars · MIT licensed · [scalar.com](https://scalar.com)
|
package/dist/style.css
CHANGED
|
@@ -3,15 +3,7 @@
|
|
|
3
3
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
4
|
*, :before, :after, ::backdrop {
|
|
5
5
|
--tw-font-weight: initial;
|
|
6
|
-
--tw-
|
|
7
|
-
--tw-backdrop-brightness: initial;
|
|
8
|
-
--tw-backdrop-contrast: initial;
|
|
9
|
-
--tw-backdrop-grayscale: initial;
|
|
10
|
-
--tw-backdrop-hue-rotate: initial;
|
|
11
|
-
--tw-backdrop-invert: initial;
|
|
12
|
-
--tw-backdrop-opacity: initial;
|
|
13
|
-
--tw-backdrop-saturate: initial;
|
|
14
|
-
--tw-backdrop-sepia: initial;
|
|
6
|
+
--tw-border-style: solid;
|
|
15
7
|
--tw-shadow: 0 0 #0000;
|
|
16
8
|
--tw-shadow-color: initial;
|
|
17
9
|
--tw-shadow-alpha: 100%;
|
|
@@ -26,6 +18,15 @@
|
|
|
26
18
|
--tw-ring-offset-width: 0;
|
|
27
19
|
--tw-ring-offset-color: #fff;
|
|
28
20
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
21
|
+
--tw-backdrop-blur: initial;
|
|
22
|
+
--tw-backdrop-brightness: initial;
|
|
23
|
+
--tw-backdrop-contrast: initial;
|
|
24
|
+
--tw-backdrop-grayscale: initial;
|
|
25
|
+
--tw-backdrop-hue-rotate: initial;
|
|
26
|
+
--tw-backdrop-invert: initial;
|
|
27
|
+
--tw-backdrop-opacity: initial;
|
|
28
|
+
--tw-backdrop-saturate: initial;
|
|
29
|
+
--tw-backdrop-sepia: initial;
|
|
29
30
|
--tw-translate-x: 0;
|
|
30
31
|
--tw-translate-y: 0;
|
|
31
32
|
--tw-translate-z: 0;
|
|
@@ -38,7 +39,6 @@
|
|
|
38
39
|
--tw-skew-x: initial;
|
|
39
40
|
--tw-skew-y: initial;
|
|
40
41
|
--tw-divide-y-reverse: 0;
|
|
41
|
-
--tw-border-style: solid;
|
|
42
42
|
--tw-gradient-position: initial;
|
|
43
43
|
--tw-gradient-from: #0000;
|
|
44
44
|
--tw-gradient-via: #0000;
|
|
@@ -194,6 +194,14 @@
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
@media (max-resolution: 1.5x) {
|
|
198
|
+
@supports ((-moz-appearance: none)) {
|
|
199
|
+
:root {
|
|
200
|
+
--scalar-border-width: 1px;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
:root {
|
|
198
206
|
--scalar-text-decoration: underline;
|
|
199
207
|
--scalar-text-decoration-hover: underline;
|
|
@@ -261,8 +269,17 @@
|
|
|
261
269
|
--scalar-button-1: #000;
|
|
262
270
|
--scalar-button-1-hover: #000c;
|
|
263
271
|
--scalar-button-1-color: #fff;
|
|
264
|
-
--scalar-tooltip-background:
|
|
265
|
-
|
|
272
|
+
--scalar-tooltip-background: var(--scalar-background-1);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
276
|
+
.light-mode {
|
|
277
|
+
--scalar-tooltip-background: color-mix(in srgb, var(--scalar-background-1), transparent 10%);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.light-mode {
|
|
282
|
+
--scalar-tooltip-color: var(--scalar-color-1);
|
|
266
283
|
--scalar-color-alert: var(--scalar-color-orange);
|
|
267
284
|
}
|
|
268
285
|
|
|
@@ -1660,39 +1677,44 @@
|
|
|
1660
1677
|
}
|
|
1661
1678
|
|
|
1662
1679
|
:where(body) > .scalar-tooltip {
|
|
1663
|
-
--scalar-tooltip-padding: 8px;
|
|
1664
|
-
|
|
1680
|
+
--scalar-tooltip-padding-x: 8px;
|
|
1681
|
+
--scalar-tooltip-padding-y: 6px;
|
|
1682
|
+
padding: var(--scalar-tooltip-padding-y) var(--scalar-tooltip-padding-x);
|
|
1665
1683
|
z-index: 99999;
|
|
1666
1684
|
max-width: 320px;
|
|
1667
1685
|
font-size: var(--scalar-font-size-5);
|
|
1668
|
-
--tw-font-weight: var(--scalar-
|
|
1686
|
+
--tw-font-weight: var(--scalar-regular);
|
|
1669
1687
|
line-height: 16px;
|
|
1670
|
-
font-weight: var(--scalar-
|
|
1688
|
+
font-weight: var(--scalar-regular);
|
|
1671
1689
|
overflow-wrap: break-word;
|
|
1672
1690
|
color: var(--scalar-tooltip-color);
|
|
1673
1691
|
}
|
|
1674
1692
|
|
|
1675
1693
|
:where(body) > .scalar-tooltip[data-side="top"] {
|
|
1676
|
-
padding-bottom: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1694
|
+
padding-bottom: calc(var(--scalar-tooltip-padding-y) + var(--scalar-tooltip-offset));
|
|
1677
1695
|
}
|
|
1678
1696
|
|
|
1679
1697
|
:where(body) > .scalar-tooltip[data-side="bottom"] {
|
|
1680
|
-
padding-top: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1698
|
+
padding-top: calc(var(--scalar-tooltip-padding-y) + var(--scalar-tooltip-offset));
|
|
1681
1699
|
}
|
|
1682
1700
|
|
|
1683
1701
|
:where(body) > .scalar-tooltip[data-side="left"] {
|
|
1684
|
-
padding-right: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1702
|
+
padding-right: calc(var(--scalar-tooltip-padding-x) + var(--scalar-tooltip-offset));
|
|
1685
1703
|
}
|
|
1686
1704
|
|
|
1687
1705
|
:where(body) > .scalar-tooltip[data-side="right"] {
|
|
1688
|
-
padding-left: calc(var(--scalar-tooltip-padding) + var(--scalar-tooltip-offset));
|
|
1706
|
+
padding-left: calc(var(--scalar-tooltip-padding-x) + var(--scalar-tooltip-offset));
|
|
1689
1707
|
}
|
|
1690
1708
|
|
|
1691
1709
|
:where(body) > .scalar-tooltip:before {
|
|
1692
1710
|
content: "";
|
|
1693
1711
|
z-index: calc(1 * -1);
|
|
1694
|
-
border-radius: var(--scalar-radius-
|
|
1712
|
+
border-radius: var(--scalar-radius-lg);
|
|
1713
|
+
border-style: var(--tw-border-style);
|
|
1714
|
+
border-width: var(--scalar-border-width);
|
|
1695
1715
|
background-color: var(--scalar-tooltip-background);
|
|
1716
|
+
--tw-shadow: var(--scalar-shadow-1);
|
|
1717
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1696
1718
|
--tw-backdrop-blur: blur(8px);
|
|
1697
1719
|
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
1698
1720
|
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
@@ -1716,59 +1738,15 @@
|
|
|
1716
1738
|
left: var(--scalar-tooltip-offset);
|
|
1717
1739
|
}
|
|
1718
1740
|
|
|
1719
|
-
:where(body.dark-mode) > .scalar-tooltip:before {
|
|
1720
|
-
--tw-shadow: inset 0 0 0 var(--tw-shadow-color, var(--scalar-border-width)) var(--scalar-border-color);
|
|
1721
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
1741
|
@property --tw-font-weight {
|
|
1725
1742
|
syntax: "*";
|
|
1726
1743
|
inherits: false
|
|
1727
1744
|
}
|
|
1728
1745
|
|
|
1729
|
-
@property --tw-
|
|
1730
|
-
syntax: "*";
|
|
1731
|
-
inherits: false
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
@property --tw-backdrop-brightness {
|
|
1735
|
-
syntax: "*";
|
|
1736
|
-
inherits: false
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
@property --tw-backdrop-contrast {
|
|
1740
|
-
syntax: "*";
|
|
1741
|
-
inherits: false
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
@property --tw-backdrop-grayscale {
|
|
1745
|
-
syntax: "*";
|
|
1746
|
-
inherits: false
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
@property --tw-backdrop-hue-rotate {
|
|
1750
|
-
syntax: "*";
|
|
1751
|
-
inherits: false
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
@property --tw-backdrop-invert {
|
|
1755
|
-
syntax: "*";
|
|
1756
|
-
inherits: false
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
@property --tw-backdrop-opacity {
|
|
1760
|
-
syntax: "*";
|
|
1761
|
-
inherits: false
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
@property --tw-backdrop-saturate {
|
|
1765
|
-
syntax: "*";
|
|
1766
|
-
inherits: false
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
@property --tw-backdrop-sepia {
|
|
1746
|
+
@property --tw-border-style {
|
|
1770
1747
|
syntax: "*";
|
|
1771
|
-
inherits: false
|
|
1748
|
+
inherits: false;
|
|
1749
|
+
initial-value: solid;
|
|
1772
1750
|
}
|
|
1773
1751
|
|
|
1774
1752
|
@property --tw-shadow {
|
|
@@ -1850,6 +1828,51 @@
|
|
|
1850
1828
|
initial-value: 0 0 #0000;
|
|
1851
1829
|
}
|
|
1852
1830
|
|
|
1831
|
+
@property --tw-backdrop-blur {
|
|
1832
|
+
syntax: "*";
|
|
1833
|
+
inherits: false
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
@property --tw-backdrop-brightness {
|
|
1837
|
+
syntax: "*";
|
|
1838
|
+
inherits: false
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
@property --tw-backdrop-contrast {
|
|
1842
|
+
syntax: "*";
|
|
1843
|
+
inherits: false
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
@property --tw-backdrop-grayscale {
|
|
1847
|
+
syntax: "*";
|
|
1848
|
+
inherits: false
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
@property --tw-backdrop-hue-rotate {
|
|
1852
|
+
syntax: "*";
|
|
1853
|
+
inherits: false
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
@property --tw-backdrop-invert {
|
|
1857
|
+
syntax: "*";
|
|
1858
|
+
inherits: false
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
@property --tw-backdrop-opacity {
|
|
1862
|
+
syntax: "*";
|
|
1863
|
+
inherits: false
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
@property --tw-backdrop-saturate {
|
|
1867
|
+
syntax: "*";
|
|
1868
|
+
inherits: false
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
@property --tw-backdrop-sepia {
|
|
1872
|
+
syntax: "*";
|
|
1873
|
+
inherits: false
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1853
1876
|
.scalar-virtual-text-search-input[data-v-95edadbb]::-webkit-search-cancel-button {
|
|
1854
1877
|
display: none;
|
|
1855
1878
|
}
|
|
@@ -3750,14 +3773,8 @@
|
|
|
3750
3773
|
border-width: var(--scalar-border-width);
|
|
3751
3774
|
}
|
|
3752
3775
|
|
|
3753
|
-
:is(.scalar-app .\*\:border-border
|
|
3754
|
-
border-color: var(--scalar-
|
|
3755
|
-
}
|
|
3756
|
-
|
|
3757
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3758
|
-
:is(.scalar-app .\*\:border-border-tooltip > *) {
|
|
3759
|
-
border-color: color-mix(in srgb, var(--scalar-tooltip-color), var(--scalar-tooltip-background));
|
|
3760
|
-
}
|
|
3776
|
+
:is(.scalar-app .\*\:border-border > *) {
|
|
3777
|
+
border-color: var(--scalar-border-color);
|
|
3761
3778
|
}
|
|
3762
3779
|
|
|
3763
3780
|
:is(.scalar-app .\*\:px-1 > *) {
|
|
@@ -4222,12 +4239,6 @@
|
|
|
4222
4239
|
initial-value: 0;
|
|
4223
4240
|
}
|
|
4224
4241
|
|
|
4225
|
-
@property --tw-border-style {
|
|
4226
|
-
syntax: "*";
|
|
4227
|
-
inherits: false;
|
|
4228
|
-
initial-value: solid;
|
|
4229
|
-
}
|
|
4230
|
-
|
|
4231
4242
|
@property --tw-gradient-position {
|
|
4232
4243
|
syntax: "*";
|
|
4233
4244
|
inherits: false
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/sidebar"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.9.
|
|
13
|
+
"version": "0.9.34",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"vue": "^3.5.30",
|
|
36
|
-
"@scalar/helpers": "0.9.
|
|
37
|
-
"@scalar/
|
|
38
|
-
"@scalar/
|
|
39
|
-
"@scalar/
|
|
40
|
-
"@scalar/
|
|
41
|
-
"@scalar/workspace-store": "0.
|
|
36
|
+
"@scalar/helpers": "0.9.2",
|
|
37
|
+
"@scalar/icons": "0.7.5",
|
|
38
|
+
"@scalar/components": "0.27.10",
|
|
39
|
+
"@scalar/use-hooks": "0.4.9",
|
|
40
|
+
"@scalar/themes": "0.17.2",
|
|
41
|
+
"@scalar/workspace-store": "0.56.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tailwindcss/cli": "^4.2.4",
|