@primer/components 0.0.0-2021931194355 → 0.0.0-202193120811

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-2021931194355
3
+ ## 0.0.0-202193120811
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -94,11 +94,7 @@ const getStateStyles = (props, prop, state) => {
94
94
  today
95
95
  } = props;
96
96
 
97
- if (blocked) {
98
- return states.blocked[prop];
99
- } else if (disabled) {
100
- return states.disabled[prop];
101
- } else if (selected) {
97
+ if (selected) {
102
98
  switch (selected) {
103
99
  case 'start':
104
100
  return today && prop === 'color' ? states.selected.start['todayColor'] : states.selected.start[prop];
@@ -112,6 +108,10 @@ const getStateStyles = (props, prop, state) => {
112
108
  default:
113
109
  return today && prop === 'color' ? states.selected.default['todayColor'] : states.selected.default[prop];
114
110
  }
111
+ } else if (blocked) {
112
+ return states.blocked[prop];
113
+ } else if (disabled) {
114
+ return states.disabled[prop];
115
115
  } else {
116
116
  return today && prop === 'color' ? states.default[state]['todayColor'] : states.default[state][prop];
117
117
  }
@@ -75,11 +75,7 @@ const getStateStyles = (props, prop, state) => {
75
75
  today
76
76
  } = props;
77
77
 
78
- if (blocked) {
79
- return states.blocked[prop];
80
- } else if (disabled) {
81
- return states.disabled[prop];
82
- } else if (selected) {
78
+ if (selected) {
83
79
  switch (selected) {
84
80
  case 'start':
85
81
  return today && prop === 'color' ? states.selected.start['todayColor'] : states.selected.start[prop];
@@ -93,6 +89,10 @@ const getStateStyles = (props, prop, state) => {
93
89
  default:
94
90
  return today && prop === 'color' ? states.selected.default['todayColor'] : states.selected.default[prop];
95
91
  }
92
+ } else if (blocked) {
93
+ return states.blocked[prop];
94
+ } else if (disabled) {
95
+ return states.disabled[prop];
96
96
  } else {
97
97
  return today && prop === 'color' ? states.default[state]['todayColor'] : states.default[state][prop];
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/components",
3
- "version": "0.0.0-2021931194355",
3
+ "version": "0.0.0-202193120811",
4
4
  "description": "Primer react components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",