playbook_ui 8.2.1 → 8.3.0.alpha.select.pre.margin

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@
22
22
  overflow-wrap: break-word;
23
23
  resize: none;
24
24
  transition-property: box-shadow, color, background-color;
25
- transition-duration: .24s;
25
+ transition-duration: .3s;
26
26
  transition-timing-function: $bezier;
27
27
  &[type=number] {
28
28
  -moz-appearance:textfield;
@@ -40,9 +40,9 @@
40
40
  &:-webkit-autofill,
41
41
  &:-webkit-autofill:hover,
42
42
  &:-internal-autofill-selected {
43
- -webkit-text-fill-color: $text_color;
44
- -webkit-box-shadow: 0 0 0px 1000px transparent inset;
45
- transition: background-color 5000s ease-in-out 0s;
43
+ color: $text_color;
44
+ background-color: rgba($focus_input_light, $opacity_5);
45
+ transition: background-color 0.3s ease-in-out 0s;
46
46
  font-family: $font_family_base;
47
47
  }
48
48
  }
@@ -68,3 +68,8 @@
68
68
  @mixin pb_textarea_focus_dark {
69
69
  @include pb_textarea_focus($focus_input_dark);
70
70
  }
71
+
72
+ // Transitions ======================
73
+ @mixin transition_default{
74
+ transition: background-color 0.3s ease-in-out 0s, border-color 0.3s ease-in-out 0s;
75
+ }
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import { Textarea } from '../../'
3
3
 
