uniform-ui 3.0.0.beta8 → 3.0.0.beta10

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/assets/javascripts/uniform/checkbox.js +12 -12
  3. data/lib/assets/javascripts/uniform/component.js +17 -13
  4. data/lib/assets/javascripts/uniform/dropdown.js +54 -54
  5. data/lib/assets/javascripts/uniform/dropzone.js +107 -0
  6. data/lib/assets/javascripts/uniform/floating-label-input.js +8 -8
  7. data/lib/assets/javascripts/uniform/modal.js +12 -12
  8. data/lib/assets/javascripts/uniform/popover.js +54 -33
  9. data/lib/assets/javascripts/uniform/resizer.js +20 -20
  10. data/lib/assets/javascripts/uniform/select.js +186 -162
  11. data/lib/assets/javascripts/uniform/sticker.js +26 -0
  12. data/lib/assets/javascripts/uniform/tooltip.js +29 -16
  13. data/lib/assets/javascripts/uniform.js +12 -10
  14. data/lib/assets/stylesheets/uniform/base.scss +20 -5
  15. data/lib/assets/stylesheets/uniform/components/buttons.scss +4 -5
  16. data/lib/assets/stylesheets/uniform/components/checkbox.scss +2 -0
  17. data/lib/assets/stylesheets/uniform/components/container.scss +8 -7
  18. data/lib/assets/stylesheets/uniform/components/dropzone.scss +40 -0
  19. data/lib/assets/stylesheets/uniform/components/pointer.scss +4 -4
  20. data/lib/assets/stylesheets/uniform/components/select.scss +7 -2
  21. data/lib/assets/stylesheets/uniform/components/thumb.scss +0 -1
  22. data/lib/assets/stylesheets/uniform/components/z-input.scss +1 -1
  23. data/lib/assets/stylesheets/uniform/config.scss +156 -0
  24. data/lib/assets/stylesheets/uniform/defaults.scss +2 -23
  25. data/lib/assets/stylesheets/uniform/functions/icons.scss +29 -0
  26. data/lib/assets/stylesheets/uniform/functions/map.scss +95 -0
  27. data/lib/assets/stylesheets/uniform/functions/string.scss +15 -0
  28. data/lib/assets/stylesheets/uniform/functions.scss +4 -79
  29. data/lib/assets/stylesheets/uniform/mixins.scss +34 -26
  30. data/lib/assets/stylesheets/uniform/utilities/effects.scss +31 -0
  31. data/lib/assets/stylesheets/uniform/utilities/layout.scss +13 -20
  32. data/lib/assets/stylesheets/uniform/utilities/position.scss +4 -0
  33. data/lib/assets/stylesheets/uniform/utilities/text.scss +1 -0
  34. data/lib/assets/stylesheets/uniform/utilities.scss +6 -0
  35. data/lib/uniform/version.rb +1 -1
  36. metadata +9 -3
  37. data/lib/assets/stylesheets/uniform/variables.scss +0 -145
@@ -60,6 +60,37 @@
60
60
  }
61
61
  }
62
62
 
63
+ .transition-fade-down,
64
+ .transition-fade-up,
65
+ .transition-fade-left,
66
+ .transition-fade-right {
67
+ transition: transform 100ms, opacity 100ms;
68
+ opacity: 1;
69
+ &.-out {
70
+ opacity: 0;
71
+ }
72
+ }
73
+ .transition-fade-down {
74
+ &.-out {
75
+ transform: translateY(10px);
76
+ }
77
+ }
78
+ .transition-fade-up {
79
+ &.-out {
80
+ transform: translateY(-10px);
81
+ }
82
+ }
83
+ .transition-fade-left {
84
+ &.-out {
85
+ transform: translateX(10px);
86
+ }
87
+ }
88
+ .transition-fade-right {
89
+ &.-out {
90
+ transform: translateX(-10px);
91
+ }
92
+ }
93
+
63
94
 
64
95
  //----------------------------------------------------------------
65
96
  // Transforms
@@ -1,23 +1,5 @@
1
1
  @import 'uniform/mixins';
2
2
 
