Update LUCIDE_ICON_LIST with newest Icon names (#2891)

This commit is contained in:
Lucca Psaila 2024-03-25 15:23:10 -07:00 committed by GitHub
parent f19a6a8c8d
commit fbc6e7eba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 533 additions and 228 deletions

View File

@ -2,14 +2,14 @@
from reflex.components.component import Component
from reflex.style import Style
from reflex.utils import format
from reflex.utils import console, format
from reflex.vars import Var
class LucideIconComponent(Component):
"""Lucide Icon Component."""
library = "lucide-react@0.314.0"
library = "lucide-react@0.359.0"
class Icon(LucideIconComponent):
@ -37,6 +37,19 @@ class Icon(LucideIconComponent):
Returns:
The created component.
"""
def map_deprecated_icon_names_05(tag: str) -> str:
new_tag = RENAMED_ICONS_05.get(tag)
if new_tag is not None:
console.deprecate(
feature_name=f"icon {tag}",
reason=f"it was renamed upstream. Use {new_tag} instead.",
deprecation_version="0.4.6",
removal_version="0.5.0",
)
return new_tag
return tag
if children:
if len(children) == 1 and type(children[0]) == str:
props["tag"] = children[0]
@ -49,7 +62,8 @@ class Icon(LucideIconComponent):
if (
type(props["tag"]) != str
or format.to_snake_case(props["tag"]) not in LUCIDE_ICON_LIST
or map_deprecated_icon_names_05(format.to_snake_case(props["tag"]))
not in LUCIDE_ICON_LIST
):
raise ValueError(
f"Invalid icon tag: {props['tag']}. Please use one of the following: {', '.join(LUCIDE_ICON_LIST[0:25])}, ..."
@ -69,13 +83,122 @@ class Icon(LucideIconComponent):
)
RENAMED_ICONS_05 = {
"activity_square": "square_activity",
"alert_circle": "circle_alert",
"alert_octagon": "octagon_alert",
"alert_triangle": "triangle_alert",
"arrow_down_circle": "circle_arrow_down",
"arrow_down_left_from_circle": "circle_arrow_out_down_left",
"arrow_down_left_from_square": "square_arrow_out_down_left",
"arrow_down_left_square": "square_arrow_down_left",
"arrow_down_right_from_circle": "circle_arrow_out_down_right",
"arrow_down_right_from_square": "square_arrow_out_down_right",
"arrow_down_right_square": "square_arrow_down_right",
"arrow_down_square": "square_arrow_down",
"arrow_left_circle": "circle_arrow_left",
"arrow_left_square": "square_arrow_left",
"arrow_right_circle": "circle_arrow_right",
"arrow_right_square": "square_arrow_right",
"arrow_up_circle": "circle_arrow_up",
"arrow_up_left_from_circle": "circle_arrow_out_up_left",
"arrow_up_left_from_square": "square_arrow_out_up_left",
"arrow_up_left_square": "square_arrow_up_left",
"arrow_up_right_from_circle": "circle_arrow_out_up_right",
"arrow_up_right_from_square": "square_arrow_out_up_right",
"arrow_up_right_square": "square_arrow_up_right",
"arrow_up_square": "square_arrow_up",
"asterisk_square": "square_asterisk",
"check_circle": "circle_check_big",
"check_circle_2": "circle_check",
"check_square": "square_check_big",
"check_square_2": "square_check",
"chevron_down_circle": "circle_chevron_down",
"chevron_down_square": "square_chevron_down",
"chevron_left_circle": "circle_chevron_left",
"chevron_left_square": "square_chevron_left",
"chevron_right_circle": "circle_chevron_right",
"chevron_right_square": "square_chevron_right",
"chevron_up_circle": "circle_chevron_up",
"chevron_up_square": "square_chevron_up",
"code_2": "code_xml",
"code_square": "square_code",
"contact_2": "contact_round",
"divide_circle": "circle_divide",
"divide_square": "square_divide",
"dot_square": "square_dot",
"download_cloud": "cloud_download",
"equal_square": "square_equal",
"form_input": "rectangle_elipsis",
"function_square": "square_function",
"gantt_chart_square": "square_gantt_chart",
"gauge_circle": "circle_gauge",
"globe_2": "earth",
"help_circle": "circle_help",
"helping_hand": "hand_helping",
"ice_cream": "ice_cream_cone",
"ice_cream_2": "ice_cream_bowl",
"indent": "indent_increase",
"kanban_square": "square_kanban",
"kanban_square_dashed": "square_kanban_dashed",
"laptop_2": "laptop_minimal",
"library_square": "square_library",
"loader_2": "loader_circle",
"m_square": "square_m",
"menu_square": "square_menu",
"mic_2": "mic_vocal",
"minus_circle": "circle_minus",
"minus_square": "square_minus",
"more_horizontal": "ellipsis",
"more_vertical": "ellipsis_vertical",
"mouse_pointer_square": "square_mouse_pointer",
"mouse_pointer_square_dashed": "square_dashed_mouse_pointer",
"outdent": "indent_decrease",
"palm_tree": "tree_palm",
"parking_circle": "circle_parking",
"parking_circle_off": "circle_parking_off",
"parking_square": "square_parking",
"parking_square_off": "square_parking_off",
"pause_circle": "circle_pause",
"pause_octagon": "octagon_pause",
"percent_circle": "circle_percent",
"percent_diamond": "diamond_percent",
"percent_square": "square_percent",
"pi_square": "square_pi",
"pilcrow_square": "square_pilcrow",
"play_circle": "circle_play",
"play_square": "square_play",
"plus_circle": "circle_plus",
"plus_square": "square_plus",
"power_circle": "circle_power",
"power_square": "square_power",
"school_2": "university",
"scissors_square": "square_scissors",
"scissors_square_dashed_bottom": "square_bottom_dashed_scissors",
"sigma_square": "square_sigma",
"slash_circle": "circle_slash",
"sliders": "sliders_vertical",
"split_square_horizontal": "square_split_horizontal",
"split_square_vertical": "square_split_vertical",
"stop_circle": "circle_stop",
"subtitles": "captions",
"test_tube_2": "test_tube_diagonal",
"unlock": "lock_open",
"unlock_keyhole": "lock_keyhole_open",
"upload_cloud": "cloud_upload",
"wallet_2": "wallet_minimal",
"wand_2": "wand_sparkles",
"x_circle": "circle_x",
"x_octagon": "octagon_x",
"x_square": "square_x",
}
LUCIDE_ICON_LIST = [
"a_arrow_down",
"a_arrow_up",
"a_large_small",
"accessibility",
"activity",
"activity_square",
"air_vent",
"airplay",
"alarm_clock",
@ -85,9 +208,6 @@ LUCIDE_ICON_LIST = [
"alarm_clock_plus",
"alarm_smoke",
"album",
"alert_circle",
"alert_octagon",
"alert_triangle",
"align_center",
"align_center_horizontal",
"align_center_vertical",
@ -114,6 +234,7 @@ LUCIDE_ICON_LIST = [
"align_vertical_justify_start",
"align_vertical_space_around",
"align_vertical_space_between",
"ambulance",
"ampersand",
"ampersands",
"anchor",
@ -123,6 +244,7 @@ LUCIDE_ICON_LIST = [
"anvil",
"aperture",
"app_window",
"app_window_mac",
"apple",
"archive",
"archive_restore",
@ -141,59 +263,38 @@ LUCIDE_ICON_LIST = [
"arrow_down_0_1",
"arrow_down_1_0",
"arrow_down_a_z",
"arrow_down_circle",
"arrow_down_from_line",
"arrow_down_left",
"arrow_down_left_from_circle",
"arrow_down_left_from_square",
"arrow_down_left_square",
"arrow_down_narrow_wide",
"arrow_down_right",
"arrow_down_right_from_circle",
"arrow_down_right_from_square",
"arrow_down_right_square",
"arrow_down_square",
"arrow_down_to_dot",
"arrow_down_to_line",
"arrow_down_up",
"arrow_down_wide_narrow",
"arrow_down_z_a",
"arrow_left",
"arrow_left_circle",
"arrow_left_from_line",
"arrow_left_right",
"arrow_left_square",
"arrow_left_to_line",
"arrow_right",
"arrow_right_circle",
"arrow_right_from_line",
"arrow_right_left",
"arrow_right_square",
"arrow_right_to_line",
"arrow_up",
"arrow_up_0_1",
"arrow_up_1_0",
"arrow_up_a_z",
"arrow_up_circle",
"arrow_up_down",
"arrow_up_from_dot",
"arrow_up_from_line",
"arrow_up_left",
"arrow_up_left_from_circle",
"arrow_up_left_from_square",
"arrow_up_left_square",
"arrow_up_narrow_wide",
"arrow_up_right",
"arrow_up_right_from_circle",
"arrow_up_right_from_square",
"arrow_up_right_square",
"arrow_up_square",
"arrow_up_to_line",
"arrow_up_wide_narrow",
"arrow_up_z_a",
"arrows_up_from_line",
"asterisk",
"asterisk_square",
"at_sign",
"atom",
"audio_lines",
@ -248,6 +349,7 @@ LUCIDE_ICON_LIST = [
"bed_single",
"beef",
"beer",
"beer_off",
"bell",
"bell_dot",
"bell_electric",
@ -306,6 +408,7 @@ LUCIDE_ICON_LIST = [
"bookmark_x",
"boom_box",
"bot",
"bot_message_square",
"box",
"box_select",
"boxes",
@ -316,6 +419,8 @@ LUCIDE_ICON_LIST = [
"brain_cog",
"brick_wall",
"briefcase",
"briefcase_business",
"briefcase_medical",
"bring_to_front",
"brush",
"bug",
@ -352,6 +457,9 @@ LUCIDE_ICON_LIST = [
"candy",
"candy_cane",
"candy_off",
"cannabis",
"captions",
"captions_off",
"car",
"car_front",
"car_taxi_front",
@ -367,26 +475,14 @@ LUCIDE_ICON_LIST = [
"cctv",
"check",
"check_check",
"check_circle",
"check_circle_2",
"check_square",
"check_square_2",
"chef_hat",
"cherry",
"chevron_down",
"chevron_down_circle",
"chevron_down_square",
"chevron_first",
"chevron_last",
"chevron_left",
"chevron_left_circle",
"chevron_left_square",
"chevron_right",
"chevron_right_circle",
"chevron_right_square",
"chevron_up",
"chevron_up_circle",
"chevron_up_square",
"chevrons_down",
"chevrons_down_up",
"chevrons_left",
@ -400,17 +496,46 @@ LUCIDE_ICON_LIST = [
"cigarette",
"cigarette_off",
"circle",
"circle_alert",
"circle_arrow_down",
"circle_arrow_left",
"circle_arrow_out_down_left",
"circle_arrow_out_down_right",
"circle_arrow_out_up_left",
"circle_arrow_out_up_right",
"circle_arrow_right",
"circle_arrow_up",
"circle_check_big",
"circle_check",
"circle_chevron_down",
"circle_chevron_left",
"circle_chevron_right",
"circle_chevron_up",
"circle_dashed",
"circle_divide",
"circle_dollar_sign",
"circle_dot",
"circle_dot_dashed",
"circle_ellipsis",
"circle_equal",
"circle_fading_plus",
"circle_gauge",
"circle_help",
"circle_minus",
"circle_off",
"circle_parking_off",
"circle_parking",
"circle_pause",
"circle_percent",
"circle_play",
"circle_plus",
"circle_power",
"circle_slash",
"circle_slash_2",
"circle_stop",
"circle_user",
"circle_user_round",
"circle_x",
"circuit_board",
"citrus",
"clapperboard",
@ -418,9 +543,11 @@ LUCIDE_ICON_LIST = [
"clipboard_check",
"clipboard_copy",
"clipboard_list",
"clipboard_minus",
"clipboard_paste",
"clipboard_pen",
"clipboard_pen_line",
"clipboard_plus",
"clipboard_type",
"clipboard_x",
"clock",
@ -438,6 +565,7 @@ LUCIDE_ICON_LIST = [
"clock_9",
"cloud",
"cloud_cog",
"cloud_download",
"cloud_drizzle",
"cloud_fog",
"cloud_hail",
@ -450,12 +578,12 @@ LUCIDE_ICON_LIST = [
"cloud_snow",
"cloud_sun",
"cloud_sun_rain",
"cloud_upload",
"cloudy",
"clover",
"club",
"code",
"code_2",
"code_square",
"code_xml",
"codepen",
"codesandbox",
"coffee",
@ -473,7 +601,7 @@ LUCIDE_ICON_LIST = [
"cone",
"construction",
"contact",
"contact_2",
"contact_round",
"container",
"contrast",
"cookie",
@ -513,6 +641,7 @@ LUCIDE_ICON_LIST = [
"dessert",
"diameter",
"diamond",
"diamond_percent",
"dice_1",
"dice_2",
"dice_3",
@ -526,19 +655,16 @@ LUCIDE_ICON_LIST = [
"disc_3",
"disc_album",
"divide",
"divide_circle",
"divide_square",
"dna",
"dna_off",
"dock",
"dog",
"dollar_sign",
"donut",
"door_closed",
"door_open",
"dot",
"dot_square",
"download",
"download_cloud",
"drafting_compass",
"drama",
"dribbble",
@ -550,13 +676,16 @@ LUCIDE_ICON_LIST = [
"dumbbell",
"ear",
"ear_off",
"earth",
"earth_lock",
"eclipse",
"egg",
"egg_fried",
"egg_off",
"ellipsis",
"ellipsis_vertical",
"equal",
"equal_not",
"equal_square",
"eraser",
"euro",
"expand",
@ -690,14 +819,12 @@ LUCIDE_ICON_LIST = [
"folders",
"footprints",
"forklift",
"form_input",
"forward",
"frame",
"framer",
"frown",
"fuel",
"fullscreen",
"function_square",
"gallery_horizontal",
"gallery_horizontal_end",
"gallery_thumbnails",
@ -706,9 +833,7 @@ LUCIDE_ICON_LIST = [
"gamepad",
"gamepad_2",
"gantt_chart",
"gantt_chart_square",
"gauge",
"gauge_circle",
"gavel",
"gem",
"ghost",
@ -733,7 +858,7 @@ LUCIDE_ICON_LIST = [
"glass_water",
"glasses",
"globe",
"globe_2",
"globe_lock",
"goal",
"grab",
"graduation_cap",
@ -745,9 +870,15 @@ LUCIDE_ICON_LIST = [
"grip_vertical",
"group",
"guitar",
"ham",
"hammer",
"hand",
"hand_coins",
"hand_heart",
"hand_helping",
"hand_metal",
"hand_platter",
"handshake",
"hard_drive",
"hard_drive_download",
"hard_drive_upload",
@ -763,32 +894,35 @@ LUCIDE_ICON_LIST = [
"heading_5",
"heading_6",
"headphones",
"headset",
"heart",
"heart_crack",
"heart_handshake",
"heart_off",
"heart_pulse",
"heater",
"help_circle",
"helping_hand",
"hexagon",
"highlighter",
"history",
"home",
"hop",
"hop_off",
"hospital",
"hotel",
"hourglass",
"ice_cream",
"ice_cream_2",
"ice_cream_bowl",
"ice_cream_cone",
"image",
"image_down",
"image_minus",
"image_off",
"image_plus",
"image_up",
"images",
"import",
"inbox",
"indent",
"indent_decrease",
"indent_increase",
"indian_rupee",
"infinity",
"info",
@ -800,8 +934,6 @@ LUCIDE_ICON_LIST = [
"japanese_yen",
"joystick",
"kanban",
"kanban_square",
"kanban_square_dashed",
"key",
"key_round",
"key_square",
@ -816,8 +948,8 @@ LUCIDE_ICON_LIST = [
"land_plot",
"landmark",
"languages",
"laptop_minimal",
"laptop",
"laptop_2",
"lasso",
"lasso_select",
"laugh",
@ -834,7 +966,6 @@ LUCIDE_ICON_LIST = [
"leafy_green",
"library",
"library_big",
"library_square",
"life_buoy",
"ligature",
"lightbulb",
@ -860,17 +991,18 @@ LUCIDE_ICON_LIST = [
"list_video",
"list_x",
"loader",
"loader_2",
"loader_circle",
"locate",
"locate_fixed",
"locate_off",
"lock",
"lock_keyhole_open",
"lock_keyhole",
"lock_open",
"log_in",
"log_out",
"lollipop",
"luggage",
"m_square",
"magnet",
"mail",
"mail_check",
@ -896,7 +1028,6 @@ LUCIDE_ICON_LIST = [
"meh",
"memory_stick",
"menu",
"menu_square",
"merge",
"message_circle",
"message_circle_code",
@ -926,7 +1057,7 @@ LUCIDE_ICON_LIST = [
"message_square_x",
"messages_square",
"mic",
"mic_2",
"mic_vocal",
"mic_off",
"microscope",
"microwave",
@ -936,8 +1067,6 @@ LUCIDE_ICON_LIST = [
"minimize",
"minimize_2",
"minus",
"minus_circle",
"minus_square",
"monitor",
"monitor_check",
"monitor_dot",
@ -952,16 +1081,12 @@ LUCIDE_ICON_LIST = [
"monitor_x",
"moon",
"moon_star",
"more_horizontal",
"more_vertical",
"mountain",
"mountain_snow",
"mouse",
"mouse_pointer",
"mouse_pointer_2",
"mouse_pointer_click",
"mouse_pointer_square",
"mouse_pointer_square_dashed",
"move",
"move_3d",
"move_diagonal",
@ -996,9 +1121,11 @@ LUCIDE_ICON_LIST = [
"nut",
"nut_off",
"octagon",
"octagon_alert",
"octagon_pause",
"octagon_x",
"option",
"orbit",
"outdent",
"package",
"package_2",
"package_check",
@ -1012,7 +1139,6 @@ LUCIDE_ICON_LIST = [
"paintbrush",
"paintbrush_2",
"palette",
"palmtree",
"panel_bottom",
"panel_bottom_close",
"panel_bottom_dashed",
@ -1034,15 +1160,9 @@ LUCIDE_ICON_LIST = [
"panels_top_left",
"paperclip",
"parentheses",
"parking_circle",
"parking_circle_off",
"parking_meter",
"parking_square",
"parking_square_off",
"party_popper",
"pause",
"pause_circle",
"pause_octagon",
"paw_print",
"pc_case",
"pen",
@ -1053,9 +1173,6 @@ LUCIDE_ICON_LIST = [
"pencil_ruler",
"pentagon",
"percent",
"percent_circle",
"percent_diamond",
"percent_square",
"person_standing",
"phone",
"phone_call",
@ -1065,14 +1182,13 @@ LUCIDE_ICON_LIST = [
"phone_off",
"phone_outgoing",
"pi",
"pi_square",
"piano",
"pickaxe",
"picture_in_picture",
"picture_in_picture_2",
"pie_chart",
"piggy_bank",
"pilcrow",
"pilcrow_square",
"pill",
"pin",
"pin_off",
@ -1082,15 +1198,11 @@ LUCIDE_ICON_LIST = [
"plane_landing",
"plane_takeoff",
"play",
"play_circle",
"play_square",
"plug",
"plug_2",
"plug_zap",
"plug_zap_2",
"plus",
"plus_circle",
"plus_square",
"pocket",
"pocket_knife",
"podcast",
@ -1100,12 +1212,11 @@ LUCIDE_ICON_LIST = [
"popsicle",
"pound_sterling",
"power",
"power_circle",
"power_off",
"power_square",
"presentation",
"printer",
"projector",
"proportions",
"puzzle",
"pyramid",
"qr_code",
@ -1113,6 +1224,7 @@ LUCIDE_ICON_LIST = [
"rabbit",
"radar",
"radiation",
"radical",
"radio",
"radio_receiver",
"radio_tower",
@ -1130,6 +1242,7 @@ LUCIDE_ICON_LIST = [
"receipt_russian_ruble",
"receipt_swiss_franc",
"receipt_text",
"rectangle_ellipsis",
"rectangle_horizontal",
"rectangle_vertical",
"recycle",
@ -1157,7 +1270,9 @@ LUCIDE_ICON_LIST = [
"roller_coaster",
"rotate_3d",
"rotate_ccw",
"rotate_ccw_square",
"rotate_cw",
"rotate_cw_square",
"route",
"route_off",
"router",
@ -1186,11 +1301,8 @@ LUCIDE_ICON_LIST = [
"scan_text",
"scatter_chart",
"school",
"school_2",
"scissors",
"scissors_line_dashed",
"scissors_square",
"scissors_square_dashed_bottom",
"screen_share",
"screen_share_off",
"scroll",
@ -1239,7 +1351,6 @@ LUCIDE_ICON_LIST = [
"shrub",
"shuffle",
"sigma",
"sigma_square",
"signal",
"signal_high",
"signal_low",
@ -1253,9 +1364,8 @@ LUCIDE_ICON_LIST = [
"skull",
"slack",
"slash",
"slash_square",
"slice",
"sliders",
"sliders_vertical",
"sliders_horizontal",
"smartphone",
"smartphone_charging",
@ -1276,17 +1386,66 @@ LUCIDE_ICON_LIST = [
"spell_check_2",
"spline",
"split",
"split_square_horizontal",
"split_square_vertical",
"spray_can",
"sprout",
"square",
"square_dashed_bottom",
"square_activity",
"square_arrow_down_left",
"square_arrow_down_right",
"square_arrow_down",
"square_arrow_left",
"square_arrow_out_down_left",
"square_arrow_out_down_right",
"square_arrow_out_up_left",
"square_arrow_out_up_right",
"square_arrow_right",
"square_arrow_up_left",
"square_arrow_up_right",
"square_arrow_up",
"square_asterisk",
"square_bottom_dashed_scissors",
"square_check_big",
"square_check",
"square_chevron_down",
"square_chevron_left",
"square_chevron_right",
"square_chevron_up",
"square_code",
"square_dashed_bottom_code",
"square_dashed_bottom",
"square_dashed_kanban",
"square_dashed_mouse_pointer",
"square_divide",
"square_dot",
"square_equal",
"square_function",
"square_gantt_chart",
"square_kanban",
"square_library",
"square_m",
"square_menu",
"square_minus",
"square_mouse_pointer",
"square_parking_off",
"square_parking",
"square_pen",
"square_percent",
"square_pi",
"square_pilcrow",
"square_play",
"square_plus",
"square_power",
"square_radical",
"square_scissors",
"square_sigma",
"square_slash",
"square_split_horizontal",
"square_split_vertical",
"square_stack",
"square_user",
"square_terminal",
"square_user_round",
"square_user",
"square_x",
"squircle",
"squirrel",
"stamp",
@ -1298,13 +1457,11 @@ LUCIDE_ICON_LIST = [
"stethoscope",
"sticker",
"sticky_note",
"stop_circle",
"store",
"stretch_horizontal",
"stretch_vertical",
"strikethrough",
"subscript",
"subtitles",
"sun",
"sun_dim",
"sun_medium",
@ -1321,7 +1478,11 @@ LUCIDE_ICON_LIST = [
"syringe",
"table",
"table_2",
"table_cells_merge",
"table_cells_split",
"table_columns_split",
"table_properties",
"table_rows_split",
"tablet",
"tablet_smartphone",
"tablets",
@ -1334,12 +1495,12 @@ LUCIDE_ICON_LIST = [
"tally_5",
"tangent",
"target",
"tent",
"telescope",
"tent_tree",
"terminal",
"terminal_square",
"test_tube_diagonal",
"test_tube",
"test_tube_2",
"tent",
"test_tubes",
"text",
"text_cursor",
@ -1380,6 +1541,7 @@ LUCIDE_ICON_LIST = [
"trash",
"trash_2",
"tree_deciduous",
"tree_palm",
"tree_pine",
"trees",
"trello",
@ -1387,6 +1549,7 @@ LUCIDE_ICON_LIST = [
"trending_up",
"triangle",
"triangle_right",
"triangle_alert",
"trophy",
"truck",
"turtle",
@ -1404,13 +1567,11 @@ LUCIDE_ICON_LIST = [
"unfold_horizontal",
"unfold_vertical",
"ungroup",
"unlink",
"university",
"unlink_2",
"unlock",
"unlock_keyhole",
"unlink",
"unplug",
"upload",
"upload_cloud",
"usb",
"user",
"user_check",
@ -1448,17 +1609,18 @@ LUCIDE_ICON_LIST = [
"volume_x",
"vote",
"wallet",
"wallet_2",
"wallet_minimal",
"wallet_cards",
"wallpaper",
"wand",
"wand_2",
"wand_sparkles",
"warehouse",
"washing_machine",
"watch",
"waves",
"waypoints",
"webcam",
"webhook_off",
"webhook",
"weight",
"wheat",
@ -1470,12 +1632,10 @@ LUCIDE_ICON_LIST = [
"wine",
"wine_off",
"workflow",
"worm",
"wrap_text",
"wrench",
"x",
"x_circle",
"x_octagon",
"x_square",
"youtube",
"zap",
"zap_off",

View File

@ -9,7 +9,7 @@ from reflex.event import EventChain, EventHandler, EventSpec
from reflex.style import Style
from reflex.components.component import Component
from reflex.style import Style
from reflex.utils import format
from reflex.utils import console, format
from reflex.vars import Var
class LucideIconComponent(Component):
@ -175,13 +175,121 @@ class Icon(LucideIconComponent):
"""
...
RENAMED_ICONS_05 = {
"activity_square": "square_activity",
"alert_circle": "circle_alert",
"alert_octagon": "octagon_alert",
"alert_triangle": "triangle_alert",
"arrow_down_circle": "circle_arrow_down",
"arrow_down_left_from_circle": "circle_arrow_out_down_left",
"arrow_down_left_from_square": "square_arrow_out_down_left",
"arrow_down_left_square": "square_arrow_down_left",
"arrow_down_right_from_circle": "circle_arrow_out_down_right",
"arrow_down_right_from_square": "square_arrow_out_down_right",
"arrow_down_right_square": "square_arrow_down_right",
"arrow_down_square": "square_arrow_down",
"arrow_left_circle": "circle_arrow_left",
"arrow_left_square": "square_arrow_left",
"arrow_right_circle": "circle_arrow_right",
"arrow_right_square": "square_arrow_right",
"arrow_up_circle": "circle_arrow_up",
"arrow_up_left_from_circle": "circle_arrow_out_up_left",
"arrow_up_left_from_square": "square_arrow_out_up_left",
"arrow_up_left_square": "square_arrow_up_left",
"arrow_up_right_from_circle": "circle_arrow_out_up_right",
"arrow_up_right_from_square": "square_arrow_out_up_right",
"arrow_up_right_square": "square_arrow_up_right",
"arrow_up_square": "square_arrow_up",
"asterisk_square": "square_asterisk",
"check_circle": "circle_check_big",
"check_circle_2": "circle_check",
"check_square": "square_check_big",
"check_square_2": "square_check",
"chevron_down_circle": "circle_chevron_down",
"chevron_down_square": "square_chevron_down",
"chevron_left_circle": "circle_chevron_left",
"chevron_left_square": "square_chevron_left",
"chevron_right_circle": "circle_chevron_right",
"chevron_right_square": "square_chevron_right",
"chevron_up_circle": "circle_chevron_up",
"chevron_up_square": "square_chevron_up",
"code_2": "code_xml",
"code_square": "square_code",
"contact_2": "contact_round",
"divide_circle": "circle_divide",
"divide_square": "square_divide",
"dot_square": "square_dot",
"download_cloud": "cloud_download",
"equal_square": "square_equal",
"form_input": "rectangle_elipsis",
"function_square": "square_function",
"gantt_chart_square": "square_gantt_chart",
"gauge_circle": "circle_gauge",
"globe_2": "earth",
"help_circle": "circle_help",
"helping_hand": "hand_helping",
"ice_cream": "ice_cream_cone",
"ice_cream_2": "ice_cream_bowl",
"indent": "indent_increase",
"kanban_square": "square_kanban",
"kanban_square_dashed": "square_kanban_dashed",
"laptop_2": "laptop_minimal",
"library_square": "square_library",
"loader_2": "loader_circle",
"m_square": "square_m",
"menu_square": "square_menu",
"mic_2": "mic_vocal",
"minus_circle": "circle_minus",
"minus_square": "square_minus",
"more_horizontal": "ellipsis",
"more_vertical": "ellipsis_vertical",
"mouse_pointer_square": "square_mouse_pointer",
"mouse_pointer_square_dashed": "square_dashed_mouse_pointer",
"outdent": "indent_decrease",
"palm_tree": "tree_palm",
"parking_circle": "circle_parking",
"parking_circle_off": "circle_parking_off",
"parking_square": "square_parking",
"parking_square_off": "square_parking_off",
"pause_circle": "circle_pause",
"pause_octagon": "octagon_pause",
"percent_circle": "circle_percent",
"percent_diamond": "diamond_percent",
"percent_square": "square_percent",
"pi_square": "square_pi",
"pilcrow_square": "square_pilcrow",
"play_circle": "circle_play",
"play_square": "square_play",
"plus_circle": "circle_plus",
"plus_square": "square_plus",
"power_circle": "circle_power",
"power_square": "square_power",
"school_2": "university",
"scissors_square": "square_scissors",
"scissors_square_dashed_bottom": "square_bottom_dashed_scissors",
"sigma_square": "square_sigma",
"slash_circle": "circle_slash",
"sliders": "sliders_vertical",
"split_square_horizontal": "square_split_horizontal",
"split_square_vertical": "square_split_vertical",
"stop_circle": "circle_stop",
"subtitles": "captions",
"test_tube_2": "test_tube_diagonal",
"unlock": "lock_open",
"unlock_keyhole": "lock_keyhole_open",
"upload_cloud": "cloud_upload",
"wallet_2": "wallet_minimal",
"wand_2": "wand_sparkles",
"x_circle": "circle_x",
"x_octagon": "octagon_x",
"x_square": "square_x",
}
LUCIDE_ICON_LIST = [
"a_arrow_down",
"a_arrow_up",
"a_large_small",
"accessibility",
"activity",
"activity_square",
"air_vent",
"airplay",
"alarm_clock",
@ -191,9 +299,6 @@ LUCIDE_ICON_LIST = [
"alarm_clock_plus",
"alarm_smoke",
"album",
"alert_circle",
"alert_octagon",
"alert_triangle",
"align_center",
"align_center_horizontal",
"align_center_vertical",
@ -220,6 +325,7 @@ LUCIDE_ICON_LIST = [
"align_vertical_justify_start",
"align_vertical_space_around",
"align_vertical_space_between",
"ambulance",
"ampersand",
"ampersands",
"anchor",
@ -229,6 +335,7 @@ LUCIDE_ICON_LIST = [
"anvil",
"aperture",
"app_window",
"app_window_mac",
"apple",
"archive",
"archive_restore",
@ -247,59 +354,38 @@ LUCIDE_ICON_LIST = [
"arrow_down_0_1",
"arrow_down_1_0",
"arrow_down_a_z",
"arrow_down_circle",
"arrow_down_from_line",
"arrow_down_left",
"arrow_down_left_from_circle",
"arrow_down_left_from_square",
"arrow_down_left_square",
"arrow_down_narrow_wide",
"arrow_down_right",
"arrow_down_right_from_circle",
"arrow_down_right_from_square",
"arrow_down_right_square",
"arrow_down_square",
"arrow_down_to_dot",
"arrow_down_to_line",
"arrow_down_up",
"arrow_down_wide_narrow",
"arrow_down_z_a",
"arrow_left",
"arrow_left_circle",
"arrow_left_from_line",
"arrow_left_right",
"arrow_left_square",
"arrow_left_to_line",
"arrow_right",
"arrow_right_circle",
"arrow_right_from_line",
"arrow_right_left",
"arrow_right_square",
"arrow_right_to_line",
"arrow_up",
"arrow_up_0_1",
"arrow_up_1_0",
"arrow_up_a_z",
"arrow_up_circle",
"arrow_up_down",
"arrow_up_from_dot",
"arrow_up_from_line",
"arrow_up_left",
"arrow_up_left_from_circle",
"arrow_up_left_from_square",
"arrow_up_left_square",
"arrow_up_narrow_wide",
"arrow_up_right",
"arrow_up_right_from_circle",
"arrow_up_right_from_square",
"arrow_up_right_square",
"arrow_up_square",
"arrow_up_to_line",
"arrow_up_wide_narrow",
"arrow_up_z_a",
"arrows_up_from_line",
"asterisk",
"asterisk_square",
"at_sign",
"atom",
"audio_lines",
@ -354,6 +440,7 @@ LUCIDE_ICON_LIST = [
"bed_single",
"beef",
"beer",
"beer_off",
"bell",
"bell_dot",
"bell_electric",
@ -412,6 +499,7 @@ LUCIDE_ICON_LIST = [
"bookmark_x",
"boom_box",
"bot",
"bot_message_square",
"box",
"box_select",
"boxes",
@ -422,6 +510,8 @@ LUCIDE_ICON_LIST = [
"brain_cog",
"brick_wall",
"briefcase",
"briefcase_business",
"briefcase_medical",
"bring_to_front",
"brush",
"bug",
@ -458,6 +548,9 @@ LUCIDE_ICON_LIST = [
"candy",
"candy_cane",
"candy_off",
"cannabis",
"captions",
"captions_off",
"car",
"car_front",
"car_taxi_front",
@ -473,26 +566,14 @@ LUCIDE_ICON_LIST = [
"cctv",
"check",
"check_check",
"check_circle",
"check_circle_2",
"check_square",
"check_square_2",
"chef_hat",
"cherry",
"chevron_down",
"chevron_down_circle",
"chevron_down_square",
"chevron_first",
"chevron_last",
"chevron_left",
"chevron_left_circle",
"chevron_left_square",
"chevron_right",
"chevron_right_circle",
"chevron_right_square",
"chevron_up",
"chevron_up_circle",
"chevron_up_square",
"chevrons_down",
"chevrons_down_up",
"chevrons_left",
@ -506,17 +587,46 @@ LUCIDE_ICON_LIST = [
"cigarette",
"cigarette_off",
"circle",
"circle_alert",
"circle_arrow_down",
"circle_arrow_left",
"circle_arrow_out_down_left",
"circle_arrow_out_down_right",
"circle_arrow_out_up_left",
"circle_arrow_out_up_right",
"circle_arrow_right",
"circle_arrow_up",
"circle_check_big",
"circle_check",
"circle_chevron_down",
"circle_chevron_left",
"circle_chevron_right",
"circle_chevron_up",
"circle_dashed",
"circle_divide",
"circle_dollar_sign",
"circle_dot",
"circle_dot_dashed",
"circle_ellipsis",
"circle_equal",
"circle_fading_plus",
"circle_gauge",
"circle_help",
"circle_minus",
"circle_off",
"circle_parking_off",
"circle_parking",
"circle_pause",
"circle_percent",
"circle_play",
"circle_plus",
"circle_power",
"circle_slash",
"circle_slash_2",
"circle_stop",
"circle_user",
"circle_user_round",
"circle_x",
"circuit_board",
"citrus",
"clapperboard",
@ -524,9 +634,11 @@ LUCIDE_ICON_LIST = [
"clipboard_check",
"clipboard_copy",
"clipboard_list",
"clipboard_minus",
"clipboard_paste",
"clipboard_pen",
"clipboard_pen_line",
"clipboard_plus",
"clipboard_type",
"clipboard_x",
"clock",
@ -544,6 +656,7 @@ LUCIDE_ICON_LIST = [
"clock_9",
"cloud",
"cloud_cog",
"cloud_download",
"cloud_drizzle",
"cloud_fog",
"cloud_hail",
@ -556,12 +669,12 @@ LUCIDE_ICON_LIST = [
"cloud_snow",
"cloud_sun",
"cloud_sun_rain",
"cloud_upload",
"cloudy",
"clover",
"club",
"code",
"code_2",
"code_square",
"code_xml",
"codepen",
"codesandbox",
"coffee",
@ -579,7 +692,7 @@ LUCIDE_ICON_LIST = [
"cone",
"construction",
"contact",
"contact_2",
"contact_round",
"container",
"contrast",
"cookie",
@ -619,6 +732,7 @@ LUCIDE_ICON_LIST = [
"dessert",
"diameter",
"diamond",
"diamond_percent",
"dice_1",
"dice_2",
"dice_3",
@ -632,19 +746,16 @@ LUCIDE_ICON_LIST = [
"disc_3",
"disc_album",
"divide",
"divide_circle",
"divide_square",
"dna",
"dna_off",
"dock",
"dog",
"dollar_sign",
"donut",
"door_closed",
"door_open",
"dot",
"dot_square",
"download",
"download_cloud",
"drafting_compass",
"drama",
"dribbble",
@ -656,13 +767,16 @@ LUCIDE_ICON_LIST = [
"dumbbell",
"ear",
"ear_off",
"earth",
"earth_lock",
"eclipse",
"egg",
"egg_fried",
"egg_off",
"ellipsis",
"ellipsis_vertical",
"equal",
"equal_not",
"equal_square",
"eraser",
"euro",
"expand",
@ -796,14 +910,12 @@ LUCIDE_ICON_LIST = [
"folders",
"footprints",
"forklift",
"form_input",
"forward",
"frame",
"framer",
"frown",
"fuel",
"fullscreen",
"function_square",
"gallery_horizontal",
"gallery_horizontal_end",
"gallery_thumbnails",
@ -812,9 +924,7 @@ LUCIDE_ICON_LIST = [
"gamepad",
"gamepad_2",
"gantt_chart",
"gantt_chart_square",
"gauge",
"gauge_circle",
"gavel",
"gem",
"ghost",
@ -839,7 +949,7 @@ LUCIDE_ICON_LIST = [
"glass_water",
"glasses",
"globe",
"globe_2",
"globe_lock",
"goal",
"grab",
"graduation_cap",
@ -851,9 +961,15 @@ LUCIDE_ICON_LIST = [
"grip_vertical",
"group",
"guitar",
"ham",
"hammer",
"hand",
"hand_coins",
"hand_heart",
"hand_helping",
"hand_metal",
"hand_platter",
"handshake",
"hard_drive",
"hard_drive_download",
"hard_drive_upload",
@ -869,32 +985,35 @@ LUCIDE_ICON_LIST = [
"heading_5",
"heading_6",
"headphones",
"headset",
"heart",
"heart_crack",
"heart_handshake",
"heart_off",
"heart_pulse",
"heater",
"help_circle",
"helping_hand",
"hexagon",
"highlighter",
"history",
"home",
"hop",
"hop_off",
"hospital",
"hotel",
"hourglass",
"ice_cream",
"ice_cream_2",
"ice_cream_bowl",
"ice_cream_cone",
"image",
"image_down",
"image_minus",
"image_off",
"image_plus",
"image_up",
"images",
"import",
"inbox",
"indent",
"indent_decrease",
"indent_increase",
"indian_rupee",
"infinity",
"info",
@ -906,8 +1025,6 @@ LUCIDE_ICON_LIST = [
"japanese_yen",
"joystick",
"kanban",
"kanban_square",
"kanban_square_dashed",
"key",
"key_round",
"key_square",
@ -922,8 +1039,8 @@ LUCIDE_ICON_LIST = [
"land_plot",
"landmark",
"languages",
"laptop_minimal",
"laptop",
"laptop_2",
"lasso",
"lasso_select",
"laugh",
@ -940,7 +1057,6 @@ LUCIDE_ICON_LIST = [
"leafy_green",
"library",
"library_big",
"library_square",
"life_buoy",
"ligature",
"lightbulb",
@ -966,17 +1082,18 @@ LUCIDE_ICON_LIST = [
"list_video",
"list_x",
"loader",
"loader_2",
"loader_circle",
"locate",
"locate_fixed",
"locate_off",
"lock",
"lock_keyhole_open",
"lock_keyhole",
"lock_open",
"log_in",
"log_out",
"lollipop",
"luggage",
"m_square",
"magnet",
"mail",
"mail_check",
@ -1002,7 +1119,6 @@ LUCIDE_ICON_LIST = [
"meh",
"memory_stick",
"menu",
"menu_square",
"merge",
"message_circle",
"message_circle_code",
@ -1032,7 +1148,7 @@ LUCIDE_ICON_LIST = [
"message_square_x",
"messages_square",
"mic",
"mic_2",
"mic_vocal",
"mic_off",
"microscope",
"microwave",
@ -1042,8 +1158,6 @@ LUCIDE_ICON_LIST = [
"minimize",
"minimize_2",
"minus",
"minus_circle",
"minus_square",
"monitor",
"monitor_check",
"monitor_dot",
@ -1058,16 +1172,12 @@ LUCIDE_ICON_LIST = [
"monitor_x",
"moon",
"moon_star",
"more_horizontal",
"more_vertical",
"mountain",
"mountain_snow",
"mouse",
"mouse_pointer",
"mouse_pointer_2",
"mouse_pointer_click",
"mouse_pointer_square",
"mouse_pointer_square_dashed",
"move",
"move_3d",
"move_diagonal",
@ -1102,9 +1212,11 @@ LUCIDE_ICON_LIST = [
"nut",
"nut_off",
"octagon",
"octagon_alert",
"octagon_pause",
"octagon_x",
"option",
"orbit",
"outdent",
"package",
"package_2",
"package_check",
@ -1118,7 +1230,6 @@ LUCIDE_ICON_LIST = [
"paintbrush",
"paintbrush_2",
"palette",
"palmtree",
"panel_bottom",
"panel_bottom_close",
"panel_bottom_dashed",
@ -1140,15 +1251,9 @@ LUCIDE_ICON_LIST = [
"panels_top_left",
"paperclip",
"parentheses",
"parking_circle",
"parking_circle_off",
"parking_meter",
"parking_square",
"parking_square_off",
"party_popper",
"pause",
"pause_circle",
"pause_octagon",
"paw_print",
"pc_case",
"pen",
@ -1159,9 +1264,6 @@ LUCIDE_ICON_LIST = [
"pencil_ruler",
"pentagon",
"percent",
"percent_circle",
"percent_diamond",
"percent_square",
"person_standing",
"phone",
"phone_call",
@ -1171,14 +1273,13 @@ LUCIDE_ICON_LIST = [
"phone_off",
"phone_outgoing",
"pi",
"pi_square",
"piano",
"pickaxe",
"picture_in_picture",
"picture_in_picture_2",
"pie_chart",
"piggy_bank",
"pilcrow",
"pilcrow_square",
"pill",
"pin",
"pin_off",
@ -1188,15 +1289,11 @@ LUCIDE_ICON_LIST = [
"plane_landing",
"plane_takeoff",
"play",
"play_circle",
"play_square",
"plug",
"plug_2",
"plug_zap",
"plug_zap_2",
"plus",
"plus_circle",
"plus_square",
"pocket",
"pocket_knife",
"podcast",
@ -1206,12 +1303,11 @@ LUCIDE_ICON_LIST = [
"popsicle",
"pound_sterling",
"power",
"power_circle",
"power_off",
"power_square",
"presentation",
"printer",
"projector",
"proportions",
"puzzle",
"pyramid",
"qr_code",
@ -1219,6 +1315,7 @@ LUCIDE_ICON_LIST = [
"rabbit",
"radar",
"radiation",
"radical",
"radio",
"radio_receiver",
"radio_tower",
@ -1236,6 +1333,7 @@ LUCIDE_ICON_LIST = [
"receipt_russian_ruble",
"receipt_swiss_franc",
"receipt_text",
"rectangle_ellipsis",
"rectangle_horizontal",
"rectangle_vertical",
"recycle",
@ -1263,7 +1361,9 @@ LUCIDE_ICON_LIST = [
"roller_coaster",
"rotate_3d",
"rotate_ccw",
"rotate_ccw_square",
"rotate_cw",
"rotate_cw_square",
"route",
"route_off",
"router",
@ -1292,11 +1392,8 @@ LUCIDE_ICON_LIST = [
"scan_text",
"scatter_chart",
"school",
"school_2",
"scissors",
"scissors_line_dashed",
"scissors_square",
"scissors_square_dashed_bottom",
"screen_share",
"screen_share_off",
"scroll",
@ -1345,7 +1442,6 @@ LUCIDE_ICON_LIST = [
"shrub",
"shuffle",
"sigma",
"sigma_square",
"signal",
"signal_high",
"signal_low",
@ -1359,9 +1455,8 @@ LUCIDE_ICON_LIST = [
"skull",
"slack",
"slash",
"slash_square",
"slice",
"sliders",
"sliders_vertical",
"sliders_horizontal",
"smartphone",
"smartphone_charging",
@ -1382,17 +1477,66 @@ LUCIDE_ICON_LIST = [
"spell_check_2",
"spline",
"split",
"split_square_horizontal",
"split_square_vertical",
"spray_can",
"sprout",
"square",
"square_dashed_bottom",
"square_activity",
"square_arrow_down_left",
"square_arrow_down_right",
"square_arrow_down",
"square_arrow_left",
"square_arrow_out_down_left",
"square_arrow_out_down_right",
"square_arrow_out_up_left",
"square_arrow_out_up_right",
"square_arrow_right",
"square_arrow_up_left",
"square_arrow_up_right",
"square_arrow_up",
"square_asterisk",
"square_bottom_dashed_scissors",
"square_check_big",
"square_check",
"square_chevron_down",
"square_chevron_left",
"square_chevron_right",
"square_chevron_up",
"square_code",
"square_dashed_bottom_code",
"square_dashed_bottom",
"square_dashed_kanban",
"square_dashed_mouse_pointer",
"square_divide",
"square_dot",
"square_equal",
"square_function",
"square_gantt_chart",
"square_kanban",
"square_library",
"square_m",
"square_menu",
"square_minus",
"square_mouse_pointer",
"square_parking_off",
"square_parking",
"square_pen",
"square_percent",
"square_pi",
"square_pilcrow",
"square_play",
"square_plus",
"square_power",
"square_radical",
"square_scissors",
"square_sigma",
"square_slash",
"square_split_horizontal",
"square_split_vertical",
"square_stack",
"square_user",
"square_terminal",
"square_user_round",
"square_user",
"square_x",
"squircle",
"squirrel",
"stamp",
@ -1404,13 +1548,11 @@ LUCIDE_ICON_LIST = [
"stethoscope",
"sticker",
"sticky_note",
"stop_circle",
"store",
"stretch_horizontal",
"stretch_vertical",
"strikethrough",
"subscript",
"subtitles",
"sun",
"sun_dim",
"sun_medium",
@ -1427,7 +1569,11 @@ LUCIDE_ICON_LIST = [
"syringe",
"table",
"table_2",
"table_cells_merge",
"table_cells_split",
"table_columns_split",
"table_properties",
"table_rows_split",
"tablet",
"tablet_smartphone",
"tablets",
@ -1440,12 +1586,12 @@ LUCIDE_ICON_LIST = [
"tally_5",
"tangent",
"target",
"tent",
"telescope",
"tent_tree",
"terminal",
"terminal_square",
"test_tube_diagonal",
"test_tube",
"test_tube_2",
"tent",
"test_tubes",
"text",
"text_cursor",
@ -1486,6 +1632,7 @@ LUCIDE_ICON_LIST = [
"trash",
"trash_2",
"tree_deciduous",
"tree_palm",
"tree_pine",
"trees",
"trello",
@ -1493,6 +1640,7 @@ LUCIDE_ICON_LIST = [
"trending_up",
"triangle",
"triangle_right",
"triangle_alert",
"trophy",
"truck",
"turtle",
@ -1510,13 +1658,11 @@ LUCIDE_ICON_LIST = [
"unfold_horizontal",
"unfold_vertical",
"ungroup",
"unlink",
"university",
"unlink_2",
"unlock",
"unlock_keyhole",
"unlink",
"unplug",
"upload",
"upload_cloud",
"usb",
"user",
"user_check",
@ -1554,17 +1700,18 @@ LUCIDE_ICON_LIST = [
"volume_x",
"vote",
"wallet",
"wallet_2",
"wallet_minimal",
"wallet_cards",
"wallpaper",
"wand",
"wand_2",
"wand_sparkles",
"warehouse",
"washing_machine",
"watch",
"waves",
"waypoints",
"webcam",
"webhook_off",
"webhook",
"weight",
"wheat",
@ -1576,12 +1723,10 @@ LUCIDE_ICON_LIST = [
"wine",
"wine_off",
"workflow",
"worm",
"wrap_text",
"wrench",
"x",
"x_circle",
"x_octagon",
"x_square",
"youtube",
"zap",
"zap_off",