feat: add new icon components including Envelope, ChatCircle, HardDrives, WarningCircle, CheckCircle, XCircle, TrendUp, ShieldWarning, LockKey, Crown, Sparkle, BookOpen, Tree, Broom, Export, UploadSimple, Funnel, FunnelSimple, MapTrifold, PushPinSimple, Buildings, GithubLogo, and GoogleLogo

This commit is contained in:
2025-12-30 12:21:15 +00:00
parent 29061af4b1
commit cfa1e5bfee
2132 changed files with 206959 additions and 206933 deletions

View File

@@ -1,43 +1,43 @@
-- String utilities for testing
-- Provides trim, split, startsWith, endsWith functions
---@class StringUtils
local M = {}
---Trim whitespace from both ends of a string
---@param s string String to trim
---@return string Trimmed string
function M.trim(s)
return s:match("^%s*(.-)%s*$")
end
---Split a string by delimiter
---@param s string String to split
---@param delimiter? string Delimiter pattern (default whitespace)
---@return string[] Array of parts
function M.split(s, delimiter)
delimiter = delimiter or "%s"
local result = {}
for match in (s .. delimiter):gmatch("(.-)" .. delimiter) do
result[#result + 1] = match
end
return result
end
---Check if string starts with prefix
---@param s string String to check
---@param prefix string Prefix to look for
---@return boolean True if s starts with prefix
function M.startsWith(s, prefix)
return s:sub(1, #prefix) == prefix
end
---Check if string ends with suffix
---@param s string String to check
---@param suffix string Suffix to look for
---@return boolean True if s ends with suffix
function M.endsWith(s, suffix)
return suffix == "" or s:sub(-#suffix) == suffix
end
return M
-- String utilities for testing
-- Provides trim, split, startsWith, endsWith functions
---@class StringUtils
local M = {}
---Trim whitespace from both ends of a string
---@param s string String to trim
---@return string Trimmed string
function M.trim(s)
return s:match("^%s*(.-)%s*$")
end
---Split a string by delimiter
---@param s string String to split
---@param delimiter? string Delimiter pattern (default whitespace)
---@return string[] Array of parts
function M.split(s, delimiter)
delimiter = delimiter or "%s"
local result = {}
for match in (s .. delimiter):gmatch("(.-)" .. delimiter) do
result[#result + 1] = match
end
return result
end
---Check if string starts with prefix
---@param s string String to check
---@param prefix string Prefix to look for
---@return boolean True if s starts with prefix
function M.startsWith(s, prefix)
return s:sub(1, #prefix) == prefix
end
---Check if string ends with suffix
---@param s string String to check
---@param suffix string Suffix to look for
---@return boolean True if s ends with suffix
function M.endsWith(s, suffix)
return suffix == "" or s:sub(-#suffix) == suffix
end
return M