kritzel-stencil 0.4.30 → 0.4.31

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 (193) hide show
  1. package/LICENSE +21 -21
  2. package/LICENSE.md +49 -49
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/kritzel-active-users_46.cjs.entry.js +112 -112
  5. package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
  6. package/dist/cjs/{schema.constants-CcvqL5nJ.js → schema.constants-0ySX0cg3.js} +6 -6
  7. package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
  8. package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
  9. package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
  10. package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
  11. package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +160 -160
  12. package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +18 -18
  13. package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +80 -80
  14. package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +21 -21
  15. package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.css +29 -29
  16. package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.js +2 -2
  17. package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
  18. package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
  19. package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
  20. package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
  21. package/dist/collection/components/shared/kritzel-button/kritzel-button.css +73 -73
  22. package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
  23. package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
  24. package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
  25. package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
  26. package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
  27. package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +209 -209
  28. package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
  29. package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
  30. package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
  31. package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
  32. package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
  33. package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +2 -2
  34. package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
  35. package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
  36. package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
  37. package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
  38. package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
  39. package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
  40. package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
  41. package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
  42. package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
  43. package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
  44. package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
  45. package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +166 -166
  46. package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
  47. package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
  48. package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
  49. package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
  50. package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
  51. package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
  52. package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
  53. package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
  54. package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
  55. package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
  56. package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
  57. package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
  58. package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
  59. package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
  60. package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
  61. package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
  62. package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
  63. package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
  64. package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
  65. package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
  66. package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
  67. package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +112 -112
  68. package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +331 -331
  69. package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +6 -6
  70. package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
  71. package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
  72. package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
  73. package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
  74. package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
  75. package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
  76. package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.css +54 -54
  77. package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
  78. package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
  79. package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
  80. package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +58 -58
  81. package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
  82. package/dist/collection/components/ui/kritzel-notification-card/kritzel-notification-card.css +101 -101
  83. package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +137 -137
  84. package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
  85. package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
  86. package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
  87. package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
  88. package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
  89. package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
  90. package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
  91. package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
  92. package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
  93. package/dist/collection/constants/version.js +1 -1
  94. package/dist/collection/helpers/cursor.helper.js +6 -6
  95. package/dist/collection/helpers/svg-export.helper.js +41 -41
  96. package/dist/components/index.js +2 -2
  97. package/dist/components/kritzel-active-users.js +1 -1
  98. package/dist/components/kritzel-avatar.js +1 -1
  99. package/dist/components/kritzel-awareness-cursors.js +1 -1
  100. package/dist/components/kritzel-back-to-content.js +1 -1
  101. package/dist/components/kritzel-brush-style.js +2 -2
  102. package/dist/components/kritzel-button.js +1 -1
  103. package/dist/components/kritzel-color-palette.js +1 -1
  104. package/dist/components/kritzel-color.js +1 -1
  105. package/dist/components/kritzel-controls.js +1 -1
  106. package/dist/components/kritzel-current-user-dialog.js +1 -1
  107. package/dist/components/kritzel-current-user.js +1 -1
  108. package/dist/components/kritzel-cursor-trail.js +1 -1
  109. package/dist/components/kritzel-dialog.js +1 -1
  110. package/dist/components/kritzel-dropdown.js +1 -1
  111. package/dist/components/kritzel-editor.js +51 -51
  112. package/dist/components/kritzel-engine.js +1 -1
  113. package/dist/components/kritzel-export.js +1 -1
  114. package/dist/components/kritzel-font-family.js +1 -1
  115. package/dist/components/kritzel-font-size.js +1 -1
  116. package/dist/components/kritzel-font.js +1 -1
  117. package/dist/components/kritzel-input.js +1 -1
  118. package/dist/components/kritzel-line-endings.js +1 -1
  119. package/dist/components/kritzel-loading-overlay.js +1 -1
  120. package/dist/components/kritzel-login-dialog.js +1 -1
  121. package/dist/components/kritzel-master-detail.js +1 -1
  122. package/dist/components/kritzel-menu-item.js +1 -1
  123. package/dist/components/kritzel-menu.js +1 -1
  124. package/dist/components/kritzel-more-menu.js +1 -1
  125. package/dist/components/kritzel-numeric-input.js +1 -1
  126. package/dist/components/kritzel-opacity-slider.js +1 -1
  127. package/dist/components/kritzel-pill-tabs.js +1 -1
  128. package/dist/components/kritzel-portal.js +1 -1
  129. package/dist/components/kritzel-settings.js +1 -1
  130. package/dist/components/kritzel-shape-fill.js +1 -1
  131. package/dist/components/kritzel-share-dialog.js +1 -1
  132. package/dist/components/kritzel-slide-toggle.js +1 -1
  133. package/dist/components/kritzel-split-button.js +1 -1
  134. package/dist/components/kritzel-stroke-size.js +1 -1
  135. package/dist/components/kritzel-tool-config.js +1 -1
  136. package/dist/components/kritzel-tooltip.js +1 -1
  137. package/dist/components/kritzel-utility-panel.js +1 -1
  138. package/dist/components/kritzel-watermark.js +1 -1
  139. package/dist/components/kritzel-workspace-manager.js +1 -1
  140. package/dist/components/kritzel-zoom-panel.js +1 -1
  141. package/dist/components/{p-DTB3ykgO.js → p-B65Z2K81.js} +1 -1
  142. package/dist/components/{p-4uoSa0Xl.js → p-B6cwfdo3.js} +2 -2
  143. package/dist/components/{p-ChPs27Fd.js → p-BBA9F6Bi.js} +4 -4
  144. package/dist/components/{p-Dvn6ad4a.js → p-BCrNNQKI.js} +1 -1
  145. package/dist/components/{p-CoXN583u.js → p-BGJ-1pXX.js} +3 -3
  146. package/dist/components/{p-CBrn5AIB.js → p-BTRiw0VC.js} +1 -1
  147. package/dist/components/{p-DoxFuOy1.js → p-Bu6TjCs0.js} +2 -2
  148. package/dist/components/{p-Ce1j1-Hg.js → p-BvpI1eL4.js} +3 -3
  149. package/dist/components/{p-CAXR5-S9.js → p-BwC3bHai.js} +4 -4
  150. package/dist/components/{p-DX2nriaq.js → p-C2NV0SgA.js} +1 -1
  151. package/dist/components/{p-BPzdPKWE.js → p-CAGey5Xt.js} +3 -3
  152. package/dist/components/{p-C0FEC_gS.js → p-C_4J10HD.js} +2 -2
  153. package/dist/components/{p-NOWtUeeQ.js → p-C_fBqaep.js} +1 -1
  154. package/dist/components/{p-Ba0c-tu2.js → p-CzibK3BJ.js} +2 -2
  155. package/dist/components/{p-Cm33td2O.js → p-D0SKmg_J.js} +1 -1
  156. package/dist/components/{p-OUl5CA4Y.js → p-D497dAd-.js} +1 -1
  157. package/dist/components/{p-BmBebQMI.js → p-DC7noKZD.js} +7 -7
  158. package/dist/components/{p-CXpv9Rxe.js → p-DGcug5rp.js} +2 -2
  159. package/dist/components/{p-DkHYY72B.js → p-DIE74Wkf.js} +2 -2
  160. package/dist/components/{p-DOTdJ3JQ.js → p-DKkQMbfN.js} +3 -3
  161. package/dist/components/{p-DnmVD1Mz.js → p-DKuxmP3T.js} +2 -2
  162. package/dist/components/{p-bAacqNHq.js → p-DQX5iqJB.js} +2 -2
  163. package/dist/components/{p-DUmLsjKb.js → p-DTzNzE9j.js} +1 -1
  164. package/dist/components/{p-Df3BwVGy.js → p-D_XWdMC3.js} +2 -2
  165. package/dist/components/{p-B38_9BJg.js → p-Da56LiC2.js} +1 -1
  166. package/dist/components/{p-CeffYwAK.js → p-DaE8xcJ8.js} +19 -19
  167. package/dist/components/{p-CYwoBiqy.js → p-DcG-UAoL.js} +50 -50
  168. package/dist/components/{p-BeSKOETx.js → p-Dm6TZsys.js} +2 -2
  169. package/dist/components/{p-DhabvHJM.js → p-DuyNKEne.js} +3 -3
  170. package/dist/components/{p-DFMZEarE.js → p-DyWg1f0y.js} +1 -1
  171. package/dist/components/{p-DN9p3G9K.js → p-FDwfHj3U.js} +3 -3
  172. package/dist/components/{p-DK0anxtL.js → p-P70dtHet.js} +1 -1
  173. package/dist/components/{p-CucCT7Qn.js → p-R6NeY_RA.js} +2 -2
  174. package/dist/components/{p-BFYtCsZu.js → p-XOXeNvvd.js} +2 -2
  175. package/dist/components/{p-jIKskj3S.js → p-ZwkkxMNZ.js} +1 -1
  176. package/dist/components/{p-BprEDRpA.js → p-auUCvUOc.js} +2 -2
  177. package/dist/components/{p-D0Ed8epW.js → p-b5XSApfh.js} +4 -4
  178. package/dist/components/{p-djJSnjAX.js → p-fp1y_eAN.js} +2 -2
  179. package/dist/components/{p-Dpm75DfV.js → p-mCRS0Vii.js} +5 -5
  180. package/dist/components/{p-DOl-95VY.js → p-ml3LLPFB.js} +10 -10
  181. package/dist/components/{p-D_cyY7Nd.js → p-xFCFDper.js} +1 -1
  182. package/dist/esm/index.js +2 -2
  183. package/dist/esm/kritzel-active-users_46.entry.js +112 -112
  184. package/dist/esm/kritzel-brush-style.entry.js +1 -1
  185. package/dist/esm/{schema.constants-De_S50eB.js → schema.constants-D3OqvrMh.js} +6 -6
  186. package/dist/stencil/index.esm.js +2 -2
  187. package/dist/stencil/{p-1a398b42.entry.js → p-307b09bd.entry.js} +112 -112
  188. package/dist/stencil/{p-fb32cd8f.entry.js → p-905f7ab4.entry.js} +1 -1
  189. package/dist/stencil/{p-De_S50eB.js → p-D3OqvrMh.js} +6 -6
  190. package/dist/stencil/stencil.esm.js +1 -1
  191. package/dist/types/constants/version.d.ts +1 -1
  192. package/package.json +2 -1
  193. package/readme.md +10 -10
