@woosmap/ui 4.19.0 → 4.19.1

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.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,18 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
6
+ <option name="ignoredPackages">
7
+ <value>
8
+ <list size="4">
9
+ <item index="0" class="java.lang.String" itemvalue="Fabric" />
10
+ <item index="1" class="java.lang.String" itemvalue="PyYAML" />
11
+ <item index="2" class="java.lang.String" itemvalue="Jinja2" />
12
+ <item index="3" class="java.lang.String" itemvalue="github3.py" />
13
+ </list>
14
+ </value>
15
+ </option>
16
+ </inspection_tool>
17
+ </profile>
18
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
package/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ui.iml" filepath="$PROJECT_DIR$/.idea/ui.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myRunOnReformat" value="true" />
5
+ </component>
6
+ </project>
package/.idea/ui.iml ADDED
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="inheritedJdk" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ <component name="TemplatesService">
9
+ <option name="TEMPLATE_FOLDERS">
10
+ <list>
11
+ <option value="$MODULE_DIR$/node_modules/@storybook/core/dist/server/templates" />
12
+ </list>
13
+ </option>
14
+ </component>
15
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -98,7 +98,7 @@ Footer.propTypes = {
98
98
 
99
99
  class Aside extends Component {
100
100
  render() {
101
- const { product, mode, children } = this.props;
101
+ const { product, mode, children, isEnterprise } = this.props;
102
102
  if (mode === 'pluggedTo') {
103
103
  return (
104
104
  <div className="card__aside card__aside--small card__aside--grey">
@@ -129,18 +129,22 @@ class Aside extends Component {
129
129
  />
130
130
  <div className="card__aside__list__item__section">
131
131
  <div className="card__aside__list__item__section__title">{product.name}</div>
132
- <Tooltip
133
- direction="n"
134
- wrap
135
- text={tr(
136
- '{{name}} add-on not included in the 40k Free credits/month. Usage is chargeable from the first request.',
137
- { name: product.name }
138
- )}
139
- >
140
- <div className="card__aside__list__item__section__paying-label">
141
- <span>{tr('Paying from the first request')}</span>
142
- </div>
143
- </Tooltip>
132
+ {isEnterprise ? (
133
+ <Tooltip
134
+ direction="n"
135
+ wrap
136
+ text={tr(
137
+ '{{name}} add-on not included in the 40k Free credits/month. Usage is chargeable from the first request.',
138
+ { name: product.name }
139
+ )}
140
+ >
141
+ <div className="card__aside__list__item__section__paying-label">
142
+ <span>{tr('Paying from the first request')}</span>
143
+ </div>
144
+ </Tooltip>
145
+ ) : (
146
+ false
147
+ )}
144
148
  <div className="card__aside__list__item__section__item">{children}</div>
145
149
  </div>
146
150
  </li>
@@ -170,11 +174,14 @@ class Aside extends Component {
170
174
  Aside.propTypes = {
171
175
  children: PropTypes.node,
172
176
  product: PropTypes.object.isRequired,
177
+ isEnterprise: PropTypes.bool,
178
+
173
179
  mode: PropTypes.oneOf(['pluggedTo', 'addon', 'worksWith']).isRequired,
174
180
  };
175
181
 
176
182
  Aside.defaultProps = {
177
183
  children: null,
184
+ isEnterprise: false,
178
185
  };
179
186
 
180
187
  class Card extends Component {
@@ -278,6 +285,7 @@ Card.defaultProps = {
278
285
  noBorder: false,
279
286
  isNew: false,
280
287
  testId: 'card',
288
+ isEnterprise: false,
281
289
  };
282
290
 
283
291
  Card.propTypes = {