@woosmap/ui 4.172.0 → 4.174.0

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": "@woosmap/ui",
3
- "version": "4.172.0",
3
+ "version": "4.174.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -43,7 +43,7 @@ export default class Button extends Component {
43
43
  { 'btn--loading': isLoading },
44
44
  { 'btn--no-label': !label },
45
45
  { 'btn--custom-icon-size': iconSize && iconSize !== 22 },
46
- className,
46
+ className
47
47
  );
48
48
  let iconComponent = icon ? <Icon isFill={isFillIcon} size={iconSize} icon={icon} /> : null;
49
49
  if (isLoading) {
@@ -113,6 +113,7 @@ Button.propTypes = {
113
113
  'tab--pills',
114
114
  'tab--disabled',
115
115
  'sidebar-link',
116
+ 'toggle',
116
117
  ]),
117
118
  isLoading: PropTypes.bool,
118
119
  active: PropTypes.bool,
@@ -155,7 +155,7 @@ export default class PricingSlider extends Component {
155
155
  };
156
156
 
157
157
  displayDetails = (displayedPricing) => (
158
- <div className='pricing-slider__detailed-price'>
158
+ <div className="pricing-slider__detailed-price">
159
159
  <table>
160
160
  <tr>
161
161
  <td>{tr('Monthly Requests')}</td>
@@ -171,7 +171,6 @@ export default class PricingSlider extends Component {
171
171
  );
172
172
  })}
173
173
  </table>
174
- <Button label={tr('Close')} onClick={() => this.setState({ displayDetailed: false })} />
175
174
  </div>
176
175
  );
177
176
 
@@ -212,9 +211,11 @@ export default class PricingSlider extends Component {
212
211
  </div>
213
212
  <Button
214
213
  className="pricing-slider__detailed-price-btn"
215
- icon="caret-bottom"
214
+ iconRight
215
+ type="toggle"
216
216
  label={tr('Detailed Pricing')}
217
- onClick={() => this.setState({ displayDetailed: true })}
217
+ icon={displayDetailed ? 'caret-bottom' : 'caret-top'}
218
+ onClick={() => this.setState({ displayDetailed: !displayDetailed })}
218
219
  />
219
220
  </div>
220
221
  <ReactSlider
@@ -251,7 +252,7 @@ export default class PricingSlider extends Component {
251
252
  </div>
252
253
  <div className="pricing-slider__price">{displayedAmount}</div>
253
254
  </div>
254
- {displayDetailed && this.displayDetails(displayedPricing)}<
255
+ {displayDetailed && this.displayDetails(displayedPricing)}
255
256
  </div>
256
257
  );
257
258
  }