phlex-icons-radix 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.devcontainer/devcontainer.json +53 -0
- data/.devcontainer/setup.sh +5 -0
- data/.rspec +3 -0
- data/.rubocop.yml +28 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +138 -0
- data/Rakefile +12 -0
- data/generators/bootstrap.rb +69 -0
- data/generators/flag.rb +68 -0
- data/generators/helper.rb +102 -0
- data/generators/hero.rb +63 -0
- data/generators/lucide.rb +54 -0
- data/generators/radix.rb +54 -0
- data/generators/remix.rb +57 -0
- data/lib/phlex/icons/base.rb +19 -0
- data/lib/phlex/icons/configuration.rb +13 -0
- data/lib/phlex/icons/radix/accessibility.rb +28 -0
- data/lib/phlex/icons/radix/activity_log.rb +28 -0
- data/lib/phlex/icons/radix/align_baseline.rb +28 -0
- data/lib/phlex/icons/radix/align_bottom.rb +28 -0
- data/lib/phlex/icons/radix/align_center_horizontally.rb +28 -0
- data/lib/phlex/icons/radix/align_center_vertically.rb +28 -0
- data/lib/phlex/icons/radix/align_left.rb +28 -0
- data/lib/phlex/icons/radix/align_right.rb +28 -0
- data/lib/phlex/icons/radix/align_top.rb +28 -0
- data/lib/phlex/icons/radix/all_sides.rb +28 -0
- data/lib/phlex/icons/radix/angle.rb +28 -0
- data/lib/phlex/icons/radix/archive.rb +28 -0
- data/lib/phlex/icons/radix/arrow_bottom_left.rb +28 -0
- data/lib/phlex/icons/radix/arrow_bottom_right.rb +28 -0
- data/lib/phlex/icons/radix/arrow_down.rb +28 -0
- data/lib/phlex/icons/radix/arrow_left.rb +28 -0
- data/lib/phlex/icons/radix/arrow_right.rb +28 -0
- data/lib/phlex/icons/radix/arrow_top_left.rb +28 -0
- data/lib/phlex/icons/radix/arrow_top_right.rb +28 -0
- data/lib/phlex/icons/radix/arrow_up.rb +28 -0
- data/lib/phlex/icons/radix/aspect_ratio.rb +28 -0
- data/lib/phlex/icons/radix/avatar.rb +28 -0
- data/lib/phlex/icons/radix/backpack.rb +28 -0
- data/lib/phlex/icons/radix/badge.rb +28 -0
- data/lib/phlex/icons/radix/bar_chart.rb +28 -0
- data/lib/phlex/icons/radix/base.rb +17 -0
- data/lib/phlex/icons/radix/bell.rb +28 -0
- data/lib/phlex/icons/radix/blending_mode.rb +28 -0
- data/lib/phlex/icons/radix/bookmark.rb +28 -0
- data/lib/phlex/icons/radix/bookmark_filled.rb +28 -0
- data/lib/phlex/icons/radix/border_all.rb +100 -0
- data/lib/phlex/icons/radix/border_bottom.rb +235 -0
- data/lib/phlex/icons/radix/border_dashed.rb +28 -0
- data/lib/phlex/icons/radix/border_dotted.rb +28 -0
- data/lib/phlex/icons/radix/border_left.rb +261 -0
- data/lib/phlex/icons/radix/border_none.rb +285 -0
- data/lib/phlex/icons/radix/border_right.rb +209 -0
- data/lib/phlex/icons/radix/border_solid.rb +28 -0
- data/lib/phlex/icons/radix/border_split.rb +132 -0
- data/lib/phlex/icons/radix/border_style.rb +28 -0
- data/lib/phlex/icons/radix/border_top.rb +261 -0
- data/lib/phlex/icons/radix/border_width.rb +25 -0
- data/lib/phlex/icons/radix/box.rb +28 -0
- data/lib/phlex/icons/radix/box_model.rb +28 -0
- data/lib/phlex/icons/radix/button.rb +28 -0
- data/lib/phlex/icons/radix/calendar.rb +28 -0
- data/lib/phlex/icons/radix/camera.rb +28 -0
- data/lib/phlex/icons/radix/card_stack.rb +28 -0
- data/lib/phlex/icons/radix/card_stack_minus.rb +28 -0
- data/lib/phlex/icons/radix/card_stack_plus.rb +28 -0
- data/lib/phlex/icons/radix/caret_down.rb +28 -0
- data/lib/phlex/icons/radix/caret_left.rb +28 -0
- data/lib/phlex/icons/radix/caret_right.rb +28 -0
- data/lib/phlex/icons/radix/caret_sort.rb +28 -0
- data/lib/phlex/icons/radix/caret_up.rb +28 -0
- data/lib/phlex/icons/radix/chat_bubble.rb +28 -0
- data/lib/phlex/icons/radix/check.rb +28 -0
- data/lib/phlex/icons/radix/check_circled.rb +28 -0
- data/lib/phlex/icons/radix/checkbox.rb +28 -0
- data/lib/phlex/icons/radix/chevron_down.rb +28 -0
- data/lib/phlex/icons/radix/chevron_left.rb +28 -0
- data/lib/phlex/icons/radix/chevron_right.rb +28 -0
- data/lib/phlex/icons/radix/chevron_up.rb +28 -0
- data/lib/phlex/icons/radix/circle.rb +28 -0
- data/lib/phlex/icons/radix/circle_backslash.rb +28 -0
- data/lib/phlex/icons/radix/clipboard.rb +28 -0
- data/lib/phlex/icons/radix/clipboard_copy.rb +28 -0
- data/lib/phlex/icons/radix/clock.rb +28 -0
- data/lib/phlex/icons/radix/code.rb +28 -0
- data/lib/phlex/icons/radix/codesandbox_logo.rb +28 -0
- data/lib/phlex/icons/radix/color_wheel.rb +28 -0
- data/lib/phlex/icons/radix/column_spacing.rb +28 -0
- data/lib/phlex/icons/radix/columns.rb +28 -0
- data/lib/phlex/icons/radix/commit.rb +28 -0
- data/lib/phlex/icons/radix/component_1.rb +28 -0
- data/lib/phlex/icons/radix/component_2.rb +28 -0
- data/lib/phlex/icons/radix/component_boolean.rb +28 -0
- data/lib/phlex/icons/radix/component_instance.rb +28 -0
- data/lib/phlex/icons/radix/component_none.rb +28 -0
- data/lib/phlex/icons/radix/component_placeholder.rb +33 -0
- data/lib/phlex/icons/radix/container.rb +28 -0
- data/lib/phlex/icons/radix/cookie.rb +28 -0
- data/lib/phlex/icons/radix/copy.rb +28 -0
- data/lib/phlex/icons/radix/corner_bottom_left.rb +28 -0
- data/lib/phlex/icons/radix/corner_bottom_right.rb +28 -0
- data/lib/phlex/icons/radix/corner_top_left.rb +28 -0
- data/lib/phlex/icons/radix/corner_top_right.rb +28 -0
- data/lib/phlex/icons/radix/corners.rb +28 -0
- data/lib/phlex/icons/radix/countdown_timer.rb +28 -0
- data/lib/phlex/icons/radix/counter_clockwise_clock.rb +28 -0
- data/lib/phlex/icons/radix/crop.rb +28 -0
- data/lib/phlex/icons/radix/cross_1.rb +28 -0
- data/lib/phlex/icons/radix/cross_2.rb +28 -0
- data/lib/phlex/icons/radix/cross_circled.rb +28 -0
- data/lib/phlex/icons/radix/crosshair_1.rb +28 -0
- data/lib/phlex/icons/radix/crosshair_2.rb +28 -0
- data/lib/phlex/icons/radix/crumpled_paper.rb +28 -0
- data/lib/phlex/icons/radix/cube.rb +28 -0
- data/lib/phlex/icons/radix/cursor_arrow.rb +28 -0
- data/lib/phlex/icons/radix/cursor_text.rb +28 -0
- data/lib/phlex/icons/radix/dash.rb +28 -0
- data/lib/phlex/icons/radix/dashboard.rb +28 -0
- data/lib/phlex/icons/radix/desktop.rb +28 -0
- data/lib/phlex/icons/radix/dimensions.rb +28 -0
- data/lib/phlex/icons/radix/disc.rb +28 -0
- data/lib/phlex/icons/radix/discord_logo.rb +28 -0
- data/lib/phlex/icons/radix/divider_horizontal.rb +28 -0
- data/lib/phlex/icons/radix/divider_vertical.rb +28 -0
- data/lib/phlex/icons/radix/dot.rb +28 -0
- data/lib/phlex/icons/radix/dot_filled.rb +26 -0
- data/lib/phlex/icons/radix/dots_horizontal.rb +28 -0
- data/lib/phlex/icons/radix/dots_vertical.rb +28 -0
- data/lib/phlex/icons/radix/double_arrow_down.rb +28 -0
- data/lib/phlex/icons/radix/double_arrow_left.rb +28 -0
- data/lib/phlex/icons/radix/double_arrow_right.rb +28 -0
- data/lib/phlex/icons/radix/double_arrow_up.rb +28 -0
- data/lib/phlex/icons/radix/download.rb +28 -0
- data/lib/phlex/icons/radix/drag_handle_dots_1.rb +45 -0
- data/lib/phlex/icons/radix/drag_handle_dots_2.rb +28 -0
- data/lib/phlex/icons/radix/drag_handle_horizontal.rb +28 -0
- data/lib/phlex/icons/radix/drag_handle_vertical.rb +28 -0
- data/lib/phlex/icons/radix/drawing_pin.rb +28 -0
- data/lib/phlex/icons/radix/drawing_pin_filled.rb +35 -0
- data/lib/phlex/icons/radix/dropdown_menu.rb +28 -0
- data/lib/phlex/icons/radix/enter.rb +28 -0
- data/lib/phlex/icons/radix/enter_full_screen.rb +28 -0
- data/lib/phlex/icons/radix/envelope_closed.rb +28 -0
- data/lib/phlex/icons/radix/envelope_open.rb +28 -0
- data/lib/phlex/icons/radix/eraser.rb +28 -0
- data/lib/phlex/icons/radix/exclamation_triangle.rb +28 -0
- data/lib/phlex/icons/radix/exit.rb +28 -0
- data/lib/phlex/icons/radix/exit_full_screen.rb +28 -0
- data/lib/phlex/icons/radix/external_link.rb +28 -0
- data/lib/phlex/icons/radix/eye_closed.rb +28 -0
- data/lib/phlex/icons/radix/eye_none.rb +28 -0
- data/lib/phlex/icons/radix/eye_open.rb +28 -0
- data/lib/phlex/icons/radix/face.rb +28 -0
- data/lib/phlex/icons/radix/figma_logo.rb +28 -0
- data/lib/phlex/icons/radix/file.rb +28 -0
- data/lib/phlex/icons/radix/file_minus.rb +28 -0
- data/lib/phlex/icons/radix/file_plus.rb +28 -0
- data/lib/phlex/icons/radix/file_text.rb +28 -0
- data/lib/phlex/icons/radix/font_bold.rb +26 -0
- data/lib/phlex/icons/radix/font_family.rb +26 -0
- data/lib/phlex/icons/radix/font_italic.rb +28 -0
- data/lib/phlex/icons/radix/font_roman.rb +28 -0
- data/lib/phlex/icons/radix/font_size.rb +28 -0
- data/lib/phlex/icons/radix/font_style.rb +28 -0
- data/lib/phlex/icons/radix/frame.rb +28 -0
- data/lib/phlex/icons/radix/framer_logo.rb +28 -0
- data/lib/phlex/icons/radix/gear.rb +28 -0
- data/lib/phlex/icons/radix/github_logo.rb +28 -0
- data/lib/phlex/icons/radix/globe.rb +48 -0
- data/lib/phlex/icons/radix/grid.rb +28 -0
- data/lib/phlex/icons/radix/group.rb +28 -0
- data/lib/phlex/icons/radix/half_1.rb +28 -0
- data/lib/phlex/icons/radix/half_2.rb +28 -0
- data/lib/phlex/icons/radix/hamburger_menu.rb +28 -0
- data/lib/phlex/icons/radix/hand.rb +28 -0
- data/lib/phlex/icons/radix/heading.rb +28 -0
- data/lib/phlex/icons/radix/heart.rb +28 -0
- data/lib/phlex/icons/radix/heart_filled.rb +28 -0
- data/lib/phlex/icons/radix/height.rb +28 -0
- data/lib/phlex/icons/radix/hobby_knife.rb +28 -0
- data/lib/phlex/icons/radix/home.rb +28 -0
- data/lib/phlex/icons/radix/iconjar_logo.rb +28 -0
- data/lib/phlex/icons/radix/id_card.rb +28 -0
- data/lib/phlex/icons/radix/image.rb +28 -0
- data/lib/phlex/icons/radix/info_circled.rb +28 -0
- data/lib/phlex/icons/radix/input.rb +28 -0
- data/lib/phlex/icons/radix/instagram_logo.rb +28 -0
- data/lib/phlex/icons/radix/keyboard.rb +28 -0
- data/lib/phlex/icons/radix/lap_timer.rb +28 -0
- data/lib/phlex/icons/radix/laptop.rb +28 -0
- data/lib/phlex/icons/radix/layers.rb +28 -0
- data/lib/phlex/icons/radix/layout.rb +28 -0
- data/lib/phlex/icons/radix/letter_case_capitalize.rb +28 -0
- data/lib/phlex/icons/radix/letter_case_lowercase.rb +28 -0
- data/lib/phlex/icons/radix/letter_case_toggle.rb +28 -0
- data/lib/phlex/icons/radix/letter_case_uppercase.rb +28 -0
- data/lib/phlex/icons/radix/letter_spacing.rb +28 -0
- data/lib/phlex/icons/radix/lightning_bolt.rb +28 -0
- data/lib/phlex/icons/radix/line_height.rb +28 -0
- data/lib/phlex/icons/radix/link_1.rb +28 -0
- data/lib/phlex/icons/radix/link_2.rb +28 -0
- data/lib/phlex/icons/radix/link_break_1.rb +28 -0
- data/lib/phlex/icons/radix/link_break_2.rb +28 -0
- data/lib/phlex/icons/radix/link_none_1.rb +28 -0
- data/lib/phlex/icons/radix/link_none_2.rb +28 -0
- data/lib/phlex/icons/radix/linkedin_logo.rb +28 -0
- data/lib/phlex/icons/radix/list_bullet.rb +28 -0
- data/lib/phlex/icons/radix/lock_closed.rb +28 -0
- data/lib/phlex/icons/radix/lock_open_1.rb +28 -0
- data/lib/phlex/icons/radix/lock_open_2.rb +28 -0
- data/lib/phlex/icons/radix/loop.rb +28 -0
- data/lib/phlex/icons/radix/magic_wand.rb +28 -0
- data/lib/phlex/icons/radix/magnifying_glass.rb +28 -0
- data/lib/phlex/icons/radix/margin.rb +28 -0
- data/lib/phlex/icons/radix/mask_off.rb +28 -0
- data/lib/phlex/icons/radix/mask_on.rb +28 -0
- data/lib/phlex/icons/radix/minus.rb +28 -0
- data/lib/phlex/icons/radix/minus_circled.rb +28 -0
- data/lib/phlex/icons/radix/mix.rb +28 -0
- data/lib/phlex/icons/radix/mixer_horizontal.rb +28 -0
- data/lib/phlex/icons/radix/mixer_vertical.rb +28 -0
- data/lib/phlex/icons/radix/mobile.rb +28 -0
- data/lib/phlex/icons/radix/modulz_logo.rb +28 -0
- data/lib/phlex/icons/radix/moon.rb +28 -0
- data/lib/phlex/icons/radix/move.rb +28 -0
- data/lib/phlex/icons/radix/notion_logo.rb +26 -0
- data/lib/phlex/icons/radix/opacity.rb +28 -0
- data/lib/phlex/icons/radix/open_in_new_window.rb +28 -0
- data/lib/phlex/icons/radix/overline.rb +28 -0
- data/lib/phlex/icons/radix/padding.rb +28 -0
- data/lib/phlex/icons/radix/paper_plane.rb +28 -0
- data/lib/phlex/icons/radix/pause.rb +28 -0
- data/lib/phlex/icons/radix/pencil_1.rb +28 -0
- data/lib/phlex/icons/radix/pencil_2.rb +28 -0
- data/lib/phlex/icons/radix/person.rb +28 -0
- data/lib/phlex/icons/radix/pie_chart.rb +28 -0
- data/lib/phlex/icons/radix/pilcrow.rb +28 -0
- data/lib/phlex/icons/radix/pin_bottom.rb +28 -0
- data/lib/phlex/icons/radix/pin_left.rb +28 -0
- data/lib/phlex/icons/radix/pin_right.rb +28 -0
- data/lib/phlex/icons/radix/pin_top.rb +28 -0
- data/lib/phlex/icons/radix/play.rb +28 -0
- data/lib/phlex/icons/radix/plus.rb +28 -0
- data/lib/phlex/icons/radix/plus_circled.rb +28 -0
- data/lib/phlex/icons/radix/question_mark.rb +28 -0
- data/lib/phlex/icons/radix/question_mark_circled.rb +28 -0
- data/lib/phlex/icons/radix/quote.rb +28 -0
- data/lib/phlex/icons/radix/radiobutton.rb +28 -0
- data/lib/phlex/icons/radix/reader.rb +28 -0
- data/lib/phlex/icons/radix/reload.rb +28 -0
- data/lib/phlex/icons/radix/reset.rb +28 -0
- data/lib/phlex/icons/radix/resume.rb +28 -0
- data/lib/phlex/icons/radix/rocket.rb +28 -0
- data/lib/phlex/icons/radix/rotate_counter_clockwise.rb +28 -0
- data/lib/phlex/icons/radix/row_spacing.rb +28 -0
- data/lib/phlex/icons/radix/rows.rb +28 -0
- data/lib/phlex/icons/radix/ruler_horizontal.rb +28 -0
- data/lib/phlex/icons/radix/ruler_square.rb +28 -0
- data/lib/phlex/icons/radix/scissors.rb +28 -0
- data/lib/phlex/icons/radix/section.rb +28 -0
- data/lib/phlex/icons/radix/sewing_pin.rb +28 -0
- data/lib/phlex/icons/radix/sewing_pin_filled.rb +28 -0
- data/lib/phlex/icons/radix/shadow.rb +108 -0
- data/lib/phlex/icons/radix/shadow_inner.rb +108 -0
- data/lib/phlex/icons/radix/shadow_none.rb +108 -0
- data/lib/phlex/icons/radix/shadow_outer.rb +68 -0
- data/lib/phlex/icons/radix/share_1.rb +28 -0
- data/lib/phlex/icons/radix/share_2.rb +28 -0
- data/lib/phlex/icons/radix/shuffle.rb +28 -0
- data/lib/phlex/icons/radix/size.rb +28 -0
- data/lib/phlex/icons/radix/sketch_logo.rb +28 -0
- data/lib/phlex/icons/radix/slash.rb +25 -0
- data/lib/phlex/icons/radix/slider.rb +28 -0
- data/lib/phlex/icons/radix/space_between_horizontally.rb +28 -0
- data/lib/phlex/icons/radix/space_between_vertically.rb +28 -0
- data/lib/phlex/icons/radix/space_evenly_horizontally.rb +28 -0
- data/lib/phlex/icons/radix/space_evenly_vertically.rb +28 -0
- data/lib/phlex/icons/radix/speaker_loud.rb +28 -0
- data/lib/phlex/icons/radix/speaker_moderate.rb +28 -0
- data/lib/phlex/icons/radix/speaker_off.rb +28 -0
- data/lib/phlex/icons/radix/speaker_quiet.rb +28 -0
- data/lib/phlex/icons/radix/square.rb +25 -0
- data/lib/phlex/icons/radix/stack.rb +28 -0
- data/lib/phlex/icons/radix/star.rb +28 -0
- data/lib/phlex/icons/radix/star_filled.rb +26 -0
- data/lib/phlex/icons/radix/stitches_logo.rb +28 -0
- data/lib/phlex/icons/radix/stop.rb +28 -0
- data/lib/phlex/icons/radix/stopwatch.rb +28 -0
- data/lib/phlex/icons/radix/stretch_horizontally.rb +28 -0
- data/lib/phlex/icons/radix/stretch_vertically.rb +28 -0
- data/lib/phlex/icons/radix/strikethrough.rb +28 -0
- data/lib/phlex/icons/radix/sun.rb +28 -0
- data/lib/phlex/icons/radix/switch.rb +28 -0
- data/lib/phlex/icons/radix/symbol.rb +28 -0
- data/lib/phlex/icons/radix/table.rb +28 -0
- data/lib/phlex/icons/radix/target.rb +28 -0
- data/lib/phlex/icons/radix/text.rb +28 -0
- data/lib/phlex/icons/radix/text_align_bottom.rb +28 -0
- data/lib/phlex/icons/radix/text_align_center.rb +28 -0
- data/lib/phlex/icons/radix/text_align_justify.rb +28 -0
- data/lib/phlex/icons/radix/text_align_left.rb +28 -0
- data/lib/phlex/icons/radix/text_align_middle.rb +28 -0
- data/lib/phlex/icons/radix/text_align_right.rb +28 -0
- data/lib/phlex/icons/radix/text_align_top.rb +28 -0
- data/lib/phlex/icons/radix/text_none.rb +28 -0
- data/lib/phlex/icons/radix/thick_arrow_down.rb +28 -0
- data/lib/phlex/icons/radix/thick_arrow_left.rb +28 -0
- data/lib/phlex/icons/radix/thick_arrow_right.rb +28 -0
- data/lib/phlex/icons/radix/thick_arrow_up.rb +28 -0
- data/lib/phlex/icons/radix/timer.rb +28 -0
- data/lib/phlex/icons/radix/tokens.rb +28 -0
- data/lib/phlex/icons/radix/track_next.rb +28 -0
- data/lib/phlex/icons/radix/track_previous.rb +28 -0
- data/lib/phlex/icons/radix/transform.rb +28 -0
- data/lib/phlex/icons/radix/transparency_grid.rb +29 -0
- data/lib/phlex/icons/radix/trash.rb +28 -0
- data/lib/phlex/icons/radix/triangle_down.rb +18 -0
- data/lib/phlex/icons/radix/triangle_left.rb +18 -0
- data/lib/phlex/icons/radix/triangle_right.rb +18 -0
- data/lib/phlex/icons/radix/triangle_up.rb +18 -0
- data/lib/phlex/icons/radix/twitter_logo.rb +28 -0
- data/lib/phlex/icons/radix/underline.rb +28 -0
- data/lib/phlex/icons/radix/update.rb +28 -0
- data/lib/phlex/icons/radix/upload.rb +28 -0
- data/lib/phlex/icons/radix/value.rb +28 -0
- data/lib/phlex/icons/radix/value_none.rb +28 -0
- data/lib/phlex/icons/radix/vercel_logo.rb +28 -0
- data/lib/phlex/icons/radix/video.rb +28 -0
- data/lib/phlex/icons/radix/view_grid.rb +28 -0
- data/lib/phlex/icons/radix/view_horizontal.rb +28 -0
- data/lib/phlex/icons/radix/view_none.rb +28 -0
- data/lib/phlex/icons/radix/view_vertical.rb +28 -0
- data/lib/phlex/icons/radix/width.rb +28 -0
- data/lib/phlex/icons/radix/zoom_in.rb +28 -0
- data/lib/phlex/icons/radix/zoom_out.rb +28 -0
- data/lib/phlex/icons/radix.rb +15 -0
- data/lib/phlex/icons/version.rb +7 -0
- data/lib/phlex_icons_radix.rb +22 -0
- data/phlex-icons.png +0 -0
- data/sig/phlex/icons.rbs +6 -0
- metadata +405 -0
data/generators/hero.rb
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'helper'
|
4
|
+
|
5
|
+
REPO_URL = 'https://github.com/tailwindlabs/heroicons.git'
|
6
|
+
REPO_NAME = 'tailwindlabs-heroicons'
|
7
|
+
ICONS_PACK_PATH = 'lib/phlex/icons/hero'
|
8
|
+
|
9
|
+
TEMPLATE = ERB.new <<~TEMPLATE
|
10
|
+
# frozen_string_literal: true
|
11
|
+
|
12
|
+
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
13
|
+
module Phlex
|
14
|
+
module Icons
|
15
|
+
module Hero
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def solid
|
18
|
+
<%= solid_icon %>
|
19
|
+
end
|
20
|
+
|
21
|
+
def outline
|
22
|
+
<%= outline_icon %>
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable #{ROBOCOP_DISABLE_WARNINGS}
|
29
|
+
TEMPLATE
|
30
|
+
|
31
|
+
def main
|
32
|
+
run_generator { icon_file_names.tqdm.each { create_icon_component(_1) } }
|
33
|
+
end
|
34
|
+
|
35
|
+
def icon_file_names
|
36
|
+
Dir.glob("generators/#{REPO_NAME}/optimized/24/solid/*").map { |file| File.basename(file) }
|
37
|
+
end
|
38
|
+
|
39
|
+
def create_icon_component(icon_file_name)
|
40
|
+
File.write(
|
41
|
+
File.join(ICONS_PACK_PATH, component_file_name(icon_file_name)),
|
42
|
+
TEMPLATE.result_with_hash(
|
43
|
+
icon_name: component_class_name(icon_file_name),
|
44
|
+
solid_icon: read_and_convert_icon(solid_icon_file_path(icon_file_name)),
|
45
|
+
outline_icon: read_and_convert_icon(outline_icon_file_path(icon_file_name))
|
46
|
+
)
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
def read_and_convert_icon(icon_file_path)
|
51
|
+
icon_file_content = File.read(icon_file_path)
|
52
|
+
Phlexing::Converter.convert(icon_file_content).sub('svg(', "svg(\nclass: classes,")
|
53
|
+
end
|
54
|
+
|
55
|
+
def solid_icon_file_path(icon_file_name)
|
56
|
+
"generators/#{REPO_NAME}/optimized/24/solid/#{icon_file_name}"
|
57
|
+
end
|
58
|
+
|
59
|
+
def outline_icon_file_path(icon_file_name)
|
60
|
+
"generators/#{REPO_NAME}/optimized/24/outline/#{icon_file_name}"
|
61
|
+
end
|
62
|
+
|
63
|
+
main if __FILE__ == $PROGRAM_NAME
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'helper'
|
4
|
+
|
5
|
+
REPO_URL = 'https://github.com/lucide-icons/lucide.git'
|
6
|
+
REPO_NAME = 'lucide-icons-lucide'
|
7
|
+
ICONS_PACK_PATH = 'lib/phlex/icons/lucide'
|
8
|
+
|
9
|
+
TEMPLATE = ERB.new <<~TEMPLATE
|
10
|
+
# frozen_string_literal: true
|
11
|
+
|
12
|
+
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
13
|
+
module Phlex
|
14
|
+
module Icons
|
15
|
+
module Lucide
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
# rubocop:enable #{ROBOCOP_DISABLE_WARNINGS}
|
25
|
+
TEMPLATE
|
26
|
+
|
27
|
+
def main
|
28
|
+
run_generator { icon_file_paths.tqdm.each { create_icon_component(_1) } }
|
29
|
+
end
|
30
|
+
|
31
|
+
def icon_file_paths
|
32
|
+
Dir.glob("generators/#{REPO_NAME}/icons/*.svg")
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_icon_component(icon_file_path)
|
36
|
+
File.write(
|
37
|
+
File.join(ICONS_PACK_PATH, component_file_name(icon_file_path)),
|
38
|
+
TEMPLATE.result_with_hash(
|
39
|
+
icon_name: component_class_name(icon_file_path),
|
40
|
+
icon: read_and_convert_icon(icon_file_path)
|
41
|
+
)
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
def read_and_convert_icon(icon_file_path)
|
46
|
+
icon_file_content = File.read(icon_file_path)
|
47
|
+
.sub('width="24"', '')
|
48
|
+
.sub('height="24"', '')
|
49
|
+
|
50
|
+
Phlexing::Converter.convert(icon_file_content)
|
51
|
+
.sub('svg(', "svg(\nclass: classes,")
|
52
|
+
end
|
53
|
+
|
54
|
+
main if __FILE__ == $PROGRAM_NAME
|
data/generators/radix.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'helper'
|
4
|
+
|
5
|
+
REPO_URL = 'https://github.com/radix-ui/icons'
|
6
|
+
REPO_NAME = 'radix-ui-icons'
|
7
|
+
ICONS_PACK_PATH = 'lib/phlex/icons/radix'
|
8
|
+
|
9
|
+
TEMPLATE = ERB.new <<~TEMPLATE
|
10
|
+
# frozen_string_literal: true
|
11
|
+
|
12
|
+
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
13
|
+
module Phlex
|
14
|
+
module Icons
|
15
|
+
module Radix
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
# rubocop:enable #{ROBOCOP_DISABLE_WARNINGS}
|
25
|
+
TEMPLATE
|
26
|
+
|
27
|
+
def main
|
28
|
+
run_generator { icon_file_paths.tqdm.each { create_icon_component(_1) } }
|
29
|
+
end
|
30
|
+
|
31
|
+
def icon_file_paths
|
32
|
+
Dir.glob("generators/#{REPO_NAME}/packages/radix-icons/icons/*.svg")
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_icon_component(icon_file_path)
|
36
|
+
File.write(
|
37
|
+
File.join(ICONS_PACK_PATH, component_file_name(icon_file_path)),
|
38
|
+
TEMPLATE.result_with_hash(
|
39
|
+
icon_name: component_class_name(icon_file_path),
|
40
|
+
icon: read_and_convert_icon(icon_file_path)
|
41
|
+
)
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
def read_and_convert_icon(icon_file_path)
|
46
|
+
icon_file_content = File.read(icon_file_path)
|
47
|
+
.sub('width="15"', '')
|
48
|
+
.sub('height="15"', '')
|
49
|
+
|
50
|
+
Phlexing::Converter.convert(icon_file_content)
|
51
|
+
.sub('svg(', "svg(\nclass: classes,")
|
52
|
+
end
|
53
|
+
|
54
|
+
main if __FILE__ == $PROGRAM_NAME
|
data/generators/remix.rb
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'helper'
|
4
|
+
|
5
|
+
REPO_URL = 'https://github.com/Remix-Design/RemixIcon.git'
|
6
|
+
REPO_NAME = 'remix-design-remixicon'
|
7
|
+
ICONS_PACK_PATH = 'lib/phlex/icons/remix'
|
8
|
+
|
9
|
+
TEMPLATE = ERB.new <<~TEMPLATE
|
10
|
+
# frozen_string_literal: true
|
11
|
+
|
12
|
+
# rubocop:disable #{ROBOCOP_DISABLE_WARNINGS}
|
13
|
+
module Phlex
|
14
|
+
module Icons
|
15
|
+
module Remix
|
16
|
+
class <%= icon_name %> < Base
|
17
|
+
def view_template
|
18
|
+
<%= icon %>
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
# rubocop:enable #{ROBOCOP_DISABLE_WARNINGS}
|
25
|
+
TEMPLATE
|
26
|
+
|
27
|
+
REPLACEMENTS = {
|
28
|
+
'4k-' => 'four-k-',
|
29
|
+
'24-' => 'twenty-four-'
|
30
|
+
}.freeze
|
31
|
+
|
32
|
+
def main
|
33
|
+
run_generator { icon_file_paths.tqdm.each { create_icon_component(_1) } }
|
34
|
+
end
|
35
|
+
|
36
|
+
def icon_file_paths
|
37
|
+
Dir.glob("generators/#{REPO_NAME}/icons/**/*.svg")
|
38
|
+
end
|
39
|
+
|
40
|
+
def create_icon_component(icon_file_path)
|
41
|
+
File.write(
|
42
|
+
File.join(ICONS_PACK_PATH, component_file_name(icon_file_path, REPLACEMENTS)),
|
43
|
+
TEMPLATE.result_with_hash(
|
44
|
+
icon_name: component_class_name(icon_file_path, REPLACEMENTS),
|
45
|
+
icon: read_and_convert_icon(icon_file_path)
|
46
|
+
)
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
def read_and_convert_icon(icon_file_path)
|
51
|
+
icon_file_content = File.read(icon_file_path)
|
52
|
+
|
53
|
+
Phlexing::Converter.convert(icon_file_content)
|
54
|
+
.sub('svg(', "svg(\nclass: classes,")
|
55
|
+
end
|
56
|
+
|
57
|
+
main if __FILE__ == $PROGRAM_NAME
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Phlex
|
4
|
+
module Icons
|
5
|
+
class Base < Phlex::SVG
|
6
|
+
attr_reader :classes
|
7
|
+
|
8
|
+
def initialize(classes: Phlex::Icons.configuration.default_classes)
|
9
|
+
@classes = classes
|
10
|
+
|
11
|
+
super()
|
12
|
+
end
|
13
|
+
|
14
|
+
def view_template
|
15
|
+
send(variant) if respond_to?(variant)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class Accessibility < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M0.877197 7.49984C0.877197 3.84216 3.84234 0.877014 7.50003 0.877014C11.1577 0.877014 14.1229 3.84216 14.1229 7.49984C14.1229 11.1575 11.1577 14.1227 7.50003 14.1227C3.84234 14.1227 0.877197 11.1575 0.877197 7.49984ZM7.50003 1.82701C4.36702 1.82701 1.8272 4.36683 1.8272 7.49984C1.8272 10.6328 4.36702 13.1727 7.50003 13.1727C10.633 13.1727 13.1729 10.6328 13.1729 7.49984C13.1729 4.36683 10.633 1.82701 7.50003 1.82701ZM7.12457 9.00001C7.06994 9.12735 6.33165 11.9592 6.33165 11.9592C6.26018 12.226 5.98601 12.3843 5.71928 12.3128C5.45255 12.2413 5.29425 11.9672 5.36573 11.7004C5.36573 11.7004 6.24661 8.87268 6.24661 8.27007V6.80099L4.28763 6.27608C4.0209 6.20461 3.86261 5.93045 3.93408 5.66371C4.00555 5.39698 4.27972 5.23869 4.54645 5.31016C4.54645 5.31016 6.20042 5.87268 6.84579 5.87268H8.15505C8.80042 5.87268 10.4534 5.31042 10.4534 5.31042C10.7202 5.23895 10.9943 5.39724 11.0658 5.66397C11.1373 5.93071 10.979 6.20487 10.7122 6.27635L8.74661 6.80303V8.27007C8.74661 8.87268 9.62663 11.6971 9.62663 11.6971C9.6981 11.9639 9.5398 12.238 9.27307 12.3095C9.00634 12.381 8.73217 12.2227 8.6607 11.956C8.6607 11.956 7.91994 9.12735 7.86866 9.00001C7.81994 8.87268 7.65006 8.87268 7.65006 8.87268H7.34317C7.34317 8.87268 7.16994 8.87268 7.12457 9.00001ZM7.50043 5.12007C8.12175 5.12007 8.62543 4.61639 8.62543 3.99507C8.62543 3.37375 8.12175 2.87007 7.50043 2.87007C6.87911 2.87007 6.37543 3.37375 6.37543 3.99507C6.37543 4.61639 6.87911 5.12007 7.50043 5.12007Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class ActivityLog < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M0 1.5C0 1.22386 0.223858 1 0.5 1H2.5C2.77614 1 3 1.22386 3 1.5C3 1.77614 2.77614 2 2.5 2H0.5C0.223858 2 0 1.77614 0 1.5ZM4 1.5C4 1.22386 4.22386 1 4.5 1H14.5C14.7761 1 15 1.22386 15 1.5C15 1.77614 14.7761 2 14.5 2H4.5C4.22386 2 4 1.77614 4 1.5ZM4 4.5C4 4.22386 4.22386 4 4.5 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM0 7.5C0 7.22386 0.223858 7 0.5 7H2.5C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H4.5C4.22386 11 4 10.7761 4 10.5ZM0 13.5C0 13.2239 0.223858 13 0.5 13H2.5C2.77614 13 3 13.2239 3 13.5C3 13.7761 2.77614 14 2.5 14H0.5C0.223858 14 0 13.7761 0 13.5ZM4 13.5C4 13.2239 4.22386 13 4.5 13H14.5C14.7761 13 15 13.2239 15 13.5C15 13.7761 14.7761 14 14.5 14H4.5C4.22386 14 4 13.7761 4 13.5Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignBaseline < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M10.5 1.75003C10.7107 1.75003 10.8988 1.88217 10.9703 2.08042L13.9703 10.4C14.064 10.6598 13.9293 10.9463 13.6696 11.04C13.4098 11.1336 13.1233 10.999 13.0296 10.7392L12.0477 8.01606H8.95227L7.97031 10.7392C7.87664 10.999 7.59012 11.1336 7.33035 11.04C7.07058 10.9463 6.93593 10.6598 7.0296 10.4L10.0296 2.08042C10.1011 1.88217 10.2892 1.75003 10.5 1.75003ZM10.5 3.72402L11.7411 7.16606H9.25877L10.5 3.72402ZM2.49949 2.09997C2.7204 2.09997 2.89949 2.27906 2.89949 2.49997L2.89949 9.53428L4.21664 8.21713C4.37285 8.06092 4.62612 8.06092 4.78233 8.21713C4.93854 8.37334 4.93854 8.6266 4.78233 8.78281L2.78233 10.7828C2.70732 10.8578 2.60557 10.9 2.49949 10.9C2.3934 10.9 2.29166 10.8578 2.21664 10.7828L0.216645 8.78281C0.0604349 8.6266 0.0604349 8.37334 0.216645 8.21713C0.372854 8.06092 0.62612 8.06092 0.78233 8.21713L2.09949 9.53428L2.09949 2.49997C2.09949 2.27906 2.27857 2.09997 2.49949 2.09997ZM0.0999695 13.5001C0.0999695 13.2791 0.279056 13.1001 0.499969 13.1001H14.5C14.7209 13.1001 14.9 13.2791 14.9 13.5001C14.9 13.721 14.7209 13.9001 14.5 13.9001H0.499969C0.279056 13.9001 0.0999695 13.721 0.0999695 13.5001Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignBottom < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M9 3C9 2.44772 8.55229 2 8 2H7C6.44772 2 6 2.44772 6 3L6 14H1.5C1.22386 14 1 14.2239 1 14.5C1 14.7761 1.22386 15 1.5 15L6 15H9H13.5C13.7761 15 14 14.7761 14 14.5C14 14.2239 13.7761 14 13.5 14H9V3Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignCenterHorizontally < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M1.99988 6C1.44759 6 0.999877 6.44772 0.999877 7L0.999877 8C0.999877 8.55228 1.44759 9 1.99988 9L6.99988 9L6.99988 13.5C6.99988 13.7761 7.22374 14 7.49988 14C7.77602 14 7.99988 13.7761 7.99988 13.5L7.99988 9L12.9999 9C13.5522 9 13.9999 8.55228 13.9999 8L13.9999 7C13.9999 6.44772 13.5522 6 12.9999 6L7.99988 6L7.99988 1.5C7.99988 1.22386 7.77602 1 7.49988 1C7.22373 1 6.99988 1.22386 6.99988 1.5L6.99988 6L1.99988 6Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignCenterVertically < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M6.99988 1C6.44759 1 5.99988 1.44772 5.99988 2V7H1.49988C1.22374 7 0.999878 7.22386 0.999878 7.5C0.999878 7.77614 1.22374 8 1.49988 8H5.99988V13C5.99988 13.5523 6.44759 14 6.99988 14H7.99988C8.55216 14 8.99988 13.5523 8.99988 13V8H13.4999C13.776 8 13.9999 7.77614 13.9999 7.5C13.9999 7.22386 13.776 7 13.4999 7H8.99988V2C8.99988 1.44772 8.55216 1 7.99988 1L6.99988 1Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignLeft < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M0.499995 0.999995C0.223855 0.999995 -5.58458e-07 1.22385 -5.46388e-07 1.49999L-2.18554e-08 13.4999C-9.78492e-09 13.776 0.223855 13.9999 0.499995 13.9999C0.776136 13.9999 0.999991 13.776 0.999991 13.4999L0.999991 8.99993L12 8.99993C12.5523 8.99993 13 8.55222 13 7.99993L13 6.99994C13 6.44766 12.5523 5.99995 12 5.99995L0.999991 5.99995L0.999991 1.49999C0.999991 1.22385 0.776135 0.999995 0.499995 0.999995Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignRight < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M14.4999 1C14.2237 1 13.9999 1.22386 13.9999 1.5L13.9999 6L2.99988 6C2.44759 6 1.99988 6.44772 1.99988 7L1.99988 8C1.99988 8.55228 2.44759 9 2.99988 9L13.9999 9L13.9999 13.5C13.9999 13.7761 14.2237 14 14.4999 14C14.776 14 14.9999 13.7761 14.9999 13.5L14.9999 9L14.9999 6L14.9999 1.5C14.9999 1.22386 14.776 1 14.4999 1Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AlignTop < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M1.5 0C1.22386 0 1 0.223858 1 0.5C1 0.776142 1.22386 1 1.5 1H6V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V1H13.5C13.7761 1 14 0.776142 14 0.5C14 0.223858 13.7761 0 13.5 0H9H6H1.5Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class AllSides < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M7.5 0.75L9.75 3H5.25L7.5 0.75ZM7.5 14.25L9.75 12H5.25L7.5 14.25ZM3 5.25L0.75 7.5L3 9.75V5.25ZM14.25 7.5L12 5.25V9.75L14.25 7.5Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class Angle < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M8.8914 2.1937C9.1158 2.35464 9.16725 2.66701 9.00631 2.89141L2.47388 12H13.5C13.7761 12 14 12.2239 14 12.5C14 12.7762 13.7761 13 13.5 13H1.5C1.31254 13 1.14082 12.8952 1.0552 12.7284C0.969578 12.5616 0.984438 12.361 1.09369 12.2086L8.19369 2.30862C8.35462 2.08422 8.667 2.03277 8.8914 2.1937ZM11.1 6.50001C11.1 6.22387 11.3238 6.00001 11.6 6.00001C11.8761 6.00001 12.1 6.22387 12.1 6.50001C12.1 6.77615 11.8761 7.00001 11.6 7.00001C11.3238 7.00001 11.1 6.77615 11.1 6.50001ZM10.4 4.00001C10.1239 4.00001 9.90003 4.22387 9.90003 4.50001C9.90003 4.77615 10.1239 5.00001 10.4 5.00001C10.6762 5.00001 10.9 4.77615 10.9 4.50001C10.9 4.22387 10.6762 4.00001 10.4 4.00001ZM12.1 8.50001C12.1 8.22387 12.3238 8.00001 12.6 8.00001C12.8761 8.00001 13.1 8.22387 13.1 8.50001C13.1 8.77615 12.8761 9.00001 12.6 9.00001C12.3238 9.00001 12.1 8.77615 12.1 8.50001ZM13.4 10C13.1239 10 12.9 10.2239 12.9 10.5C12.9 10.7761 13.1239 11 13.4 11C13.6762 11 13.9 10.7761 13.9 10.5C13.9 10.2239 13.6762 10 13.4 10Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class Archive < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M3.30902 1C2.93025 1 2.58398 1.214 2.41459 1.55279L1.05279 4.27639C1.01807 4.34582 1 4.42238 1 4.5V13C1 13.5523 1.44772 14 2 14H13C13.5523 14 14 13.5523 14 13V4.5C14 4.42238 13.9819 4.34582 13.9472 4.27639L12.5854 1.55281C12.416 1.21403 12.0698 1.00003 11.691 1.00003L7.5 1.00001L3.30902 1ZM3.30902 2L7 2.00001V4H2.30902L3.30902 2ZM8 4V2.00002L11.691 2.00003L12.691 4H8ZM7.5 5H13V13H2V5H7.5ZM5.5 7C5.22386 7 5 7.22386 5 7.5C5 7.77614 5.22386 8 5.5 8H9.5C9.77614 8 10 7.77614 10 7.5C10 7.22386 9.77614 7 9.5 7H5.5Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class ArrowBottomLeft < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M11.3536 3.64644C11.5488 3.8417 11.5488 4.15828 11.3536 4.35354L4.70711 11L9 11C9.27614 11 9.5 11.2239 9.5 11.5C9.5 11.7761 9.27614 12 9 12L3.5 12C3.36739 12 3.24021 11.9473 3.14645 11.8536C3.05268 11.7598 3 11.6326 3 11.5L3 5.99999C3 5.72385 3.22386 5.49999 3.5 5.49999C3.77614 5.49999 4 5.72385 4 5.99999V10.2929L10.6464 3.64643C10.8417 3.45117 11.1583 3.45117 11.3536 3.64644Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
|
+
module Phlex
|
5
|
+
module Icons
|
6
|
+
module Radix
|
7
|
+
class ArrowBottomRight < Base
|
8
|
+
def view_template
|
9
|
+
svg(
|
10
|
+
class: classes,
|
11
|
+
viewbox: '0 0 15 15',
|
12
|
+
fill: 'none',
|
13
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
14
|
+
) do |s|
|
15
|
+
s.path(
|
16
|
+
fill_rule: 'evenodd',
|
17
|
+
clip_rule: 'evenodd',
|
18
|
+
d:
|
19
|
+
'M3.64645 3.64644C3.45118 3.8417 3.45118 4.15828 3.64645 4.35354L10.2929 11L6 11C5.72386 11 5.5 11.2239 5.5 11.5C5.5 11.7761 5.72386 12 6 12L11.5 12C11.6326 12 11.7598 11.9473 11.8536 11.8536C11.9473 11.7598 12 11.6326 12 11.5L12 5.99999C12 5.72385 11.7761 5.49999 11.5 5.49999C11.2239 5.49999 11 5.72385 11 5.99999V10.2929L4.35355 3.64643C4.15829 3.45117 3.84171 3.45117 3.64645 3.64644Z',
|
20
|
+
fill: 'currentColor'
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
# rubocop:enable Layout/LineLength
|