@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.
- package/.idea/encodings.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +18 -0
- package/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- package/.idea/misc.xml +4 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/ui.iml +15 -0
- package/.idea/vcs.xml +6 -0
- package/package.json +1 -1
- package/src/components/Card/Card.js +21 -13
|
@@ -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>
|
package/.idea/misc.xml
ADDED
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
package/package.json
CHANGED
|
@@ -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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
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 = {
|