Module: Athar::Dashboard::IconHelper

Included in:
Athar::DashboardHelper
Defined in:
app/helpers/athar/dashboard/icon_helper.rb

Overview

Inline SVG icon library. Each method returns a raw SVG string; callers are responsible for marking it html_safe (typically via ‘raw(…)`) when the icon needs to embed in surrounding HTML.

Instance Method Summary collapse

Instance Method Details

#icon_checkObject



26
27
28
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 26

def icon_check
  %(<svg viewBox="0 0 16 16" width="11" height="11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 8l3 3 7-7"/></svg>)
end

#icon_chev_downObject



14
15
16
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 14

def icon_chev_down
  %(<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6l4 4 4-4"/></svg>)
end

#icon_chev_rightObject

rubocop:disable Layout/LineLength



10
11
12
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 10

def icon_chev_right
  %(<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4l4 4-4 4"/></svg>)
end

#icon_copyObject



22
23
24
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 22

def icon_copy
  %(<svg viewBox="0 0 16 16" width="11" height="11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M11 5V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2"/></svg>)
end

#icon_delObject



34
35
36
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 34

def icon_del
  %(<svg viewBox="0 0 16 16" width="11" height="11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 4h10M5 4V3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1M4 4l1 9a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l1-9"/></svg>)
end

#icon_searchObject



18
19
20
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 18

def icon_search
  %(<svg viewBox="0 0 16 16" width="12" height="12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M7 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zM11 11l3 3"/></svg>)
end

#icon_truncObject



30
31
32
# File 'app/helpers/athar/dashboard/icon_helper.rb', line 30

def icon_trunc
  %(<svg viewBox="0 0 16 16" width="11" height="11" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 8h12M5 5l-3 3 3 3M11 11l3-3-3-3"/></svg>)
end