@agilekit/ui 0.0.403-alpha.0 → 0.0.406-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agilekit/ui",
3
- "version": "0.0.403-alpha.0",
3
+ "version": "0.0.406-alpha.0",
4
4
  "description": "Agile's product component library",
5
5
  "author": "Michael de Lima Alves <michaelalves@outlook.com>",
6
6
  "license": "MIT",
@@ -143,5 +143,5 @@
143
143
  "react-spring": "*"
144
144
  },
145
145
  "bugs": {},
146
- "gitHead": "b729673db2031a038ce54b8e4105cf519b690e1c"
146
+ "gitHead": "44123c4ed0da84ac499f8fe24fa4fa14093391c3"
147
147
  }
@@ -1,3 +1,4 @@
1
+ @use "sass:math";
1
2
  // Variables
2
3
  //
3
4
  // Variables should follow the `$component-state-property-size` formula for
@@ -268,8 +269,8 @@ $font-family-base: $font-family-sans-serif !default;
268
269
  // stylelint-enable value-keyword-case
269
270
 
270
271
  $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
271
- $font-size-lg: calc(#{$font-size-base} * 1.25) !default;
272
- $font-size-sm: calc(#{$font-size-base} * .875) !default;
272
+ $font-size-lg: $font-size-base * 1.25 !default;
273
+ $font-size-sm: $font-size-base * .875 !default;
273
274
 
274
275
  $font-weight-lighter: lighter !default;
275
276
  $font-weight-light: 300 !default;
@@ -287,7 +288,7 @@ $h4-font-size: $font-size-base * 1.5 !default;
287
288
  $h5-font-size: $font-size-base * 1.25 !default;
288
289
  $h6-font-size: $font-size-base !default;
289
290
 
290
- $headings-margin-bottom: calc(#{$spacer} / 2) !default;
291
+ $headings-margin-bottom: math.div($spacer, 2) !default;
291
292
  $headings-font-family: inherit !default;
292
293
  $headings-font-weight: 500 !default;
293
294
  $headings-line-height: 1.2 !default;
@@ -304,7 +305,7 @@ $display3-weight: 300 !default;
304
305
  $display4-weight: 300 !default;
305
306
  $display-line-height: $headings-line-height !default;
306
307
 
307
- $lead-font-size: calc(#{$font-size-base} * 1.25) !default;
308
+ $lead-font-size: $font-size-base * 1.25 !default;
308
309
  $lead-font-weight: 300 !default;
309
310
 
310
311
  $small-font-size: 80% !default;
@@ -313,7 +314,7 @@ $text-muted: $gray-600 !default;
313
314
 
314
315
  $blockquote-small-color: $gray-600 !default;
315
316
  $blockquote-small-font-size: $small-font-size !default;
316
- $blockquote-font-size: calc(#{$font-size-base} * 1.25) !default;
317
+ $blockquote-font-size: $font-size-base * 1.25 !default;
317
318
 
318
319
  $hr-border-color: rgba($black, .1) !default;
319
320
  $hr-border-width: $border-width !default;
@@ -475,16 +476,16 @@ $input-focus-box-shadow: $input-btn-focus-box-shadow !default;
475
476
  $input-placeholder-color: $gray-600 !default;
476
477
  $input-plaintext-color: $body-color !default;
477
478
 
478
- $input-height-border: calc(#{$input-border-width} * 2) !default;
479
+ $input-height-border: $input-border-width * 2 !default;
479
480
 
480
- $input-height-inner: calc((#{$input-btn-font-size} * #{$input-btn-line-height}) + (#{$input-btn-padding-y} * 2)) !default;
481
- $input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;
481
+ $input-height-inner: ($input-btn-font-size * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;
482
+ $input-height: 36 + $input-height-border !default;
482
483
 
483
- $input-height-inner-sm: calc((#{$input-btn-font-size-sm} * #{$input-btn-line-height-sm}) + (#{$input-btn-padding-y-sm} * 2)) !default;
484
- $input-height-sm: calc(#{$input-height-inner-sm} + #{$input-height-border}) !default;
484
+ $input-height-inner-sm: ($input-btn-font-size-sm * $input-btn-line-height-sm) + ($input-btn-padding-y-sm * 2) !default;
485
+ $input-height-sm: $input-height-inner-sm + $input-height-border !default;
485
486
 
486
- $input-height-inner-lg: calc((#{$input-btn-font-size-lg} * #{$input-btn-line-height-lg}) + (#{$input-btn-padding-y-lg} * 2)) !default;
487
- $input-height-lg: calc(#{$input-height-inner-lg} + #{$input-height-border}) !default;
487
+ $input-height-inner-lg: ($input-btn-font-size-lg * $input-btn-line-height-lg) + ($input-btn-padding-y-lg * 2) !default;
488
+ $input-height-lg: $input-height-inner-lg + $input-height-border !default;
488
489
 
489
490
  $input-transition: border-color .15s ease-in-out,
490
491
  box-shadow .15s ease-in-out !default;
@@ -549,9 +550,9 @@ $custom-checkbox-indicator-indeterminate-border-color: $custom-checkbox-indicato
549
550
  $custom-radio-indicator-border-radius: 50% !default;
550
551
  $custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3e%3c/svg%3e"), "#", "%23") !default;
551
552
 
552
- $custom-switch-width: calc(#{$custom-control-indicator-size} * 1.75) !default;
553
- $custom-switch-indicator-border-radius: calc(#{$custom-control-indicator-size} / 2) !default;
554
- $custom-switch-indicator-size: calc(#{$custom-control-indicator-size} - #{$custom-control-indicator-border-width} * 4) !default;
553
+ $custom-switch-width: $custom-control-indicator-size * 1.75 !default;
554
+ $custom-switch-indicator-border-radius: math.div($custom-control-indicator-size, 2) !default;
555
+ $custom-switch-indicator-size: $custom-control-indicator-size - $custom-control-indicator-border-width * 4 !default;
555
556
 
556
557
  $custom-select-padding-y: $input-btn-padding-y !default;
557
558
  $custom-select-padding-x: $input-btn-padding-x !default;
@@ -568,9 +569,9 @@ $custom-select-indicator-color: $gray-800 !default;
568
569
  $custom-select-indicator: str-replace(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='#{$custom-select-indicator-color}' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e"), "#", "%23") !default;
569
570
  $custom-select-background: $custom-select-indicator no-repeat right $custom-select-padding-x center / $custom-select-bg-size !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
570
571
 
571
- $custom-select-feedback-icon-padding-right: calc(#{$input-height-inner} * 3 / 4 + #{$custom-select-padding-x} + #{$custom-select-indicator-padding}) !default;
572
- $custom-select-feedback-icon-position: center right calc(#{$custom-select-padding-x} + #{$custom-select-indicator-padding}) !default;
573
- $custom-select-feedback-icon-size: calc(#{$input-height-inner} / 2) calc(#{$input-height-inner} / 2) !default;
572
+ $custom-select-feedback-icon-padding-right: math.div(($input-height-inner * 3), 4) + $custom-select-padding-x + $custom-select-indicator-padding !default;
573
+ $custom-select-feedback-icon-position: center right $custom-select-padding-x + $custom-select-indicator-padding !default;
574
+ $custom-select-feedback-icon-size: math.div($input-height-inner, 2) math.div($input-height-inner, 2) !default;
574
575
 
575
576
  $custom-select-border-width: $input-border-width !default;
576
577
  $custom-select-border-color: $input-border-color !default;
@@ -656,7 +657,7 @@ $dropdown-bg: $white !default;
656
657
  $dropdown-border-color: rgba($black, .15) !default;
657
658
  $dropdown-border-radius: $border-radius !default;
658
659
  $dropdown-border-width: $border-width !default;
659
- $dropdown-inner-border-radius: calc(#{$dropdown-border-radius} - #{$dropdown-border-width}) !default;
660
+ $dropdown-inner-border-radius: $dropdown-border-radius - $dropdown-border-width !default;
660
661
  $dropdown-divider-bg: $gray-200 !default;
661
662
  $dropdown-box-shadow: 0 .5rem 1rem rgba($black, .175) !default;
662
663
 
@@ -708,21 +709,21 @@ $nav-pills-link-active-color: $component-active-color !default;
708
709
  $nav-pills-link-active-bg: $component-active-bg !default;
709
710
 
710
711
  $nav-divider-color: $gray-200 !default;
711
- $nav-divider-margin-y: calc(#{$spacer} / 2) !default;
712
+ $nav-divider-margin-y: math.div($spacer, 2) !default;
712
713
 
713
714
 
714
715
  // Navbar
715
716
 
716
- $navbar-padding-y: calc(#{$spacer} / 2) !default;
717
+ $navbar-padding-y: math.div($spacer, 2) !default;
717
718
  $navbar-padding-x: $spacer !default;
718
719
 
719
720
  $navbar-nav-link-padding-x: .5rem !default;
720
721
 
721
722
  $navbar-brand-font-size: $font-size-lg !default;
722
723
  // Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
723
- $nav-link-height: calc(#{$font-size-base} * #{$line-height-base} + #{$nav-link-padding-y} * 2) !default;
724
- $navbar-brand-height: calc(#{$navbar-brand-font-size} * #{$line-height-base}) !default;
725
- $navbar-brand-padding-y: calc((#{$nav-link-height} - #{$navbar-brand-height}) / 2) !default;
724
+ $nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y * 2 !default;
725
+ $navbar-brand-height: $navbar-brand-font-size * $line-height-base !default;
726
+ $navbar-brand-padding-y: math.div((#{$nav-link-height} - #{$navbar-brand-height}), 2) !default;
726
727
 
727
728
  $navbar-toggler-padding-y: .25rem !default;
728
729
  $navbar-toggler-padding-x: .75rem !default;
@@ -793,14 +794,14 @@ $card-spacer-x: 1.25rem !default;
793
794
  $card-border-width: $border-width !default;
794
795
  $card-border-radius: $border-radius !default;
795
796
  $card-border-color: rgba($black, .125) !default;
796
- $card-inner-border-radius: calc(#{$card-border-radius} - #{$card-border-width}) !default;
797
+ $card-inner-border-radius: $card-border-radius - $card-border-width !default;
797
798
  $card-cap-bg: rgba($black, .03) !default;
798
799
  $card-cap-color: inherit !default;
799
800
  $card-bg: $white !default;
800
801
 
801
802
  $card-img-overlay-padding: 1.25rem !default;
802
803
 
803
- $card-group-margin: calc(#{$grid-gutter-width} / 2) !default;
804
+ $card-group-margin: math.div(#{$grid-gutter-width}, 2) !default;
804
805
  $card-deck-margin: $card-group-margin !default;
805
806
 
806
807
  $card-columns-count: 3 !default;
@@ -47,5 +47,5 @@
47
47
  }
48
48
 
49
49
  @mixin make-col-offset($size, $columns: $grid-columns) {
50
- margin-left: if($num == 0, 0, percentage(math.div($size, $columns)));
50
+ margin-left: if(math.div($size, $columns) == 0, 0, percentage(math.div($size, $columns)));
51
51
  }