@assure-one/design-system 1.44.0 → 1.44.1
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 +1 -1
- package/dist/index.js.map +1 -1
- package/eslint-config/index.mjs +3 -1
- package/package.json +1 -1
package/eslint-config/index.mjs
CHANGED
|
@@ -344,7 +344,9 @@ const noAuthoredSvg = {
|
|
|
344
344
|
* multiplication and dimension sign far more often than a close button.
|
|
345
345
|
*/
|
|
346
346
|
const GLYPH = "[✓✔✗✘✕✖▾▴▸◂▼▲►◄▶◀⏵⏷↑↓←→↗↘↙↖⇅⇄↩↪⋯⋮⚠ℹ★☆◉◎✎✏⟳↻↺⏱⌄⌃⨯⬆⬇➔➜➝➞]";
|
|
347
|
-
|
|
347
|
+
/** Pictographs, minus the typographic marks that are text: © ® ™. */
|
|
348
|
+
const PICTOGRAPH = "(?![©®™])\\p{Extended_Pictographic}";
|
|
349
|
+
const ONLY_GLYPHS = new RegExp(`^(?:${GLYPH}|${PICTOGRAPH}|\\uFE0F|\\s)+$`, "u");
|
|
348
350
|
const EDGE_GLYPH = new RegExp(`^${GLYPH}\\s|\\s${GLYPH}$`, "u");
|
|
349
351
|
/** Elements whose text is a keyboard legend, where ↵ ⌘ ↑ are the key names. */
|
|
350
352
|
const KEY_ELEMENTS = new Set(["Kbd", "KbdHint", "kbd", "Shortcut"]);
|