@unlk/keymaster 1.4.8 → 1.5.0

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.8 (https://keymaster.unlock.com)
2
+ * Unlock Keymaster v1.5.0 (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.8 (https://keymaster.unlock.com)
2
+ * Unlock Keymaster v1.5.0 (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.8",
3
+ "version": "1.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,6 +1,10 @@
1
1
  .accordion {
2
2
  @include border-radius(var(--#{$prefix}accordion-border-radius));
3
3
  border: 0;
4
+ &:not(.accordion-alt):not(.accordion-flush) {
5
+ padding-right: 0;
6
+ padding-left: 0;
7
+ }
4
8
  .accordion-button {
5
9
  font-weight: $font-weight-medium;
6
10
  &:not(.collapsed) {
@@ -16,7 +20,7 @@
16
20
  border-right: 0;
17
21
  border-left: 0;
18
22
  }
19
- :not(.accordion-alt) .accordion-item:last-child {
23
+ &:not(.accordion-alt) .accordion-item:last-child {
20
24
  border-bottom: 0;
21
25
  }
22
26
  }
@@ -24,8 +28,9 @@
24
28
  .accordion-flush {
25
29
  --#{$prefix}accordion-box-shadow: #{$accordion-box-shadow};
26
30
  @include box-shadow(var(--#{$prefix}accordion-box-shadow));
27
- @include padding(0 $spacer 0);
31
+ @include padding($spacer $spacer * 2);
28
32
  @include border-radius($border-radius);
33
+ background-color: $white;
29
34
  }
30
35
 
31
36
  .accordion-alt {
@@ -3,6 +3,8 @@
3
3
  --#{$prefix}border-radius-xs: #{$border-radius-xs};
4
4
  --#{$prefix}font-weight-medium: #{$font-weight-medium};
5
5
  --#{$prefix}font-weight-bold: #{$font-weight-bold};
6
+ --#{$prefix}box-shadow-xl: #{$box-shadow-xl};
7
+ --#{$prefix}box-shadow-xxl: #{$box-shadow-xxl};
6
8
  $non-gray-colors: $all-colors;
7
9
  @each $key, $value in $grays {
8
10
  $non-gray-colors: map-remove($non-gray-colors, $key);
@@ -4,10 +4,12 @@
4
4
  @import "../assets/bootstrap5/utilities";
5
5
  @import "../assets/bootstrap5/vendor/rfs";
6
6
 
7
- $box-shadow-sm: 0 rfs-value(1px) rfs-value(4px) rgba($foundation-500, .1) !default;
8
- $box-shadow: 0 rfs-value(4px) rfs-value(10px) rgba($foundation-500, .12) !default;
9
- $box-shadow-lg: 0 rfs-value(8px) rfs-value(35px) rgba($foundation-500, .16) !default;
10
- $box-shadow-inset: 0 rfs-value(1px) rfs-value(2px) rgba($foundation-500, .1) inset !default;
7
+ $box-shadow-sm: 0 rfs-value(1px) rfs-value(4px) rgba($foundation, .1);
8
+ $box-shadow: 0 rfs-value(4px) rfs-value(10px) rgba($foundation, .12);
9
+ $box-shadow-lg: 0 rfs-value(8px) rfs-value(35px) rgba($foundation, .16);
10
+ $box-shadow-xl: 0 rfs-value(2px) rfs-value(32px) rgba($foundation, .04);
11
+ $box-shadow-xxl: 0 rfs-value(2px) rfs-value(32px) rgba($foundation, .16);
12
+ $box-shadow-inset: 0 rfs-value(1px) rfs-value(2px) rgba($foundation, .1) inset;
11
13
 
12
14
  $all-colors: map-merge-multiple($foundations, $tangerines, $actions, $sunglows, $lavenders, $warnings, $grays, $successs, $dangers) !default;
13
15
 
@@ -17,13 +19,16 @@ $utilities: map-merge(
17
19
  "shadow": map-merge(
18
20
  map-get($utilities, "shadow"),
19
21
  (
20
- class: box-shadow,
22
+ property: box-shadow,
23
+ class: shadow,
21
24
  values: map-merge(
22
25
  map-get(map-get($utilities, "shadow"), "values"),
23
26
  (
24
27
  null: var(--#{$prefix}box-shadow),
25
28
  sm: var(--#{$prefix}box-shadow-sm),
26
29
  lg: var(--#{$prefix}box-shadow-lg),
30
+ xl: var(--#{$prefix}box-shadow-xl),
31
+ xxl: var(--#{$prefix}box-shadow-xxl),
27
32
  inset: var(--#{$prefix}box-shadow-inset)
28
33
  )
29
34
  )
@@ -7,7 +7,7 @@ $border-radius-xs: rfs-value(4px) !default;
7
7
  // Accordion
8
8
 
9
9
  // scss-docs-start accordion-variables
10
- $accordion-box-shadow: $box-shadow !default;
10
+ $accordion-box-shadow: $box-shadow-xl !default;
11
11
  $accordion-alt-bg: $action-50 !default;
12
12
  $accordion-alt-border-width: .09375rem !default;
13
13
  $accordion-alt-border-active-width: .125rem !default;
@@ -1,2 +1,2 @@
1
1
  // GENERATED FILE – do not edit manually
2
- $km-version: "1.4.8" !default;
2
+ $km-version: "1.5.0" !default;