@itcase/ui 1.3.16 → 1.3.17

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.
@@ -113,11 +113,11 @@ function useStyles(props) {
113
113
  // If value has some unit
114
114
  if (hasUnitRegExp.test(value)) {
115
115
  // Check value on our custom "m"(module) unit
116
- const hasModuleUnitRegExp = /^\d+m$/;
116
+ const hasModuleUnitRegExp = /^\d+\.?\d*m$/;
117
117
  // If value has module unit
118
118
  if (hasModuleUnitRegExp.test(value)) {
119
119
  // Find numbers from value value
120
- const numberMatchesList = value.match(/\d+/);
120
+ const numberMatchesList = value.match(/\d+\.?\d*/);
121
121
  // If "numberMatchesList" not null (has matches)
122
122
  if (numberMatchesList) {
123
123
  // Parse module value to px value
@@ -111,11 +111,11 @@ function useStyles(props) {
111
111
  // If value has some unit
112
112
  if (hasUnitRegExp.test(value)) {
113
113
  // Check value on our custom "m"(module) unit
114
- const hasModuleUnitRegExp = /^\d+m$/;
114
+ const hasModuleUnitRegExp = /^\d+\.?\d*m$/;
115
115
  // If value has module unit
116
116
  if (hasModuleUnitRegExp.test(value)) {
117
117
  // Find numbers from value value
118
- const numberMatchesList = value.match(/\d+/);
118
+ const numberMatchesList = value.match(/\d+\.?\d*/);
119
119
  // If "numberMatchesList" not null (has matches)
120
120
  if (numberMatchesList) {
121
121
  // Parse module value to px value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",