3
- //----------------------------------------------------------------
4
- // Container
5
- //----------------------------------------------------------------
6
- // TODO match this with breakpoints variable, so that breakpoints can change and adjust this
7
- .container{
8
- margin: auto;
9
- @include breakpoint('md'){
10
- max-width: 720px;
11
- }
12
- @include breakpoint('lg'){
13
- max-width: 1080px;
14
- }
15
- @include breakpoint('xl'){
16
- max-width: 1400px;
17
- }
18
- }
19
-
20
-
21
3
  //----------------------------------------------------------------
22
4
  // Display
23
5
  //----------------------------------------------------------------
@@ -65,9 +47,10 @@
65
47
  @include responsive-rule('flex-nowrap'){ flex-wrap: nowrap; }
66
48
  @include responsive-rule('flex-wrap'){ flex-wrap: wrap; }
67
49
 
68
- @include responsive-rule('flex-initial'){ flex: 0 1 auto; }
69
50
  @include responsive-rule('flex-fill'){ flex: 1 1 auto; }
70
- @include responsive-rule('flex-none'){ flex: none; }
51
+ @include responsive-rule('flex-grow'){ flex: 1 0 auto; }
52
+ @include responsive-rule('flex-shrink'){ flex: 0 1 auto; }
53
+ @include responsive-rule('flex-none'){ flex: 0 0 auto; }
71
54
 
72
55
  @for $i from 1 through 12 {
73
56
  @include responsive-rule('order-#{$i}'){ order: $i; }
@@ -83,6 +66,16 @@
83
66
  @include responsive-rule('col-start-#{$i}'){ grid-column-start: $i; }
84
67
  @include responsive-rule('col-end-#{$i}'){ grid-column-end: $i; }
85
68
  }
