@scalar/blocks 0.1.6 → 0.1.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @scalar/blocks
2
2
 
3
+ ## 0.1.7
4
+
3
5
  ## 0.1.6
4
6
 
5
7
  ## 0.1.5
package/dist/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region src/constants.ts
2
- var e = typeof OVERRIDE_PACKAGE_VERSION < "u" ? OVERRIDE_PACKAGE_VERSION : "0.1.6";
2
+ var e = typeof OVERRIDE_PACKAGE_VERSION < "u" ? OVERRIDE_PACKAGE_VERSION : "0.1.7";
3
3
  //#endregion
4
4
  export { e as APP_VERSION };
5
5
 
package/dist/style.css CHANGED
@@ -190,8 +190,13 @@
190
190
  :root {
191
191
  --scalar-border-width: .5px;
192
192
  --scalar-radius: 3px;
193
- --scalar-radius-lg: 6px;
194
- --scalar-radius-xl: 8px;
193
+ --scalar-radius-max: 20px;
194
+ --scalar-radius-md: min(var(--scalar-radius), var(--scalar-radius-max));
195
+ --scalar-radius-lg: min(calc(var(--scalar-radius) * 2), var(--scalar-radius-max));
196
+ --scalar-radius-xl: min(calc(var(--scalar-radius) * 8 / 3), var(--scalar-radius-max));
197
+ --scalar-radius-2xl: min(calc(var(--scalar-radius) * 4), var(--scalar-radius-max));
198
+ --scalar-radius-3xl: min(calc(var(--scalar-radius) * 16 / 3), var(--scalar-radius-max));
199
+ --scalar-radius-full: calc(var(--scalar-radius) * 9999);
195
200
  --scalar-font: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
196
201
  "Noto Color Emoji";
197
202
  --scalar-font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
@@ -876,7 +881,7 @@
876
881
  }
877
882
 
878
883
  :where(.scalar-app) input:where(:not([type="button"], [type="reset"], [type="submit"])), :where(.scalar-app) select, :where(.scalar-app) textarea {
879
- border-radius: var(--scalar-radius);
884
+ border-radius: var(--scalar-radius-md);
880
885
  border-width: 1px;
881
886
  }
882
887
 
@@ -912,7 +917,6 @@
912
917
  }
913
918
 
914
919
  :where(.scalar-app) :focus-visible {
915
- border-radius: var(--scalar-radius);
916
920
  outline-style: solid;
917
921
  }
918
922
 
@@ -2160,7 +2164,15 @@
2160
2164
  }
2161
2165
 
2162
2166
  .scalar-app .rounded {
2163
- border-radius: var(--scalar-radius);
2167
+ border-radius: var(--scalar-radius-md);
2168
+ }
2169
+
2170
+ .scalar-app .rounded-2xl {
2171
+ border-radius: var(--scalar-radius-2xl);
2172
+ }
2173
+
2174
+ .scalar-app .rounded-3xl {
2175
+ border-radius: var(--scalar-radius-3xl);
2164
2176
  }
2165
2177
 
2166
2178
  .scalar-app .rounded-\[inherit\] {
@@ -2168,7 +2180,7 @@
2168
2180
  }
2169
2181
 
2170
2182
  .scalar-app .rounded-full {
2171
- border-radius: 9999px;
2183
+ border-radius: var(--scalar-radius-full);
2172
2184
  }
2173
2185
 
2174
2186
  .scalar-app .rounded-lg {
@@ -2176,7 +2188,7 @@
2176
2188
  }
2177
2189
 
2178
2190
  .scalar-app .rounded-md {
2179
- border-radius: var(--scalar-radius);
2191
+ border-radius: var(--scalar-radius-md);
2180
2192
  }
2181
2193
 
2182
2194
  .scalar-app .rounded-none {
@@ -2187,14 +2199,19 @@
2187
2199
  border-radius: var(--scalar-radius-xl);
2188
2200
  }
2189
2201
 
2202
+ .scalar-app .rounded-t-\[inherit\] {
2203
+ border-top-left-radius: inherit;
2204
+ border-top-right-radius: inherit;
2205
+ }
2206
+
2190
2207
  .scalar-app .rounded-l-none {
2191
2208
  border-top-left-radius: 0;
2192
2209
  border-bottom-left-radius: 0;
2193
2210
  }
2194
2211
 
2195
2212
  .scalar-app .rounded-b {
2196
- border-bottom-right-radius: var(--scalar-radius);
2197
- border-bottom-left-radius: var(--scalar-radius);
2213
+ border-bottom-right-radius: var(--scalar-radius-md);
2214
+ border-bottom-left-radius: var(--scalar-radius-md);
2198
2215
  }
2199
2216
 
2200
2217
  .scalar-app .border {
@@ -2889,6 +2906,11 @@
2889
2906
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2890
2907
  }
2891
2908
 
2909
+ .scalar-app .ring {
2910
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2911
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2912
+ }
2913
+
2892
2914
  .scalar-app .outline {
2893
2915
  outline-style: var(--tw-outline-style);
2894
2916
  outline-width: 1px;
@@ -3050,7 +3072,7 @@
3050
3072
  }
3051
3073
 
3052
3074
  :is(.scalar-app .\*\:rounded > *) {
3053
- border-radius: var(--scalar-radius);
3075
+ border-radius: var(--scalar-radius-md);
3054
3076
  }
3055
3077
 
3056
3078
  :is(.scalar-app .\*\:border > *) {
@@ -3757,7 +3779,7 @@
3757
3779
  }
3758
3780
 
