@unlk/keymaster 1.2.7 → 1.2.9
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 +332 -46
- package/dist/css/keymaster.css.map +1 -1
- package/dist/css/keymaster.min.css +15 -3
- package/dist/css/keymaster.min.css.map +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/_buttons.scss +1 -5
- package/scss/theme/_fontawesome.scss +5 -2
- package/scss/theme/_modal.scss +36 -13
- package/scss/theme/mixins/_buttons.scss +3 -1
package/dist/js/keymaster.js
CHANGED
package/dist/js/keymaster.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Unlock Keymaster [object Object] v1.2.
|
|
2
|
+
* Unlock Keymaster [object Object] v1.2.9 (https://unlock-com.github.io/keymaster)
|
|
3
3
|
* Copyright 2022-2025 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 d(){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,d=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},h=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=h,e.isElement=c,e.isRTL=v,e.isVisible=d,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/_buttons.scss
CHANGED
|
@@ -27,10 +27,8 @@
|
|
|
27
27
|
@include button-variant(
|
|
28
28
|
$value,
|
|
29
29
|
$value,
|
|
30
|
-
$color: $body-color,
|
|
31
30
|
$hover-background: tint-color($value, $btn-hover-bg-shade-amount),
|
|
32
31
|
$hover-border: tint-color($value, $btn-hover-border-shade-amount),
|
|
33
|
-
$hover-color: $body-color,
|
|
34
32
|
$active-background: tint-color($value, $btn-active-bg-shade-amount),
|
|
35
33
|
$active-border: tint-color($value, $btn-active-border-shade-amount),
|
|
36
34
|
$disabled-color: $gray-950
|
|
@@ -55,8 +53,7 @@
|
|
|
55
53
|
$hover-background: tint-color($value, $btn-hover-bg-shade-amount),
|
|
56
54
|
$hover-border: tint-color($value, $btn-hover-border-shade-amount),
|
|
57
55
|
$active-background: tint-color($value, $btn-active-bg-shade-amount),
|
|
58
|
-
$active-border: tint-color($value, $btn-active-border-shade-amount)
|
|
59
|
-
$disabled-color: $gray-950
|
|
56
|
+
$active-border: tint-color($value, $btn-active-border-shade-amount)
|
|
60
57
|
);
|
|
61
58
|
} @else {
|
|
62
59
|
@include button-icon-variant(
|
|
@@ -78,7 +75,6 @@
|
|
|
78
75
|
$hover-border: $value,
|
|
79
76
|
$active-background: shade-color($value, $btn-active-bg-shade-amount),
|
|
80
77
|
$active-border: shade-color($value, $btn-active-border-shade-amount),
|
|
81
|
-
$disabled-color: $white
|
|
82
78
|
);
|
|
83
79
|
}
|
|
84
80
|
}
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
$font-path: $fa-font-path
|
|
4
4
|
);
|
|
5
5
|
@use "../assets/fontawesome/fontawesome";
|
|
6
|
-
@use "../assets/fontawesome/sharp-
|
|
6
|
+
@use "../assets/fontawesome/sharp-solid";
|
|
7
|
+
@use "../assets/fontawesome/sharp-regular";
|
|
7
8
|
@use "../assets/fontawesome/sharp-light";
|
|
9
|
+
@use "../assets/fontawesome/sharp-thin";
|
|
8
10
|
@use "../assets/fontawesome/sharp-duotone-solid";
|
|
9
|
-
@use "../assets/fontawesome/sharp-duotone-
|
|
11
|
+
@use "../assets/fontawesome/sharp-duotone-regular";
|
|
10
12
|
@use "../assets/fontawesome/sharp-duotone-light";
|
|
13
|
+
@use "../assets/fontawesome/sharp-duotone-thin";
|
|
11
14
|
@use "../assets/fontawesome/brands";
|
package/scss/theme/_modal.scss
CHANGED
|
@@ -50,9 +50,11 @@
|
|
|
50
50
|
--#{$prefix}modal-close-zindex: #{$zindex-content-modal-close};
|
|
51
51
|
--#{$prefix}modal-bg: #{$foundation};
|
|
52
52
|
--#{$prefix}modal-color: #{$content-modal-content-color};
|
|
53
|
+
--#{$prefix}heading-color: #{$white};
|
|
53
54
|
&.modal-white {
|
|
54
55
|
--#{$prefix}modal-bg: #{$white};
|
|
55
56
|
--#{$prefix}modal-color: #{$body-color};
|
|
57
|
+
--#{$prefix}heading-color: #{$headings-color};
|
|
56
58
|
}
|
|
57
59
|
.modal-header {
|
|
58
60
|
position: relative;
|
|
@@ -95,6 +97,15 @@
|
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
.modal-content {
|
|
100
|
+
.image {
|
|
101
|
+
img {
|
|
102
|
+
@include border-radius($border-radius-xl);
|
|
103
|
+
max-width: 350px;
|
|
104
|
+
max-height: 350px;
|
|
105
|
+
aspect-ratio: 1 / 1;
|
|
106
|
+
object-fit: cover;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
98
109
|
p {
|
|
99
110
|
margin-bottom: 0;
|
|
100
111
|
}
|
|
@@ -103,19 +114,31 @@
|
|
|
103
114
|
@include margin-right($spacer * 1.25);
|
|
104
115
|
@include margin-left($spacer * 1.25);
|
|
105
116
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
@each $bp, $value in $grid-breakpoints {
|
|
118
|
+
// Bootstrap only has sm/md/lg/xl/xxl versions
|
|
119
|
+
@if $bp != xs {
|
|
120
|
+
@include media-breakpoint-down($bp) {
|
|
121
|
+
&.modal-fullscreen-#{$bp}-down {
|
|
122
|
+
margin-right: 0;
|
|
123
|
+
margin-left: 0;
|
|
124
|
+
.modal-header {
|
|
125
|
+
position: relative;
|
|
126
|
+
padding: $spacer * .625;
|
|
127
|
+
margin-top: $spacer;
|
|
128
|
+
border-bottom: none;
|
|
129
|
+
.btn-close {
|
|
130
|
+
right: $spacer * 1.25;
|
|
131
|
+
background-image: none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.image {
|
|
135
|
+
width: 100%;
|
|
136
|
+
img {
|
|
137
|
+
display: block;
|
|
138
|
+
margin: 0 auto;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
119
142
|
}
|
|
120
143
|
}
|
|
121
144
|
}
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
--#{$prefix}btn-active-color: #{$active-color};
|
|
86
86
|
--#{$prefix}btn-active-bg: #{$active-background};
|
|
87
87
|
--#{$prefix}btn-active-border-color: #{$active-border};
|
|
88
|
+
--#{$prefix}btn-disabled-bg: #{$disabled-background};
|
|
88
89
|
--#{$prefix}btn-disabled-color: #{$disabled-color};
|
|
89
90
|
--#{$prefix}btn-disabled-border-color: #{$disabled-border};
|
|
90
91
|
}
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
$active-color: color-contrast($active-background),
|
|
101
102
|
$disabled-background: transparent,
|
|
102
103
|
$disabled-border: rgba($border, 1),
|
|
103
|
-
$disabled-color:
|
|
104
|
+
$disabled-color: rgba($color, 1)
|
|
104
105
|
) {
|
|
105
106
|
width: rfs-value(40px);
|
|
106
107
|
height: rfs-value(40px);
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
--#{$prefix}btn-active-color: #{$active-color};
|
|
118
119
|
--#{$prefix}btn-active-bg: #{$active-background};
|
|
119
120
|
--#{$prefix}btn-active-border-color: #{$active-border};
|
|
121
|
+
--#{$prefix}btn-disabled-bg: #{$disabled-background};
|
|
120
122
|
--#{$prefix}btn-disabled-color: #{$disabled-color};
|
|
121
123
|
--#{$prefix}btn-disabled-border-color: #{$disabled-border};
|
|
122
124
|
}
|