Packages
Advanced configurable navigation component for Phoenix LiveView with native DaisyUI integration, Tailwind CSS support, permissions filtering, dropdowns, mega menus, and modern responsive design. Optimized for Phoenix 1.8+ and LiveView 1.1+.
Current section
Files
Jump to
Current section
Files
assets/node_modules/culori/src/util/regex.js
/*
Basic building blocks for color regexes
---------------------------------------
These regexes are expressed as strings
to be interpolated in the color regexes.
*/
// <number>
export const num = '([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)';
// <number> or 'none'
export const num_none = `(?:${num}|none)`;
// <percentage>
export const per = `${num}%`;
// <percent> or 'none'
export const per_none = `(?:${num}%|none)`;
// <number-percentage> (<alpha-value>)
export const num_per = `(?:${num}%|${num})`;
// <number-percentage> (<alpha-value>) or 'none'
export const num_per_none = `(?:${num}%|${num}|none)`;
// <hue>
export const hue = `(?:${num}(deg|grad|rad|turn)|${num})`;
// <hue> or 'none'
export const hue_none = `(?:${num}(deg|grad|rad|turn)|${num}|none)`;
export const c = `\\s*,\\s*`; // comma
export const so = '\\s*'; // space, optional
export const s = `\\s+`; // space
export const rx_num_per_none = new RegExp('^' + num_per_none + '$');