@scalar/sidebar 0.9.9 → 0.9.10
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/style.css +399 -757
- package/dist/styles/tailwind.config.css +11 -0
- package/dist/styles/tailwind.css +14 -0
- package/dist/vue-styles.css +16 -0
- package/package.json +12 -8
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Tailwind Configuration
|
|
3
|
+
|
|
4
|
+
* This file can be imported into other projects using Tailwind to
|
|
5
|
+
* generate the appropriate Tailwind utilities for the sidebar.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import "@scalar/components/tailwind.config.css"; /* Component Library Tailwind Configuration */
|
|
9
|
+
|
|
10
|
+
/* Search for Tailwind classes in the sidebar components */
|
|
11
|
+
@source "../";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar Tailwind Generation
|
|
3
|
+
*
|
|
4
|
+
* This file is used to generate the Tailwind style
|
|
5
|
+
* sheet for the sidebar.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* Sidebar Tailwind Configuration */
|
|
9
|
+
@import "./tailwind.config.css";
|
|
10
|
+
|
|
11
|
+
/* Generate the Tailwind Utilities (scoped) */
|
|
12
|
+
.scalar-app {
|
|
13
|
+
@import "tailwindcss/utilities.css";
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
.sidebar-heading-type[data-v-1857170e] {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 4px;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
line-height: 14px;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
text-transform: uppercase;
|
|
10
|
+
color: var(--method-color, var(--scalar-color-1));
|
|
11
|
+
font-size: 10px;
|
|
12
|
+
font-weight: var(--scalar-bold);
|
|
13
|
+
font-family: var(--scalar-font-code);
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
16
|
+
/*$vite$:1*/
|
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.10",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
@@ -24,21 +24,24 @@
|
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"default": "./dist/index.js"
|
|
26
26
|
},
|
|
27
|
-
"./style.css": "./dist/style.css"
|
|
27
|
+
"./style.css": "./dist/style.css",
|
|
28
|
+
"./tailwind.config.css": "./dist/styles/tailwind.config.css",
|
|
29
|
+
"./vue-styles.css": "./dist/vue-styles.css"
|
|
28
30
|
},
|
|
29
31
|
"files": [
|
|
30
32
|
"dist"
|
|
31
33
|
],
|
|
32
34
|
"dependencies": {
|
|
33
35
|
"vue": "^3.5.30",
|
|
34
|
-
"@scalar/
|
|
35
|
-
"@scalar/
|
|
36
|
-
"@scalar/
|
|
37
|
-
"@scalar/workspace-store": "0.49.1",
|
|
36
|
+
"@scalar/helpers": "0.6.0",
|
|
37
|
+
"@scalar/components": "0.24.2",
|
|
38
|
+
"@scalar/themes": "0.15.3",
|
|
38
39
|
"@scalar/use-hooks": "0.4.3",
|
|
39
|
-
"@scalar/
|
|
40
|
+
"@scalar/icons": "0.7.2",
|
|
41
|
+
"@scalar/workspace-store": "0.49.2"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
44
|
+
"@tailwindcss/cli": "^4.2.4",
|
|
42
45
|
"@tailwindcss/vite": "^4.2.0",
|
|
43
46
|
"@types/jsdom": "28.0.1",
|
|
44
47
|
"@types/node": "^24.1.0",
|
|
@@ -50,7 +53,8 @@
|
|
|
50
53
|
"vitest": "4.1.0"
|
|
51
54
|
},
|
|
52
55
|
"scripts": {
|
|
53
|
-
"build": "vite build && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
56
|
+
"build": "vite build && pnpm build:styles && vue-tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
57
|
+
"build:styles": "cp -r src/styles dist && tailwindcss --optimize -i src/style.css -o dist/style.css && cat dist/vue-styles.css >> dist/style.css",
|
|
54
58
|
"dev": "vite ./playground -c ./vite.config.ts",
|
|
55
59
|
"test": "vitest --run",
|
|
56
60
|
"types:check": "vue-tsc --noEmit"
|