@@ -1,58 +1,58 @@
1
- :host {
2
- display: inline-flex;
3
- justify-content: center;
4
- align-items: center;
5
- border-radius: 50%;
6
- overflow: hidden;
7
- user-select: none;
8
- flex-shrink: 0;
9
- }
10
-
11
- .avatar-image {
12
- display: block;
13
- width: 100%;
14
- height: 100%;
15
- object-fit: cover;
16
- border-radius: 50%;
17
- }
18
-
19
- .avatar-initials {
20
- display: flex;
21
- justify-content: center;
22
- align-items: center;
23
- width: 100%;
24
- height: 100%;
25
- border-radius: 50%;
26
- color: var(--kritzel-avatar-initials-color, #ffffff);
27
- font-weight: var(--kritzel-avatar-initials-font-weight, 500);
28
- font-family: var(--kritzel-avatar-initials-font-family, sans-serif);
29
- line-height: 1;
30
- }
31
-
32
- .avatar-default {
33
- display: flex;
34
- justify-content: center;
35
- align-items: center;
36
- width: 100%;
37
- height: 100%;
38
- border-radius: 50%;
39
- background-color: var(--kritzel-avatar-default-background, #e0e0e0);
40
- color: var(--kritzel-avatar-default-color, #9e9e9e);
41
- }
42
-
43
- .avatar-default svg {
44
- width: 60%;
45
- height: 60%;
46
- }
47
-
48
- :host(.has-image) {
49
- border: var(--kritzel-avatar-border, none);
50
- }
51
-
52
- :host(.has-initials) {
53
- border: var(--kritzel-avatar-border, none);
54
- }
55
-
56
- :host(.has-default) {
57
- border: var(--kritzel-avatar-border, none);
58
- }
1
+ :host {
2
+ display: inline-flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ border-radius: 50%;
6
+ overflow: hidden;
7
+ user-select: none;
8
+ flex-shrink: 0;
9
+ }
10
+
11
+ .avatar-image {
12
+ display: block;
13
+ width: 100%;
14
+ height: 100%;
15
+ object-fit: cover;
16
+ border-radius: 50%;
17
+ }
18
+
19
+ .avatar-initials {
20
+ display: flex;
21
+ justify-content: center;
22
+ align-items: center;
23
+ width: 100%;
24
+ height: 100%;
25
+ border-radius: 50%;
26
+ color: var(--kritzel-avatar-initials-color, #ffffff);
27
+ font-weight: var(--kritzel-avatar-initials-font-weight, 500);
28
+ font-family: var(--kritzel-avatar-initials-font-family, sans-serif);
29
+ line-height: 1;
30
+ }
31
+
32
+ .avatar-default {
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ width: 100%;
37
+ height: 100%;
38
+ border-radius: 50%;
39
+ background-color: var(--kritzel-avatar-default-background, #e0e0e0);
40
+ color: var(--kritzel-avatar-default-color, #9e9e9e);
41
+ }
42
+
43
+ .avatar-default svg {
44
+ width: 60%;
45
+ height: 60%;
46
+ }
47
+
48
+ :host(.has-image) {
49
+ border: var(--kritzel-avatar-border, none);
50
+ }
51
+
52
+ :host(.has-initials) {
53
+ border: var(--kritzel-avatar-border, none);
54
+ }
55
+
56
+ :host(.has-default) {
57
+ border: var(--kritzel-avatar-border, none);
58
+ }
@@ -81,16 +81,16 @@ export class KritzelAvatar {
81
81
  height: `${this.size}px`,
82
82
  fontSize: `${Math.round(this.size * 0.4)}px`,
83
83
  };
84
- return (h(Host, { key: 'f199b56955b749b868ad8e7940ef3114f1109c37', style: containerStyles, class: {
84
+ return (h(Host, { key: '2aa6089fe51ec346fbd5446bad4190b0f9970f89', style: containerStyles, class: {
85
85
  'has-image': !!showImage,
86
86
  'has-initials': !!showInitials,
87
87
  'has-default': !!showDefaultIcon,
88
- }, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: '621a58cc965cf6d037f8515e1263bd5bf4098ab0', src: imageUrl, alt: "", class: "avatar-image", ref: (el) => {
88
+ }, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: 'c7c9670f6c3596c6a1e60fea1309da3306fb40f0', src: imageUrl, alt: "", class: "avatar-image", ref: (el) => {
89
89
  if (el) {
90
90
  el.referrerPolicy = 'no-referrer';
91
91
  el.crossOrigin = 'anonymous';
92
92
  }
93
- }, onError: this.handleImageError })), showInitials && (h("span", { key: '28ff2e8b191c2d476c0f40dd57a2c8ec330ba104', class: "avatar-initials", style: { backgroundColor: this.getBackgroundColor() } }, initials)), showDefaultIcon && (h("span", { key: 'd2ef56b2fca2a609b5b99bb8d7e8747308ab9699', class: "avatar-default" }, h("svg", { key: '1c1d6e6e306a9938f559016eeb77a67aae42f536', viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: '2c6af53101c20e137756d1194a3bac04c931066d', d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }))))));
93
+ }, onError: this.handleImageError })), showInitials && (h("span", { key: 'e9899002b0e210d77c8eeb7f4e359bc518c82076', class: "avatar-initials", style: { backgroundColor: this.getBackgroundColor() } }, initials)), showDefaultIcon && (h("span", { key: '359b57ab41b24ce2f7163ff782cca167b3078133', class: "avatar-default" }, h("svg", { key: '26f60f955453804ef40fac4cb2982c650c15d236', viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: '9d872cdf173250f36596eb76c45bdae437f801a7', d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }))))));
94
94
  }