69
+
70
+ @for $i from 0 through 100 {
71
+ @include responsive-rule(".cols-fill-#{$i * 5}-px"){
72
+ grid-template-columns: repeat(auto-fill, minmax($i * 5px, 1fr));
73
+ };
74
+ @include responsive-rule(".cols-fit-#{$i * 5}-px"){
75
+ grid-template-columns: repeat(auto-fit, minmax($i * 5px, 1fr));
76
+ };
77
+ }
78
+
86
79
  @for $i from 1 through 6 {
87
80
  @include responsive-rule('rows-#{$i}'){ grid-template-rows: repeat($i, minmax(0, 1fr)); }
88
81
  @include responsive-rule('row-span-#{$i}'){ grid-row: span $i / span $i; }
@@ -13,6 +13,10 @@ static
13
13
  @each $direction in 'top' 'right' 'bottom' 'left' {
14
14
  @include responsive-rule('.#{$direction}-0'){ #{$direction}: 0; }
15
15
  @include responsive-rule('.#{$direction}-auto'){ #{$direction}: auto; }
16
+ .sticky-#{$direction}{
17
+ position:sticky;
18
+ #{$direction}: 0;
19
+ }
16
20
  }
17
21
  @include responsive-rule('position-fill'){
18
22
  position:absolute;
@@ -8,6 +8,7 @@
8
8
  --text-opacity: 1.0;
9
9
  color: rgba($color, var(--text-opacity));
10
10
  }
11
+ @include responsive-rule('.text-current') { color: currentColor; }
11
12
  @include responsive-rule('.text-md') { font-size: 1rem; }
12
13
  @include color-rule('.placeholder') using ($color){
13
14
  &::placeholder{
@@ -13,6 +13,9 @@
13
13
  .overflow-x{
14
14
  overflow-x: auto;
15
15
  }
16
+ .overflow-x-scroll{
17
+ overflow-y: scroll;
18
+ }
16
19
 
17
20
  //----------------------------------------------------------------
18
21
  // Element Reset
@@ -47,6 +50,9 @@ grab
47
50
  cursor: $type;
48
51
  }
49
52
  }
53
+ .cursor-move-v {
54
+ cursor: ns-resize;
55
+ }
50
56
 
51
57
  //----------------------------------------------------------------
52
58
  // SVG
@@ -1,3 +1,3 @@
1
1
  module Uniform
2
- VERSION = "3.0.0.beta8"
2
+ VERSION = "3.0.0.beta10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniform-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta8
4
+ version: 3.0.0.beta10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Ehmke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -51,12 +51,14 @@ files:
51
51
  - lib/assets/javascripts/uniform/checkbox.js
52
52
  - lib/assets/javascripts/uniform/component.js
53
53
  - lib/assets/javascripts/uniform/dropdown.js
54
+ - lib/assets/javascripts/uniform/dropzone.js
54
55
  - lib/assets/javascripts/uniform/floating-label-input.js
55
56
  - lib/assets/javascripts/uniform/icons.js
56
57
  - lib/assets/javascripts/uniform/modal.js
57
58
  - lib/assets/javascripts/uniform/popover.js
58
59
  - lib/assets/javascripts/uniform/resizer.js
59
60
  - lib/assets/javascripts/uniform/select.js
61
+ - lib/assets/javascripts/uniform/sticker.js
60
62
  - lib/assets/javascripts/uniform/tooltip.js
61
63
  - lib/assets/stylesheets/uniform.scss
62
64
  - lib/assets/stylesheets/uniform/base.scss
@@ -64,6 +66,7 @@ files:
64
66
  - lib/assets/stylesheets/uniform/components/checkbox.scss
65
67
  - lib/assets/stylesheets/uniform/components/container.scss
66
68
  - lib/assets/stylesheets/uniform/components/dropdown.scss
69
+ - lib/assets/stylesheets/uniform/components/dropzone.scss
67
70
  - lib/assets/stylesheets/uniform/components/floating-label-input.scss
68
71
  - lib/assets/stylesheets/uniform/components/input-group.scss
69
72
  - lib/assets/stylesheets/uniform/components/label.scss
@@ -75,8 +78,12 @@ files:
75
78
  - lib/assets/stylesheets/uniform/components/table.scss
76
79
  - lib/assets/stylesheets/uniform/components/thumb.scss
77
80
  - lib/assets/stylesheets/uniform/components/z-input.scss
81
+ - lib/assets/stylesheets/uniform/config.scss
78
82
  - lib/assets/stylesheets/uniform/defaults.scss
79
83
  - lib/assets/stylesheets/uniform/functions.scss
84
+ - lib/assets/stylesheets/uniform/functions/icons.scss
85
+ - lib/assets/stylesheets/uniform/functions/map.scss
86
+ - lib/assets/stylesheets/uniform/functions/string.scss
80
87
  - lib/assets/stylesheets/uniform/mixins.scss
81
88
  - lib/assets/stylesheets/uniform/utilities.scss
82
89
  - lib/assets/stylesheets/uniform/utilities/background.scss
@@ -88,7 +95,6 @@ files:
88
95
  - lib/assets/stylesheets/uniform/utilities/spacing.scss
89
96
  - lib/assets/stylesheets/uniform/utilities/svg.scss
90
97
  - lib/assets/stylesheets/uniform/utilities/text.scss
91
- - lib/assets/stylesheets/uniform/variables.scss
92
98
  - lib/uniform.rb
93
99
  - lib/uniform/version.rb
94
100
  homepage: http://bemky.github.io/uniform/
@@ -1,145 +0,0 @@
1
- //----------------------------------------------------------------
2
- // Text
3
- //----------------------------------------------------------------
4
- $text-inputs: "input:not([type=search]):not([type=submit]):not([type=checkbox]):not([type=radio])";
5
- $system-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
6
- $base-font: $system-font;
7
-
8
- $base-font: if(variable-exists('base-font'), $base-font, $system-font);
9
-
10
-
11
- //----------------------------------------------------------------
12
- // Includes
13
- //----------------------------------------------------------------
14
- $include_child_utilities: if(variable-exists('include_child_utilities'), $include_child_utilities, false);
15
- $include_breakpoint_container: if(variable-exists('include_breakpoint_container'), $include_breakpoint_container, false);
16
- $include_pseudo_utilities: if(variable-exists('include_pseudo_utilities'), $include_pseudo_utilities, [hover]);
17
-
18
- //----------------------------------------------------------------
19
- // Colors
20
- //----------------------------------------------------------------
21
-
22
- $colors: if(variable-exists('colors'), $colors, (
23
- 'gray': #505152,
24
- 'green': #97C848,
25
- 'blue': #0994E2,
26
- 'red': #E1563E,
27
- 'yellow': #D7E542,
28
- 'purple': #9461b9
29
- ));
30
- $color_spectrum: (
31
- 'white': #FFFFFF,
32
- );
33
- @each $name, $color in $colors {
34
- $color_spectrum: map-merge($color_spectrum, ("#{$name}": $color));
35
- @for $index from 1 through 9 {
36
- $saturation_adjustment: 0;
37
- @if saturation($color) > 20% {
38
- $saturation_adjustment: ((100 - saturation($color)) / 4) * abs(5 - $index);
39
- }
40
- $color_spectrum: map-merge($color_spectrum, ("#{$name}-#{(10 - $index) * 10}": change-color($color, $lightness: $index * 10, $saturation: saturation($color) + $saturation_adjustment)));
41
- }
42
- }
43
-
44
-
45
- //----------------------------------------------------------------
46
- // Breakpoints
47
- //----------------------------------------------------------------
48
- // 720, 1080, 1440
49
- $include_breakpoint_container: if(variable-exists('include_breakpoint_container'), $include_breakpoint_container, false);
50
- $breakpoints: if(variable-exists('breakpoints'), $breakpoints, (
51
- sm: "max-width: 719px",
52
- md: "min-width: 720px",
53
- lg: "min-width: 1080px",
54
- xl: "min-width: 1440px"
55
- ));
56
-
57
-
58
- //----------------------------------------------------------------
59
- // Sizes
60
- //----------------------------------------------------------------
61
- $sizes: map-merge((
62
- border: (
63
- '': 1px,
64
- 'none': 0,
65
- '2px': 2px,
66
- '3px': 3px,
67
- '4px': 4px
68
- ),
69
- divide: (
70
- '': 1px,
71
- 'none': 0,
72
- '2px': 2px,
73
- '3px': 3px,
74
- '4px': 4px
75
- ),
76
- rounded: (
77
- '': 0.25rem,
78
- 'none': 0,
79
- "xs": 0.1rem,
80
- "sm": 0.2rem,
81
- "lg": 0.5rem,
82
- "xl": 1rem,
83
- ),
84
- margin: (
85
- '': 1rem,
86
- 'none': 0,
87
- "1\\/4x": 0.25rem,
88
- "1\\/2x": 0.5rem,
89
- "3\\/4x": 0.75rem,
90
- "xs": 0.8rem,
91
- "sm": 0.9rem,
92
- "lg": 1.2rem,
93
- "xl": 1.4rem,
94
- "2x": 2rem,
95
- ),
96
- gap: (
97
- '': 1rem,
98
- 'none': 0,
99
- "xs": 0.8rem,
100
- "sm": 0.9rem,
101
- "lg": 1.2rem,
102
- "xl": 1.4rem,
103
- ),
104
- space: (
105
- '': 1rem,
106
- 'none': 0,
107
- "xs": 0.8rem,
108
- "sm": 0.9rem,
109
- "lg": 1.2rem,
110
- "xl": 1.4rem,
111
- "2x": 2rem,
112
- "4x": 4rem,
113
- ),
114
- pad: (
115
- '' : 1rem,
116
- 'none' : 0,
117
- "1\\/4x" : 0.25rem,
118
- "1\\/2x" : 0.5rem,
119
- "3\\/4x" : 0.75rem,
120
- "xs" : 0.8rem,
121
- "sm" : 0.9rem,
122
- "lg" : 1.2rem,
123
- "xl" : 1.4rem,
124
- "2x" : 2rem,
125
-
126
- ),
127
- text: (
128
- '': 1rem,
129
- "xs" : 0.8rem,
130
- "sm" : 0.9rem,
131
- "lg" : 1.2rem,
132
- "xl" : 1.4rem,
133
- "2x" : 2rem,
134
- "4x" : 4rem,
135
- "8x" : 8rem
136
-
137
- ),
138
- stroke: (
139
- "sm" : 0.5px,
140
- "md" : 1px,
141
- "lg" : 1.5px,
142
- "2x" : 2px,
143
- "3x" : 3px
144
- )
145
- ), if(variable-exists('sizes'), $sizes, ()));