3759
3781
  .scalar-app .markdown img {
3760
- border-radius: var(--scalar-radius);
3782
+ border-radius: var(--scalar-radius-md);
3761
3783
  max-width: 100%;
3762
3784
  display: inline-block;
3763
3785
  overflow: hidden;
@@ -3817,7 +3839,7 @@
3817
3839
  .scalar-app .markdown table {
3818
3840
  table-layout: fixed;
3819
3841
  border: var(--scalar-border-width) solid var(--scalar-border-color);
3820
- border-radius: var(--scalar-radius);
3842
+ border-radius: var(--scalar-radius-md);
3821
3843
  border-spacing: 0;
3822
3844
  width: max-content;
3823
3845
  max-width: 100%;
@@ -3887,11 +3909,11 @@
3887
3909
  }
3888
3910
 
3889
3911
  .scalar-app .markdown th:first-of-type {
3890
- border-top-left-radius: var(--scalar-radius);
3912
+ border-top-left-radius: var(--scalar-radius-md);
3891
3913
  }
3892
3914
 
3893
3915
  .scalar-app .markdown th:last-of-type {
3894
- border-top-right-radius: var(--scalar-radius);
3916
+ border-top-right-radius: var(--scalar-radius-md);
3895
3917
  }
3896
3918
 
3897
3919
  .scalar-app .markdown tr > [align="left"] {
@@ -3930,13 +3952,13 @@
3930
3952
  }
3931
3953
 
3932
3954
  .scalar-app .markdown summary {
3955
+ border-radius: var(--scalar-radius);
3933
3956
  min-height: 40px;
3934
3957
  font-weight: var(--scalar-semibold);
3935
3958
  line-height: var(--markdown-line-height);
3936
3959
  cursor: pointer;
3937
3960
  -webkit-user-select: none;
3938
3961
  user-select: none;
3939
- border-radius: 2.5px;
3940
3962
  align-items: flex-start;
3941
3963
  gap: 8px;
3942
3964
  padding: 7px 14px;
@@ -4055,7 +4077,7 @@
4055
4077
  background-color: var(--scalar-background-2);
4056
4078
  box-shadow: 0 0 0 var(--scalar-border-width) var(--scalar-border-color);
4057
4079
  font-size: var(--scalar-micro);
4058
- border-radius: 2px;
4080
+ border-radius: var(--scalar-radius-md);
4059
4081
  padding: 0 3px;
4060
4082
  }
4061
4083
 
@@ -4129,7 +4151,7 @@
4129
4151
  }
4130
4152
 
4131
4153
  .scalar-app .markdown .markdown-alert {
4132
- border-radius: var(--scalar-radius);
4154
+ border-radius: var(--scalar-radius-md);
4133
4155
  background-color: var(--scalar-background-2);
4134
4156
  align-items: stretch;
4135
4157
  }
@@ -4491,7 +4513,7 @@
4491
4513
  :where(body) > .scalar-tooltip:before {
4492
4514
  content: "";
4493
4515
  z-index: calc(1 * -1);
4494
- border-radius: var(--scalar-radius);
4516
+ border-radius: var(--scalar-radius-md);
4495
4517
  background-color: var(--scalar-tooltip-background);
4496
4518
  --tw-backdrop-blur: blur(8px);
4497
4519
  -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, );
@@ -4525,21 +4547,21 @@
4525
4547
  display: none;
4526
4548
  }
4527
4549
 
4528
- .scalar-virtual-text[data-v-b50a85e1]:focus {
4550
+ .scalar-virtual-text[data-v-77b9d685]:focus {
4529
4551
  outline: none;
4530
4552
  }
4531
4553
 
4532
- .scalar-virtual-text-highlight[data-v-b50a85e1] {
4554
+ .scalar-virtual-text-highlight[data-v-77b9d685] {
4533
4555
  background: var(--scalar-background-accent);
4534
4556
  color: inherit;
4535
- border-radius: 2px;
4557
+ border-radius: var(--scalar-radius);
4536
4558
  padding: 1px 0;
4537
4559
  }
4538
4560
 
4539
- .scalar-virtual-text-highlight-active[data-v-b50a85e1] {
4561
+ .scalar-virtual-text-highlight-active[data-v-77b9d685] {
4540
4562
  background: var(--scalar-color-accent);
4541
4563
  color: var(--scalar-background-1);
4542
- border-radius: 2px;
4564
+ border-radius: var(--scalar-radius);
4543
4565
  }
4544
4566
 
4545
4567
  @property --tw-translate-x {
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "blocks",
18
18
  "docs"
19
19
  ],
20
- "version": "0.1.6",
20
+ "version": "0.1.7",
21
21
  "engines": {
22
22
  "node": ">=22"
23
23
  },
@@ -49,13 +49,13 @@
49
49
  "@types/har-format": "^1.2.16",
50
50
  "js-base64": "^3.7.8",
51
51
  "vue": "^3.5.30",
52
- "@scalar/components": "0.27.7",
53
- "@scalar/helpers": "0.9.1",
54
52
  "@scalar/icons": "0.7.4",
55
- "@scalar/themes": "0.16.3",
56
- "@scalar/types": "0.16.3",
53
+ "@scalar/components": "0.27.8",
57
54
  "@scalar/snippetz": "0.9.22",
58
- "@scalar/workspace-store": "0.55.5"
55
+ "@scalar/themes": "0.17.0",
56
+ "@scalar/types": "0.16.3",
57
+ "@scalar/workspace-store": "0.55.5",
58
+ "@scalar/helpers": "0.9.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@tailwindcss/cli": "^4.2.4",