@scalar/components 0.21.4 → 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/components/ScalarIcon/variants.d.ts +2 -50
- package/dist/components/ScalarIcon/variants.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts +2 -0
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.d.ts.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.js.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.script.js +7 -6
- package/dist/components/ScalarMenu/ScalarMenuLink.vue.script.js.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.script.js +4 -4
- package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.script.js.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.js.map +1 -1
- package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.script.js +4 -4
- package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.script.js.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.js.map +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.script.js +1 -1
- package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.script.js.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts +10 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.d.ts.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.js +3 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.js.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.script.js +183 -37
- package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.script.js.map +1 -1
- package/dist/components/ScalarVirtualText/ScalarVirtualTextSearch.vue.d.ts +45 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualTextSearch.vue.d.ts.map +1 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualTextSearch.vue.js +9 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualTextSearch.vue.js.map +1 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualTextSearch.vue.script.js +101 -0
- package/dist/components/ScalarVirtualText/ScalarVirtualTextSearch.vue.script.js.map +1 -0
- package/dist/docs/useBindCx/MockComponents.d.ts +4 -100
- package/dist/docs/useBindCx/MockComponents.d.ts.map +1 -1
- package/dist/style.css +96 -9
- package/package.json +14 -14
package/dist/style.css
CHANGED
|
@@ -1282,6 +1282,25 @@ to {
|
|
|
1282
1282
|
inherits: false;
|
|
1283
1283
|
initial-value: 0 0 #0000;
|
|
1284
1284
|
}
|
|
1285
|
+
|
|
1286
|
+
.scalar-virtual-text-search-input[data-v-95edadbb]::-webkit-search-cancel-button {
|
|
1287
|
+
display: none;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
.scalar-virtual-text[data-v-b50a85e1]:focus {
|
|
1291
|
+
outline: none;
|
|
1292
|
+
}
|
|
1293
|
+
.scalar-virtual-text-highlight[data-v-b50a85e1] {
|
|
1294
|
+
background: var(--scalar-background-accent);
|
|
1295
|
+
color: inherit;
|
|
1296
|
+
border-radius: 2px;
|
|
1297
|
+
padding: 1px 0;
|
|
1298
|
+
}
|
|
1299
|
+
.scalar-virtual-text-highlight-active[data-v-b50a85e1] {
|
|
1300
|
+
background: var(--scalar-color-accent);
|
|
1301
|
+
color: var(--scalar-background-1);
|
|
1302
|
+
border-radius: 2px;
|
|
1303
|
+
}
|
|
1285
1304
|
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
1286
1305
|
@layer properties {
|
|
1287
1306
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
@@ -1326,6 +1345,11 @@ to {
|
|
|
1326
1345
|
--tw-mask-bottom-to-color: transparent;
|
|
1327
1346
|
--tw-leading: initial;
|
|
1328
1347
|
--tw-font-weight: initial;
|
|
1348
|
+
--tw-ordinal: initial;
|
|
1349
|
+
--tw-slashed-zero: initial;
|
|
1350
|
+
--tw-numeric-figure: initial;
|
|
1351
|
+
--tw-numeric-spacing: initial;
|
|
1352
|
+
--tw-numeric-fraction: initial;
|
|
1329
1353
|
--tw-shadow: 0 0 #0000;
|
|
1330
1354
|
--tw-shadow-color: initial;
|
|
1331
1355
|
--tw-shadow-alpha: 100%;
|
|
@@ -2174,10 +2198,6 @@ to {
|
|
|
2174
2198
|
margin: auto;
|
|
2175
2199
|
}
|
|
2176
2200
|
|
|
2177
|
-
.scalar-app .-mx-0\.25 {
|
|
2178
|
-
margin-inline: -1px;
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
2201
|
.scalar-app .-mx-0\.75 {
|
|
2182
2202
|
margin-inline: -3px;
|
|
2183
2203
|
}
|
|
@@ -2186,6 +2206,10 @@ to {
|
|
|
2186
2206
|
margin-inline: -1px;
|
|
2187
2207
|
}
|
|
2188
2208
|
|
|
2209
|
+
.scalar-app .mx-0\.5 {
|
|
2210
|
+
margin-inline: 2px;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2189
2213
|
.scalar-app .mx-px {
|
|
2190
2214
|
margin-inline: 1px;
|
|
2191
2215
|
}
|
|
@@ -2238,7 +2262,7 @@ to {
|
|
|
2238
2262
|
margin-top: 20svh;
|
|
2239
2263
|
}
|
|
2240
2264
|
|
|
2241
|
-
.scalar-app .-mr-
|
|
2265
|
+
.scalar-app .-mr-px {
|
|
2242
2266
|
margin-right: -1px;
|
|
2243
2267
|
}
|
|
2244
2268
|
|
|
@@ -2254,6 +2278,10 @@ to {
|
|
|
2254
2278
|
margin-right: 6px;
|
|
2255
2279
|
}
|
|
2256
2280
|
|
|
2281
|
+
.scalar-app .mr-2 {
|
|
2282
|
+
margin-right: 8px;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2257
2285
|
.scalar-app .mr-3 {
|
|
2258
2286
|
margin-right: 12px;
|
|
2259
2287
|
}
|
|
@@ -2537,6 +2565,10 @@ to {
|
|
|
2537
2565
|
width: 128px;
|
|
2538
2566
|
}
|
|
2539
2567
|
|
|
2568
|
+
.scalar-app .w-36 {
|
|
2569
|
+
width: 144px;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2540
2572
|
.scalar-app .w-40 {
|
|
2541
2573
|
width: 160px;
|
|
2542
2574
|
}
|
|
@@ -2597,6 +2629,10 @@ to {
|
|
|
2597
2629
|
width: min-content;
|
|
2598
2630
|
}
|
|
2599
2631
|
|
|
2632
|
+
.scalar-app .w-px {
|
|
2633
|
+
width: 1px;
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2600
2636
|
.scalar-app .w-screen {
|
|
2601
2637
|
width: 100vw;
|
|
2602
2638
|
}
|
|
@@ -3262,6 +3298,10 @@ to {
|
|
|
3262
3298
|
padding: 1px;
|
|
3263
3299
|
}
|
|
3264
3300
|
|
|
3301
|
+
.scalar-app .px-1 {
|
|
3302
|
+
padding-inline: 4px;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3265
3305
|
.scalar-app .px-1\.5 {
|
|
3266
3306
|
padding-inline: 6px;
|
|
3267
3307
|
}
|
|
@@ -3302,6 +3342,10 @@ to {
|
|
|
3302
3342
|
padding-inline: 36px;
|
|
3303
3343
|
}
|
|
3304
3344
|
|
|
3345
|
+
.scalar-app .py-0\.5 {
|
|
3346
|
+
padding-block: 2px;
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3305
3349
|
.scalar-app .py-1 {
|
|
3306
3350
|
padding-block: 4px;
|
|
3307
3351
|
}
|
|
@@ -3334,10 +3378,6 @@ to {
|
|
|
3334
3378
|
padding-block: 6.75px;
|
|
3335
3379
|
}
|
|
3336
3380
|
|
|
3337
|
-
.scalar-app .pt-0 {
|
|
3338
|
-
padding-top: 0;
|
|
3339
|
-
}
|
|
3340
|
-
|
|
3341
3381
|
.scalar-app .pt-3 {
|
|
3342
3382
|
padding-top: 12px;
|
|
3343
3383
|
}
|
|
@@ -3362,6 +3402,10 @@ to {
|
|
|
3362
3402
|
padding-bottom: 0;
|
|
3363
3403
|
}
|
|
3364
3404
|
|
|
3405
|
+
.scalar-app .pb-3 {
|
|
3406
|
+
padding-bottom: 12px;
|
|
3407
|
+
}
|
|
3408
|
+
|
|
3365
3409
|
.scalar-app .pl-2 {
|
|
3366
3410
|
padding-left: 8px;
|
|
3367
3411
|
}
|
|
@@ -3574,6 +3618,11 @@ to {
|
|
|
3574
3618
|
text-transform: uppercase;
|
|
3575
3619
|
}
|
|
3576
3620
|
|
|
3621
|
+
.scalar-app .tabular-nums {
|
|
3622
|
+
--tw-numeric-spacing: tabular-nums;
|
|
3623
|
+
font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3577
3626
|
.scalar-app .no-underline {
|
|
3578
3627
|
text-decoration-line: none;
|
|
3579
3628
|
}
|
|
@@ -3609,6 +3658,11 @@ to {
|
|
|
3609
3658
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3610
3659
|
}
|
|
3611
3660
|
|
|
3661
|
+
.scalar-app .shadow-md {
|
|
3662
|
+
--tw-shadow: var(--scalar-shadow-1);
|
|
3663
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
3664
|
+
}
|
|
3665
|
+
|
|
3612
3666
|
.scalar-app .shadow-none {
|
|
3613
3667
|
--tw-shadow: 0 0 #0000;
|
|
3614
3668
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -3998,6 +4052,14 @@ to {
|
|
|
3998
4052
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
3999
4053
|
}
|
|
4000
4054
|
|
|
4055
|
+
.scalar-app .disabled\:pointer-events-none:disabled {
|
|
4056
|
+
pointer-events: none;
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
.scalar-app .disabled\:opacity-30:disabled {
|
|
4060
|
+
opacity: .3;
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4001
4063
|
.scalar-app .has-\[\:focus-visible\]\:bg-sidebar-b-1:has(:focus-visible) {
|
|
4002
4064
|
background-color: var(--scalar-sidebar-background-1, var(--scalar-background-1));
|
|
4003
4065
|
}
|
|
@@ -4319,6 +4381,31 @@ to {
|
|
|
4319
4381
|
inherits: false
|
|
4320
4382
|
}
|
|
4321
4383
|
|
|
4384
|
+
@property --tw-ordinal {
|
|
4385
|
+
syntax: "*";
|
|
4386
|
+
inherits: false
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
@property --tw-slashed-zero {
|
|
4390
|
+
syntax: "*";
|
|
4391
|
+
inherits: false
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
@property --tw-numeric-figure {
|
|
4395
|
+
syntax: "*";
|
|
4396
|
+
inherits: false
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
@property --tw-numeric-spacing {
|
|
4400
|
+
syntax: "*";
|
|
4401
|
+
inherits: false
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
@property --tw-numeric-fraction {
|
|
4405
|
+
syntax: "*";
|
|
4406
|
+
inherits: false
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4322
4409
|
@property --tw-shadow {
|
|
4323
4410
|
syntax: "*";
|
|
4324
4411
|
inherits: false;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/components"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "0.22.0",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
@@ -38,29 +38,29 @@
|
|
|
38
38
|
"nanoid": "^5.1.6",
|
|
39
39
|
"radix-vue": "^1.9.17",
|
|
40
40
|
"vue": "^3.5.30",
|
|
41
|
-
"vue-component-type-helpers": "^3.2.
|
|
42
|
-
"@scalar/
|
|
41
|
+
"vue-component-type-helpers": "^3.2.6",
|
|
42
|
+
"@scalar/code-highlight": "0.3.3",
|
|
43
|
+
"@scalar/helpers": "0.5.0",
|
|
44
|
+
"@scalar/themes": "0.15.3",
|
|
43
45
|
"@scalar/icons": "0.7.2",
|
|
44
|
-
"@scalar/
|
|
45
|
-
"@scalar/use-hooks": "0.4.2",
|
|
46
|
-
"@scalar/themes": "0.15.3"
|
|
46
|
+
"@scalar/use-hooks": "0.4.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@headlessui/tailwindcss": "^0.2.2",
|
|
50
50
|
"@playwright/test": "1.56.0",
|
|
51
|
-
"@storybook/addon-docs": "10.
|
|
52
|
-
"@storybook/addon-links": "10.
|
|
53
|
-
"@storybook/vue3-vite": "10.
|
|
51
|
+
"@storybook/addon-docs": "10.3.5",
|
|
52
|
+
"@storybook/addon-links": "10.3.5",
|
|
53
|
+
"@storybook/vue3-vite": "10.3.5",
|
|
54
54
|
"@tailwindcss/vite": "^4.2.0",
|
|
55
|
-
"@types/jsdom": "
|
|
55
|
+
"@types/jsdom": "28.0.1",
|
|
56
56
|
"@types/node": "^24.1.0",
|
|
57
57
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
58
58
|
"@vue/test-utils": "2.4.6",
|
|
59
|
-
"@vueless/storybook-dark-mode": "^10.0.
|
|
59
|
+
"@vueless/storybook-dark-mode": "^10.0.7",
|
|
60
60
|
"concurrently": "9.1.2",
|
|
61
61
|
"jsdom": "27.4.0",
|
|
62
|
-
"storybook": "10.
|
|
63
|
-
"svglint": "^4.1
|
|
62
|
+
"storybook": "10.3.5",
|
|
63
|
+
"svglint": "^4.2.1",
|
|
64
64
|
"tailwindcss": "^4.1.18",
|
|
65
65
|
"vite": "8.0.0",
|
|
66
66
|
"vite-svg-loader": "5.1.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"lint:check": "pnpm lint:icons",
|
|
76
76
|
"lint:icons": "svglint src/components/ScalarIcon/icons/*.svg --config src/components/ScalarIcon/.svglintrc.js",
|
|
77
77
|
"preview": "vite preview --outDir storybook-static -c test/vite.config.ts 1>&2",
|
|
78
|
-
"test": "vitest",
|
|
78
|
+
"test": "vitest --run",
|
|
79
79
|
"test:e2e": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test",
|
|
80
80
|
"test:e2e:ci": "CI=1 playwright test",
|
|
81
81
|
"test:e2e:update": "pnpm test:e2e --update-snapshots",
|