@unlk/keymaster 1.1.0 → 1.1.2

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 [object Object] v1.1.0 (https://unlock-com.github.io/keymaster)
2
+ * Unlock Keymaster [object Object] v1.1.2 (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 [object Object] v1.1.0 (https://unlock-com.github.io/keymaster)
2
+ * Unlock Keymaster [object Object] v1.1.2 (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.1.0",
3
+ "version": "1.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,7 +17,7 @@
17
17
  @if $color == "primary" {
18
18
  @include button-link-variant(
19
19
  $value,
20
- $active-background: $electric-700,
20
+ $active-background: $action-700,
21
21
  );
22
22
  }
23
23
  }
@@ -3,18 +3,10 @@
3
3
  $font-path: $fa-font-path
4
4
  );
5
5
  @use "../assets/fontawesome/fontawesome";
6
- @use "../assets/fontawesome/thin";
7
- @use "../assets/fontawesome/light";
8
- @use "../assets/fontawesome/regular";
9
- @use "../assets/fontawesome/solid";
10
6
  @use "../assets/fontawesome/sharp-thin";
11
7
  @use "../assets/fontawesome/sharp-light";
12
8
  @use "../assets/fontawesome/sharp-regular";
13
9
  @use "../assets/fontawesome/sharp-solid";
14
- @use "../assets/fontawesome/duotone";
15
- @use "../assets/fontawesome/duotone-thin";
16
- @use "../assets/fontawesome/duotone-light";
17
- @use "../assets/fontawesome/duotone-regular";
18
10
  @use "../assets/fontawesome/sharp-duotone-thin";
19
11
  @use "../assets/fontawesome/sharp-duotone-light";
20
12
  @use "../assets/fontawesome/sharp-duotone-regular";
@@ -9,7 +9,7 @@ $box-shadow: 0 rfs-value(4px) rfs-value(10px) rgba($foundation-500, .12) !defaul
9
9
  $box-shadow-lg: 0 rfs-value(8px) rfs-value(35px) rgba($foundation-500, .16) !default;
10
10
  $box-shadow-inset: 0 rfs-value(1px) rfs-value(2px) rgba($foundation-500, .1) inset !default;
11
11
 
12
- $all-colors: map-merge-multiple($foundations, $tangerines, $electrics, $sunglows, $warnings, $grays, $successs, $dangers) !default;
12
+ $all-colors: map-merge-multiple($foundations, $tangerines, $actions, $sunglows, $warnings, $grays, $successs, $dangers) !default;
13
13
 
14
14
  $utilities: map-merge(
15
15
  $utilities,
@@ -116,18 +116,18 @@ $sunglow-700: shade-color($sunglow, 40%) !default;
116
116
  $sunglow-800: shade-color($sunglow, 60%) !default;
117
117
  $sunglow-900: shade-color($sunglow, 80%) !default;
118
118
 
119
- $electric-25: tint-color($electric, 95%) !default;
120
- $electric-50: tint-color($electric, 90%) !default;
121
- $electric-100: tint-color($electric, 80%) !default;
122
- $electric-200: tint-color($electric, 60%) !default;
123
- $electric-300: tint-color($electric, 40%) !default;
124
- $electric-400: tint-color($electric, 20%) !default;
125
- $electric-450: tint-color($electric, 10%) !default;
126
- $electric-500: $electric !default;
127
- $electric-600: shade-color($electric, 20%) !default;
128
- $electric-700: shade-color($electric, 40%) !default;
129
- $electric-800: shade-color($electric, 60%) !default;
130
- $electric-900: shade-color($electric, 80%) !default;
119
+ $action-25: tint-color($electric, 95%) !default;
120
+ $action-50: tint-color($electric, 90%) !default;
121
+ $action-100: tint-color($electric, 80%) !default;
122
+ $action-200: tint-color($electric, 60%) !default;
123
+ $action-300: tint-color($electric, 40%) !default;
124
+ $action-400: tint-color($electric, 20%) !default;
125
+ $action-450: tint-color($electric, 10%) !default;
126
+ $action-500: $electric !default;
127
+ $action-600: shade-color($electric, 20%) !default;
128
+ $action-700: shade-color($electric, 40%) !default;
129
+ $action-800: shade-color($electric, 60%) !default;
130
+ $action-900: shade-color($electric, 80%) !default;
131
131
 
132
132
  $success-25: tint-color($green, 95%) !default;
133
133
  $success-50: tint-color($green, 90%) !default;
@@ -230,19 +230,19 @@ $warnings: (
230
230
  "warning-900": $tangerine-900
231
231
  ) !default;
232
232
 
233
- $electrics: (
234
- "electric-25": $electric-25,
235
- "electric-50": $electric-50,
236
- "electric-100": $electric-100,
237
- "electric-200": $electric-200,
238
- "electric-300": $electric-300,
239
- "electric-400": $electric-400,
240
- "electric-450": $electric-450,
241
- "electric-500": $electric-500,
242
- "electric-600": $electric-600,
243
- "electric-700": $electric-700,
244
- "electric-800": $electric-800,
245
- "electric-900": $electric-900
233
+ $actions: (
234
+ "action-25": $action-25,
235
+ "action-50": $action-50,
236
+ "action-100": $action-100,
237
+ "action-200": $action-200,
238
+ "action-300": $action-300,
239
+ "action-400": $action-400,
240
+ "action-450": $action-450,
241
+ "action-500": $action-500,
242
+ "action-600": $action-600,
243
+ "action-700": $action-700,
244
+ "action-800": $action-800,
245
+ "action-900": $action-900
246
246
  ) !default;
247
247
 
248
248
  $dangers: (
@@ -6,7 +6,7 @@
6
6
 
7
7
  input:checked {
8
8
  label {
9
- border-color: $electric;
9
+ border-color: $action;
10
10
  }
11
11
  }
12
12
 
@@ -21,11 +21,11 @@
21
21
 
22
22
  &:checked {
23
23
  ~ .form-check-label {
24
- border-color: $electric;
24
+ border-color: $action;
25
25
 
26
26
  &::before {
27
- background-color: $electric;
28
- border-color: $electric;
27
+ background-color: $action;
28
+ border-color: $action;
29
29
  opacity: 1;
30
30
  transform: scale(1);
31
31
  }
@@ -78,7 +78,7 @@
78
78
  }
79
79
 
80
80
  &:hover {
81
- border-color: $electric;
81
+ border-color: $action;
82
82
 
83
83
  &::before {
84
84
  opacity: 1;