@unlk/keymaster 1.7.2 → 1.7.4
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/CHANGELOG.md +14 -0
- package/dist/css/keymaster.css +65 -46
- package/dist/css/keymaster.css.map +1 -1
- package/dist/css/keymaster.min.css +1 -1
- package/dist/js/keymaster.js +1 -1
- package/dist/js/keymaster.min.js +1 -1
- package/package.json +1 -1
- package/scss/theme/_modal.scss +40 -2
- package/scss/theme/_variables-overrides.scss +2 -6
- package/scss/theme/_version.scss +1 -1
- package/scss/theme/forms/_floating-labels.scss +9 -0
package/dist/js/keymaster.js
CHANGED
package/dist/js/keymaster.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Unlock Keymaster v1.7.
|
|
2
|
+
* Unlock Keymaster v1.7.4 (https://keymaster.unlock.com)
|
|
3
3
|
* Copyright 2022-2026 Unlk Developers
|
|
4
4
|
*/
|
|
5
5
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).keymaster={})}(this,function(e){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),n}var i,s={exports:{}},o={exports:{}},r={exports:{}};function a(){return i||(i=1,function(e){e.exports=function(){const e=new Map,t={set(t,n,i){e.has(t)||e.set(t,new Map);const s=e.get(t);(s.has(n)||0===s.size)&&s.set(n,i)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const i=e.get(t);i.delete(n),0===i.size&&e.delete(t)}};return t}()}(r)),r.exports}var l,c={exports:{}},u={exports:{}};function h(){return l||(l=1,function(e,t){!function(e){const t=1e6,n=1e3,i="transitionend",s=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),o=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),r=e=>{do{e+=Math.floor(Math.random()*t)}while(document.getElementById(e));return e},a=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const s=Number.parseFloat(t),o=Number.parseFloat(i);return s||o?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*n):0},l=e=>{e.dispatchEvent(new Event(i))},c=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),u=e=>c(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(s(e)):null,h=e=>{if(!c(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},d=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),f=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?f(e.parentNode):null},p=()=>{},g=e=>{e.offsetHeight},m=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_=[],b=e=>{"loading"===document.readyState?(_.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of _)e()}),_.push(e)):e()},v=()=>"rtl"===document.documentElement.dir,y=e=>{b(()=>{const t=m();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}})},w=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,E=(e,t,n=!0)=>{if(!n)return void w(e);const s=5,o=a(t)+s;let r=!1;const c=({target:n})=>{n===t&&(r=!0,t.removeEventListener(i,c),w(e))};t.addEventListener(i,c),setTimeout(()=>{r||l(t)},o)},A=(e,t,n,i)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[s-1]:e[0]:(o+=n?1:-1,i&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])};e.defineJQueryPlugin=y,e.execute=w,e.executeAfterTransition=E,e.findShadowRoot=f,e.getElement=u,e.getNextActiveElement=A,e.getTransitionDurationFromElement=a,e.getUID=r,e.getjQuery=m,e.isDisabled=d,e.isElement=c,e.isRTL=v,e.isVisible=h,e.noop=p,e.onDOMContentLoaded=b,e.parseSelector=s,e.reflow=g,e.toType=o,e.triggerTransitionEnd=l,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t)}(0,u.exports)),u.exports}
|
package/package.json
CHANGED
package/scss/theme/_modal.scss
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
.modal {
|
|
2
|
+
.modal-dialog:not(.modal-dialog-content):not(.modal-dialog-media) {
|
|
3
|
+
.modal-body {
|
|
4
|
+
padding-top: 0;
|
|
5
|
+
padding-bottom: 0;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
.modal-backdrop,
|
|
2
11
|
.offcanvas-backdrop {
|
|
3
12
|
backdrop-filter: blur(3px) saturate(100%);
|
|
@@ -5,10 +14,12 @@
|
|
|
5
14
|
|
|
6
15
|
.modal-dialog-media {
|
|
7
16
|
--#{$prefix}modal-close-zindex: #{$zindex-media-modal-close};
|
|
17
|
+
|
|
8
18
|
.modal-header {
|
|
9
19
|
position: relative;
|
|
10
20
|
padding: 0;
|
|
11
21
|
border-bottom: none;
|
|
22
|
+
|
|
12
23
|
.btn-close {
|
|
13
24
|
position: absolute;
|
|
14
25
|
right: -1em;
|
|
@@ -17,6 +28,7 @@
|
|
|
17
28
|
height: $btn-close-media-height;
|
|
18
29
|
text-shadow: 0 0 rfs-value(1px) $gray-400;
|
|
19
30
|
opacity: .97;
|
|
31
|
+
|
|
20
32
|
&::before,
|
|
21
33
|
&::after {
|
|
22
34
|
position: absolute;
|
|
@@ -25,19 +37,26 @@
|
|
|
25
37
|
content: "";
|
|
26
38
|
background: center / 100% 100% no-repeat;
|
|
27
39
|
}
|
|
40
|
+
|
|
28
41
|
&::before {
|
|
29
42
|
background: transparent var(--#{$prefix}btn-close-media-bg) center / $btn-close-media-width 100% no-repeat; // include transparent for button elements
|
|
30
43
|
opacity: 1;
|
|
31
44
|
}
|
|
45
|
+
|
|
32
46
|
&::after {
|
|
33
47
|
background: transparent var(--#{$prefix}btn-close-media-bg-hover) center / $btn-close-media-width 100% no-repeat; // include transparent for button elements
|
|
34
48
|
opacity: 0;
|
|
35
49
|
@include transition(opacity .25s ease);
|
|
36
50
|
}
|
|
51
|
+
|
|
37
52
|
&:hover {
|
|
38
53
|
opacity: 1;
|
|
39
|
-
|
|
54
|
+
|
|
55
|
+
&::after {
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
40
58
|
}
|
|
59
|
+
|
|
41
60
|
@include media-breakpoint-down(xl) {
|
|
42
61
|
right: rfs-value(-4px);
|
|
43
62
|
width: rfs-value(10px);
|
|
@@ -45,6 +64,7 @@
|
|
|
45
64
|
}
|
|
46
65
|
}
|
|
47
66
|
}
|
|
67
|
+
|
|
48
68
|
@include media-breakpoint-down(sm) {
|
|
49
69
|
@include margin-right($spacer * 1.25);
|
|
50
70
|
@include margin-left($spacer * 1.25);
|
|
@@ -56,15 +76,18 @@
|
|
|
56
76
|
--#{$prefix}modal-bg: #{$foundation};
|
|
57
77
|
--#{$prefix}modal-color: #{$content-modal-content-color};
|
|
58
78
|
--#{$prefix}heading-color: #{$white};
|
|
79
|
+
|
|
59
80
|
&.modal-white {
|
|
60
81
|
--#{$prefix}modal-bg: #{$white};
|
|
61
82
|
--#{$prefix}modal-color: #{$body-color};
|
|
62
83
|
--#{$prefix}heading-color: #{$headings-color};
|
|
63
84
|
}
|
|
85
|
+
|
|
64
86
|
.modal-header {
|
|
65
87
|
position: relative;
|
|
66
88
|
padding: 0;
|
|
67
89
|
border-bottom: none;
|
|
90
|
+
|
|
68
91
|
.btn-close {
|
|
69
92
|
position: absolute;
|
|
70
93
|
right: -1em;
|
|
@@ -73,6 +96,7 @@
|
|
|
73
96
|
height: $btn-close-content-height;
|
|
74
97
|
text-shadow: 0 0 rfs-value(1px) $gray-400;
|
|
75
98
|
opacity: .97;
|
|
99
|
+
|
|
76
100
|
&::before,
|
|
77
101
|
&::after {
|
|
78
102
|
position: absolute;
|
|
@@ -81,19 +105,26 @@
|
|
|
81
105
|
content: "";
|
|
82
106
|
background: center / 100% 100% no-repeat;
|
|
83
107
|
}
|
|
108
|
+
|
|
84
109
|
&::before {
|
|
85
110
|
background: transparent var(--#{$prefix}btn-close-content-bg) center / $btn-close-content-width 100% no-repeat; // include transparent for button elements
|
|
86
111
|
opacity: 1;
|
|
87
112
|
}
|
|
113
|
+
|
|
88
114
|
&::after {
|
|
89
115
|
background: transparent var(--#{$prefix}btn-close-content-bg-hover) center / $btn-close-content-width 100% no-repeat; // include transparent for button elements
|
|
90
116
|
opacity: 0;
|
|
91
117
|
@include transition(opacity .25s ease);
|
|
92
118
|
}
|
|
119
|
+
|
|
93
120
|
&:hover {
|
|
94
121
|
opacity: 1;
|
|
95
|
-
|
|
122
|
+
|
|
123
|
+
&::after {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
96
126
|
}
|
|
127
|
+
|
|
97
128
|
@include media-breakpoint-down(xl) {
|
|
98
129
|
right: rfs-value(-4px);
|
|
99
130
|
width: rfs-value(10px);
|
|
@@ -101,6 +132,7 @@
|
|
|
101
132
|
}
|
|
102
133
|
}
|
|
103
134
|
}
|
|
135
|
+
|
|
104
136
|
.modal-content {
|
|
105
137
|
.image {
|
|
106
138
|
img {
|
|
@@ -111,10 +143,12 @@
|
|
|
111
143
|
object-fit: cover;
|
|
112
144
|
}
|
|
113
145
|
}
|
|
146
|
+
|
|
114
147
|
p {
|
|
115
148
|
margin-bottom: 0;
|
|
116
149
|
}
|
|
117
150
|
}
|
|
151
|
+
|
|
118
152
|
@include media-breakpoint-down(sm) {
|
|
119
153
|
@include margin-right($spacer * 1.25);
|
|
120
154
|
@include margin-left($spacer * 1.25);
|
|
@@ -126,18 +160,22 @@
|
|
|
126
160
|
&.modal-fullscreen-#{$bp}-down {
|
|
127
161
|
margin-right: 0;
|
|
128
162
|
margin-left: 0;
|
|
163
|
+
|
|
129
164
|
.modal-header {
|
|
130
165
|
position: relative;
|
|
131
166
|
padding: $spacer * .625;
|
|
132
167
|
margin-top: $spacer;
|
|
133
168
|
border-bottom: none;
|
|
169
|
+
|
|
134
170
|
.btn-close {
|
|
135
171
|
right: $spacer * 1.25;
|
|
136
172
|
background-image: none;
|
|
137
173
|
}
|
|
138
174
|
}
|
|
175
|
+
|
|
139
176
|
.image {
|
|
140
177
|
width: 100%;
|
|
178
|
+
|
|
141
179
|
img {
|
|
142
180
|
display: block;
|
|
143
181
|
margin: 0 auto;
|
|
@@ -360,16 +360,11 @@ $table-variants: (
|
|
|
360
360
|
"dark": $dark,
|
|
361
361
|
) !default;
|
|
362
362
|
|
|
363
|
-
// Borders
|
|
364
|
-
$border-width: 2px !default;
|
|
365
|
-
$border-color: $gray-400 !default;
|
|
366
|
-
|
|
367
363
|
$component-active-bg: $action !default;
|
|
368
364
|
$focus-ring-opacity: .25 !default;
|
|
369
365
|
$focus-ring-color: rgba($action, $focus-ring-opacity) !default;
|
|
370
366
|
|
|
371
367
|
// Buttons + Forms
|
|
372
|
-
$input-btn-border-width: .125rem !default;
|
|
373
368
|
$input-focus-border-color: $component-active-bg !default;
|
|
374
369
|
|
|
375
370
|
// Buttons
|
|
@@ -414,6 +409,8 @@ $badge-border-radius: var(--#{$prefix}border-radius-pill) !default;
|
|
|
414
409
|
// Modal
|
|
415
410
|
$modal-backdrop-bg: rgba($action-200, .15) !default;
|
|
416
411
|
$modal-backdrop-opacity: 1 !default;
|
|
412
|
+
$modal-header-border-width: 0 !default;
|
|
413
|
+
$modal-footer-border-width: 0 !default;
|
|
417
414
|
|
|
418
415
|
// Carousel
|
|
419
416
|
$carousel-control-color: $action !default;
|
|
@@ -432,7 +429,6 @@ $tooltip-bg: var(--#{$prefix}primary) !default;
|
|
|
432
429
|
$progress-border-radius: var(--#{$prefix}border-radius-xs) !default;
|
|
433
430
|
|
|
434
431
|
// Inputs
|
|
435
|
-
$input-border-color: $gray-600 !default;
|
|
436
432
|
$input-placeholder-color: $gray-600 !default;
|
|
437
433
|
$input-border-radius: var(--#{$prefix}border-radius-xs) !default;
|
|
438
434
|
$input-border-radius-sm: var(--#{$prefix}border-radius-xs) !default;
|
package/scss/theme/_version.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// GENERATED FILE – do not edit manually
|
|
2
|
-
$km-version: "1.7.
|
|
2
|
+
$km-version: "1.7.4" !default;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
.form-floating {
|
|
2
|
+
> .form-control,
|
|
3
|
+
> .form-control-plaintext {
|
|
4
|
+
&::placeholder {
|
|
5
|
+
@include transition(color .2s ease);
|
|
6
|
+
}
|
|
7
|
+
&:focus::placeholder {
|
|
8
|
+
color: rgba(var(--#{$prefix}body-color-rgb), .4);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
2
11
|
// stylelint-disable-next-line selector-no-qualifying-type
|
|
3
12
|
> .form-select:not(:focus):has(option[value=""]:checked) {
|
|
4
13
|
text-indent: 100%;
|