kritzel-stencil 0.4.29 → 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.
- package/LICENSE +21 -21
- package/LICENSE.md +49 -49
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_46.cjs.entry.js +113 -113
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
- package/dist/cjs/{schema.constants-CcvqL5nJ.js → schema.constants-0ySX0cg3.js} +6 -6
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +160 -160
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +19 -19
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +80 -80
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +21 -21
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.css +29 -29
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.js +2 -2
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
- package/dist/collection/components/shared/kritzel-button/kritzel-button.css +73 -73
- package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
- package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
- package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +209 -209
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
- package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
- package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +2 -2
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
- package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
- package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +166 -166
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
- package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
- package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +112 -112
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +331 -331
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +6 -6
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
- package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.css +54 -54
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +58 -58
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
- package/dist/collection/components/ui/kritzel-notification-card/kritzel-notification-card.css +101 -101
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +137 -137
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
- package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/cursor.helper.js +6 -6
- package/dist/collection/helpers/svg-export.helper.js +41 -41
- package/dist/components/index.js +2 -2
- package/dist/components/kritzel-active-users.js +1 -1
- package/dist/components/kritzel-avatar.js +1 -1
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-back-to-content.js +1 -1
- package/dist/components/kritzel-brush-style.js +2 -2
- package/dist/components/kritzel-button.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-current-user-dialog.js +1 -1
- package/dist/components/kritzel-current-user.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-dialog.js +1 -1
- package/dist/components/kritzel-dropdown.js +1 -1
- package/dist/components/kritzel-editor.js +52 -52
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/kritzel-export.js +1 -1
- package/dist/components/kritzel-font-family.js +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-input.js +1 -1
- package/dist/components/kritzel-line-endings.js +1 -1
- package/dist/components/kritzel-loading-overlay.js +1 -1
- package/dist/components/kritzel-login-dialog.js +1 -1
- package/dist/components/kritzel-master-detail.js +1 -1
- package/dist/components/kritzel-menu-item.js +1 -1
- package/dist/components/kritzel-menu.js +1 -1
- package/dist/components/kritzel-more-menu.js +1 -1
- package/dist/components/kritzel-numeric-input.js +1 -1
- package/dist/components/kritzel-opacity-slider.js +1 -1
- package/dist/components/kritzel-pill-tabs.js +1 -1
- package/dist/components/kritzel-portal.js +1 -1
- package/dist/components/kritzel-settings.js +1 -1
- package/dist/components/kritzel-shape-fill.js +1 -1
- package/dist/components/kritzel-share-dialog.js +1 -1
- package/dist/components/kritzel-slide-toggle.js +1 -1
- package/dist/components/kritzel-split-button.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tool-config.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-watermark.js +1 -1
- package/dist/components/kritzel-workspace-manager.js +1 -1
- package/dist/components/kritzel-zoom-panel.js +1 -1
- package/dist/components/{p-DTB3ykgO.js → p-B65Z2K81.js} +1 -1
- package/dist/components/{p-4uoSa0Xl.js → p-B6cwfdo3.js} +2 -2
- package/dist/components/{p-ChPs27Fd.js → p-BBA9F6Bi.js} +4 -4
- package/dist/components/{p-Dvn6ad4a.js → p-BCrNNQKI.js} +1 -1
- package/dist/components/{p-CoXN583u.js → p-BGJ-1pXX.js} +3 -3
- package/dist/components/{p-CBrn5AIB.js → p-BTRiw0VC.js} +1 -1
- package/dist/components/{p-DoxFuOy1.js → p-Bu6TjCs0.js} +2 -2
- package/dist/components/{p-Ce1j1-Hg.js → p-BvpI1eL4.js} +3 -3
- package/dist/components/{p-CAXR5-S9.js → p-BwC3bHai.js} +4 -4
- package/dist/components/{p-DX2nriaq.js → p-C2NV0SgA.js} +1 -1
- package/dist/components/{p-BPzdPKWE.js → p-CAGey5Xt.js} +3 -3
- package/dist/components/{p-C0FEC_gS.js → p-C_4J10HD.js} +2 -2
- package/dist/components/{p-NOWtUeeQ.js → p-C_fBqaep.js} +1 -1
- package/dist/components/{p-Ba0c-tu2.js → p-CzibK3BJ.js} +2 -2
- package/dist/components/{p-Cm33td2O.js → p-D0SKmg_J.js} +1 -1
- package/dist/components/{p-OUl5CA4Y.js → p-D497dAd-.js} +1 -1
- package/dist/components/{p-B_7o3oSY.js → p-DC7noKZD.js} +7 -7
- package/dist/components/{p-CXpv9Rxe.js → p-DGcug5rp.js} +2 -2
- package/dist/components/{p-DkHYY72B.js → p-DIE74Wkf.js} +2 -2
- package/dist/components/{p-DOTdJ3JQ.js → p-DKkQMbfN.js} +3 -3
- package/dist/components/{p-DnmVD1Mz.js → p-DKuxmP3T.js} +2 -2
- package/dist/components/{p-bAacqNHq.js → p-DQX5iqJB.js} +2 -2
- package/dist/components/{p-DUmLsjKb.js → p-DTzNzE9j.js} +1 -1
- package/dist/components/{p-Df3BwVGy.js → p-D_XWdMC3.js} +2 -2
- package/dist/components/{p-B38_9BJg.js → p-Da56LiC2.js} +1 -1
- package/dist/components/{p-CeffYwAK.js → p-DaE8xcJ8.js} +19 -19
- package/dist/components/{p-CYwoBiqy.js → p-DcG-UAoL.js} +50 -50
- package/dist/components/{p-BeSKOETx.js → p-Dm6TZsys.js} +2 -2
- package/dist/components/{p-DhabvHJM.js → p-DuyNKEne.js} +3 -3
- package/dist/components/{p-DFMZEarE.js → p-DyWg1f0y.js} +1 -1
- package/dist/components/{p-DN9p3G9K.js → p-FDwfHj3U.js} +3 -3
- package/dist/components/{p-DK0anxtL.js → p-P70dtHet.js} +1 -1
- package/dist/components/{p-CucCT7Qn.js → p-R6NeY_RA.js} +2 -2
- package/dist/components/{p-BFYtCsZu.js → p-XOXeNvvd.js} +2 -2
- package/dist/components/{p-jIKskj3S.js → p-ZwkkxMNZ.js} +1 -1
- package/dist/components/{p-BprEDRpA.js → p-auUCvUOc.js} +2 -2
- package/dist/components/{p-D0Ed8epW.js → p-b5XSApfh.js} +4 -4
- package/dist/components/{p-djJSnjAX.js → p-fp1y_eAN.js} +2 -2
- package/dist/components/{p-Dpm75DfV.js → p-mCRS0Vii.js} +5 -5
- package/dist/components/{p-DOl-95VY.js → p-ml3LLPFB.js} +10 -10
- package/dist/components/{p-D_cyY7Nd.js → p-xFCFDper.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/kritzel-active-users_46.entry.js +113 -113
- package/dist/esm/kritzel-brush-style.entry.js +1 -1
- package/dist/esm/{schema.constants-De_S50eB.js → schema.constants-D3OqvrMh.js} +6 -6
- package/dist/stencil/index.esm.js +2 -2
- package/dist/stencil/{p-3af3095e.entry.js → p-307b09bd.entry.js} +113 -113
- package/dist/stencil/{p-fb32cd8f.entry.js → p-905f7ab4.entry.js} +1 -1
- package/dist/stencil/{p-De_S50eB.js → p-D3OqvrMh.js} +6 -6
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/constants/version.d.ts +1 -1
- package/package.json +2 -1
- 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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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": "/
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
36
|
+
return (h(Host, { key: '285c0db424b154d1b4ebca2fd4447bb248bc50f5' }, h("div", { key: '703abc3074b886895e963992cbc3084357c06a15', class: {
|
|
37
37
|
'color-grid': true,
|
|
38
38
|
'expanded': this.isExpanded,
|
|
39
39
|
}, style: {
|