dce-reactkit 3.10.0 → 3.10.2

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": "dce-reactkit",
3
- "version": "3.10.0",
3
+ "version": "3.10.2",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -117,18 +117,17 @@ const CheckboxButton: React.FC<Props> = (props) => {
117
117
  onChanged(!checked);
118
118
  }}
119
119
  >
120
- <div className="d-flex">
121
- <div className="align-items-center">
120
+ <div className="d-flex align-items-center">
121
+ <div className="me-1">
122
122
  <FontAwesomeIcon
123
123
  icon={icon}
124
- className="me-1"
125
124
  />
126
125
  </div>
127
126
  {
128
127
  useComplexFormatting
129
128
  ? (
130
129
  <pre
131
- className="ps-2 text-start text-break"
130
+ className="ps-1 text-start text-break"
132
131
  style={{
133
132
  whiteSpace: 'pre-wrap',
134
133
  }}
@@ -137,7 +136,7 @@ const CheckboxButton: React.FC<Props> = (props) => {
137
136
  </pre>
138
137
  )
139
138
  : (
140
- <div className="flex-grow-1 text-start text-break ps-2">
139
+ <div className="flex-grow-1 text-start text-break">
141
140
  {text}
142
141
  </div>
143
142
  )
@@ -101,15 +101,17 @@ const RadioButton: React.FC<Props> = (props) => {
101
101
  }
102
102
  }}
103
103
  >
104
- <FontAwesomeIcon
105
- icon={selected ? faDotCircle : faCircle}
106
- className="me-1"
107
- />
108
- {
104
+ <div className="d-flex flex-row align-items-center">
105
+ <div className="me-1">
106
+ <FontAwesomeIcon
107
+ icon={selected ? faDotCircle : faCircle}
108
+ />
109
+ </div>
110
+ {
109
111
  useComplexFormatting
110
112
  ? (
111
113
  <pre
112
- className="ps-2 text-start text-break"
114
+ className="ps-1 text-start text-break"
113
115
  style={{
114
116
  whiteSpace: 'pre-wrap',
115
117
  }}
@@ -118,11 +120,12 @@ const RadioButton: React.FC<Props> = (props) => {
118
120
  </pre>
119
121
  )
120
122
  : (
121
- <div className="flex-grow-1 text-start text-break ps-2">
123
+ <div className="flex-grow-1 text-start text-break">
122
124
  {text}
123
125
  </div>
124
126
  )
125
127
  }
128
+ </div>
126
129
  </button>
127
130
  );
128
131
  };