@kritzel/editor 0.4.31 → 0.4.33

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.
Files changed (197) hide show
  1. package/LICENSE.md +50 -50
  2. package/README.md +5 -5
  3. package/dist/cjs/{index-B92VHWr4.js → index-BAdxtEc7.js} +27 -9
  4. package/dist/cjs/kritzel-active-users_46.cjs.entry.js +1029 -366
  5. package/dist/cjs/kritzel-brush-style.cjs.entry.js +2 -2
  6. package/dist/cjs/kritzel-editor.cjs.js +3 -3
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/kritzel-active-users/kritzel-active-users.css +65 -65
  10. package/dist/collection/components/kritzel-avatar/kritzel-avatar.css +58 -58
  11. package/dist/collection/components/kritzel-avatar/kritzel-avatar.js +3 -3
  12. package/dist/collection/components/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
  13. package/dist/collection/components/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
  14. package/dist/collection/components/kritzel-brush-style/kritzel-brush-style.css +42 -42
  15. package/dist/collection/components/kritzel-brush-style/kritzel-brush-style.js +3 -3
  16. package/dist/collection/components/kritzel-button/kritzel-button.css +73 -73
  17. package/dist/collection/components/kritzel-button/kritzel-button.js +2 -2
  18. package/dist/collection/components/kritzel-color/kritzel-color.css +24 -24
  19. package/dist/collection/components/kritzel-color/kritzel-color.js +2 -2
  20. package/dist/collection/components/kritzel-color-palette/kritzel-color-palette.css +46 -46
  21. package/dist/collection/components/kritzel-color-palette/kritzel-color-palette.js +1 -1
  22. package/dist/collection/components/kritzel-context-menu/kritzel-context-menu.css +113 -112
  23. package/dist/collection/components/kritzel-context-menu/kritzel-context-menu.js +1 -1
  24. package/dist/collection/components/kritzel-current-user/kritzel-current-user.css +11 -11
  25. package/dist/collection/components/kritzel-current-user/kritzel-current-user.js +1 -1
  26. package/dist/collection/components/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
  27. package/dist/collection/components/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
  28. package/dist/collection/components/kritzel-dialog/kritzel-dialog.css +209 -209
  29. package/dist/collection/components/kritzel-dropdown/kritzel-dropdown.css +190 -190
  30. package/dist/collection/components/kritzel-dropdown/kritzel-dropdown.js +2 -2
  31. package/dist/collection/components/kritzel-editor/kritzel-editor.css +160 -160
  32. package/dist/collection/components/kritzel-editor/kritzel-editor.js +72 -46
  33. package/dist/collection/components/kritzel-export/kritzel-export.css +89 -89
  34. package/dist/collection/components/kritzel-export/kritzel-export.js +1 -1
  35. package/dist/collection/components/kritzel-font/kritzel-font.css +10 -10
  36. package/dist/collection/components/kritzel-font/kritzel-font.js +1 -1
  37. package/dist/collection/components/kritzel-font-family/kritzel-font-family.css +48 -48
  38. package/dist/collection/components/kritzel-font-family/kritzel-font-family.js +2 -2
  39. package/dist/collection/components/kritzel-font-size/kritzel-font-size.css +30 -30
  40. package/dist/collection/components/kritzel-font-size/kritzel-font-size.js +1 -1
  41. package/dist/collection/components/kritzel-input/kritzel-input.css +69 -69
  42. package/dist/collection/components/kritzel-input/kritzel-input.js +1 -1
  43. package/dist/collection/components/kritzel-line-endings/kritzel-line-endings.css +60 -60
  44. package/dist/collection/components/kritzel-line-endings/kritzel-line-endings.js +3 -3
  45. package/dist/collection/components/kritzel-loading-overlay/kritzel-loading-overlay.css +54 -54
  46. package/dist/collection/components/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
  47. package/dist/collection/components/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
  48. package/dist/collection/components/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
  49. package/dist/collection/components/kritzel-master-detail/kritzel-master-detail.css +190 -190
  50. package/dist/collection/components/kritzel-master-detail/kritzel-master-detail.js +3 -3
  51. package/dist/collection/components/kritzel-menu/kritzel-menu.css +35 -34
  52. package/dist/collection/components/kritzel-menu/kritzel-menu.js +1 -1
  53. package/dist/collection/components/kritzel-menu-item/kritzel-menu-item.css +166 -166
  54. package/dist/collection/components/kritzel-menu-item/kritzel-menu-item.js +3 -3
  55. package/dist/collection/components/kritzel-more-menu/kritzel-more-menu.css +58 -58
  56. package/dist/collection/components/kritzel-more-menu/kritzel-more-menu.js +4 -4
  57. package/dist/collection/components/kritzel-notification-card/kritzel-notification-card.css +101 -101
  58. package/dist/collection/components/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
  59. package/dist/collection/components/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
  60. package/dist/collection/components/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
  61. package/dist/collection/components/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
  62. package/dist/collection/components/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
  63. package/dist/collection/components/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
  64. package/dist/collection/components/kritzel-portal/kritzel-portal.js +1 -1
  65. package/dist/collection/components/kritzel-settings/kritzel-settings.css +137 -137
  66. package/dist/collection/components/kritzel-settings/kritzel-settings.js +1 -1
  67. package/dist/collection/components/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
  68. package/dist/collection/components/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
  69. package/dist/collection/components/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
  70. package/dist/collection/components/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
  71. package/dist/collection/components/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
  72. package/dist/collection/components/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
  73. package/dist/collection/components/kritzel-split-button/kritzel-split-button.css +78 -78
  74. package/dist/collection/components/kritzel-split-button/kritzel-split-button.js +3 -3
  75. package/dist/collection/components/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
  76. package/dist/collection/components/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
  77. package/dist/collection/components/kritzel-tool-config/kritzel-tool-config.css +38 -38
  78. package/dist/collection/components/kritzel-tool-config/kritzel-tool-config.js +1 -1
  79. package/dist/collection/components/kritzel-toolbar/kritzel-toolbar.css +347 -347
  80. package/dist/collection/components/kritzel-toolbar/kritzel-toolbar.js +12 -16
  81. package/dist/collection/components/kritzel-tooltip/kritzel-tooltip.css +18 -18
  82. package/dist/collection/components/kritzel-tooltip/kritzel-tooltip.js +2 -2
  83. package/dist/collection/components/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
  84. package/dist/collection/components/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
  85. package/dist/collection/components/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
  86. package/dist/collection/components/kritzel-workspace-manager/kritzel-workspace-manager.js +1 -1
  87. package/dist/collection/components/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
  88. package/dist/collection/components/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
  89. package/dist/components/index.js +1 -1
  90. package/dist/components/kritzel-active-users.js +1 -1
  91. package/dist/components/kritzel-avatar.js +1 -1
  92. package/dist/components/kritzel-awareness-cursors.js +1 -1
  93. package/dist/components/kritzel-back-to-content.js +1 -1
  94. package/dist/components/kritzel-brush-style.js +4 -4
  95. package/dist/components/kritzel-button.js +1 -1
  96. package/dist/components/kritzel-color-palette.js +1 -1
  97. package/dist/components/kritzel-color.js +1 -1
  98. package/dist/components/kritzel-context-menu.js +1 -1
  99. package/dist/components/kritzel-current-user-dialog.js +1 -1
  100. package/dist/components/kritzel-current-user.js +1 -1
  101. package/dist/components/kritzel-cursor-trail.js +1 -1
  102. package/dist/components/kritzel-dialog.js +1 -1
  103. package/dist/components/kritzel-dropdown.js +1 -1
  104. package/dist/components/kritzel-editor.js +108 -81
  105. package/dist/components/kritzel-engine.js +1 -1
  106. package/dist/components/kritzel-export.js +1 -1
  107. package/dist/components/kritzel-font-family.js +1 -1
  108. package/dist/components/kritzel-font-size.js +1 -1
  109. package/dist/components/kritzel-font.js +1 -1
  110. package/dist/components/kritzel-icon.js +1 -1
  111. package/dist/components/kritzel-input.js +1 -1
  112. package/dist/components/kritzel-line-endings.js +1 -1
  113. package/dist/components/kritzel-loading-overlay.js +1 -1
  114. package/dist/components/kritzel-login-dialog.js +1 -1
  115. package/dist/components/kritzel-master-detail.js +1 -1
  116. package/dist/components/kritzel-menu-item.js +1 -1
  117. package/dist/components/kritzel-menu.js +1 -1
  118. package/dist/components/kritzel-more-menu.js +1 -1
  119. package/dist/components/kritzel-notification-card.js +1 -1
  120. package/dist/components/kritzel-numeric-input.js +1 -1
  121. package/dist/components/kritzel-opacity-slider.js +1 -1
  122. package/dist/components/kritzel-pill-tabs.js +1 -1
  123. package/dist/components/kritzel-portal.js +1 -1
  124. package/dist/components/kritzel-settings.js +1 -1
  125. package/dist/components/kritzel-shape-fill.js +1 -1
  126. package/dist/components/kritzel-share-dialog.js +1 -1
  127. package/dist/components/kritzel-slide-toggle.js +1 -1
  128. package/dist/components/kritzel-split-button.js +1 -1
  129. package/dist/components/kritzel-stroke-size.js +1 -1
  130. package/dist/components/kritzel-tool-config.js +1 -1
  131. package/dist/components/kritzel-toolbar.js +1 -1
  132. package/dist/components/kritzel-tooltip.js +1 -1
  133. package/dist/components/kritzel-utility-panel.js +1 -1
  134. package/dist/components/kritzel-watermark.js +1 -1
  135. package/dist/components/kritzel-workspace-manager.js +1 -1
  136. package/dist/components/kritzel-zoom-panel.js +1 -1
  137. package/dist/components/{p-CrIEmItB.js → p-2DAZSvN6.js} +5 -5
  138. package/dist/components/{p-CmjXRLdr.js → p-2gylYpXk.js} +7 -7
  139. package/dist/components/{p-BN8VWPlq.js → p-B-Divd0Q.js} +7 -7
  140. package/dist/components/{p-R1D8Sr0l.js → p-B-U13Ew1.js} +3 -3
  141. package/dist/components/{p-BZ_KnHdR.js → p-B1rmcPZr.js} +7 -7
  142. package/dist/components/{p-B_gT0lCn.js → p-B2-SxV8E.js} +3 -3
  143. package/dist/components/p-B6Z_VKKH.js +214 -0
  144. package/dist/components/{p-CVxGF4bJ.js → p-B8tHdknP.js} +5 -5
  145. package/dist/components/{p-CoNexfpB.js → p-BDsuJNT_.js} +3 -3
  146. package/dist/components/{p-BvG3JO85.js → p-BMi-i7sC.js} +3 -3
  147. package/dist/components/{p-Cy_cLtOP.js → p-BZ0ReYAA.js} +18 -14
  148. package/dist/components/{p-DZsSiMnA.js → p-BeCy6w6M.js} +770 -173
  149. package/dist/components/{p-4-qLegHb.js → p-Bipc1XvF.js} +4 -4
  150. package/dist/components/{p-CS3YZVYE.js → p-BmFJelgk.js} +2 -2
  151. package/dist/components/{p-DqOC_Yck.js → p-BpvSYxxN.js} +6 -6
  152. package/dist/components/{p-peZjvnkK.js → p-C0ns8IPO.js} +2 -2
  153. package/dist/components/{p-ClfOtiNp.js → p-C1_r9nJU.js} +3 -3
  154. package/dist/components/{p-GbCxpbQ6.js → p-C2ySiAXO.js} +3 -3
  155. package/dist/components/{p-B3Tqoyl9.js → p-C3KlONnT.js} +3 -3
  156. package/dist/components/{p-B5xYV1o3.js → p-C68YXjuL.js} +2 -2
  157. package/dist/components/{p-DJxgPPfs.js → p-CCuNN278.js} +3 -3
  158. package/dist/components/{p-Ds0uNtwQ.js → p-CNH7N3Aq.js} +4 -4
  159. package/dist/components/{p-DVv8ChhE.js → p-CO1cJlfg.js} +4 -4
  160. package/dist/components/{p-Cp4e4oTE.js → p-CqHKGLYE.js} +2 -2
  161. package/dist/components/{p-Blq9a1ni.js → p-CrEWqua9.js} +6 -6
  162. package/dist/components/{p-CvaxFYS0.js → p-Cv2nqOL8.js} +8 -8
  163. package/dist/components/{p-CzUeIini.js → p-D-1ixLxq.js} +13 -13
  164. package/dist/components/{p-BfMlwIcG.js → p-DF8p-DxR.js} +3 -3
  165. package/dist/components/{p-QEue33R5.js → p-DQ3VKzAS.js} +3 -3
  166. package/dist/components/{p-Ckqh1tqY.js → p-DRe-rTlX.js} +27 -31
  167. package/dist/components/{p-McY5wZ0h.js → p-DSyb29RF.js} +2 -2
  168. package/dist/components/{p-D0tPTPkR.js → p-DYDruZIw.js} +3 -3
  169. package/dist/components/{p-kOINnzaR.js → p-D_JxJxQ6.js} +7 -7
  170. package/dist/components/{p-BDjRSoAc.js → p-Dko_6jIh.js} +2 -2
  171. package/dist/components/{p-BjFrt1q0.js → p-DnHvqeyr.js} +3 -3
  172. package/dist/components/{p-BrGJIoGK.js → p-DqMikMrS.js} +3 -3
  173. package/dist/components/p-DsnHq8en.js +55 -0
  174. package/dist/components/{p-DXZBWJBt.js → p-DxFNLy9X.js} +4 -4
  175. package/dist/components/{p-5qkOM1RJ.js → p-Dzr6X2aj.js} +16 -4
  176. package/dist/components/{p-DXuf225S.js → p-HbHo7awi.js} +3 -3
  177. package/dist/components/{p-CwBxnzYu.js → p-Qbk7xE91.js} +3 -3
  178. package/dist/components/{p-h_uh_Njf.js → p-VYGV0cr3.js} +3 -3
  179. package/dist/components/{p-DyRJFg4w.js → p-YGBl60lb.js} +2 -2
  180. package/dist/components/{p-hQwVRh0t.js → p-clFfXKKn.js} +7 -7
  181. package/dist/components/{p-SLnqczCS.js → p-dUcCDLDF.js} +3 -3
  182. package/dist/components/{p-B6UJztrf.js → p-kXnNX65j.js} +4 -4
  183. package/dist/esm/{index-OjbYJz-P.js → index-YR-6hzAW.js} +27 -10
  184. package/dist/esm/kritzel-active-users_46.entry.js +1029 -366
  185. package/dist/esm/kritzel-brush-style.entry.js +2 -2
  186. package/dist/esm/kritzel-editor.js +4 -4
  187. package/dist/esm/loader.js +3 -3
  188. package/dist/kritzel-editor/kritzel-editor.esm.js +4 -4
  189. package/dist/kritzel-editor/{p-501047d8.entry.js → p-3a0f60b0.entry.js} +2 -2
  190. package/dist/kritzel-editor/{p-OjbYJz-P.js → p-YR-6hzAW.js} +27 -10
  191. package/dist/kritzel-editor/{p-60319edb.entry.js → p-adc45d46.entry.js} +1029 -366
  192. package/dist/types/components/kritzel-editor/kritzel-editor.d.ts +9 -2
  193. package/dist/types/components.d.ts +15 -15
  194. package/dist/types/stencil-public-runtime.d.ts +61 -55
  195. package/package.json +3 -3
  196. package/dist/components/p-BGmTmdLe.js +0 -167
  197. package/dist/components/p-DOJCDPVD.js +0 -55
