@unlk/keymaster 1.0.0 → 1.0.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.
Files changed (41) hide show
  1. package/dist/css/keymaster.css +38766 -0
  2. package/dist/css/keymaster.css.map +1 -0
  3. package/dist/css/keymaster.min.css +38 -0
  4. package/dist/css/keymaster.min.css.map +1 -0
  5. package/dist/js/keymaster.js +11722 -0
  6. package/dist/js/keymaster.js.map +1 -0
  7. package/dist/js/keymaster.min.js +164 -0
  8. package/dist/js/keymaster.min.js.map +1 -0
  9. package/fonts/NeulisNeue-Medium.woff +0 -0
  10. package/fonts/NeulisNeue-Medium.woff2 +0 -0
  11. package/fonts/NeulisNeue-MediumItalic.woff +0 -0
  12. package/fonts/NeulisNeue-MediumItalic.woff2 +0 -0
  13. package/fonts/STIXTwoText-Italic.ttf +0 -0
  14. package/fonts/STIXTwoText-Italic.woff +0 -0
  15. package/fonts/STIXTwoText-Italic.woff2 +0 -0
  16. package/fonts/WixMadeforDisplay-Bold.ttf +0 -0
  17. package/fonts/WixMadeforDisplay-Bold.woff +0 -0
  18. package/fonts/WixMadeforDisplay-Bold.woff2 +0 -0
  19. package/fonts/WixMadeforDisplay-Regular.ttf +0 -0
  20. package/fonts/WixMadeforDisplay-Regular.woff +0 -0
  21. package/fonts/WixMadeforDisplay-Regular.woff2 +0 -0
  22. package/js/bootstrap.js +1 -0
  23. package/js/carousel-caption.js +39 -0
  24. package/package.json +5 -2
  25. package/scss/assets/bootstrap5/_variables.scss +2 -0
  26. package/scss/keymaster.scss +20 -3
  27. package/scss/theme/_accordion.scss +62 -0
  28. package/scss/theme/_alert.scss +24 -0
  29. package/scss/theme/_badge.scss +19 -0
  30. package/scss/theme/_buttons.scss +52 -0
  31. package/scss/theme/_carousel.scss +42 -0
  32. package/scss/theme/_maps-overrides.scss +44 -0
  33. package/scss/theme/_type.scss +3 -0
  34. package/scss/theme/_typography.scss +36 -0
  35. package/scss/theme/_utilities-overrides.scss +55 -0
  36. package/scss/theme/_variables-overrides.scss +417 -0
  37. package/scss/theme/_variables.scss +33 -0
  38. package/scss/theme/mixins/_badge.scss +5 -0
  39. package/scss/theme/mixins/_buttons.scss +55 -0
  40. package/scss/theme/_overrides.scss +0 -266
  41. package/scss/theme/_utility-overrides.scss +0 -7
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@unlk/keymaster",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
4
7
  "description": "Unlock Design System Packaged with Bootstrap",
5
8
  "main": "index.js",
6
9
  "scripts": {
@@ -70,7 +73,7 @@
70
73
  "postcss": "^8.4.4",
71
74
  "postcss-cli": "^9.0.2",
72
75
  "rollup": "^2.60.2",
73
- "sass": "^1.44.0",
76
+ "sass": "1.78.0",
74
77
  "terser": "^5.10.0"
75
78
  },
