@unlk/keymaster 1.3.4 → 1.3.6

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Unlock Keymaster v1.3.4 (https://unlock-com.github.io/keymaster)
2
+ * Unlock Keymaster v1.3.6 (https://unlock-com.github.io/keymaster)
3
3
  * Copyright 2022-2025 Unlk Developers
4
4
  */
5
5
  (function (global, factory) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Unlock Keymaster v1.3.4 (https://unlock-com.github.io/keymaster)
2
+ * Unlock Keymaster v1.3.6 (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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlk/keymaster",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,4 +26,4 @@
26
26
  @import "theme/close";
27
27
  @import "theme/forms";
28
28
  @import "theme/pagination";
29
- @import "theme/ketch";
29
+ @import "theme/spinner";
@@ -0,0 +1,64 @@
1
+ .spinner-home {
2
+ position: relative;
3
+ display: inline-block;
4
+ width: 30px;
5
+ height: 30px;
6
+ animation: spin 1.25s ease-in-out infinite;
7
+
8
+ &::before {
9
+ position: absolute;
10
+ inset: 0;
11
+
12
+ /* polygon converted from your yellow <polygon> */
13
+ clip-path:
14
+ polygon(
15
+ 50% 47.36%,
16
+ 72.28% 0%,
17
+ 100% 35.7%,
18
+ 90.1% 80.1%,
19
+ 50% 100%,
20
+ 50% 47.36%
21
+ );
22
+ content: "";
23
+
24
+ background: $sunglow;
25
+ }
26
+
27
+ &::after {
28
+ position: absolute;
29
+ inset: 0;
30
+
31
+ /* polygon converted from your blue <polygon> */
32
+ clip-path:
33
+ polygon(
34
+ 72.28% 0%,
35
+ 27.75% 0%,
36
+ 0% 35.7%,
37
+ 9.9% 80.1%,
38
+ 50% 100%,
39
+ 50% 47.36%,
40
+ 72.28% 0%
41
+ );
42
+ content: "";
43
+
44
+ background: $electric;
45
+ }
46
+ }
47
+
48
+ @keyframes spin {
49
+ 0% {
50
+ transform: rotate(0deg);
51
+ }
52
+ 10% {
53
+ transform: rotate(-25deg);
54
+ }
55
+ 55% {
56
+ transform: rotate(395deg);
57
+ }
58
+ 70% {
59
+ transform: rotate(360deg);
60
+ }
61
+ 100% {
62
+ transform: rotate(360deg);
63
+ }
64
+ }
@@ -1,2 +1,2 @@
1
1
  // GENERATED FILE – do not edit manually
2
- $km-version: "1.3.4" !default;
2
+ $km-version: "1.3.6" !default;
@@ -1,61 +0,0 @@
1
- //stylelint-disable selector-class-pattern, declaration-no-important, selector-max-id
2
- .root__A7aXF * {
3
- font-family: $font-family-base !important;
4
- }
5
- //stylelint-disable-next-line
6
- #lanyard_root * {
7
- .\!ketch-bg-\[--k-preference-tabs-purposes-purposeListHeader-rejectAllButton-background-color\] {
8
- @extend .btn;
9
- @extend .btn-sm;
10
- @extend .btn-secondary;
11
- &:hover {
12
- --tw-gradient-to: none !important;
13
- --tw-gradient-from: none !important;
14
- --tw-gradient-stops: none !important;
15
- background-color: var(--#{$prefix}btn-hover-bg) !important;
16
- border-color: var(--#{$prefix}btn-hover-border-color) !important;
17
- }
18
- }
19
- .\!ketch-bg-\[--k-preference-tabs-purposes-purposeListHeader-acceptAllButton-background-color\] {
20
- @extend .btn;
21
- @extend .btn-sm;
22
- @extend .btn-action;
23
- &:hover {
24
- --tw-gradient-to: none !important;
25
- --tw-gradient-from: none !important;
26
- --tw-gradient-stops: none !important;
27
- background-color: var(--#{$prefix}btn-hover-bg) !important;
28
- border-color: var(--#{$prefix}btn-hover-border-color) !important;
29
- }
30
-
31
-
32
- }
33
- input,
34
- textarea {
35
- @extend .form-control;
36
- border-width: $input-border-width !important;
37
- }
38
- }
39
-
40
- #ketch-banner-button-primary {
41
- @extend .btn;
42
- @extend .btn-action;
43
- }
44
-
45
- button {
46
- font-weight: $btn-font-weight !important;
47
- }
48
-
49
- #ketch-banner-button-secondary {
50
- @extend .btn;
51
- @extend .btn-secondary;
52
- &:hover {
53
- --k-banner-buttons-secondary-background-color: var(--#{$prefix}btn-hover-bg);
54
- --tw-gradient-to: none !important;
55
- --tw-gradient-from: none !important;
56
- --tw-gradient-stops: none !important;
57
- background-color: var(--#{$prefix}btn-hover-bg) !important;
58
- border-color: var(--#{$prefix}btn-hover-border-color) !important;
59
- }
60
- }
61
- //stylelint-enable selector-class-pattern, declaration-no-important, selector-max-id