swissdev-tech-tags 0.0.256 → 0.0.257

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 (2) hide show
  1. package/index.js +51 -69
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,79 +1,62 @@
1
1
  const mainColor = "hsl(210, 84%, 40%)"
2
2
  const mainColorLight = "hsl(226.96,48.94%,90.78%)"
3
3
  const chipTheme = {
4
- chip: {
5
- background: mainColorLight,
4
+ control: (provided) => ({
5
+ ...provided,
6
+ minHeight: '34px',
7
+ border: '1px solid #ccc',
8
+ backgroundColor: '#fff',
9
+ borderRadius: '5px',
10
+ '&:hover': {
11
+ borderColor: '#aaa'
12
+ },
13
+ boxShadow: 'none',
14
+ '&:focus': {
15
+ borderColor: '#aaa'
16
+ }
17
+ }),
18
+ multiValue: (provided) => ({
19
+ ...provided,
20
+ backgroundColor: mainColorLight,
21
+ borderRadius: '4px',
6
22
  padding: '0.2em 0.5em',
23
+ margin: '2.5px'
24
+ }),
25
+ multiValueLabel: (provided) => ({
26
+ ...provided,
27
+ color: mainColor,
7
28
  fontSize: '1rem',
29
+ fontWeight: 'normal',
30
+ fontFamily: 'Nunito',
31
+ padding: 0,
32
+ paddingLeft: 0
33
+ }),
34
+ multiValueRemove: (provided) => ({
35
+ ...provided,
8
36
  color: mainColor,
9
- // marginRight: '0.5rem',
10
- fontFamily: 'Nunito'
11
- }, chipSelected: {
12
- background: 'gray',
13
- color: 'white'
14
- },
15
- chipRemove: {
16
- ':hover': {
17
- color: 'mainColor',
18
- },
37
+ cursor: 'pointer',
19
38
  marginLeft: '0.5rem',
20
- fontSize: '1.3rem'
21
- }
22
- }
23
- const theme = {
24
- chipsContainer: {
25
- display: "flex",
26
- position: "relative",
27
- border: "1px solid #ccc",
28
- backgroundColor: '#fff',
29
- minHeight: 34,
30
- alignItems: "center",
31
- flexWrap: "wrap",
32
- padding: "2.5px",
33
- borderRadius: 5,
34
- ':focus': {
35
- border: "1px solid #aaa",
39
+ fontSize: '1.3rem',
40
+ '&:hover': {
41
+ backgroundColor: 'transparent',
42
+ color: mainColor
36
43
  }
37
- },
38
- container: {
39
- flex: 1,
40
- },
41
- containerOpen: {
42
-
43
- },
44
- input: {
45
- border: 'none',
46
- outline: 'none',
47
- boxSizing: 'border-box',
48
- width: '100%',
49
- padding: 5,
50
- margin: 2.5
51
- },
52
- suggestionsContainer: {
53
-
54
- },
55
- suggestionsList: {
56
- position: 'absolute',
57
- border: '1px solid #ccc',
58
- zIndex: 10,
59
- left: 0,
60
- top: '100%',
61
- width: '100%',
62
- backgroundColor: '#fff',
63
- listStyle: 'none',
64
- padding: 0,
65
- margin: 0,
66
- maxHeight: '300px',
67
- overflowY: 'scroll'
68
- },
69
- suggestion: {
70
- padding: '0.5em 1em',
71
- fontSize: '1rem'
72
- },
73
- suggestionHighlighted: {
74
- background: 'rgba(16, 101, 187, 0.75)',
75
- color: 'white'
76
- }
44
+ }),
45
+ placeholder: (provided) => ({
46
+ ...provided,
47
+ color: '#999',
48
+ margin: '2.5px',
49
+ padding: '5px'
50
+ }),
51
+ input: (provided) => ({
52
+ ...provided,
53
+ margin: '2.5px',
54
+ padding: '5px'
55
+ }),
56
+ valueContainer: (provided) => ({
57
+ ...provided,
58
+ padding: '2.5px'
59
+ })
77
60
  }
78
61
 
79
62
  const techTags = [".NET Framework", ".NET MVC", "3D", "Ab Initio", "Abacus", "Ada", "Adobe CS", "AEM", "AI", "Airflow", "Airtable", "Akeneo", "Altium Designer", "Amazon DocumentDB",
@@ -649,7 +632,6 @@ module.exports = {
649
632
  perkTagsTranslated,
650
633
  siteSpecificPerkTagsTranslated,
651
634
  getPerkTagsWithSiteSpecificTags,
652
- theme,
653
635
  chipTheme,
654
636
  extractTechTagsFrom,
655
637
  extractPerksFrom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swissdev-tech-tags",
3
- "version": "0.0.256",
3
+ "version": "0.0.257",
4
4
  "author": "Vrq",
5
5
  "repository": "https://github.com/Vrq/tech-tags",
6
6
  "main": "index.js",