76
79
  "config": {
@@ -1749,3 +1749,5 @@ $nested-kbd-font-weight: null !default; // Deprecated in v5.2.0, remo
1749
1749
  $pre-color: null !default;
1750
1750
 
1751
1751
  @import "variables-dark"; // TODO: can be removed safely in v6, only here to avoid breaking changes in v5.3
1752
+
1753
+
@@ -1,6 +1,10 @@
1
- // Variable Overrides
2
- @import "theme/overrides";
3
- @import "theme/utility-overrides";
1
+ // Overrides
2
+ @import "theme/variables-overrides";
3
+ @import "theme/utilities-overrides";
4
+ @import "theme/maps-overrides";
5
+
6
+ // Typography
7
+ @import "theme/typography";
4
8
 
5
9
  // Assets
6
10
  @import "assets/bootstrap5/bootstrap";
@@ -12,3 +16,16 @@
12
16
  @import "assets/fontawesome/sharp-solid";
13
17
  @import "assets/fontawesome/duotone";
14
18
  @import "assets/fontawesome/brands";
19
+
20
+ // Mixins
21
+ @import "theme/mixins/buttons";
22
+ @import "theme/mixins/badge";
23
+
24
+ // Theme
25
+ @import "theme/variables";
26
+ @import "theme/type";
27
+ @import "theme/buttons";
28
+ @import "theme/accordion";
29
+ @import "theme/alert";
30
+ @import "theme/badge";
31
+ @import "theme/carousel";
@@ -0,0 +1,62 @@
1
+ .accordion-flush {
2
+ @include box-shadow($box-shadow);
3
+ }
4
+
5
+ .accordion-alt {
6
+ --#{$prefix}accordion-alt-bg: #{$accordion-alt-bg};
7
+ --#{$prefix}accordion-alt-btn-bg: #{$accordion-alt-button-bg};
8
+ --#{$prefix}accordion-alt-border-radius: #{$accordion-alt-border-radius};
9
+ --#{$prefix}accordion-alt-btn-icon-width: #{$accordion-alt-icon-width};
10
+ --#{$prefix}accordion-alt-btn-icon: #{escape-svg($accordion-alt-button-icon)};
11
+ --#{$prefix}accordion-alt-btn-active-icon: #{escape-svg($accordion-alt-button-active-icon)};
12
+ --#{$prefix}accordion-alt-active-color: #{$accordion-alt-button-active-color};
13
+ .accordion-button {
14
+ background-color: var(--#{$prefix}accordion-alt-btn-bg);
15
+ margin-bottom: 0;
16
+ i {
17
+ margin-right: $spacer * .5;
18
+ width: var(--#{$prefix}accordion-alt-btn-icon-width);
19
+ height: var(--#{$prefix}accordion-alt-btn-icon-width);
20
+ }
21
+ &:not(.collapsed) {
22
+ color: var(--#{$prefix}accordion-alt-active-color);
23
+ @include box-shadow(none);
24
+ &::after {
25
+ background-image: var(--#{$prefix}accordion-alt-btn-active-icon);
26
+ transform: var(--#{$prefix}accordion-btn-icon-transform);
27
+ }
28
+ }
29
+ &::after {
30
+ width: var(--#{$prefix}accordion-btn-icon-width);
31
+ height: var(--#{$prefix}accordion-btn-icon-width);
32
+ background-image: var(--#{$prefix}accordion-alt-btn-icon);
33
+ }
34
+ }
35
+ > .accordion-item {
36
+ background-color: var(--#{$prefix}accordion-alt-bg);
37
+ border: none;
38
+ @include border-radius(var(--#{$prefix}accordion-alt-border-radius));
39
+ &:not(:last-child) {
40
+ @include margin-bottom($spacer);
41
+ }
42
+ // stylelint-disable selector-max-class
43
+ > .accordion-header .accordion-button {
44
+ &,
45
+ &.collapsed {
46
+ @include border-radius(var(--#{$prefix}accordion-alt-border-radius));
47
+ }
48
+ }
49
+ // stylelint-enable selector-max-class
50
+
51
+ > .accordion-collapse {
52
+ @include border-radius(var(--#{$prefix}accordion-alt-border-radius));
53
+ }
54
+
55
+ .accordion-body {
56
+ padding-top: 0;
57
+ &.has-icon {
58
+ padding-left: $spacer * 3.125;
59
+ }
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,24 @@
1
+ .alert {
2
+ position: relative;
3
+ display: flex;
4
+ i {
5
+ margin-top: $spacer * .25;
6
+ margin-right: $spacer * .5;
7
+ font-size: $font-size-base;
8
+ }
9
+ }
10
+ @each $state, $value in $theme-colors {
11
+ $alert-border: var(--#{$prefix}#{$state}-border-subtle);
12
+ $alert-color: var(--#{$prefix}#{$state}-text-emphasis);
13
+ @if $state == "tertiary" {
14
+ $alert-border: $gray-400;
15
+ $alert-color: $foundation-500;
16
+ }
17
+
18
+ .alert-#{$state} {
19
+ --#{$prefix}alert-color: #{$alert-color};
20
+ --#{$prefix}alert-bg: var(--#{$prefix}#{$state}-bg-subtle);
21
+ --#{$prefix}alert-border-color: #{$alert-border};
22
+ --#{$prefix}alert-link-color: var(--#{$prefix}#{$state}-text-emphasis);
23
+ }
24
+ }
@@ -0,0 +1,19 @@
1
+ .badge-outline {
2
+ border: rfs-value(2px) solid $blueprint;
3
+ color: $blueprint;
4
+ }
5
+
6
+ .badge-dot {
7
+ --#{$prefix}badge-padding-x: #{$badge-dot-padding};
8
+ --#{$prefix}badge-padding-y: #{$badge-dot-padding};
9
+ width: $badge-dot-size;
10
+ height: $badge-dot-size;
11
+ }
12
+
13
+ .badge-lg {
14
+ @include badge-size($badge-font-size-lg);
15
+ }
16
+
17
+ .badge-sm {
18
+ @include badge-size($badge-font-size-sm);
19
+ }
@@ -0,0 +1,52 @@
1
+ .btn {
2
+ @include box-shadow(none);
3
+
4
+ > i + *,
5
+ > .icon + * {
6
+ margin-left: $spacer * .5;
7
+ }
8
+
9
+ > * + i,
10
+ > * + .icon {
11
+ margin-left: $spacer * .5;
12
+ }
13
+ }
14
+
15
+ @each $color, $value in $theme-colors {
16
+ .btn-link-#{$color} {
17
+ @if $color == "primary" or $color == "blueprint" {
18
+ @include button-link-variant(
19
+ $value,
20
+ $active-background: $blueprint-700,
21
+ );
22
+ }
23
+ }
24
+ }
25
+
26
+ @each $color, $value in $theme-colors {
27
+ .btn-#{$color} {
28
+ @include button-variant(
29
+ $value,
30
+ $value,
31
+ $hover-background: shade-color($value, $btn-hover-bg-shade-amount),
32
+ $hover-border: shade-color($value, $btn-hover-border-shade-amount),
33
+ $active-background: shade-color($value, $btn-active-bg-shade-amount),
34
+ $active-border: shade-color($value, $btn-active-border-shade-amount),
35
+ $disabled-color: $white
36
+ );
37
+ }
38
+ }
39
+
40
+ @each $color, $value in $theme-colors {
41
+ .btn-outline-#{$color} {
42
+ @if $color == "light" {
43
+ @include button-outline-variant(
44
+ $value,
45
+ $color-hover: $value,
46
+ $active-background: rgba($blueprint-500, 0.25),
47
+ $active-border: $value,
48
+ $active-color: $value,
49
+ );
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,42 @@
1
+ .carousel-item {
2
+ img {
3
+ @include border-radius($border-radius-xl);
4
+ }
5
+ .carousel-caption {
6
+ padding-bottom: ($spacer * .75);
7
+ h6 {
8
+ color: $white;
9
+ margin-bottom: 0;
10
+ }
11
+ }
12
+ }
13
+ .carousel-caption-container {
14
+ @extend .mt-3;
15
+ float: left;
16
+ p {
17
+ margin-bottom: 0;
18
+ }
19
+ }
20
+ .carousel-controls {
21
+ @extend .mt-3;
22
+ display: flex;
23
+ justify-content: end;
24
+ }
25
+ .carousel-control-prev,
26
+ .carousel-control-next {
27
+ position: unset;
28
+ }
29
+ .carousel-indicators {
30
+ position: unset;
31
+ margin-bottom: 0;
32
+ margin-left: 0;
33
+ @include margin-right($spacer * 1.5);
34
+ [data-bs-target] {
35
+ @extend .rounded-circle;
36
+ }
37
+ }
38
+
39
+ .carousel-control-prev, .carousel-control-next {
40
+ width: fit-content;
41
+ padding: rfs-value(6px);
42
+ }
@@ -0,0 +1,44 @@
1
+ // scss-docs-start theme-text-map
2
+ $theme-colors-text: (
3
+ "primary": $primary-text-emphasis,
4
+ "secondary": $secondary-text-emphasis,
5
+ "tertiary": $tertiary-text-emphasis,
6
+ "action": $action-text-emphasis,
7
+ "success": $success-text-emphasis,
8
+ "info": $info-text-emphasis,
9
+ "warning": $warning-text-emphasis,
10
+ "danger": $danger-text-emphasis,
11
+ "light": $light-text-emphasis,
12
+ "dark": $dark-text-emphasis,
13
+ );
14
+ // scss-docs-end theme-text-map
15
+
16
+ // scss-docs-start theme-bg-subtle-map
17
+ $theme-colors-bg-subtle: (
18
+ "primary": $primary-bg-subtle,
19
+ "secondary": $secondary-bg-subtle,
20
+ "tertiary": $tertiary-bg-subtle,
21
+ "action": $action-bg-subtle,
22
+ "success": $success-bg-subtle,
23
+ "info": $info-bg-subtle,
24
+ "warning": $warning-bg-subtle,
25
+ "danger": $danger-bg-subtle,
26
+ "light": $light-bg-subtle,
27
+ "dark": $dark-bg-subtle,
28
+ );
29
+ // scss-docs-end theme-bg-subtle-map
30
+
31
+ // scss-docs-start theme-border-subtle-map
32
+ $theme-colors-border-subtle: (
33
+ "primary": $primary-border-subtle,
34
+ "secondary": $secondary-border-subtle,
35
+ "tertiary": $tertiary-border-subtle,
36
+ "action": $action-border-subtle,
37
+ "success": $success-border-subtle,
38
+ "info": $info-border-subtle,
39
+ "warning": $warning-border-subtle,
40
+ "danger": $danger-border-subtle,
41
+ "light": $light-border-subtle,
42
+ "dark": $dark-border-subtle,
43
+ );
44
+ // scss-docs-end theme-border-subtle-map
@@ -0,0 +1,3 @@
1
+ .blockquote {
2
+ font-family: $blockquote-font-family;
3
+ }
@@ -0,0 +1,36 @@
1
+ @font-face {
2
+ font-family: "Wix MadeFor Display";
3
+ src: url('#{$font-path}/WixMadeforDisplay-Regular.woff2') format('woff2'),
4
+ url('#{$font-path}/WixMadeforDisplay-Regular.ttf') format('truetype');
5
+ font-weight: 400;
6
+ }
7
+
8
+ @font-face {
9
+ font-family: "Wix MadeFor Display";
10
+ src: url('#{$font-path}/WixMadeforDisplay-Bold.woff2') format('woff2'),
11
+ url('#{$font-path}/WixMadeforDisplay-Bold.ttf') format('truetype');
12
+ font-weight: 700;
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "STIXTwoText";
17
+ src: url('#{$font-path}/STIXTwoText-Italic.woff2') format('woff2'),
18
+ url('#{$font-path}/STIXTwoText-Italic.ttf') format('truetype');
19
+ font-weight: 400;
20
+ font-style: italic;
21
+ }
22
+
23
+ @font-face {
24
+ font-family: "Neulis Neue";
25
+ src: url('#{$font-path}/NeulisNeue-Medium.woff2') format('woff2'),
26
+ url('#{$font-path}/NeulisNeue-Medium.woff') format('woff');
27
+ font-weight: 500;
28
+ }
29
+
30
+ @font-face {
31
+ font-family: "Neulis Neue";
32
+ src: url('#{$font-path}/NeulisNeue-MediumItalic.woff2') format('woff2'),
33
+ url('#{$font-path}/NeulisNeue-MediumItalic.woff') format('woff');
34
+ font-weight: 500;
35
+ font-style: italic;
36
+ }
@@ -0,0 +1,55 @@
1
+ @import "../assets/bootstrap5/variables";
2
+ @import "../assets/bootstrap5/variables-dark";
3
+ @import "../assets/bootstrap5/maps";
4
+ @import "../assets/bootstrap5/utilities";
5
+ @import "../assets/bootstrap5/vendor/rfs";
6
+
7
+ $box-shadow-sm: 0 rfs-value(1px) rfs-value(4px) rgba($foundation-500, .1);
8
+ $box-shadow: 0 rfs-value(4px) rfs-value(10px) rgba($foundation-500, .12);
9
+ $box-shadow-lg: 0 rfs-value(8px) rfs-value(35px) rgba($foundation-500, .16);
10
+ $box-shadow-inset: 0 rfs-value(1px) rfs-value(2px) rgba($foundation-500, .10) inset;
11
+
12
+ $all-colors: map-merge-multiple($foundations, $blueprints, $entryways, $turnkeys, $sunglows, $warnings, $grays, $successs, $dangers);
13
+
14
+ $utilities: map-merge(
15
+ $utilities,
16
+ (
17
+ "shadow": map-merge(
18
+ map-get($utilities, "shadow"),
19
+ (
20
+ class: box-shadow,
21
+ values: map-merge(
22
+ map-get(map-get($utilities, "shadow"), "values"),
23
+ (
24
+ null: var(--#{$prefix}box-shadow),
25
+ sm: var(--#{$prefix}box-shadow-sm),
26
+ lg: var(--#{$prefix}box-shadow-lg),
27
+ inset: var(--#{$prefix}box-shadow-inset)
28
+ )
29
+ )
30
+ )
31
+ ),
32
+ "color": map-merge(
33
+ map-get($utilities, "color"),
34
+ (
35
+ values: map-merge(
36
+ map-get(map-get($utilities, "color"), "values"),
37
+ (
38
+ $all-colors
39
+ ),
40
+ ),
41
+ ),
42
+ ),
43
+ "background-color": map-merge(
44
+ map-get($utilities, "background-color"),
45
+ (
46
+ values: map-merge(
47
+ map-get(map-get($utilities, "background-color"), "values"),
48
+ (
49
+ $all-colors
50
+ ),
51
+ ),
52
+ ),
53
+ ),
54
+ )
55
+ );