@woosmap/ui 3.150.0 → 3.152.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": "3.150.0",
3
+ "version": "3.152.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -110,8 +110,8 @@ Footer.propTypes = {
110
110
 
111
111
  class Aside extends Component {
112
112
  render() {
113
- const { product, mode } = this.props;
114
- if (mode === 'pluggedto') {
113
+ const { product, mode, children } = this.props;
114
+ if (mode === 'pluggedTo') {
115
115
  return (
116
116
  <div className="card__aside card__aside--small card__aside--grey">
117
117
  <div className="card__aside__title">{tr('Plugged to')}</div>
@@ -141,7 +141,7 @@ class Aside extends Component {
141
141
  />
142
142
  <div>
143
143
  <div className="card__aside__list__item__title mb--5">{product.name}</div>
144
- <siv>switch</siv>
144
+ <div>{children}</div>
145
145
  </div>
146
146
  </li>
147
147
  </ul>
@@ -168,8 +168,9 @@ class Aside extends Component {
168
168
  }
169
169
 
170
170
  Aside.propTypes = {
171
+ children: PropTypes.node.isRequired,
171
172
  product: PropTypes.object.isRequired,
172
- mode: PropTypes.oneOf(['pluggedto', 'addon', 'workwith']).isRequired,
173
+ mode: PropTypes.oneOf(['pluggedTo', 'addon', 'worksWith']).isRequired,
173
174
  };
174
175
 
175
176
  class Card extends Component {
@@ -188,7 +189,7 @@ class Card extends Component {
188
189
  size,
189
190
  testId,
190
191
  isNew,
191
- orientation,
192
+ isVertical,
192
193
  asideContent,
193
194
  ...rest
194
195
  } = this.props;
@@ -229,7 +230,7 @@ class Card extends Component {
229
230
  role="button"
230
231
  className={cl(
231
232
  'card',
232
- `card--${orientation}`,
233
+ 'card--vertical',
233
234
  `card--${size}`,
234
235
  { 'card--aside': asideContent },
235
236
  { 'card--no-border': noBorder },
@@ -261,7 +262,7 @@ class Card extends Component {
261
262
  Card.defaultProps = {
262
263
  asideContent: null,
263
264
  size: 'normal',
264
- orientation: 'horizontal',
265
+ isVertical: false,
265
266
  useIcon: false,
266
267
  isList: false,
267
268
  className: null,
@@ -278,7 +279,7 @@ Card.defaultProps = {
278
279
  Card.propTypes = {
279
280
  asideContent: PropTypes.node,
280
281
  size: PropTypes.oneOf(['small', 'large', 'normal']),
281
- orientation: PropTypes.oneOf(['horizontal', 'vertical']),
282
+ isVertical: PropTypes.bool,
282
283
  testId: PropTypes.string,
283
284
  children: PropTypes.node.isRequired,
284
285
  useIcon: PropTypes.bool,
@@ -14,7 +14,9 @@ const Story = {
14
14
  export default Story;
15
15
  const renderAsideContent = () => (
16
16
  <>
17
- <Card.Aside mode="addon" product={{ id: 'INDOOR_MAP', name: 'Indoor Map' }} />
17
+ <Card.Aside mode="addon" product={{ id: 'INDOOR_MAP', name: 'Indoor Map' }}>
18
+ switch
19
+ </Card.Aside>
18
20
  </>
19
21
  );
20
22