@datawheel/bespoke 0.3.13 → 0.3.14
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8530,8 +8530,8 @@ init_esm_shims();
|
|
|
8530
8530
|
init_store2();
|
|
8531
8531
|
var ALLOWED_UNITS = ["px", "%"];
|
|
8532
8532
|
var formatters = {
|
|
8533
|
-
px: (value) => !Number.isNaN(parseFloat(value)) ? `${value}px`.replace(
|
|
8534
|
-
|
|
8533
|
+
px: (value) => !Number.isNaN(parseFloat(value)) ? `${value}px`.replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,") : "px",
|
|
8534
|
+
"%": (value) => !Number.isNaN(parseFloat(value)) ? `${value}%`.replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,") : "%"
|
|
8535
8535
|
};
|
|
8536
8536
|
var WidthInputProps = {
|
|
8537
8537
|
"px": {
|