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.
- 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 +112 -112
- 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 +18 -18
- 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 +51 -51
- 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-BmBebQMI.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 +112 -112
- 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-1a398b42.entry.js → p-307b09bd.entry.js} +112 -112
- 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
|
@@ -90,15 +90,15 @@ export class KritzelMasterDetail {
|
|
|
90
90
|
const selectedItem = this.items.find(item => item.id === this.selectedItemId);
|
|
91
91
|
const panelId = 'master-detail-panel';
|
|
92
92
|
const selectedTabId = selectedItem ? `tab-${selectedItem.id}` : undefined;
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '12ed4886b6b4d8935823d1b80ad7acd29dfccb2a' }, h("div", { key: '1ff2d39a3773ffbd15f8988f3270e8062f546870', class: {
|
|
94
94
|
'master-detail-container': true,
|
|
95
95
|
'is-mobile-detail-visible': this.showMobileDetail,
|
|
96
|
-
} }, h("nav", { key: '
|
|
96
|
+
} }, h("nav", { key: 'ffeabf0df0568914ad5c101439892daea3dfcedc', class: "master-menu", role: "tablist", "aria-orientation": "vertical", "aria-label": "Settings categories" }, this.items.map((item, index) => (h("button", { key: item.id, id: `tab-${item.id}`, ref: el => this.setTabRef(el, index), class: {
|
|
97
97
|
'menu-item': true,
|
|
98
98
|
'is-selected': item.id === this.selectedItemId,
|
|
99
99
|
'is-disabled': !!item.disabled,
|
|
100
100
|
'is-focused': index === this.focusedIndex,
|
|
101
|
-
}, role: "tab", "aria-selected": item.id === this.selectedItemId ? 'true' : 'false', "aria-controls": panelId, "aria-disabled": item.disabled ? 'true' : undefined, tabIndex: this.getTabIndex(item, index), disabled: item.disabled, onClick: () => this.handleItemClick(item), onKeyDown: e => this.handleKeyDown(e, item, index), onFocus: () => this.handleFocus(index), onBlur: this.handleBlur }, item.icon && (h("kritzel-icon", { name: item.icon, size: 20, class: "menu-item-icon" })), h("span", { class: "menu-item-label" }, item.label), h("span", { class: "menu-item-chevron", "aria-hidden": "true" }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "m9 18 6-6-6-6" }))))))), h("div", { key: '
|
|
101
|
+
}, role: "tab", "aria-selected": item.id === this.selectedItemId ? 'true' : 'false', "aria-controls": panelId, "aria-disabled": item.disabled ? 'true' : undefined, tabIndex: this.getTabIndex(item, index), disabled: item.disabled, onClick: () => this.handleItemClick(item), onKeyDown: e => this.handleKeyDown(e, item, index), onFocus: () => this.handleFocus(index), onBlur: this.handleBlur }, item.icon && (h("kritzel-icon", { name: item.icon, size: 20, class: "menu-item-icon" })), h("span", { class: "menu-item-label" }, item.label), h("span", { class: "menu-item-chevron", "aria-hidden": "true" }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "m9 18 6-6-6-6" }))))))), h("div", { key: '8c35914271516f61dbd9e1da5109b7f289b752af', id: panelId, class: "detail-panel", role: "tabpanel", "aria-labelledby": selectedTabId }, h("button", { key: 'f2d1891a42abc163e8b16b879a65801d3a99aa0b', class: "mobile-back-button", onClick: this.handleBackClick, "aria-label": "Back to menu" }, h("kritzel-icon", { key: '8e59502816ec6051cbc4d1a462ead75502485ae9', name: "chevron-left", size: 20, class: "mobile-back-icon" }), "Back"), h("slot", { key: '00d1d2a225d14474a23eb597e98124b0a9c0a369' })))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "kritzel-master-detail"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
background-color: var(--kritzel-menu-background-color, #ffffff);
|
|
6
|
-
width: var(--kritzel-menu-width, 200px);
|
|
7
|
-
padding: var(--kritzel-menu-padding, 8px);
|
|
8
|
-
border-radius: var(--kritzel-menu-border-radius, 12px);
|
|
9
|
-
box-shadow: var(--kritzel-menu-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
|
|
10
|
-
border: var(--kritzel-menu-border, 1px solid #ebebeb);
|
|
11
|
-
z-index: 2;
|
|
12
|
-
gap: var(--kritzel-menu-gap, 4px);
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
scrollbar-color: var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;
|
|
15
|
-
scrollbar-width: thin;
|
|
16
|
-
max-height: var(--kritzel-portal-max-height, 300px);
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
-webkit-tap-highlight-color: transparent;
|
|
19
|
-
outline: none;
|
|
20
|
-
clip-path: inset(0 round var(--kritzel-menu-border-radius, 12px));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host:focus-visible {
|
|
24
|
-
outline: auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.has-open-child-overlay {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: 0;
|
|
30
|
-
left: 0;
|
|
31
|
-
right: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
z-index: 3;
|
|
34
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
background-color: var(--kritzel-menu-background-color, #ffffff);
|
|
6
|
+
width: var(--kritzel-menu-width, 200px);
|
|
7
|
+
padding: var(--kritzel-menu-padding, 8px);
|
|
8
|
+
border-radius: var(--kritzel-menu-border-radius, 12px);
|
|
9
|
+
box-shadow: var(--kritzel-menu-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
|
|
10
|
+
border: var(--kritzel-menu-border, 1px solid #ebebeb);
|
|
11
|
+
z-index: 2;
|
|
12
|
+
gap: var(--kritzel-menu-gap, 4px);
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
scrollbar-color: var(--kritzel-global-scrollbar-thumb-color, #ebebeb) transparent;
|
|
15
|
+
scrollbar-width: thin;
|
|
16
|
+
max-height: var(--kritzel-portal-max-height, 300px);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
-webkit-tap-highlight-color: transparent;
|
|
19
|
+
outline: none;
|
|
20
|
+
clip-path: inset(0 round var(--kritzel-menu-border-radius, 12px));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host:focus-visible {
|
|
24
|
+
outline: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.has-open-child-overlay {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
z-index: 3;
|
|
34
|
+
}
|
|
@@ -51,7 +51,7 @@ export class KritzelMenu {
|
|
|
51
51
|
this.itemCloseChildMenu.emit(event.detail);
|
|
52
52
|
};
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '94d4324ed7e4c0db21bd647df470345e1aa218ea', tabIndex: 0, onClick: e => e.stopPropagation() }, this.openChildMenuItem && h("div", { key: '7223b9484ce9f2ffc0177d1249b13d97cb9acfde', class: "has-open-child-overlay", onClick: this.onOverlayClick }), this.items.map(item => (h("kritzel-menu-item", { key: item.id, "data-testid": `menu-item-${item.id}`, item: item, parent: this.parent, style: { pointerEvents: this.editingMenuItem && !item.isEditing ? 'none' : 'auto' }, onItemSelect: this.handleItemSelect, onItemSave: this.handleSave, onItemCancel: this.handleCancel, onItemToggleChildMenu: this.handleToggleChildMenu, onItemCloseChildMenu: this.handleCloseChildMenu })))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "kritzel-menu"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
width: 100%;
|
|
7
|
-
padding: var(--kritzel-menu-item-padding, 8px);
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
gap: 16px;
|
|
10
|
-
height: var(--kritzel-menu-item-height, 40px);
|
|
11
|
-
min-height: var(--kritzel-menu-item-min-height, 40px);
|
|
12
|
-
font-family: sans-serif;
|
|
13
|
-
font-size: var(--kritzel-menu-item-font-size, 14px);
|
|
14
|
-
color: var(--kritzel-menu-item-color, #333333);
|
|
15
|
-
border-radius: var(--kritzel-menu-item-border-radius, 12px);
|
|
16
|
-
-webkit-tap-highlight-color: transparent;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
:host:focus:not(:focus-visible) {
|
|
20
|
-
outline: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host(:hover) .menu-item-overlay,
|
|
24
|
-
:host(:focus-within) .menu-item-overlay {
|
|
25
|
-
background-color: var(--kritzel-menu-item-overlay-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host(.selected) {
|
|
29
|
-
background-color: var(--kritzel-menu-item-selected-background-color, #007aff);
|
|
30
|
-
color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host(.selected) .action-button {
|
|
34
|
-
color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:host(.selected.editing) {
|
|
38
|
-
background-color: var(--kritzel-menu-item-selected-background-color, #007aff);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host(.selected) .edit-input {
|
|
42
|
-
color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
43
|
-
caret-color: var(--kritzel-menu-item-input-caret-color-on-selected, #ffffff);
|
|
44
|
-
border-color: var(--kritzel-menu-item-input-border-color-on-selected, #ffffff);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:host(.selected) .action-button kritzel-icon {
|
|
48
|
-
--kritzel-icon-color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
kritzel-icon {
|
|
52
|
-
--kritzel-icon-color: var(--kritzel-menu-item-color, #333333);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:host(.selected) kritzel-icon {
|
|
56
|
-
--kritzel-icon-color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:host(.selected) .edit-input::selection {
|
|
60
|
-
background-color: var(--kritzel-menu-item-input-selection-color-on-selected, rgba(255, 255, 255, 0.3));
|
|
61
|
-
color: var(--kritzel-menu-item-input-selection-text-color-on-selected, #ffffff);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:host(.editing) {
|
|
65
|
-
background-color: var(--kritzel-menu-item-editing-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host(.disabled) {
|
|
69
|
-
opacity: 0.5;
|
|
70
|
-
pointer-events: none !important;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:host(.child-open) {
|
|
74
|
-
background-color: var(--kritzel-menu-item-child-open-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
:host(.child-open.selected) {
|
|
78
|
-
background-color: var(--kritzel-menu-item-selected-background-color, #007aff);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.menu-item-overlay {
|
|
82
|
-
position: absolute;
|
|
83
|
-
inset: 0;
|
|
84
|
-
background-color: transparent;
|
|
85
|
-
z-index: 0;
|
|
86
|
-
pointer-events: none;
|
|
87
|
-
border-radius: var(--kritzel-menu-item-border-radius, 12px);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.menu-item-content {
|
|
91
|
-
display: flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
gap: 8px;
|
|
94
|
-
position: relative;
|
|
95
|
-
z-index: 1;
|
|
96
|
-
height: 100%;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.menu-item-content span {
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
line-height: 0;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.left {
|
|
106
|
-
justify-content: flex-start;
|
|
107
|
-
flex: 1;
|
|
108
|
-
min-width: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.left>div {
|
|
112
|
-
white-space: nowrap;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
text-overflow: ellipsis;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.right {
|
|
118
|
-
justify-content: flex-end;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.edit-input {
|
|
122
|
-
flex: 1;
|
|
123
|
-
height: var(--kritzel-menu-item-input-height, 24px);
|
|
124
|
-
padding: 0;
|
|
125
|
-
background-color: transparent;
|
|
126
|
-
border-radius: 0;
|
|
127
|
-
border: none;
|
|
128
|
-
border-bottom: var(--kritzel-menu-item-input-border, 1px solid #ccc);
|
|
129
|
-
font-size: var(--kritzel-menu-item-font-size, 14px);
|
|
130
|
-
width: 100%;
|
|
131
|
-
min-width: 0;
|
|
132
|
-
box-sizing: border-box;
|
|
133
|
-
outline: none;
|
|
134
|
-
color: inherit;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.edit-input {
|
|
138
|
-
caret-color: var(--kritzel-menu-item-input-caret-color, currentColor);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.edit-input::selection {
|
|
142
|
-
background-color: var(--kritzel-menu-item-input-selection-color, #007bff);
|
|
143
|
-
color: var(--kritzel-menu-item-input-selection-text-color, #ffffff);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.action-button {
|
|
147
|
-
padding: 4px;
|
|
148
|
-
border-radius: 8px;
|
|
149
|
-
border: none;
|
|
150
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
background-color: transparent;
|
|
155
|
-
background: transparent;
|
|
156
|
-
-webkit-tap-highlight-color: transparent;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.action-button:hover,
|
|
160
|
-
.action-button:focus {
|
|
161
|
-
background-color: var(--kritzel-menu-item-button-hover-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.action-button.disabled {
|
|
165
|
-
pointer-events: none;
|
|
166
|
-
opacity: 0.5;
|
|
1
|
+
:host {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding: var(--kritzel-menu-item-padding, 8px);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
gap: 16px;
|
|
10
|
+
height: var(--kritzel-menu-item-height, 40px);
|
|
11
|
+
min-height: var(--kritzel-menu-item-min-height, 40px);
|
|
12
|
+
font-family: sans-serif;
|
|
13
|
+
font-size: var(--kritzel-menu-item-font-size, 14px);
|
|
14
|
+
color: var(--kritzel-menu-item-color, #333333);
|
|
15
|
+
border-radius: var(--kritzel-menu-item-border-radius, 12px);
|
|
16
|
+
-webkit-tap-highlight-color: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host:focus:not(:focus-visible) {
|
|
20
|
+
outline: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host(:hover) .menu-item-overlay,
|
|
24
|
+
:host(:focus-within) .menu-item-overlay {
|
|
25
|
+
background-color: var(--kritzel-menu-item-overlay-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(.selected) {
|
|
29
|
+
background-color: var(--kritzel-menu-item-selected-background-color, #007aff);
|
|
30
|
+
color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(.selected) .action-button {
|
|
34
|
+
color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host(.selected.editing) {
|
|
38
|
+
background-color: var(--kritzel-menu-item-selected-background-color, #007aff);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(.selected) .edit-input {
|
|
42
|
+
color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
43
|
+
caret-color: var(--kritzel-menu-item-input-caret-color-on-selected, #ffffff);
|
|
44
|
+
border-color: var(--kritzel-menu-item-input-border-color-on-selected, #ffffff);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host(.selected) .action-button kritzel-icon {
|
|
48
|
+
--kritzel-icon-color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
kritzel-icon {
|
|
52
|
+
--kritzel-icon-color: var(--kritzel-menu-item-color, #333333);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host(.selected) kritzel-icon {
|
|
56
|
+
--kritzel-icon-color: var(--kritzel-menu-item-selected-color, #ffffff);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host(.selected) .edit-input::selection {
|
|
60
|
+
background-color: var(--kritzel-menu-item-input-selection-color-on-selected, rgba(255, 255, 255, 0.3));
|
|
61
|
+
color: var(--kritzel-menu-item-input-selection-text-color-on-selected, #ffffff);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host(.editing) {
|
|
65
|
+
background-color: var(--kritzel-menu-item-editing-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host(.disabled) {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
pointer-events: none !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host(.child-open) {
|
|
74
|
+
background-color: var(--kritzel-menu-item-child-open-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(.child-open.selected) {
|
|
78
|
+
background-color: var(--kritzel-menu-item-selected-background-color, #007aff);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.menu-item-overlay {
|
|
82
|
+
position: absolute;
|
|
83
|
+
inset: 0;
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
z-index: 0;
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
border-radius: var(--kritzel-menu-item-border-radius, 12px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.menu-item-content {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
position: relative;
|
|
95
|
+
z-index: 1;
|
|
96
|
+
height: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.menu-item-content span {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
line-height: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.left {
|
|
106
|
+
justify-content: flex-start;
|
|
107
|
+
flex: 1;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.left>div {
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.right {
|
|
118
|
+
justify-content: flex-end;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.edit-input {
|
|
122
|
+
flex: 1;
|
|
123
|
+
height: var(--kritzel-menu-item-input-height, 24px);
|
|
124
|
+
padding: 0;
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
border-radius: 0;
|
|
127
|
+
border: none;
|
|
128
|
+
border-bottom: var(--kritzel-menu-item-input-border, 1px solid #ccc);
|
|
129
|
+
font-size: var(--kritzel-menu-item-font-size, 14px);
|
|
130
|
+
width: 100%;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
box-sizing: border-box;
|
|
133
|
+
outline: none;
|
|
134
|
+
color: inherit;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.edit-input {
|
|
138
|
+
caret-color: var(--kritzel-menu-item-input-caret-color, currentColor);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.edit-input::selection {
|
|
142
|
+
background-color: var(--kritzel-menu-item-input-selection-color, #007bff);
|
|
143
|
+
color: var(--kritzel-menu-item-input-selection-text-color, #ffffff);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.action-button {
|
|
147
|
+
padding: 4px;
|
|
148
|
+
border-radius: 8px;
|
|
149
|
+
border: none;
|
|
150
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
background-color: transparent;
|
|
155
|
+
background: transparent;
|
|
156
|
+
-webkit-tap-highlight-color: transparent;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.action-button:hover,
|
|
160
|
+
.action-button:focus {
|
|
161
|
+
background-color: var(--kritzel-menu-item-button-hover-background-color, hsl(0, 0%, 0%, 4.3%));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.action-button.disabled {
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
opacity: 0.5;
|
|
167
167
|
}
|
|
@@ -90,12 +90,12 @@ export class KritzelMenuItem {
|
|
|
90
90
|
];
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '6c65413fe40115ed31536bba7b060b52e13bbcd3', tabIndex: this.item.isDisabled ? -1 : 0, class: {
|
|
94
94
|
'selected': this.item.isSelected,
|
|
95
95
|
'editing': this.item.isEditing,
|
|
96
96
|
'disabled': this.item.isDisabled,
|
|
97
97
|
'child-open': this.item.isChildMenuOpen,
|
|
98
|
-
}, onClick: this.handleItemSelect }, h("div", { key: '
|
|
98
|
+
}, onClick: this.handleItemSelect }, h("div", { key: '2fcc8bd4c9ed7445e5c32c9d466975175657f11c', class: "menu-item-overlay" }), this.item.isEditing ? this.renderEditMode() : this.renderViewMode()));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "kritzel-menu-item"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.input-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 6px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.input-label {
|
|
12
|
-
font-size: 14px;
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
color: var(--kritzel-numeric-input-label-color, #333333);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.input-wrapper {
|
|
18
|
-
display: flex;
|
|
19
|
-
position: relative;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.numeric-input {
|
|
23
|
-
flex: 1;
|
|
24
|
-
padding: 8px 36px 8px 12px;
|
|
25
|
-
border: 1px solid var(--kritzel-numeric-input-border-color, #ebebeb);
|
|
26
|
-
border-radius: var(--kritzel-numeric-input-border-radius, 6px);
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
color: var(--kritzel-numeric-input-text-color, #333333);
|
|
29
|
-
background-color: var(--kritzel-numeric-input-input-background, #ffffff);
|
|
30
|
-
outline: none;
|
|
31
|
-
transition: border-color 150ms ease;
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Hide native spin buttons */
|
|
36
|
-
.numeric-input::-webkit-outer-spin-button,
|
|
37
|
-
.numeric-input::-webkit-inner-spin-button {
|
|
38
|
-
-webkit-appearance: none;
|
|
39
|
-
margin: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.numeric-input[type='number'] {
|
|
43
|
-
-moz-appearance: textfield;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.numeric-input::selection {
|
|
47
|
-
background-color: var(--kritzel-numeric-input-selection-background, #007AFF);
|
|
48
|
-
color: var(--kritzel-numeric-input-selection-color, #ffffff);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.numeric-input:hover {
|
|
52
|
-
border-color: var(--kritzel-numeric-input-hover-border-color, #cccccc);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.numeric-input:focus {
|
|
56
|
-
border-color: var(--kritzel-numeric-input-focus-border-color, #0066ff);
|
|
57
|
-
border-width: 2px;
|
|
58
|
-
padding: 7px 35px 7px 11px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.spinner-buttons {
|
|
62
|
-
position: absolute;
|
|
63
|
-
right: 1px;
|
|
64
|
-
top: 1px;
|
|
65
|
-
bottom: 1px;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
border-left: 1px solid var(--kritzel-numeric-input-border-color, #ebebeb);
|
|
69
|
-
border-radius: 0 var(--kritzel-numeric-input-spinner-border-radius, 5px) var(--kritzel-numeric-input-spinner-border-radius, 5px) 0;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.spinner-button {
|
|
74
|
-
flex: 1;
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
width: 24px;
|
|
79
|
-
padding: 0;
|
|
80
|
-
border: none;
|
|
81
|
-
background-color: var(--kritzel-numeric-input-spinner-background, #f5f5f5);
|
|
82
|
-
color: var(--kritzel-numeric-input-spinner-color, #666666);
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
transition: background-color 150ms ease;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.spinner-button:hover {
|
|
88
|
-
background-color: var(--kritzel-numeric-input-spinner-hover-background, #ebebeb);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.spinner-button:active {
|
|
92
|
-
background-color: var(--kritzel-numeric-input-spinner-active-background, #dddddd);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.spinner-up {
|
|
96
|
-
border-bottom: 1px solid var(--kritzel-numeric-input-border-color, #ebebeb);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.spinner-icon {
|
|
100
|
-
width: 10px;
|
|
101
|
-
height: 6px;
|
|
102
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.input-container {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.input-label {
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
color: var(--kritzel-numeric-input-label-color, #333333);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.input-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.numeric-input {
|
|
23
|
+
flex: 1;
|
|
24
|
+
padding: 8px 36px 8px 12px;
|
|
25
|
+
border: 1px solid var(--kritzel-numeric-input-border-color, #ebebeb);
|
|
26
|
+
border-radius: var(--kritzel-numeric-input-border-radius, 6px);
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
color: var(--kritzel-numeric-input-text-color, #333333);
|
|
29
|
+
background-color: var(--kritzel-numeric-input-input-background, #ffffff);
|
|
30
|
+
outline: none;
|
|
31
|
+
transition: border-color 150ms ease;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Hide native spin buttons */
|
|
36
|
+
.numeric-input::-webkit-outer-spin-button,
|
|
37
|
+
.numeric-input::-webkit-inner-spin-button {
|
|
38
|
+
-webkit-appearance: none;
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.numeric-input[type='number'] {
|
|
43
|
+
-moz-appearance: textfield;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.numeric-input::selection {
|
|
47
|
+
background-color: var(--kritzel-numeric-input-selection-background, #007AFF);
|
|
48
|
+
color: var(--kritzel-numeric-input-selection-color, #ffffff);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.numeric-input:hover {
|
|
52
|
+
border-color: var(--kritzel-numeric-input-hover-border-color, #cccccc);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.numeric-input:focus {
|
|
56
|
+
border-color: var(--kritzel-numeric-input-focus-border-color, #0066ff);
|
|
57
|
+
border-width: 2px;
|
|
58
|
+
padding: 7px 35px 7px 11px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.spinner-buttons {
|
|
62
|
+
position: absolute;
|
|
63
|
+
right: 1px;
|
|
64
|
+
top: 1px;
|
|
65
|
+
bottom: 1px;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
border-left: 1px solid var(--kritzel-numeric-input-border-color, #ebebeb);
|
|
69
|
+
border-radius: 0 var(--kritzel-numeric-input-spinner-border-radius, 5px) var(--kritzel-numeric-input-spinner-border-radius, 5px) 0;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.spinner-button {
|
|
74
|
+
flex: 1;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
width: 24px;
|
|
79
|
+
padding: 0;
|
|
80
|
+
border: none;
|
|
81
|
+
background-color: var(--kritzel-numeric-input-spinner-background, #f5f5f5);
|
|
82
|
+
color: var(--kritzel-numeric-input-spinner-color, #666666);
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
transition: background-color 150ms ease;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.spinner-button:hover {
|
|
88
|
+
background-color: var(--kritzel-numeric-input-spinner-hover-background, #ebebeb);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.spinner-button:active {
|
|
92
|
+
background-color: var(--kritzel-numeric-input-spinner-active-background, #dddddd);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.spinner-up {
|
|
96
|
+
border-bottom: 1px solid var(--kritzel-numeric-input-border-color, #ebebeb);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.spinner-icon {
|
|
100
|
+
width: 10px;
|
|
101
|
+
height: 6px;
|
|
102
|
+
}
|