@@ -1,42 +1,42 @@
1
- :host {
2
- display: block;
3
- z-index: var(--kritzel-back-to-content-z-index, 1000);
4
- }
5
-
6
- .back-to-content-button {
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- height: var(--kritzel-back-to-content-height, 50px);
11
- box-sizing: border-box;
12
- gap: var(--kritzel-back-to-content-gap, 6px);
13
- padding: var(--kritzel-back-to-content-padding, 0 16px);
14
- border: var(--kritzel-back-to-content-border, 1px solid #ebebeb);
15
- border-radius: var(--kritzel-back-to-content-border-radius, 12px);
16
- background-color: var(--kritzel-back-to-content-background-color, #ffffff);
17
- color: var(--kritzel-back-to-content-color, #000000);
18
- font-size: var(--kritzel-back-to-content-font-size, 14px);
19
- font-weight: var(--kritzel-back-to-content-font-weight, 500);
20
- cursor: var(--kritzel-global-pointer-cursor, pointer);
21
- box-shadow: var(--kritzel-back-to-content-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
22
- opacity: 0;
23
- pointer-events: none;
24
- transition: opacity 0.2s ease-out, transform 0.2s ease-out, background-color 0.15s ease-out;
25
- -webkit-tap-highlight-color: transparent;
26
- user-select: none;
27
- }
28
-
29
- .back-to-content-button.visible {
30
- opacity: 1;
31
- pointer-events: auto;
32
- }
33
-
34
- @media (hover: hover) {
35
- .back-to-content-button:hover {
36
- background-color: var(--kritzel-back-to-content-hover-background-color, hsl(0, 0%, 0%, 4.3%));
37
- }
38
- }
39
-
40
- .back-to-content-button:active {
41
- background-color: var(--kritzel-back-to-content-active-background-color, hsl(0, 0%, 0%, 8.6%));
42
- }
1
+ :host {
2
+ display: block;
3
+ z-index: var(--kritzel-back-to-content-z-index, 1000);
4
+ }
5
+
6
+ .back-to-content-button {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ height: var(--kritzel-back-to-content-height, 50px);
11
+ box-sizing: border-box;
12
+ gap: var(--kritzel-back-to-content-gap, 6px);
13
+ padding: var(--kritzel-back-to-content-padding, 0 16px);
14
+ border: var(--kritzel-back-to-content-border, 1px solid #ebebeb);
15
+ border-radius: var(--kritzel-back-to-content-border-radius, 12px);
16
+ background-color: var(--kritzel-back-to-content-background-color, #ffffff);
17
+ color: var(--kritzel-back-to-content-color, #000000);
18
+ font-size: var(--kritzel-back-to-content-font-size, 14px);
19
+ font-weight: var(--kritzel-back-to-content-font-weight, 500);
20
+ cursor: var(--kritzel-global-pointer-cursor, pointer);
21
+ box-shadow: var(--kritzel-back-to-content-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
22
+ opacity: 0;
23
+ pointer-events: none;
24
+ transition: opacity 0.2s ease-out, transform 0.2s ease-out, background-color 0.15s ease-out;
25
+ -webkit-tap-highlight-color: transparent;
26
+ user-select: none;
27
+ }
28
+
29
+ .back-to-content-button.visible {
30
+ opacity: 1;
31
+ pointer-events: auto;
32
+ }
33
+
34
+ @media (hover: hover) {
35
+ .back-to-content-button:hover {
36
+ background-color: var(--kritzel-back-to-content-hover-background-color, hsl(0, 0%, 0%, 4.3%));
37
+ }
38
+ }
39
+
40
+ .back-to-content-button:active {
41
+ background-color: var(--kritzel-back-to-content-active-background-color, hsl(0, 0%, 0%, 8.6%));
42
+ }
@@ -16,7 +16,7 @@ export class KritzelBackToContent {
16
16
  this.backToContent.emit();
17
17
  };
18
18
  render() {
19
- return (h(Host, { key: 'c5c829f14100bd2d658f0dc1e32553f9adccb129' }, h("button", { key: 'a3cde6688b78466c79721d55b087c91490c6c378', class: { 'back-to-content-button': true, visible: this.visible }, onClick: this.handleClick, "aria-label": this.text }, h("kritzel-icon", { key: '8c31350e301b6852f2e9cf9d897281ff118587c7', name: "chevrons-left" }))));
19
+ return (h(Host, { key: '335205a7ec6430235c54941828b7491d75472778' }, h("button", { key: '176e473183c4d58607a697c924035baec67c138d', class: { 'back-to-content-button': true, visible: this.visible }, onClick: this.handleClick, "aria-label": this.text }, h("kritzel-icon", { key: '44ad49916d1ee99fed8e635de65f7ae337235ecb', name: "chevronsLeft" }))));
20
20
  }
21
21
  static get is() { return "kritzel-back-to-content"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -1,43 +1,43 @@
1
- :host {
2
- display: flex;
3
- align-items: flex-start;
4
- gap: 8px;
5
- padding: 8px;
6
- box-sizing: border-box;
7
- width: 100%;
8
- }
9
-
10
- .brush-style-button {
11
- display: flex;
12
- justify-content: center;
13
- align-items: center;
14
- width: 42px;
15
- height: 32px;
16
- padding: 0;
17
- border: none;
18
- outline: none;
19
- background: none;
20
- border-radius: 0;
21
- color: var(--control-text-color);
22
- font-weight: bold;
23
- -webkit-tap-highlight-color: transparent;
24
- }
25
-
26
- .font-style-button:not(:last-child) {
27
- border-right: 1px solid #333333;
28
- }
29
-
30
- .font-style-button:hover {
31
- background-color: var(--control-hover-bg);
32
- }
33
-
34
- .font-style-button:active {
35
- background-color: var(--control-active-bg);
36
- }
37
-
38
- .font-style-button.selected,
39
- .font-style-button.selected:hover,
40
- .font-style-button.selected:active {
41
- background-color: var(--control-selected-bg);
42
- color: var(--control-selected-color);
1
+ :host {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ gap: 8px;
5
+ padding: 8px;
6
+ box-sizing: border-box;
7
+ width: 100%;
8
+ }
9
+
10
+ .brush-style-button {
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ width: 42px;
15
+ height: 32px;
16
+ padding: 0;
17
+ border: none;
18
+ outline: none;
19
+ background: none;
20
+ border-radius: 0;
21
+ color: var(--control-text-color);
22
+ font-weight: bold;
23
+ -webkit-tap-highlight-color: transparent;
24
+ }
25
+
26
+ .font-style-button:not(:last-child) {
27
+ border-right: 1px solid #333333;
28
+ }
29
+
30
+ .font-style-button:hover {
31
+ background-color: var(--control-hover-bg);
32
+ }
33
+
34
+ .font-style-button:active {
35
+ background-color: var(--control-active-bg);
36
+ }
37
+
38
+ .font-style-button.selected,
39
+ .font-style-button.selected:hover,
40
+ .font-style-button.selected:active {
41
+ background-color: var(--control-selected-bg);
42
+ color: var(--control-selected-color);
43
43
  }
@@ -14,7 +14,7 @@ export class KritzelBrushStyle {
14
14
  value: option.value,
15
15
  label: option.label,
16
16
  }));
17
- return (h(Host, { key: '51a7f84685032fd8fc967b22bee7c0711e811a54' }, h("kritzel-dropdown", { key: 'e49d7062c695458d345738d88a0adfc96b575e61', options: dropdownOptions, value: this.type, onValueChanged: event => this.handleDropdownValueChange(event) }, h("button", { key: 'ebbbf1a55b89e91012ca44c5cf30acfb77332b50', class: "brush-style-button", slot: "prefix" }, h("kritzel-icon", { key: 'dae002c9ab5e3486c726202426eb076a8f33b109', name: this.type, size: 16 })))));
17
+ return (h(Host, { key: '7b05e93ce8d28c23503e4ca358a487165169f1ad' }, h("kritzel-dropdown", { key: 'a8f2f30762b339411cd3995482c3bc658855f749', options: dropdownOptions, value: this.type, onValueChanged: event => this.handleDropdownValueChange(event) }, h("button", { key: 'ac06462897a0fbd5011533095fafb7491a75508a', class: "brush-style-button", slot: "prefix" }, h("kritzel-icon", { key: 'caee4c657c7fee478b1038ebd2ef3b502cf73e5e', name: this.type, size: 16 })))));
18
18
  }
19
19
  static get is() { return "kritzel-brush-style"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -59,7 +59,7 @@ export class KritzelBrushStyle {
59
59
  "references": {
60
60
  "BrushStyleOption": {
61
61
  "location": "local",
62
- "path": "C:/Projects/kritzel/libs/editor/core/src/components/kritzel-brush-style/kritzel-brush-style.tsx",
62
+ "path": "/home/runner/work/kritzel-private/kritzel-private/libs/editor/core/src/components/kritzel-brush-style/kritzel-brush-style.tsx",
63
63
  "id": "src/components/kritzel-brush-style/kritzel-brush-style.tsx::BrushStyleOption"
64
64
  }
65
65
  }
@@ -72,7 +72,7 @@ export class KritzelBrushStyle {
72
72
  },
73
73
  "getter": false,
74
74
  "setter": false,
75
- "defaultValue": "[\r\n { value: 'pen', label: 'Pen' },\r\n { value: 'highlighter', label: 'Highlighter' },\r\n ]"
75
+ "defaultValue": "[\n { value: 'pen', label: 'Pen' },\n { value: 'highlighter', label: 'Highlighter' },\n ]"
76
76
  }
77
77
  };
78
78
  }
@@ -1,73 +1,73 @@
1
- :host {
2
- display: inline-block;
3
- font-family: sans-serif;
4
- }
5
-
6
- button {
7
- border: none;
8
- background-color: transparent;
9
- padding: 0;
10
- margin: 0;
11
- font-family: inherit;
12
- font-size: inherit;
13
- -webkit-appearance: none;
14
- -moz-appearance: none;
15
- appearance: none;
16
- cursor: var(--kritzel-global-pointer-cursor, pointer);
17
- display: inline-flex;
18
- width: var(--kritzel-button-width, auto);
19
- align-items: center;
20
- justify-content: center;
21
- gap: 6px;
22
- border-radius: var(--kritzel-button-border-radius, 8px);
23
- padding: var(--kritzel-button-padding, 12px 20px);
24
- font-size: var(--kritzel-button-font-size, 14px);
25
- font-weight: var(--kritzel-button-font-weight, 500);
26
- transition: background-color 0.15s ease, opacity 0.15s ease;
27
- -webkit-tap-highlight-color: transparent;
28
- }
29
-
30
- button.primary {
31
- background-color: var(--kritzel-button-primary-background-color, #007AFF);
32
- color: var(--kritzel-button-primary-color, #ffffff);
33
- }
34
-
35
- button.primary:hover {
36
- background-color: var(--kritzel-button-primary-hover-background-color, #006ae6);
37
- }
38
-
39
- button.primary:active {
40
- background-color: var(--kritzel-button-primary-active-background-color, #005bbf);
41
- }
42
-
43
- button.secondary {
44
- background-color: var(--kritzel-button-secondary-background-color, #f0f0f0);
45
- color: var(--kritzel-button-secondary-color, #333333);
46
- }
47
-
48
- button.secondary:hover {
49
- background-color: var(--kritzel-button-secondary-hover-background-color, #e0e0e0);
50
- }
51
-
52
- button.secondary:active {
53
- background-color: var(--kritzel-button-secondary-active-background-color, #d0d0d0);
54
- }
55
-
56
- button.text {
57
- background-color: transparent;
58
- color: var(--kritzel-button-text-color, #007AFF);
59
- }
60
-
61
- button.text:hover {
62
- background-color: var(--kritzel-button-text-hover-background-color, rgba(0, 122, 255, 0.08));
63
- }
64
-
65
- button.text:active {
66
- background-color: var(--kritzel-button-text-active-background-color, rgba(0, 122, 255, 0.15));
67
- }
68
-
69
- button.disabled {
70
- opacity: 0.4;
71
- cursor: not-allowed;
72
- pointer-events: none;
73
- }
1
+ :host {
2
+ display: inline-block;
3
+ font-family: var(--kritzel-button-font-family, var(--kritzel-global-font-family, sans-serif));
4
+ }
5
+
6
+ button {
7
+ border: none;
8
+ background-color: transparent;
9
+ padding: 0;
10
+ margin: 0;
11
+ font-family: inherit;
12
+ font-size: inherit;
13
+ -webkit-appearance: none;
14
+ -moz-appearance: none;
15
+ appearance: none;
16
+ cursor: var(--kritzel-global-pointer-cursor, pointer);
17
+ display: inline-flex;
18
+ width: var(--kritzel-button-width, auto);
19
+ align-items: center;
20
+ justify-content: center;
21
+ gap: 6px;
22
+ border-radius: var(--kritzel-button-border-radius, 8px);
23
+ padding: var(--kritzel-button-padding, 12px 20px);
24
+ font-size: var(--kritzel-button-font-size, 14px);
25
+ font-weight: var(--kritzel-button-font-weight, 500);
26
+ transition: background-color 0.15s ease, opacity 0.15s ease;
27
+ -webkit-tap-highlight-color: transparent;
28
+ }
29
+
30
+ button.primary {
31
+ background-color: var(--kritzel-button-primary-background-color, #007AFF);
32
+ color: var(--kritzel-button-primary-color, #ffffff);
33
+ }
34
+
35
+ button.primary:hover {
36
+ background-color: var(--kritzel-button-primary-hover-background-color, #006ae6);
37
+ }
38
+
39
+ button.primary:active {
40
+ background-color: var(--kritzel-button-primary-active-background-color, #005bbf);
41
+ }
42
+
43
+ button.secondary {
44
+ background-color: var(--kritzel-button-secondary-background-color, #f0f0f0);
45
+ color: var(--kritzel-button-secondary-color, #333333);
46
+ }
47
+
48
+ button.secondary:hover {
49
+ background-color: var(--kritzel-button-secondary-hover-background-color, #e0e0e0);
50
+ }
51
+
52
+ button.secondary:active {
53
+ background-color: var(--kritzel-button-secondary-active-background-color, #d0d0d0);
54
+ }
55
+
56
+ button.text {
57
+ background-color: transparent;
58
+ color: var(--kritzel-button-text-color, #007AFF);
59
+ }
60
+
61
+ button.text:hover {
62
+ background-color: var(--kritzel-button-text-hover-background-color, rgba(0, 122, 255, 0.08));
63
+ }
64
+
65
+ button.text:active {
66
+ background-color: var(--kritzel-button-text-active-background-color, rgba(0, 122, 255, 0.15));
67
+ }
68
+
69
+ button.disabled {
70
+ opacity: 0.4;
71
+ cursor: not-allowed;
72
+ pointer-events: none;
73
+ }
@@ -15,11 +15,11 @@ export class KritzelButton {
15
15
  this.buttonClick.emit();
16
16
  };
17
17
  render() {
18
- return (h(Host, { key: '539da53bb3f720cc3a1cf9cfed515b38e88e933b' }, h("button", { key: 'da8c3cfab366087e935bff483e2a909e915b24b2', type: this.type, class: {
18
+ return (h(Host, { key: 'e88abc53a52cd32846b389f9de239d3f98b7230f' }, h("button", { key: 'de77c4ac750f35766b9657276addf78068be1575', type: this.type, class: {
19
19
  'kritzel-button': true,
20
20
  [this.variant]: true,
21
21
  'disabled': this.disabled,
22
- }, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: 'abb8e3b2a2b677530db9a354c4f1788b6baaaca0' }))));
22
+ }, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: 'bdd2227879415dccc23676cf219ef17b1dd104fe' }))));
23
23
  }
24
24
  static get is() { return "kritzel-button"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -1,25 +1,25 @@
1
- :host {
2
- display: flex;
3
- }
4
-
5
- .checkerboard-bg {
6
- background: repeating-conic-gradient(
7
- var(--kritzel-checkerboard-color-dark, #ccc) 0% 25%,
8
- var(--kritzel-checkerboard-color-light, #fff) 0% 50%
9
- )
10
- 50% / 8px 8px;
11
- position: relative;
12
- overflow: hidden;
13
- }
14
-
15
- .color-circle {
16
- width: 24px;
17
- height: 24px;
18
- border-radius: 50%;
19
- box-sizing: border-box;
20
- display: block;
21
- }
22
-
23
- .color-circle.white {
24
- border: 1px solid var(--kritzel-color-palette-circle-border-color, #dddcdc);
1
+ :host {
2
+ display: flex;
3
+ }
4
+
5
+ .checkerboard-bg {
6
+ background: repeating-conic-gradient(
7
+ var(--kritzel-checkerboard-color-dark, #ccc) 0% 25%,
8
+ var(--kritzel-checkerboard-color-light, #fff) 0% 50%
9
+ )
10
+ 50% / 8px 8px;
11
+ position: relative;
12
+ overflow: hidden;
13
+ }
14
+
15
+ .color-circle {
16
+ width: 24px;
17
+ height: 24px;
18
+ border-radius: 50%;
19
+ box-sizing: border-box;
20
+ display: block;
21
+ }
22
+
23
+ .color-circle.white {
24
+ border: 1px solid var(--kritzel-color-palette-circle-border-color, #dddcdc);
25
25
  }
@@ -38,13 +38,13 @@ export class KritzelColorComponent {
38
38
  render() {
39
39
  const resolvedColor = this.resolveColor();
40
40
  const isColorVeryLight = this.isLightColor(resolvedColor);
41
- return (h(Host, { key: 'b0543e30ee8a4a79aa0487f207eb8174b2b26e08' }, h("div", { key: 'e88eb0d0eb80ba925b94c16637ed168e1b0c76fb', class: "checkerboard-bg", style: {
41
+ return (h(Host, { key: 'b75cfa0ca9d5927fe9cb1331f7e4163abc34c0c1' }, h("div", { key: '197ec4d1daaf5804b69907b8de074784686face4', class: "checkerboard-bg", style: {
42
42
  width: `${this.size}px`,
43
43
  height: `${this.size}px`,
44
44
  borderRadius: '50%',
45
45
  display: 'inline-block',
46
46
  position: 'relative',
47
- } }, h("div", { key: '86381f69b78fc987c581daf19302049fb137afb7', class: {
47
+ } }, h("div", { key: 'ed8b7dc412569d05c747014a32948930c392b980', class: {
48
48
  'color-circle': true,
49
49
  'white': isColorVeryLight,
50
50
  }, style: {
@@ -1,46 +1,46 @@
1
- :host {
2
- display: flex;
3
- align-items: flex-start;
4
- gap: 8px;
5
- padding: 0;
6
- width: 100%;
7
- box-sizing: border-box;
8
- }
9
-
10
- .color-grid {
11
- width: 100%;
12
- display: grid;
13
- grid-template-columns: repeat(6, 32px);
14
- gap: 8px;
15
- justify-items: center;
16
- overflow: hidden;
17
- height: 40px;
18
- transition: height 0.1s ease-in-out;
19
- }
20
-
21
- .color-grid.expanded {
22
- height: 500px;
23
- }
24
-
25
- .color-container {
26
- display: flex;
27
- justify-content: center;
28
- align-items: center;
29
- width: 32px;
30
- height: 32px;
31
- border-radius: 50%;
32
- cursor: var(--kritzel-global-pointer-cursor, pointer);
33
- border: 2px solid transparent;
34
- box-sizing: border-box;
35
- }
36
-
37
- .color-container:hover {
38
- background-color: var(--kritzel-color-palette-hover-background-color, #ebebeb);
39
- }
40
-
41
- .color-container.selected {
42
- border-color: var(--kritzel-selection-border-color, #007AFF);
43
- background-color: var(--kritzel-color-palette-selected-background-color);
44
- }
45
-
46
-
1
+ :host {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ gap: 8px;
5
+ padding: 0;
6
+ width: 100%;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ .color-grid {
11
+ width: 100%;
12
+ display: grid;
13
+ grid-template-columns: repeat(6, 32px);
14
+ gap: 8px;
15
+ justify-items: center;
16
+ overflow: hidden;
17
+ height: 40px;
18
+ transition: height 0.1s ease-in-out;
19
+ }
20
+
21
+ .color-grid.expanded {
22
+ height: 500px;
23
+ }
24
+
25
+ .color-container {
26
+ display: flex;
27
+ justify-content: center;
28
+ align-items: center;
29
+ width: 32px;
30
+ height: 32px;
31
+ border-radius: 50%;
32
+ cursor: var(--kritzel-global-pointer-cursor, pointer);
33
+ border: 2px solid transparent;
34
+ box-sizing: border-box;
35
+ }
36
+
37
+ .color-container:hover {
38
+ background-color: var(--kritzel-color-palette-hover-background-color, #ebebeb);
39
+ }
40
+
41
+ .color-container.selected {
42
+ border-color: var(--kritzel-selection-border-color, #007AFF);
43
+ background-color: var(--kritzel-color-palette-selected-background-color);
44
+ }
45
+
46
+
@@ -33,7 +33,7 @@ export class KritzelColorPalette {
33
33
  render() {
34
34
  const displayedColors = this.isExpanded ? this.colors : this.colors.slice(0, 6);
35
35
  const expandedHeight = this.isExpanded ? this.calculateHeight() : '32px';
36
- return (h(Host, { key: '4d04acd9a67ac1c302bd0ded5fdfe431d0cacf26' }, h("div", { key: 'bb873b67d0e4f05353af87e1518df9525d20a28b', class: {
36
+ return (h(Host, { key: 'cfdd5136f512aed23198d4a55c628ccd675f08c9' }, h("div", { key: 'bb5445f68b9d17268c6def7cfc4a2dd1fb971c53', class: {
37
37
  'color-grid': true,
38
38
  'expanded': this.isExpanded,
39
39
  }, style: {