@woosmap/ui 4.173.0 → 4.175.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.173.0",
3
+ "version": "4.175.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,
@@ -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-top' : 'caret-bottom'}
218
+ onClick={() => this.setState({ displayDetailed: !displayDetailed })}
218
219
  />
219
220
  </div>
220
221
  <ReactSlider