@unlk/keymaster 1.4.7 → 1.4.8

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.4.7 (https://keymaster.unlock.com)
2
+ * Unlock Keymaster v1.4.8 (https://keymaster.unlock.com)
3
3
  * Copyright 2022-2026 Unlk Developers
4
4
  */
5
5
  (function (global, factory) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Unlock Keymaster v1.4.7 (https://keymaster.unlock.com)
2
+ * Unlock Keymaster v1.4.8 (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 d(){return l||(l=1,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"})}(u.exports)),u.exports}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unlk/keymaster",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,17 +1,38 @@
1
1
  .accordion {
2
- --#{$prefix}accordion-box-shadow: #{$accordion-box-shadow};
3
2
  @include border-radius(var(--#{$prefix}accordion-border-radius));
4
- @include box-shadow(var(--#{$prefix}accordion-box-shadow));
5
- .accordion-button,
3
+ border: 0;
4
+ .accordion-button {
5
+ font-weight: $font-weight-medium;
6
+ &:not(.collapsed) {
7
+ box-shadow: none;
8
+ }
9
+ }
6
10
  .accordion-body {
7
- @extend .fs-1;
11
+ padding-top: 0;
12
+ @extend .fs-4;
13
+ }
14
+ .accordion-item {
15
+ border-top: 0;
16
+ border-right: 0;
17
+ border-left: 0;
18
+ }
19
+ :not(.accordion-alt) .accordion-item:last-child {
20
+ border-bottom: 0;
8
21
  }
9
22
  }
10
23
 
24
+ .accordion-flush {
25
+ --#{$prefix}accordion-box-shadow: #{$accordion-box-shadow};
26
+ @include box-shadow(var(--#{$prefix}accordion-box-shadow));
27
+ @include padding(0 $spacer 0);
28
+ @include border-radius($border-radius);
29
+ }
30
+
11
31
  .accordion-alt {
12
32
  --#{$prefix}accordion-alt-bg: #{$accordion-alt-bg};
13
33
  --#{$prefix}accordion-alt-btn-bg: #{$accordion-alt-button-bg};
14
34
  --#{$prefix}accordion-alt-border-width: #{$accordion-alt-border-width};
35
+ --#{$prefix}accordion-alt-border-active-width: #{$accordion-alt-border-active-width};
15
36
  --#{$prefix}accordion-alt-border-color: #{$accordion-alt-border-color};
16
37
  --#{$prefix}accordion-alt-border-radius: #{$accordion-alt-border-radius};
17
38
  --#{$prefix}accordion-alt-btn-icon-width: #{$accordion-alt-icon-width};
@@ -23,7 +44,7 @@
23
44
 
24
45
  .accordion-button {
25
46
  margin-bottom: 0;
26
- background-color: var(--#{$prefix}accordion-alt-btn-bg);
47
+ background-color: transparent;
27
48
  @include box-shadow(none);
28
49
 
29
50
  i {
@@ -34,7 +55,6 @@
34
55
 
35
56
  &:not(.collapsed) {
36
57
  @include box-shadow(none);
37
- color: var(--#{$prefix}accordion-alt-active-color);
38
58
 
39
59
  &::after {
40
60
  background-image: var(--#{$prefix}accordion-alt-btn-active-icon);
@@ -51,8 +71,19 @@
51
71
 
52
72
  > .accordion-item {
53
73
  background-color: var(--#{$prefix}accordion-alt-bg);
54
- border: var(--#{$prefix}accordion-alt-border-width) solid var(--#{$prefix}accordion-alt-border-color);
74
+ border: var(--#{$prefix}accordion-alt-border-width) solid transparent;
55
75
  @include border-radius(var(--#{$prefix}accordion-alt-border-radius));
76
+ @include transition(var(--#{$prefix}accordion-transition));
77
+ &:hover {
78
+ border-color: var(--#{$prefix}accordion-alt-border-color);
79
+ }
80
+ &:has(.accordion-collapse.show),
81
+ &:has(.accordion-collapse.collapsing) {
82
+ background-color: $white;
83
+ border-color: var(--#{$prefix}accordion-alt-border-color);
84
+ //stylelint-disable-next-line function-disallowed-list
85
+ box-shadow: 0 0 0 calc(var(--#{$prefix}accordion-alt-border-active-width) - var(--#{$prefix}accordion-alt-border-width)) var(--#{$prefix}accordion-alt-border-color);
86
+ }
56
87
 
57
88
  &:not(:last-child) {
58
89
  @include margin-bottom($spacer);
@@ -393,15 +393,17 @@ $border-radius-xxl: 1.5rem !default;
393
393
  $blockquote-font-size: $font-size-base * 3.5 !default;
394
394
 
395
395
  // Accordion
396
- $accordion-bg: $action-25 !default;
397
- $accordion-border-radius: var(--#{$prefix}border-radius-sm) !default;
398
- $accordion-button-bg: var(--#{$prefix}body-bg) !default;
399
- $accordion-button-active-bg: var(--#{$prefix}foundation) !default;
400
- $accordion-button-active-color: var(--#{$prefix}light) !default;
401
- $accordion-icon-color: $body-color !default;
402
- $accordion-icon-active-color: $light !default;
403
- $accordion-button-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='#{$accordion-icon-color}'><path d='M11.1,18.3c0.5,0.5,1.4,0.5,1.9,0L23.6,7.6c0.5-0.5,0.5-1.4,0-1.9c-0.5-0.5-1.4-0.5-1.9,0L12,15.5L2.3,5.7c-0.5-0.5-1.4-0.5-1.9,0s-0.5,1.4,0,1.9L11.1,18.3z'/></svg>") !default;
404
- $accordion-button-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='#{$accordion-icon-active-color}'><path d='M11.1,18.3c0.5,0.5,1.4,0.5,1.9,0L23.6,7.6c0.5-0.5,0.5-1.4,0-1.9c-0.5-0.5-1.4-0.5-1.9,0L12,15.5L2.3,5.7c-0.5-0.5-1.4-0.5-1.9,0s-0.5,1.4,0,1.9L11.1,18.3z'/></svg>") !default;
396
+ $accordion-bg: transparent !default;
397
+ $accordion-border-width: .0625rem !default;
398
+ $accordion-border-radius: 0 !default;
399
+ $accordion-button-bg: transparent !default;
400
+ $accordion-button-active-bg: transparent !default;
401
+ $accordion-button-active-color: $body-color !default;
402
+ $accordion-icon-color: $action !default;
403
+ $accordion-icon-active-color: $action !default;
404
+ $accordion-button-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='#{$accordion-icon-color}'><path d='M12.6923 1.69231C12.6923 0.75625 11.9361 0 11 0C10.0639 0 9.30769 0.75625 9.30769 1.69231V9.30769H1.69231C0.75625 9.30769 0 10.0639 0 11C0 11.9361 0.75625 12.6923 1.69231 12.6923H9.30769V20.3077C9.30769 21.2438 10.0639 22 11 22C11.9361 22 12.6923 21.2438 12.6923 20.3077V12.6923H20.3077C21.2438 12.6923 22 11.9361 22 11C22 10.0639 21.2438 9.30769 20.3077 9.30769H12.6923V1.69231Z'/></svg>") !default;
405
+ $accordion-button-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 25' fill='#{$accordion-icon-color}'><path d='M21.2143 12.5C21.2143 13.3643 20.512 14.0625 19.6428 14.0625H2.35713C1.48794 14.0625 0.785706 13.3643 0.785706 12.5C0.785706 11.6357 1.48794 10.9375 2.35713 10.9375H19.6428C20.512 10.9375 21.2143 11.6357 21.2143 12.5Z'/></svg>") !default;
406
+ $accordion-icon-width: 1rem !default;
405
407
  $accordion-button-focus-box-shadow: none !default;
406
408
 
407
409
  // Badges
@@ -8,13 +8,14 @@ $border-radius-xs: rfs-value(4px) !default;
8
8
 
9
9
  // scss-docs-start accordion-variables
10
10
  $accordion-box-shadow: $box-shadow !default;
11
- $accordion-alt-bg: $gray-100 !default;
12
- $accordion-alt-border-width: .125rem !default;
13
- $accordion-alt-border-color: $gray-200 !default;
14
- $accordion-alt-button-bg: $gray-100 !default;
15
- $accordion-alt-icon-width: 1.375rem !default;
11
+ $accordion-alt-bg: $action-50 !default;
12
+ $accordion-alt-border-width: .09375rem !default;
13
+ $accordion-alt-border-active-width: .125rem !default;
14
+ $accordion-alt-border-color: $action !default;
15
+ $accordion-alt-button-bg: $action-50 !default;
16
+ $accordion-alt-icon-width: 1rem !default;
16
17
  $accordion-alt-border-radius: var(--#{$prefix}border-radius-lg) !default;
17
- $accordion-alt-button-active-color: var(--#{$prefix}primary-text-emphasis) !default;
18
+ $accordion-alt-button-active-color: var(--#{$prefix}action) !default;
18
19
  $accordion-alt-button-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='#{$accordion-icon-color}'><path d='M12.6923 1.69231C12.6923 0.75625 11.9361 0 11 0C10.0639 0 9.30769 0.75625 9.30769 1.69231V9.30769H1.69231C0.75625 9.30769 0 10.0639 0 11C0 11.9361 0.75625 12.6923 1.69231 12.6923H9.30769V20.3077C9.30769 21.2438 10.0639 22 11 22C11.9361 22 12.6923 21.2438 12.6923 20.3077V12.6923H20.3077C21.2438 12.6923 22 11.9361 22 11C22 10.0639 21.2438 9.30769 20.3077 9.30769H12.6923V1.69231Z'/></svg>") !default;
19
20
  $accordion-alt-button-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 25' fill='#{$accordion-icon-color}'><path d='M21.2143 12.5C21.2143 13.3643 20.512 14.0625 19.6428 14.0625H2.35713C1.48794 14.0625 0.785706 13.3643 0.785706 12.5C0.785706 11.6357 1.48794 10.9375 2.35713 10.9375H19.6428C20.512 10.9375 21.2143 11.6357 21.2143 12.5Z'/></svg>") !default;
20
21
  // scss-docs-end accordion-variables
@@ -1,2 +1,2 @@
1
1
  // GENERATED FILE – do not edit manually
2
- $km-version: "1.4.7" !default;
2
+ $km-version: "1.4.8" !default;