myoperator-ui 0.0.172-beta.1 → 0.0.172-beta.3
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 +3 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -240,7 +240,7 @@ function looksLikeTailwindClasses(str) {
|
|
|
240
240
|
];
|
|
241
241
|
if (nonClassValues.includes(str.toLowerCase())) return false;
|
|
242
242
|
if (/^[A-Z][a-zA-Z]*$/.test(str)) return false;
|
|
243
|
-
if (str.startsWith("@") || str.startsWith(".") || str.startsWith("/") || str.includes("::")) return false;
|
|
243
|
+
if (str.startsWith("@") || str.startsWith(".") || str.startsWith("/") || str.includes("::") && !str.includes("[&")) return false;
|
|
244
244
|
const tailwindUtilityPrefixes = ["text", "bg", "p", "m", "px", "py", "mx", "my", "pt", "pb", "pl", "pr", "mt", "mb", "ml", "mr", "w", "h", "min", "max", "gap", "space", "border", "rounded", "shadow", "opacity", "font", "leading", "tracking", "z", "inset", "top", "bottom", "left", "right", "flex", "grid", "col", "row", "justify", "items", "content", "self", "place", "order", "float", "clear", "object", "overflow", "overscroll", "scroll", "list", "appearance", "cursor", "pointer", "resize", "select", "fill", "stroke", "table", "caption", "transition", "duration", "ease", "delay", "animate", "transform", "origin", "scale", "rotate", "translate", "skew", "accent", "caret", "outline", "ring", "blur", "brightness", "contrast", "grayscale", "hue", "invert", "saturate", "sepia", "backdrop", "divide", "sr", "not", "snap", "touch", "will", "aspect", "container", "columns", "break", "box", "isolation", "mix", "filter", "drop", "size", "shrink", "grow", "basis", "whitespace", "decoration", "indent"];
|
|
245
245
|
if (str.includes("-") && !str.includes(" ")) {
|
|
246
246
|
const prefix = str.split("-")[0];
|
|
@@ -1735,11 +1735,6 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
1735
1735
|
const ariaDescribedBy = error ? errorId : helperText ? helperId : undefined;
|
|
1736
1736
|
|
|
1737
1737
|
// Render the input element
|
|
1738
|
-
const numberSpinnerClasses =
|
|
1739
|
-
type === "number"
|
|
1740
|
-
? "[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
|
|
1741
|
-
: undefined;
|
|
1742
|
-
|
|
1743
1738
|
const inputElement = (
|
|
1744
1739
|
<input
|
|
1745
1740
|
ref={ref}
|
|
@@ -1749,7 +1744,8 @@ const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
1749
1744
|
hasAddons
|
|
1750
1745
|
? "flex-1 bg-transparent border-0 outline-none focus:ring-0 px-0 h-full text-sm text-semantic-text-primary placeholder:text-semantic-text-placeholder disabled:cursor-not-allowed"
|
|
1751
1746
|
: textFieldInputVariants({ state: derivedState, className }),
|
|
1752
|
-
|
|
1747
|
+
type === "number" &&
|
|
1748
|
+
"[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"
|
|
1753
1749
|
)}
|
|
1754
1750
|
disabled={disabled || loading}
|
|
1755
1751
|
maxLength={maxLength}
|