@micromag/core 0.2.291 → 0.2.320
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/es/components.js +16 -5
- package/lib/components.js +16 -5
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -65,6 +65,7 @@ var propTypes$H = {
|
|
|
65
65
|
target: PropTypes$1.string,
|
|
66
66
|
label: PropTypes.label,
|
|
67
67
|
children: PropTypes.label,
|
|
68
|
+
focusable: PropTypes$1.bool,
|
|
68
69
|
active: PropTypes$1.bool,
|
|
69
70
|
icon: PropTypes$1.node,
|
|
70
71
|
iconPosition: PropTypes$1.oneOf(['left', 'right', 'inline']),
|
|
@@ -97,6 +98,7 @@ var defaultProps$H = {
|
|
|
97
98
|
target: '_blank',
|
|
98
99
|
label: null,
|
|
99
100
|
children: null,
|
|
101
|
+
focusable: true,
|
|
100
102
|
active: false,
|
|
101
103
|
icon: null,
|
|
102
104
|
iconPosition: 'inline',
|
|
@@ -129,6 +131,7 @@ var Button$1 = function Button(_ref) {
|
|
|
129
131
|
target = _ref.target,
|
|
130
132
|
label = _ref.label,
|
|
131
133
|
children = _ref.children,
|
|
134
|
+
focusable = _ref.focusable,
|
|
132
135
|
active = _ref.active,
|
|
133
136
|
icon = _ref.icon,
|
|
134
137
|
iconPosition = _ref.iconPosition,
|
|
@@ -147,7 +150,7 @@ var Button$1 = function Button(_ref) {
|
|
|
147
150
|
iconClassName = _ref.iconClassName,
|
|
148
151
|
labelClassName = _ref.labelClassName,
|
|
149
152
|
refButton = _ref.refButton,
|
|
150
|
-
props = _objectWithoutProperties(_ref, ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"]);
|
|
153
|
+
props = _objectWithoutProperties(_ref, ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"]);
|
|
151
154
|
|
|
152
155
|
var finalLabel = label || children;
|
|
153
156
|
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
|
|
@@ -180,12 +183,14 @@ var Button$1 = function Button(_ref) {
|
|
|
180
183
|
className: linkClassNames,
|
|
181
184
|
onClick: onClick,
|
|
182
185
|
target: external ? target : null,
|
|
183
|
-
ref: refButton
|
|
186
|
+
ref: refButton,
|
|
187
|
+
tabIndex: focusable ? '' : '-1'
|
|
184
188
|
}), content) : /*#__PURE__*/React.createElement(Link$1, {
|
|
185
189
|
to: href,
|
|
186
190
|
className: linkClassNames,
|
|
187
191
|
onClick: onClick,
|
|
188
|
-
ref: refButton
|
|
192
|
+
ref: refButton,
|
|
193
|
+
tabIndex: focusable ? '' : '-1'
|
|
189
194
|
}, content);
|
|
190
195
|
}
|
|
191
196
|
|
|
@@ -194,7 +199,8 @@ var Button$1 = function Button(_ref) {
|
|
|
194
199
|
className: buttonClassNames,
|
|
195
200
|
onClick: onClick,
|
|
196
201
|
disabled: disabled || disableOnLoading && loading,
|
|
197
|
-
ref: refButton
|
|
202
|
+
ref: refButton,
|
|
203
|
+
tabIndex: focusable ? '0' : '-1'
|
|
198
204
|
}), content);
|
|
199
205
|
};
|
|
200
206
|
|
|
@@ -2839,7 +2845,9 @@ var Meta = function Meta(_ref) {
|
|
|
2839
2845
|
_ref2$atomUrl = _ref2.atomUrl,
|
|
2840
2846
|
atomUrl = _ref2$atomUrl === void 0 ? null : _ref2$atomUrl,
|
|
2841
2847
|
_ref2$microformats = _ref2.microformats,
|
|
2842
|
-
microformats = _ref2$microformats === void 0 ? [] : _ref2$microformats
|
|
2848
|
+
microformats = _ref2$microformats === void 0 ? [] : _ref2$microformats,
|
|
2849
|
+
_ref2$language = _ref2.language,
|
|
2850
|
+
language = _ref2$language === void 0 ? null : _ref2$language;
|
|
2843
2851
|
|
|
2844
2852
|
var realTitle = title !== null ? "".concat(title, " | ").concat(suffix) : fullTitle;
|
|
2845
2853
|
|
|
@@ -2862,6 +2870,9 @@ var Meta = function Meta(_ref) {
|
|
|
2862
2870
|
return /*#__PURE__*/React.createElement(Helmet, null, /*#__PURE__*/React.createElement("title", null, realTitle !== null && realTitle.length > 0 ? realTitle : 'Micromag'), description !== null ? /*#__PURE__*/React.createElement("meta", {
|
|
2863
2871
|
name: "description",
|
|
2864
2872
|
content: description
|
|
2873
|
+
}) : null, language !== null ? /*#__PURE__*/React.createElement("meta", {
|
|
2874
|
+
name: "language",
|
|
2875
|
+
content: language
|
|
2865
2876
|
}) : null, keywords !== null && isString(keywords) ? /*#__PURE__*/React.createElement("meta", {
|
|
2866
2877
|
name: "keywords",
|
|
2867
2878
|
content: keywords
|
package/lib/components.js
CHANGED
|
@@ -88,6 +88,7 @@ var propTypes$H = {
|
|
|
88
88
|
target: PropTypes__default['default'].string,
|
|
89
89
|
label: core.PropTypes.label,
|
|
90
90
|
children: core.PropTypes.label,
|
|
91
|
+
focusable: PropTypes__default['default'].bool,
|
|
91
92
|
active: PropTypes__default['default'].bool,
|
|
92
93
|
icon: PropTypes__default['default'].node,
|
|
93
94
|
iconPosition: PropTypes__default['default'].oneOf(['left', 'right', 'inline']),
|
|
@@ -120,6 +121,7 @@ var defaultProps$H = {
|
|
|
120
121
|
target: '_blank',
|
|
121
122
|
label: null,
|
|
122
123
|
children: null,
|
|
124
|
+
focusable: true,
|
|
123
125
|
active: false,
|
|
124
126
|
icon: null,
|
|
125
127
|
iconPosition: 'inline',
|
|
@@ -152,6 +154,7 @@ var Button$1 = function Button(_ref) {
|
|
|
152
154
|
target = _ref.target,
|
|
153
155
|
label = _ref.label,
|
|
154
156
|
children = _ref.children,
|
|
157
|
+
focusable = _ref.focusable,
|
|
155
158
|
active = _ref.active,
|
|
156
159
|
icon = _ref.icon,
|
|
157
160
|
iconPosition = _ref.iconPosition,
|
|
@@ -170,7 +173,7 @@ var Button$1 = function Button(_ref) {
|
|
|
170
173
|
iconClassName = _ref.iconClassName,
|
|
171
174
|
labelClassName = _ref.labelClassName,
|
|
172
175
|
refButton = _ref.refButton,
|
|
173
|
-
props = _objectWithoutProperties__default['default'](_ref, ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"]);
|
|
176
|
+
props = _objectWithoutProperties__default['default'](_ref, ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"]);
|
|
174
177
|
|
|
175
178
|
var finalLabel = label || children;
|
|
176
179
|
var text = finalLabel !== null ? /*#__PURE__*/React__default['default'].createElement(Label, null, finalLabel) : null;
|
|
@@ -203,12 +206,14 @@ var Button$1 = function Button(_ref) {
|
|
|
203
206
|
className: linkClassNames,
|
|
204
207
|
onClick: onClick,
|
|
205
208
|
target: external ? target : null,
|
|
206
|
-
ref: refButton
|
|
209
|
+
ref: refButton,
|
|
210
|
+
tabIndex: focusable ? '' : '-1'
|
|
207
211
|
}), content) : /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Link, {
|
|
208
212
|
to: href,
|
|
209
213
|
className: linkClassNames,
|
|
210
214
|
onClick: onClick,
|
|
211
|
-
ref: refButton
|
|
215
|
+
ref: refButton,
|
|
216
|
+
tabIndex: focusable ? '' : '-1'
|
|
212
217
|
}, content);
|
|
213
218
|
}
|
|
214
219
|
|
|
@@ -217,7 +222,8 @@ var Button$1 = function Button(_ref) {
|
|
|
217
222
|
className: buttonClassNames,
|
|
218
223
|
onClick: onClick,
|
|
219
224
|
disabled: disabled || disableOnLoading && loading,
|
|
220
|
-
ref: refButton
|
|
225
|
+
ref: refButton,
|
|
226
|
+
tabIndex: focusable ? '0' : '-1'
|
|
221
227
|
}), content);
|
|
222
228
|
};
|
|
223
229
|
|
|
@@ -2862,7 +2868,9 @@ var Meta = function Meta(_ref) {
|
|
|
2862
2868
|
_ref2$atomUrl = _ref2.atomUrl,
|
|
2863
2869
|
atomUrl = _ref2$atomUrl === void 0 ? null : _ref2$atomUrl,
|
|
2864
2870
|
_ref2$microformats = _ref2.microformats,
|
|
2865
|
-
microformats = _ref2$microformats === void 0 ? [] : _ref2$microformats
|
|
2871
|
+
microformats = _ref2$microformats === void 0 ? [] : _ref2$microformats,
|
|
2872
|
+
_ref2$language = _ref2.language,
|
|
2873
|
+
language = _ref2$language === void 0 ? null : _ref2$language;
|
|
2866
2874
|
|
|
2867
2875
|
var realTitle = title !== null ? "".concat(title, " | ").concat(suffix) : fullTitle;
|
|
2868
2876
|
|
|
@@ -2885,6 +2893,9 @@ var Meta = function Meta(_ref) {
|
|
|
2885
2893
|
return /*#__PURE__*/React__default['default'].createElement(reactHelmet.Helmet, null, /*#__PURE__*/React__default['default'].createElement("title", null, realTitle !== null && realTitle.length > 0 ? realTitle : 'Micromag'), description !== null ? /*#__PURE__*/React__default['default'].createElement("meta", {
|
|
2886
2894
|
name: "description",
|
|
2887
2895
|
content: description
|
|
2896
|
+
}) : null, language !== null ? /*#__PURE__*/React__default['default'].createElement("meta", {
|
|
2897
|
+
name: "language",
|
|
2898
|
+
content: language
|
|
2888
2899
|
}) : null, keywords !== null && isString__default['default'](keywords) ? /*#__PURE__*/React__default['default'].createElement("meta", {
|
|
2889
2900
|
name: "keywords",
|
|
2890
2901
|
content: keywords
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.320",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "e710981101344c5b9dabf805fae6258743337e51"
|
|
120
120
|
}
|