myoperator-ui 0.0.198-beta.0 → 0.0.198-beta.2
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
|
@@ -93,7 +93,7 @@ function transformSemanticClass(cls) {
|
|
|
93
93
|
function transformSemanticClasses(classString) {
|
|
94
94
|
return classString.split(" ").map((cls) => {
|
|
95
95
|
if (!cls) return cls;
|
|
96
|
-
const variantMatch = cls.match(/^(([a-z][a-z0-9]*(-[a-z0-9]+)
|
|
96
|
+
const variantMatch = cls.match(/^(([a-z][a-z0-9]*(-[a-z0-9]+)*(\/[a-z][a-z0-9-]*)?:)|((data|aria)-\[[^\]]+\]:))+/);
|
|
97
97
|
if (variantMatch) {
|
|
98
98
|
const variants = variantMatch[0];
|
|
99
99
|
const utility = cls.slice(variants.length);
|
|
@@ -289,7 +289,7 @@ function prefixClassString(classString, prefix) {
|
|
|
289
289
|
}
|
|
290
290
|
return cls;
|
|
291
291
|
}
|
|
292
|
-
const variantMatch = cls.match(/^(([a-z][a-z0-9]*(-[a-z0-9]+)
|
|
292
|
+
const variantMatch = cls.match(/^(([a-z][a-z0-9]*(-[a-z0-9]+)*(\/[a-z][a-z0-9-]*)?:)|((data|aria|group|peer)(\/[a-z0-9-]+)?-?\[[^\]]+\]:))+/);
|
|
293
293
|
if (variantMatch) {
|
|
294
294
|
const variants = variantMatch[0];
|
|
295
295
|
let utility = cls.slice(variants.length);
|