95
95
  static get is() { return "kritzel-avatar"; }
96
96
  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: '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 })))));
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 })))));
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": "/home/runner/work/kritzel/kritzel/libs/kritzel-stencil/src/components/shared/kritzel-brush-style/kritzel-brush-style.tsx",
62
+ "path": "C:/Projects/kritzel-private/libs/kritzel-stencil/src/components/shared/kritzel-brush-style/kritzel-brush-style.tsx",
63
63
  "id": "src/components/shared/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": "[\n { value: 'pen', label: 'Pen' },\n { value: 'highlighter', label: 'Highlighter' },\n ]"
75
+ "defaultValue": "[\r\n { value: 'pen', label: 'Pen' },\r\n { value: 'highlighter', label: 'Highlighter' },\r\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: 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: 'b7d78dad25d41116ac6368c1ff2cd41ee28d9cdc' }, h("button", { key: '88cfd3674e63cd82ea5874205237415a540307b6', type: this.type, class: {
18
+ return (h(Host, { key: 'a5f90834739101961dd128dba592cf53b877bb82' }, h("button", { key: '19cbfaeb85e14fbbc76b517ace1a1e084adbb65d', 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: 'a7f4fd923800f66bc7ea438f2cbcdfde81b11ae1' }))));
22
+ }, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '6e4c7cdfb295aa0dc79e494e5fdeb5527ab80383' }))));
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: '17b5c44e1defe8f3fb41632391be093a12bb899b' }, h("div", { key: '545f4c4fd62dea22a4a5f36108a51d30c57f2652', class: "checkerboard-bg", style: {
41
+ return (h(Host, { key: '230d6fa9bc597920e9b2ebc97d597d4f57df0b92' }, h("div", { key: '3146aac9869f34762c7f86ed8882d62ef01248ce', 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: 'bbcb68f6e5f00d9a33b316d52ac86e49911e463c', class: {
47
+ } }, h("div", { key: 'bddf0776144a6bdfca9c005708fa1467e244546b', 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: '5f25a2ead76106ba2ef9762b4d212d5a9d7ac2a8' }, h("div", { key: '764cc6a55cc1865aaf1c501ee89a161f74fefa1c', class: {
36
+ return (h(Host, { key: '285c0db424b154d1b4ebca2fd4447bb248bc50f5' }, h("div", { key: '703abc3074b886895e963992cbc3084357c06a15', class: {
37
37
  'color-grid': true,
38
38
  'expanded': this.isExpanded,
39
39
  }, style: {