mesurer 0.0.7 → 0.0.9

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/styles.css CHANGED
@@ -192,6 +192,9 @@
192
192
  .msr\:top-0 {
193
193
  top: calc(var(--msr-spacing) * 0);
194
194
  }
195
+ .msr\:top-\[18px\] {
196
+ top: 18px;
197
+ }
195
198
  .msr\:top-full {
196
199
  top: 100%;
197
200
  }
@@ -210,6 +213,9 @@
210
213
  .msr\:left-1\/2 {
211
214
  left: calc(1 / 2 * 100%);
212
215
  }
216
+ .msr\:left-\[18px\] {
217
+ left: 18px;
218
+ }
213
219
  .msr\:z-50 {
214
220
  z-index: 50;
215
221
  }
@@ -228,6 +234,9 @@
228
234
  .msr\:-ml-1 {
229
235
  margin-left: calc(var(--msr-spacing) * -1);
230
236
  }
237
+ .msr\:block {
238
+ display: block;
239
+ }
231
240
  .msr\:flex {
232
241
  display: flex;
233
242
  }
@@ -235,6 +244,13 @@
235
244
  width: calc(var(--msr-spacing) * 8);
236
245
  height: calc(var(--msr-spacing) * 8);
237
246
  }
247
+ .msr\:size-\[18px\] {
248
+ width: 18px;
249
+ height: 18px;
250
+ }
251
+ .msr\:h-6 {
252
+ height: calc(var(--msr-spacing) * 6);
253
+ }
238
254
  .msr\:h-8 {
239
255
  height: calc(var(--msr-spacing) * 8);
240
256
  }
@@ -247,9 +263,15 @@
247
263
  .msr\:w-4 {
248
264
  width: calc(var(--msr-spacing) * 4);
249
265
  }
266
+ .msr\:w-6 {
267
+ width: calc(var(--msr-spacing) * 6);
268
+ }
250
269
  .msr\:w-44 {
251
270
  width: calc(var(--msr-spacing) * 44);
252
271
  }
272
+ .msr\:w-\[18px\] {
273
+ width: 18px;
274
+ }
253
275
  .msr\:w-full {
254
276
  width: 100%;
255
277
  }
@@ -303,6 +325,9 @@
303
325
  .msr\:gap-px {
304
326
  gap: 1px;
305
327
  }
328
+ .msr\:overflow-hidden {
329
+ overflow: hidden;
330
+ }
306
331
  .msr\:rounded {
307
332
  border-radius: 0.25rem;
308
333
  }
@@ -394,6 +419,9 @@
394
419
  .msr\:text-left {
395
420
  text-align: left;
396
421
  }
422
+ .msr\:text-\[9px\] {
423
+ font-size: 9px;
424
+ }
397
425
  .msr\:text-\[10px\] {
398
426
  font-size: 10px;
399
427
  }
@@ -406,6 +434,9 @@
406
434
  .msr\:whitespace-nowrap {
407
435
  white-space: nowrap;
408
436
  }
437
+ .msr\:text-\[\#64748b\] {
438
+ color: #64748b;
439
+ }
409
440
  .msr\:text-black {
410
441
  color: var(--msr-color-black);
411
442
  }
@@ -446,6 +477,9 @@
446
477
  transition-timing-function: var(--tw-ease, var(--msr-default-transition-timing-function));
447
478
  transition-duration: var(--tw-duration, var(--msr-default-transition-duration));
448
479
  }
480
+ .msr\:transition-none {
481
+ transition-property: none;
482
+ }
449
483
  .msr\:duration-150 {
450
484
  --tw-duration: 150ms;
451
485
  transition-duration: 150ms;
@@ -512,6 +546,9 @@
512
546
  .mesurer-menu-surface {
513
547
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
514
548
  }
549
+ .mesurer-root {
550
+ --msr-spacing: 4px;
551
+ }
515
552
  @property --tw-translate-x {
516
553
  syntax: "*";
517
554
  inherits: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mesurer",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Measure and align elements on any website.",
5
5
  "license": "MIT",
6
6
  "author": "Julien Thibeaut",
@@ -24,7 +24,9 @@
24
24
  "README.md",
25
25
  "LICENSE"
26
26
  ],
27
- "sideEffects": ["*.css"],
27
+ "sideEffects": [
28
+ "*.css"
29
+ ],
28
30
  "publishConfig": {
29
31
  "access": "public"
30
32
  },
@@ -36,12 +38,6 @@
36
38
  "bugs": {
37
39
  "url": "https://github.com/ibelick/mesurer/issues"
38
40
  },
39
- "scripts": {
40
- "build": "pnpm exec tailwindcss -i styles.css -o styles.generated.css && node scripts/generate-styles.mjs && tsup && pnpm exec tailwindcss -i styles.css -o dist/styles.css",
41
- "dev": "tsup --watch",
42
- "typecheck": "tsc --noEmit",
43
- "prepublishOnly": "npm run typecheck && npm run build"
44
- },
45
41
  "peerDependencies": {
46
42
  "react": ">=18.0.0",
47
43
  "react-dom": ">=18.0.0"
@@ -59,5 +55,10 @@
59
55
  "keywords": [
60
56
  "measurement",
61
57
  "alignment"
62
- ]
63
- }
58
+ ],
59
+ "scripts": {
60
+ "build": "pnpm exec tailwindcss -i styles.css -o styles.generated.css && node scripts/generate-styles.mjs && tsup && pnpm exec tailwindcss -i styles.css -o dist/styles.css",
61
+ "dev": "tsup --watch",
62
+ "typecheck": "tsc --noEmit"
63
+ }
64
+ }