4
- const TextareaCharacterCounter = () => {
4
+ const TextareaCharacterCounter = (props) => {
5
5
  const [value1, setValue1] = useState('Counting characters!')
6
6
  const [value2, setValue2] = useState('This counter prevents the user from exceeding the maximum number of allowed characters. Just try it!')
7
7
  const [value3, setValue3] = useState('This counter alerts the user that they have exceeded the maximum number of allowed characters.')
@@ -41,6 +41,7 @@ const TextareaCharacterCounter = () => {
41
41
  label="Count Only"
42
42
  onChange={(event) => setCount1(event.target.value.length)}
43
43
  rows={4}
44
+ {...props}
44
45
  />
45
46
 
46
47
  <br />
@@ -52,6 +53,7 @@ const TextareaCharacterCounter = () => {
52
53
  onChange={() => handleMaxCount(event)}
53
54
  rows={4}
54
55
  value={value1}
56
+ {...props}
55
57
  />
56
58
 
57
59
  <br />
@@ -63,6 +65,7 @@ const TextareaCharacterCounter = () => {
63
65
  onChange={() => handleMaxCountWithBlocker(event, 100)}
64
66
  rows={4}
65
67
  value={value2}
68
+ {...props}
66
69
  />
67
70
 
68
71
  <br />
@@ -75,6 +78,7 @@ const TextareaCharacterCounter = () => {
75
78
  onChange={() => handleMaxCountWithError(event, 75)}
76
79
  rows={4}
77
80
  value={value3}
81
+ {...props}
78
82
  />
79
83
  </>
80
84
  )
@@ -4,12 +4,14 @@ import { Textarea } from '../../'
4
4
  const TextareaCustom = (props) => {
5
5
  return (
6
6
  <div>
7
- <Textarea label="Label">
7
+ <Textarea
8
+ label="Label"
9
+ {...props}
10
+ >
8
11
  <textarea
9
12
  className="my_custom_class"
10
13
  name="custom_textarea"
11
14
  rows={4}
12
- {...props}
13
15
  >
14
16
  {'Content goes here.'}
15
17
  </textarea>
@@ -4,9 +4,18 @@
4
4
  @import "../tokens/shadows";
5
5
 
6
6
  [class^=pb_typeahead_kit] {
7
+ .typeahead-kit-select__option {
8
+ cursor: pointer;
9
+ }
7
10
  .pb_typeahead_wrapper {
8
11
  position: relative;
9
-
12
+ .text_input_value_container{
13
+ cursor: text;
14
+ }
15
+ .text_input_indicators,
16
+ .pb_list_kit {
17
+ cursor: pointer;
18
+ }
10
19
  .pb_typeahead_loading_indicator {
11
20
  position: absolute;
12
21
  width: min-content;
@@ -17,7 +26,6 @@
17
26
  transition: opacity .15s ease-in-out;
18
27
  }
19
28
  }
20
-
21
29
  [class^=pb_text_input_kit] {
22
30
  .text_input_wrapper {
23
31
  & > input:first-child {
@@ -25,7 +33,6 @@
25
33
  }
26
34
  }
27
35
  }
28
-
29
36
  .pb_item_kit {
30
37
  padding: ($space_xs + 2) 0;
31
38
 
@@ -35,7 +42,6 @@
35
42
  }
36
43
  }
37
44
  }
38
-
39
45
  [class^=pb_list_kit] {
40
46
  max-height: 18em;
41
47
  overflow-y: auto;
@@ -49,17 +55,14 @@
49
55
  border-radius: $border_rad_heavier;
50
56
  transition: opacity .25s ease-in-out;
51
57
  }
52
-
53
58
  &:focus-within [class^=pb_list_kit] {
54
59
  display: block;
55
60
  opacity: 1;
56
61
  }
57
-
58
62
  &:not(:focus-within) [class^=pb_list_kit] {
59
63
  display: none;
60
64
  opacity: 0;
61
65
  }
62
-
63
66
  [class^=pb_list_kit] {
64
67
  margin-top: -$space-sm;
65
68
  li {
@@ -69,7 +72,6 @@
69
72
  &:focus-within {
70
73
  background-color: $active_light;
71
74
  }
72
-
73
75
  > button {
74
76
  background: none;
75
77
  color: $text_lt_default;
@@ -84,7 +86,6 @@
84
86
  }
85
87
  }
86
88
  }
87
-
88
89
  &[class*=dark] {
89
90
  .pb_typeahead_wrapper .pb_typeahead_loading_indicator {
90
91
  color: $text_dk_light;
@@ -97,7 +98,10 @@
97
98
  color: $white;
98
99
  }
99
100
  .typeahead-kit-select__option:hover {
100
- background-color: tint($focus_input_dark, 5%);
101
+ background-color: $active_dark;
102
+ }
103
+ .typeahead-kit-select__indicator:hover {
104
+ color: $white;
101
105
  }
102
106
  .typeahead-kit-select__input {
103
107
  color: white;
@@ -105,13 +109,12 @@
105
109
  box-shadow: none;
106
110
  }
107
111
  }
108
- .typeahead-kit-select__single-value{
112
+ .typeahead-kit-select__single-value {
109
113
  color: white;
110
114
  }
111
115
  .typeahead-kit-select__option--is-focused {
112
- background-color: tint($focus_input_dark, 5%);
116
+ background-color: $active_dark;
113
117
  }
114
-
115
118
  [class^=pb_list_kit] {
116
119
  background-color: $bg_dark;
117
120
  }
@@ -121,12 +124,11 @@
121
124
  }
122
125
  @media (hover:hover) {
123
126
  &:hover {
124
- background-color: tint($focus_input_dark, 5%);
127
+ background-color: rgba($white,.1);
125
128
  }
126
129
  }
127
130
  }
128
131
  }
129
-
130
132
  &.react-select, &.react-select .dark {
131
133
  .text_input {
132
134
  display: inherit;
@@ -90,6 +90,7 @@ const TypeaheadWithPillsAsyncUsers = (props) => {
90
90
  isMulti
91
91
  label="Github Users"
92
92
  loadOptions={promiseOptions}
93
+ noOptionsMessage={() => 'Type to Search'}
93
94
  onChange={handleOnChange}
94
95
  onMultiValueClick={handleOnMultiValueClick}
95
96
  placeholder="type the name of a Github user"
@@ -114,7 +114,7 @@ $shadow_colors: (
114
114
 
115
115
  /* Text colors ------------------------*/
116
116
  $text_lt_default: $charcoal;
117
- $text_lt_light: #919EAB;
117
+ $text_lt_light: #687887;
118
118
  $text_lt_lighter: $slate;
119
119
  $text_dk_default: $white;
120
120
  $text_dk_light: rgba($white, $opacity_6);
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "8.2.1"
4
+ VERSION = "8.3.0.alpha.select-margin"
5
5
  end
6
-
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.1
4
+ version: 8.3.0.alpha.select.pre.margin
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-23 00:00:00.000000000 Z
12
+ date: 2021-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2103,7 +2103,7 @@ homepage: http://playbook.powerapp.cloud
2103
2103
  licenses:
2104
2104
  - MIT
2105
2105
  metadata: {}
2106
- post_install_message:
2106
+ post_install_message:
2107
2107
  rdoc_options: []
2108
2108
  require_paths:
2109
2109
  - lib
@@ -2114,12 +2114,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
2114
2114
  version: '0'
2115
2115
  required_rubygems_version: !ruby/object:Gem::Requirement
2116
2116
  requirements:
2117
- - - ">="
2117
+ - - ">"
2118
2118
  - !ruby/object:Gem::Version
2119
- version: '0'
2119
+ version: 1.3.1
2120
2120
  requirements: []
2121
- rubygems_version: 3.1.4
2122
- signing_key:
2121
+ rubyforge_project:
2122
+ rubygems_version: 2.7.3
2123
+ signing_key:
2123
2124
  specification_version: 4
2124
2125
  summary: Playbook Design System
2125
2126
  test_files: []