kritzel-stencil 0.4.19 → 0.4.21
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-Dn19mGl-.js → index-Xav9JFHg.js} +11 -47
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_47.cjs.entry.js +151 -119
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{schema.constants-CY0WWJYd.js → schema.constants-CjN-B633.js} +20 -44
- package/dist/cjs/stencil.cjs.js +2 -2
- package/dist/collection/classes/structures/app-state-map.structure.js +16 -6
- package/dist/collection/collection-manifest.json +1 -1
- 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 +18 -18
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +80 -80
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +43 -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-sync-indicator/kritzel-sync-indicator.css +50 -50
- package/dist/collection/components/shared/kritzel-sync-indicator/kritzel-sync-indicator.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 +50 -50
- 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 +3 -3
- 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 +4 -4
- 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-context-menu.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 +56 -56
- 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-icon.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-notification-card.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-sync-indicator.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-CLAz6RJc.js → p-2WiGyky4.js} +3 -3
- package/dist/components/{p-zG-WUBGF.js → p-4SPnZZkH.js} +4 -4
- package/dist/components/{p-MhQxGUvY.js → p-B-585egz.js} +3 -3
- package/dist/components/{p-C9_yBEoX.js → p-B43upypT.js} +10 -30
- package/dist/components/{p-CSKToqUl.js → p-B5SWPDuq.js} +4 -4
- package/dist/components/{p-Covorf4C.js → p-BFYtCsZu.js} +3 -3
- package/dist/components/{p-DYPA7jpg.js → p-BPsKYMH6.js} +2 -2
- package/dist/components/{p-BL0aCu3R.js → p-BdCrcQ0_.js} +9 -9
- package/dist/components/{p-Cx-L_28S.js → p-BoN700-O.js} +3 -3
- package/dist/components/{p-ME1sDz3f.js → p-BozrueXV.js} +2 -2
- package/dist/components/{p-D2VcPEtL.js → p-BrNsOp2v.js} +6 -6
- package/dist/components/{p-BXUx_C0N.js → p-BsLI_BWq.js} +2 -2
- package/dist/components/{p-dAXnRkjA.js → p-C98Eb3_R.js} +5 -5
- package/dist/components/{p-Bxi-Bm49.js → p-CAoN_STZ.js} +2 -2
- package/dist/components/{p-CSWCmyzb.js → p-CF8pLc07.js} +5 -5
- package/dist/components/{p-D3BzgkIE.js → p-CSPYkLLH.js} +2 -2
- package/dist/components/{p-Ck-87E2G.js → p-CSuU8frA.js} +1 -1
- package/dist/components/{p-Di--2boB.js → p-CXpv9Rxe.js} +3 -3
- package/dist/components/{p-Csxx9TbU.js → p-C_f_QElb.js} +104 -96
- package/dist/components/{p-o3NYKrVL.js → p-CaBbajU2.js} +3 -3
- package/dist/components/{p-3tBE7SyG.js → p-Cm33td2O.js} +2 -2
- package/dist/components/{p-vDCa_ZDm.js → p-CrHvaLRV.js} +3 -3
- package/dist/components/{p-DT_WBwsw.js → p-CwZ3KKFq.js} +6 -6
- package/dist/components/{p-BZZ3KRPk.js → p-CzW58DHM.js} +3 -3
- package/dist/components/{p-BrqSjRJN.js → p-Czhdc844.js} +3 -3
- package/dist/components/{p-BkXQL5Dl.js → p-D1rjfWgJ.js} +5 -5
- package/dist/components/{p-DPsbNStn.js → p-DB58Oa5V.js} +2 -2
- package/dist/components/{p-DafP9PAA.js → p-DBqoPgev.js} +2 -2
- package/dist/components/{p-BrA9NBEE.js → p-DDTMGbtA.js} +21 -21
- package/dist/components/{p-Dznwo6oc.js → p-DKGg-76-.js} +2 -2
- package/dist/components/{p-Dp1CD4gK.js → p-DVXTPI71.js} +2 -2
- package/dist/components/{p-QSyeAy8R.js → p-DX2nriaq.js} +2 -2
- package/dist/components/{p-CHoOe3FD.js → p-Df3BwVGy.js} +3 -3
- package/dist/components/{p-DcUIO14-.js → p-Dt7-I2Xz.js} +4 -4
- package/dist/components/{p-BShrnlam.js → p-DtnMdWWB.js} +2 -2
- package/dist/components/{p-Ch-KG9To.js → p-DwMqCX2P.js} +3 -3
- package/dist/components/{p-fSV6KVTC.js → p-GKmqCI8r.js} +3 -3
- package/dist/components/{p-CWAChRD5.js → p-HoO86l1o.js} +12 -12
- package/dist/components/{p-Qdo3E8dr.js → p-PjPPCHVL.js} +2 -2
- package/dist/components/{p-D6JycG-I.js → p-bAacqNHq.js} +3 -3
- package/dist/components/{p-DjXQxw9R.js → p-djJSnjAX.js} +3 -3
- package/dist/components/{p-b0J2ktAm.js → p-dsxHDlQ3.js} +7 -7
- package/dist/components/{p-BppcoKoo.js → p-eZXIu4yK.js} +5 -5
- package/dist/components/{p-BFYT03fw.js → p-fL9rl200.js} +3 -3
- package/dist/components/{p-1Q4VnThv.js → p-jIKskj3S.js} +3 -3
- package/dist/components/{p-D0Trc3IQ.js → p-vqEUQ-4Q.js} +5 -5
- package/dist/esm/{index-2va1Pk9z.js → index-Dhio9uis.js} +11 -47
- package/dist/esm/index.js +2 -2
- package/dist/esm/kritzel-active-users_47.entry.js +151 -119
- package/dist/esm/kritzel-brush-style.entry.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{schema.constants-DBvUmuDH.js → schema.constants-DfvqHmxc.js} +20 -44
- package/dist/esm/stencil.js +3 -3
- package/dist/stencil/index.esm.js +2 -2
- package/dist/stencil/{p-0250005e.entry.js → p-832b80e9.entry.js} +151 -119
- package/dist/stencil/{p-DBvUmuDH.js → p-DfvqHmxc.js} +20 -44
- package/dist/stencil/{p-2va1Pk9z.js → p-Dhio9uis.js} +11 -47
- package/dist/stencil/{p-df06ca3a.entry.js → p-fb32cd8f.entry.js} +2 -2
- package/dist/stencil/stencil.esm.js +4 -4
- package/dist/types/classes/structures/app-state-map.structure.d.ts +6 -0
- package/dist/types/components/core/kritzel-engine/kritzel-engine.d.ts +5 -0
- package/dist/types/constants/version.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -12
- package/loader/index.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +10 -10
|
@@ -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: '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": "
|
|
62
|
+
"path": "/home/runner/work/kritzel/kritzel/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": "[\
|
|
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: 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: '51621006f6b085db2b43accf52192f0674d2c50c' }, h("button", { key: '01ab2d96abe5ad34285e59f6fec66f6b21e91849', 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: '4b085139ea85ad9f836059f4cf2dde15b948e0e2' }))));
|
|
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: 'e797bfa6a2aed82d1913ec2f02f8b25a063564e5' }, h("div", { key: '5b62fcdbb2985b90fe0d7c7b65b507ec1c55e240', 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: '2d62717ebf81be93219ebda7071c0ba992d7441a', 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: '9a637b3a6946384a889f54dc3a635da7ff014439' }, h("div", { key: '4db8bbc7a234bfed26b60ed306a5f999875e2195', class: {
|
|
37
37
|
'color-grid': true,
|
|
38
38
|
'expanded': this.isExpanded,
|
|
39
39
|
}, style: {
|