@vev/silke 1.1.2 → 1.1.3

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
@@ -14,6 +14,45 @@
14
14
  * Get font size base on base font size
15
15
  * scaling = round(size * 1.200) (Minor Third)
16
16
  */
17
+ .silke-breadcrumb_breadbrumbs_4495c248fa {
18
+ padding: 0;
19
+ margin: 0;
20
+ align-items: center;
21
+ }
22
+
23
+ .silke-breadcrumb_breadbrumb_4495c248fa {
24
+ -webkit-user-select: none;
25
+ -moz-user-select: none;
26
+ user-select: none;
27
+ }
28
+ .silke-breadcrumb_breadbrumb_4495c248fa a {
29
+ color: var(--color-neutral-60) !important;
30
+ }
31
+ .silke-breadcrumb_breadbrumb_4495c248fa a:focus {
32
+ outline: none;
33
+ }
34
+ .silke-breadcrumb_breadbrumb_4495c248fa a:hover {
35
+ color: var(--color-neutral-60) !important;
36
+ }
37
+ .silke-breadcrumb_breadbrumb_4495c248fa .silke-breadcrumb_icon_4495c248fa [class*=silke-image], .silke-breadcrumb_breadbrumb_4495c248fa .silke-breadcrumb_icon_4495c248fa [class*=silke-icon] {
38
+ font-size: 12px !important;
39
+ }
40
+ /**********************
41
+ * SOME MATH
42
+ ************************/
43
+ /**********************
44
+ * FONT
45
+ ************************/
46
+ /**********************
47
+ * SPACING
48
+ ************************/
49
+ /**********************
50
+ * SIZES
51
+ ************************/
52
+ /**
53
+ * Get font size base on base font size
54
+ * scaling = round(size * 1.200) (Minor Third)
55
+ */
17
56
  @font-face {
18
57
  font-family: "Iskry";
19
58
  src: url("https://cdn.vev.design/font/tWK-oVG0VI/Iskry-Regular.woff2") format("woff2"), url("https://cdn.vev.design/font/tWK-oVG0VI/Iskry-Regular.woff") format("woff");
@@ -2373,45 +2412,6 @@ img.silke-icon_icon_84f9e9d6b3 {
2373
2412
  * Get font size base on base font size
2374
2413
  * scaling = round(size * 1.200) (Minor Third)
2375
2414
  */
2376
- .silke-breadcrumb_breadbrumbs_4495c248fa {
2377
- padding: 0;
2378
- margin: 0;
2379
- align-items: center;
2380
- }
2381
-
2382
- .silke-breadcrumb_breadbrumb_4495c248fa {
2383
- -webkit-user-select: none;
2384
- -moz-user-select: none;
2385
- user-select: none;
2386
- }
2387
- .silke-breadcrumb_breadbrumb_4495c248fa a {
2388
- color: var(--color-neutral-60) !important;
2389
- }
2390
- .silke-breadcrumb_breadbrumb_4495c248fa a:focus {
2391
- outline: none;
2392
- }
2393
- .silke-breadcrumb_breadbrumb_4495c248fa a:hover {
2394
- color: var(--color-neutral-60) !important;
2395
- }
2396
- .silke-breadcrumb_breadbrumb_4495c248fa .silke-breadcrumb_icon_4495c248fa [class*=silke-image], .silke-breadcrumb_breadbrumb_4495c248fa .silke-breadcrumb_icon_4495c248fa [class*=silke-icon] {
2397
- font-size: 12px !important;
2398
- }
2399
- /**********************
2400
- * SOME MATH
2401
- ************************/
2402
- /**********************
2403
- * FONT
2404
- ************************/
2405
- /**********************
2406
- * SPACING
2407
- ************************/
2408
- /**********************
2409
- * SIZES
2410
- ************************/
2411
- /**
2412
- * Get font size base on base font size
2413
- * scaling = round(size * 1.200) (Minor Third)
2414
- */
2415
2415
  .silke-overflow-menu_btnOpen_9d7478ea25 {
2416
2416
  background-color: var(--color-neutral-20) !important;
2417
2417
  border: none !important;
@@ -2501,6 +2501,55 @@ img.silke-icon_icon_84f9e9d6b3 {
2501
2501
  * Get font size base on base font size
2502
2502
  * scaling = round(size * 1.200) (Minor Third)
2503
2503
  */
2504
+ .silke-code-snippet_main_4e986d6b6d {
2505
+ position: relative;
2506
+ flex-direction: column;
2507
+ background: var(--color-neutral-0);
2508
+ }
2509
+ .silke-code-snippet_main_4e986d6b6d pre {
2510
+ width: 100%;
2511
+ margin: 0;
2512
+ padding: 8px;
2513
+ word-break: break-word;
2514
+ }
2515
+ .silke-code-snippet_main_4e986d6b6d:hover .silke-code-snippet_buttons_4e986d6b6d {
2516
+ opacity: 1;
2517
+ }
2518
+
2519
+ .silke-code-snippet_buttons_4e986d6b6d {
2520
+ position: absolute;
2521
+ bottom: 8px;
2522
+ right: 8px;
2523
+ opacity: 0.5;
2524
+ align-items: flex-end;
2525
+ }
2526
+
2527
+ .silke-code-snippet_lineNumber_4e986d6b6d {
2528
+ display: inline-block;
2529
+ color: gray;
2530
+ width: 30px;
2531
+ font-size: 14px;
2532
+ padding: 0 5px;
2533
+ -webkit-user-select: none;
2534
+ -moz-user-select: none;
2535
+ user-select: none;
2536
+ }
2537
+ /**********************
2538
+ * SOME MATH
2539
+ ************************/
2540
+ /**********************
2541
+ * FONT
2542
+ ************************/
2543
+ /**********************
2544
+ * SPACING
2545
+ ************************/
2546
+ /**********************
2547
+ * SIZES
2548
+ ************************/
2549
+ /**
2550
+ * Get font size base on base font size
2551
+ * scaling = round(size * 1.200) (Minor Third)
2552
+ */
2504
2553
  .silke-link {
2505
2554
  text-decoration: underline;
2506
2555
  cursor: pointer;
@@ -2551,55 +2600,6 @@ button.silke-link {
2551
2600
  * Get font size base on base font size
2552
2601
  * scaling = round(size * 1.200) (Minor Third)
2553
2602
  */
2554
- .silke-code-snippet_main_4e986d6b6d {
2555
- position: relative;
2556
- flex-direction: column;
2557
- background: var(--color-neutral-0);
2558
- }
2559
- .silke-code-snippet_main_4e986d6b6d pre {
2560
- width: 100%;
2561
- margin: 0;
2562
- padding: 8px;
2563
- word-break: break-word;
2564
- }
2565
- .silke-code-snippet_main_4e986d6b6d:hover .silke-code-snippet_buttons_4e986d6b6d {
2566
- opacity: 1;
2567
- }
2568
-
2569
- .silke-code-snippet_buttons_4e986d6b6d {
2570
- position: absolute;
2571
- bottom: 8px;
2572
- right: 8px;
2573
- opacity: 0.5;
2574
- align-items: flex-end;
2575
- }
2576
-
2577
- .silke-code-snippet_lineNumber_4e986d6b6d {
2578
- display: inline-block;
2579
- color: gray;
2580
- width: 30px;
2581
- font-size: 14px;
2582
- padding: 0 5px;
2583
- -webkit-user-select: none;
2584
- -moz-user-select: none;
2585
- user-select: none;
2586
- }
2587
- /**********************
2588
- * SOME MATH
2589
- ************************/
2590
- /**********************
2591
- * FONT
2592
- ************************/
2593
- /**********************
2594
- * SPACING
2595
- ************************/
2596
- /**********************
2597
- * SIZES
2598
- ************************/
2599
- /**
2600
- * Get font size base on base font size
2601
- * scaling = round(size * 1.200) (Minor Third)
2602
- */
2603
2603
  .silke-sortable-list_item_cdeed952d0 [data-drag-handle] {
2604
2604
  cursor: grab;
2605
2605
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vev/silke",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -4,7 +4,7 @@ import { ColorFormats } from 'tinycolor2';
4
4
  import styles from './color-picker.scss';
5
5
 
6
6
  import { rgbToHex, rgbToHsv, hsvToRgb, hsvToHslString, rgbaToString } from './color';
7
- import { Mouse } from '@vev/utils';
7
+ import { Mouse, useKey } from '@vev/utils';
8
8
 
9
9
  type Props = {
10
10
  rgba: ColorFormats.RGBA;
@@ -73,6 +73,8 @@ export function ColorSpace({ rgba, hue, dragging, onDrag, onChange }: Props) {
73
73
  forceUpdate(Date.now());
74
74
  };
75
75
 
76
+ useKey('Escape', handleMouseUp);
77
+
76
78
  return (
77
79
  <div
78
80
  data-editor-field="silke-color-space"