@unlk/keymaster 1.1.2 → 1.1.3
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 +5 -0
- package/dist/css/keymaster.css +22 -60
- package/dist/css/keymaster.css.map +1 -1
- package/dist/css/keymaster.min.css +2 -2
- 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/keymaster.scss +0 -4
- package/scss/theme/_buttons.scss +1 -1
- package/scss/theme/_variables-overrides.scss +2 -12
- package/scss/theme/_variables.scss +0 -4
- package/scss/theme/mixins/_buttons.scss +3 -2
- package/fonts/NeulisNeue-Medium.woff +0 -0
- package/fonts/NeulisNeue-Medium.woff2 +0 -0
- package/fonts/NeulisNeue-MediumItalic.woff +0 -0
- package/fonts/NeulisNeue-MediumItalic.woff2 +0 -0
- package/fonts/STIXTwoText-Italic.ttf +0 -0
- package/fonts/STIXTwoText-Italic.woff +0 -0
- package/fonts/STIXTwoText-Italic.woff2 +0 -0
- package/fonts/WixMadeforDisplay-Bold.ttf +0 -0
- package/fonts/WixMadeforDisplay-Bold.woff +0 -0
- package/fonts/WixMadeforDisplay-Bold.woff2 +0 -0
- package/fonts/WixMadeforDisplay-Regular.ttf +0 -0
- package/fonts/WixMadeforDisplay-Regular.woff +0 -0
- package/fonts/WixMadeforDisplay-Regular.woff2 +0 -0
- package/scss/theme/_type.scss +0 -3
- package/scss/theme/_typography.scss +0 -31
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.1.
|
|
2
|
+
* Unlock Keymaster [object Object] v1.1.3 (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/keymaster.scss
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
@import "theme/utilities-overrides";
|
|
5
5
|
@import "theme/maps-overrides";
|
|
6
6
|
|
|
7
|
-
// Typography
|
|
8
|
-
@import "theme/typography";
|
|
9
|
-
|
|
10
7
|
// Assets
|
|
11
8
|
@import "assets/bootstrap5/bootstrap";
|
|
12
9
|
|
|
@@ -18,7 +15,6 @@
|
|
|
18
15
|
// Theme
|
|
19
16
|
@import "theme/variables";
|
|
20
17
|
@import "theme/root";
|
|
21
|
-
@import "theme/type";
|
|
22
18
|
@import "theme/buttons";
|
|
23
19
|
@import "theme/accordion";
|
|
24
20
|
@import "theme/alert";
|
package/scss/theme/_buttons.scss
CHANGED
|
@@ -10,8 +10,8 @@ $font-path-body: "../../fonts" !default;
|
|
|
10
10
|
$font-size-base: 1rem !default;
|
|
11
11
|
$font-size-lg: $font-size-base * 1.125 !default;
|
|
12
12
|
|
|
13
|
-
$font-family-base: "
|
|
14
|
-
$font-family-code: "
|
|
13
|
+
$font-family-base: "Gilroy" !default;
|
|
14
|
+
$font-family-code: "Gilroy" !default;
|
|
15
15
|
|
|
16
16
|
// Colors
|
|
17
17
|
$foundation: #1f1f4f !default;
|
|
@@ -337,16 +337,6 @@ $container-max-widths: (
|
|
|
337
337
|
// Body
|
|
338
338
|
$body-color: $foundation-500 !default;
|
|
339
339
|
|
|
340
|
-
// Headings
|
|
341
|
-
$headings-color: $foundation-500 !default;
|
|
342
|
-
$headings-font-family: "Neulis Neue" !default;
|
|
343
|
-
$headings-font-weight: var(--#{$prefix}font-weight-medium) !default;
|
|
344
|
-
|
|
345
|
-
// Display Headings
|
|
346
|
-
$display-font-family: "Neulis Neue" !default;
|
|
347
|
-
$display-font-weight: var(--#{$prefix}font-weight-medium) !default;
|
|
348
|
-
$display-line-height: 1.1 !default;
|
|
349
|
-
|
|
350
340
|
$font-sizes: (
|
|
351
341
|
1: $font-size-base * 1.25,
|
|
352
342
|
2: $font-size-base * 1.125,
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
@import "./variables-overrides";
|
|
2
2
|
|
|
3
|
-
// scss-docs-start type-variables
|
|
4
|
-
$blockquote-font-family: "STIXTwoText" !default;
|
|
5
|
-
// scss-docs-end type-variables
|
|
6
|
-
|
|
7
3
|
// scss-docs-start border-radius-variables
|
|
8
4
|
$border-radius-xs: rfs-value(4px) !default;
|
|
9
5
|
// scss-docs-end border-radius-variables
|
|
@@ -32,16 +32,17 @@
|
|
|
32
32
|
|
|
33
33
|
@mixin button-link-variant(
|
|
34
34
|
$color,
|
|
35
|
+
$btn-color: $body-color,
|
|
35
36
|
$hover-background: tint-color($color, 90%),
|
|
36
37
|
$active-background: shade-color($color, 20%),
|
|
37
38
|
$active-border: $color,
|
|
38
39
|
$active-color: $white,
|
|
39
40
|
$disabled-color: $gray-300
|
|
40
41
|
) {
|
|
41
|
-
--#{$prefix}btn-color: #{$color};
|
|
42
|
+
--#{$prefix}btn-color: #{$btn-color};
|
|
42
43
|
--#{$prefix}btn-bg: transparent;
|
|
43
44
|
--#{$prefix}btn-border-color: transparent;
|
|
44
|
-
--#{$prefix}btn-hover-color: #{$color};
|
|
45
|
+
--#{$prefix}btn-hover-color: #{$btn-color};
|
|
45
46
|
--#{$prefix}btn-hover-bg: #{$hover-background};
|
|
46
47
|
--#{$prefix}btn-hover-border-color: transparent;
|
|
47
48
|
--#{$prefix}btn-active-bg: #{$active-background};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/scss/theme/_type.scss
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "Wix MadeFor Display";
|
|
3
|
-
font-weight: 400;
|
|
4
|
-
src: url("#{$font-path-body}/WixMadeforDisplay-Regular.woff2") format("woff2"), url("#{$font-path-body}/WixMadeforDisplay-Regular.ttf") format("truetype");
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@font-face {
|
|
8
|
-
font-family: "Wix MadeFor Display";
|
|
9
|
-
font-weight: 700;
|
|
10
|
-
src: url("#{$font-path-body}/WixMadeforDisplay-Bold.woff2") format("woff2"), url("#{$font-path-body}/WixMadeforDisplay-Bold.ttf") format("truetype");
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@font-face {
|
|
14
|
-
font-family: STIXTwoText;
|
|
15
|
-
font-style: italic;
|
|
16
|
-
font-weight: 400;
|
|
17
|
-
src: url("#{$font-path-body}/STIXTwoText-Italic.woff2") format("woff2"), url("#{$font-path-body}/STIXTwoText-Italic.ttf") format("truetype");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@font-face {
|
|
21
|
-
font-family: "Neulis Neue";
|
|
22
|
-
font-weight: 500;
|
|
23
|
-
src: url("#{$font-path-body}/NeulisNeue-Medium.woff2") format("woff2"), url("#{$font-path-body}/NeulisNeue-Medium.woff") format("woff");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@font-face {
|
|
27
|
-
font-family: "Neulis Neue";
|
|
28
|
-
font-style: italic;
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
src: url("#{$font-path-body}/NeulisNeue-MediumItalic.woff2") format("woff2"), url("#{$font-path-body}/NeulisNeue-MediumItalic.woff") format("woff");
|
|
31
|
-
}
|