Merged in fix/3697-prettier-configs (pull request #3396)

fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Rasmus Langvad
2026-01-07 12:45:50 +00:00
parent 932413412b
commit d0546926a9
500 changed files with 18367 additions and 18419 deletions

View File

@@ -1,6 +1,6 @@
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import { iconVariants } from '../../variants'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
import { iconVariants } from "../../variants"
export default function BedHotelIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function CoolingIcon({ className, color, ...props }: IconProps) {
const classNames = iconVariants({ className, color })

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function CouchTableIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function FootStoolIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function HairdryerIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function HandSoapIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function IceMachineIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function MassageIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function MdiBunkBedIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function MirrorIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function MovingBedsIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function RoadIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function RugIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function SafetyBoxIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function SlippersIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function TowelIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function ViewIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function WardIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function WindowNotAvailableIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function WoodFloorIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function DiamondAddIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function FacebookIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function InstagramIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function TripadvisorIcon({
className,

View File

@@ -1,7 +1,7 @@
import { iconVariants } from '../../variants'
import { iconVariants } from "../../variants"
import type { IconProps } from '../../icon'
import { getIconAriaProps } from '../../utils'
import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"
export default function MinimizeIcon({
className,

View File

@@ -1,36 +1,36 @@
import BathroomCabinetIcon from './Nucleo/Amenities_Facilities/bathroom-cabinet-2'
import BedHotelIcon from './Customised/Amenities_Facilities/BedHotel'
import BowlingPinsIcon from './Nucleo/Experiences/bowling-pins'
import BunkBedIcon from './Customised/Amenities_Facilities/MdiBunkBedOutline'
import ConferenceRoomIcon from './Nucleo/Amenities_Facilities/conference-room'
import CoolingIcon from './Customised/Amenities_Facilities/Cooling'
import CouchTableIcon from './Customised/Amenities_Facilities/CouchTable'
import DoorIcon from './Nucleo/Amenities_Facilities/door-2'
import FootStoolIcon from './Customised/Amenities_Facilities/FootStool'
import HairdresserIcon from './Nucleo/Amenities_Facilities/hairdresser-1'
import HairdryerIcon from './Customised/Amenities_Facilities/Hairdryer'
import HandSoapIcon from './Customised/Amenities_Facilities/HandSoap'
import IceMachineIcon from './Customised/Amenities_Facilities/IceMachine'
import MassageIcon from './Customised/Amenities_Facilities/Massage'
import { MaterialIcon, type MaterialIconSetIconProps } from './MaterialIcon'
import MirrorIcon from './Customised/Amenities_Facilities/Mirror'
import MovingBedsIcon from './Customised/Amenities_Facilities/MovingBeds'
import RecordPlayerIcon from './Nucleo/Amenities_Facilities/record-player-3'
import RoadIcon from './Customised/Amenities_Facilities/Road'
import RugIcon from './Customised/Amenities_Facilities/Rug'
import SafetyBoxIcon from './Customised/Amenities_Facilities/SafetyBox'
import SlippersIcon from './Customised/Amenities_Facilities/Slippers'
import ToiletIcon from './Nucleo/Amenities_Facilities/toilet-2'
import TowelIcon from './Customised/Amenities_Facilities/Towel'
import UserPoliceIcon from './Nucleo/Amenities_Facilities/user-police-2'
import ViewIcon from './Customised/Amenities_Facilities/View'
import WardIcon from './Customised/Amenities_Facilities/Ward'
import WindowNotAvailableIcon from './Customised/Amenities_Facilities/WindowNotAvailable'
import WoodFloorIcon from './Customised/Amenities_Facilities/WoodFloor'
import BathroomCabinetIcon from "./Nucleo/Amenities_Facilities/bathroom-cabinet-2"
import BedHotelIcon from "./Customised/Amenities_Facilities/BedHotel"
import BowlingPinsIcon from "./Nucleo/Experiences/bowling-pins"
import BunkBedIcon from "./Customised/Amenities_Facilities/MdiBunkBedOutline"
import ConferenceRoomIcon from "./Nucleo/Amenities_Facilities/conference-room"
import CoolingIcon from "./Customised/Amenities_Facilities/Cooling"
import CouchTableIcon from "./Customised/Amenities_Facilities/CouchTable"
import DoorIcon from "./Nucleo/Amenities_Facilities/door-2"
import FootStoolIcon from "./Customised/Amenities_Facilities/FootStool"
import HairdresserIcon from "./Nucleo/Amenities_Facilities/hairdresser-1"
import HairdryerIcon from "./Customised/Amenities_Facilities/Hairdryer"
import HandSoapIcon from "./Customised/Amenities_Facilities/HandSoap"
import IceMachineIcon from "./Customised/Amenities_Facilities/IceMachine"
import MassageIcon from "./Customised/Amenities_Facilities/Massage"
import { MaterialIcon, type MaterialIconSetIconProps } from "./MaterialIcon"
import MirrorIcon from "./Customised/Amenities_Facilities/Mirror"
import MovingBedsIcon from "./Customised/Amenities_Facilities/MovingBeds"
import RecordPlayerIcon from "./Nucleo/Amenities_Facilities/record-player-3"
import RoadIcon from "./Customised/Amenities_Facilities/Road"
import RugIcon from "./Customised/Amenities_Facilities/Rug"
import SafetyBoxIcon from "./Customised/Amenities_Facilities/SafetyBox"
import SlippersIcon from "./Customised/Amenities_Facilities/Slippers"
import ToiletIcon from "./Nucleo/Amenities_Facilities/toilet-2"
import TowelIcon from "./Customised/Amenities_Facilities/Towel"
import UserPoliceIcon from "./Nucleo/Amenities_Facilities/user-police-2"
import ViewIcon from "./Customised/Amenities_Facilities/View"
import WardIcon from "./Customised/Amenities_Facilities/Ward"
import WindowNotAvailableIcon from "./Customised/Amenities_Facilities/WindowNotAvailable"
import WoodFloorIcon from "./Customised/Amenities_Facilities/WoodFloor"
import type { IconProps, NucleoIconProps } from '.'
import type { MaterialSymbolProps } from './MaterialIcon/MaterialSymbol'
import type { JSX } from 'react'
import type { IconProps, NucleoIconProps } from "."
import type { MaterialSymbolProps } from "./MaterialIcon/MaterialSymbol"
import type { JSX } from "react"
interface FacilityIconProps {
name: string | undefined
@@ -67,168 +67,168 @@ export function FacilityIcon({
}
const MaterialIconMappings: {
icon: MaterialSymbolProps['icon']
icon: MaterialSymbolProps["icon"]
name: string
}[] = [
{ icon: 'air_purifier_gen', name: 'aircondition' },
{ icon: 'travel', name: 'airport' },
{ icon: 'balcony', name: 'balcony' },
{ icon: 'deck', name: 'balconyorterrace' },
{ icon: 'balcony', name: 'frenchbalcony' },
{ icon: 'bathtub', name: 'bathroomwithbathtub' },
{ icon: 'bathtub', name: 'bathroomwithshowerandbathtub' },
{ icon: 'bed', name: 'setoftwopillows' },
{ icon: 'chair', name: 'armchairbed' },
{ icon: 'meeting_room', name: 'separatebedroom' },
{ icon: 'pedal_bike', name: 'bikeforloan' },
{ icon: 'bakery_dining', name: 'breakfast' },
{ icon: 'bakery_dining', name: 'servesbreakfastalwaysincluded' },
{ icon: 'business_center', name: 'meetingconferencefacilities' },
{ icon: 'business_center', name: 'meetingrooms' },
{ icon: 'router', name: 'internetwithcableintheroom' },
{ icon: 'chair', name: 'armchair' },
{ icon: 'chair', name: 'chair' },
{ icon: 'meeting_room', name: 'connectingrooms' },
{ icon: 'location_city', name: 'viewcityview' },
{ icon: 'coffee_maker', name: 'nespressomachine' },
{ icon: 'dining', name: 'café' },
{ icon: 'coffee', name: 'coffee' },
{ icon: 'coffee_maker', name: 'coffeemachine' },
{ icon: 'concierge', name: 'lifestyleconcierge' },
{ icon: 'mode_fan', name: 'aircooling' },
{ icon: 'mode_fan', name: 'cooler' },
{ icon: 'desk', name: 'deskandchair' },
{ icon: 'desk', name: 'desk' },
{ icon: 'dining', name: 'diningarea' },
{ icon: 'table_bar', name: 'tablefordining' },
{ icon: 'electric_bike', name: 'ebikeschargingstation' },
{ icon: 'family_restroom', name: 'extrafamilyfriendly' },
{ icon: 'exercise', name: 'gym' },
{ icon: 'health_and_beauty', name: 'beautysalon' },
{ icon: 'bathroom', name: 'bathroom2separatebathrooms' },
{ icon: 'credit_card_heart', name: 'cashfree800pmtill0600am' },
{ icon: 'credit_card_heart', name: 'cashfreehotel' },
{ icon: 'confirmation_number', name: 'coffeevoucher' },
{ icon: 'water_full', name: 'complimentarycoldrefreshments' },
{ icon: 'groups', name: 'conventioncentre' },
{ icon: 'accessible', name: 'disabledparking' },
{ icon: 'charging_station', name: 'dockingstationforipodipad' },
{ icon: 'cool_to_dry', name: 'dryingcabinet' },
{ icon: 'assistant_navigation', name: 'easyaccess' },
{ icon: 'laundry', name: 'garmentsteamer' },
{ icon: 'stairs', name: 'highfloor' },
{ icon: 'hot_tub', name: 'jaccuzzi' },
{ icon: 'hot_tub', name: 'jacuzzi' },
{ icon: 'countertops', name: 'kitchen' },
{ icon: 'countertops', name: 'kitchenette' },
{ icon: 'checked_bag', name: 'latecheckoutuntil1400guaranteed' },
{ icon: 'music_cast', name: 'livemusicexhibitions' },
{ icon: 'liquor', name: 'minibarincludedinroomrate' },
{ icon: 'local_parking', name: 'parkingadditionalcost' },
{ icon: 'sauna', name: 'privatesauna' },
{ icon: 'kitchen', name: 'refrigerator' },
{ icon: 'airline_seat_recline_normal', name: 'seatingarea' },
{ icon: 'scene', name: 'separatelivingroom' },
{ icon: 'chair', name: 'sofabed' },
{ icon: 'chair', name: 'sofas' },
{ icon: 'chair', name: 'sofa' },
{ icon: 'bedroom_parent', name: 'spaciousroom' },
{ icon: 'local_drink', name: 'stillandsparklingwater' },
{ icon: 'table_bar', name: 'table' },
{ icon: 'coffee_maker', name: 'tassimocoffeemaker' },
{ icon: 'deck', name: 'terrace' },
{ icon: 'iron', name: 'trouserpress' },
{ icon: 'tv_guide', name: 'tv' },
{ icon: 'tv_remote', name: 'tvwithcomplimentarymoviechannels' },
{ icon: 'tv_remote', name: 'tvwithmoviechannels' },
{ icon: 'live_tv', name: 'tvwithstreamingoption' },
{ icon: 'hvac', name: 'ventilationinroom' },
{ icon: 'landscape', name: 'viewfjordview' },
{ icon: 'houseboat', name: 'viewlakeview' },
{ icon: 'panorama', name: 'viewpanoramicview' },
{ icon: 'sailing', name: 'viewseaview' },
{ icon: 'ward', name: 'wallbed' },
{ icon: 'pedal_bike', name: 'wallmountedcyclerack' },
{ icon: 'dresser', name: 'wardrobe' },
{ icon: 'spa', name: 'wellnessandsaunaentrancefeeadmission16years' },
{ icon: 'spa', name: 'wellnesspoolsaunaentrancefeeadmission16years' },
{ icon: 'curtains', name: 'windownook' },
{ icon: 'iron', name: 'ironandironingboard' },
{ icon: 'iron', name: 'ironingroom' },
{ icon: 'kayaking', name: 'kayaksforloan' },
{ icon: 'kettle', name: 'kettle' },
{ icon: 'kettle', name: 'kettlewithcoffee' },
{ icon: 'sync_saved_locally', name: 'laptopsafe' },
{ icon: 'computer', name: 'laptoptray' },
{ icon: 'local_laundry_service', name: 'laundryservice' },
{ icon: 'local_bar', name: 'bar' },
{ icon: 'deck', name: 'rooftopbar' },
{ icon: 'local_bar', name: 'skybar' },
{ icon: 'microwave', name: 'microwave' },
{ icon: 'nature', name: 'viewparkview' },
{ icon: 'nightlife', name: 'disconightclub' },
{ icon: 'smoke_free', name: 'nonsmoking' },
{ icon: 'deck', name: 'outdoorterrace' },
{ icon: 'local_parking', name: 'parking' },
{ icon: 'local_parking', name: 'parkingfreeparking' },
{ icon: 'pets', name: 'petfriendlyrooms' },
{ icon: 'phone', name: 'directdialphoneandvoicemail' },
{ icon: 'restaurant', name: 'restaurant' },
{ icon: 'room_service', name: 'roomservice' },
{ icon: 'sauna', name: 'sauna' },
{ icon: 'shower', name: 'bathroomwithshower' },
{ icon: 'shower', name: 'rainshower' },
{ icon: 'shower', name: 'sharedbathroomwithshower' },
{ icon: 'radio', name: 'musicplayer' },
{ icon: 'shopping_bag', name: 'shop' },
{ icon: 'pool', name: 'pool' },
{ icon: 'laundry', name: 'handwash' },
{ icon: 'connected_tv', name: 'tvwithchromecast' },
{ icon: 'wifi', name: 'freewifi' },
{ icon: 'curtains_closed', name: 'blackoutcurtains' },
{ icon: 'liquor', name: 'minibar' },
{ icon: 'yard', name: 'viewatriumview' },
{ icon: "air_purifier_gen", name: "aircondition" },
{ icon: "travel", name: "airport" },
{ icon: "balcony", name: "balcony" },
{ icon: "deck", name: "balconyorterrace" },
{ icon: "balcony", name: "frenchbalcony" },
{ icon: "bathtub", name: "bathroomwithbathtub" },
{ icon: "bathtub", name: "bathroomwithshowerandbathtub" },
{ icon: "bed", name: "setoftwopillows" },
{ icon: "chair", name: "armchairbed" },
{ icon: "meeting_room", name: "separatebedroom" },
{ icon: "pedal_bike", name: "bikeforloan" },
{ icon: "bakery_dining", name: "breakfast" },
{ icon: "bakery_dining", name: "servesbreakfastalwaysincluded" },
{ icon: "business_center", name: "meetingconferencefacilities" },
{ icon: "business_center", name: "meetingrooms" },
{ icon: "router", name: "internetwithcableintheroom" },
{ icon: "chair", name: "armchair" },
{ icon: "chair", name: "chair" },
{ icon: "meeting_room", name: "connectingrooms" },
{ icon: "location_city", name: "viewcityview" },
{ icon: "coffee_maker", name: "nespressomachine" },
{ icon: "dining", name: "café" },
{ icon: "coffee", name: "coffee" },
{ icon: "coffee_maker", name: "coffeemachine" },
{ icon: "concierge", name: "lifestyleconcierge" },
{ icon: "mode_fan", name: "aircooling" },
{ icon: "mode_fan", name: "cooler" },
{ icon: "desk", name: "deskandchair" },
{ icon: "desk", name: "desk" },
{ icon: "dining", name: "diningarea" },
{ icon: "table_bar", name: "tablefordining" },
{ icon: "electric_bike", name: "ebikeschargingstation" },
{ icon: "family_restroom", name: "extrafamilyfriendly" },
{ icon: "exercise", name: "gym" },
{ icon: "health_and_beauty", name: "beautysalon" },
{ icon: "bathroom", name: "bathroom2separatebathrooms" },
{ icon: "credit_card_heart", name: "cashfree800pmtill0600am" },
{ icon: "credit_card_heart", name: "cashfreehotel" },
{ icon: "confirmation_number", name: "coffeevoucher" },
{ icon: "water_full", name: "complimentarycoldrefreshments" },
{ icon: "groups", name: "conventioncentre" },
{ icon: "accessible", name: "disabledparking" },
{ icon: "charging_station", name: "dockingstationforipodipad" },
{ icon: "cool_to_dry", name: "dryingcabinet" },
{ icon: "assistant_navigation", name: "easyaccess" },
{ icon: "laundry", name: "garmentsteamer" },
{ icon: "stairs", name: "highfloor" },
{ icon: "hot_tub", name: "jaccuzzi" },
{ icon: "hot_tub", name: "jacuzzi" },
{ icon: "countertops", name: "kitchen" },
{ icon: "countertops", name: "kitchenette" },
{ icon: "checked_bag", name: "latecheckoutuntil1400guaranteed" },
{ icon: "music_cast", name: "livemusicexhibitions" },
{ icon: "liquor", name: "minibarincludedinroomrate" },
{ icon: "local_parking", name: "parkingadditionalcost" },
{ icon: "sauna", name: "privatesauna" },
{ icon: "kitchen", name: "refrigerator" },
{ icon: "airline_seat_recline_normal", name: "seatingarea" },
{ icon: "scene", name: "separatelivingroom" },
{ icon: "chair", name: "sofabed" },
{ icon: "chair", name: "sofas" },
{ icon: "chair", name: "sofa" },
{ icon: "bedroom_parent", name: "spaciousroom" },
{ icon: "local_drink", name: "stillandsparklingwater" },
{ icon: "table_bar", name: "table" },
{ icon: "coffee_maker", name: "tassimocoffeemaker" },
{ icon: "deck", name: "terrace" },
{ icon: "iron", name: "trouserpress" },
{ icon: "tv_guide", name: "tv" },
{ icon: "tv_remote", name: "tvwithcomplimentarymoviechannels" },
{ icon: "tv_remote", name: "tvwithmoviechannels" },
{ icon: "live_tv", name: "tvwithstreamingoption" },
{ icon: "hvac", name: "ventilationinroom" },
{ icon: "landscape", name: "viewfjordview" },
{ icon: "houseboat", name: "viewlakeview" },
{ icon: "panorama", name: "viewpanoramicview" },
{ icon: "sailing", name: "viewseaview" },
{ icon: "ward", name: "wallbed" },
{ icon: "pedal_bike", name: "wallmountedcyclerack" },
{ icon: "dresser", name: "wardrobe" },
{ icon: "spa", name: "wellnessandsaunaentrancefeeadmission16years" },
{ icon: "spa", name: "wellnesspoolsaunaentrancefeeadmission16years" },
{ icon: "curtains", name: "windownook" },
{ icon: "iron", name: "ironandironingboard" },
{ icon: "iron", name: "ironingroom" },
{ icon: "kayaking", name: "kayaksforloan" },
{ icon: "kettle", name: "kettle" },
{ icon: "kettle", name: "kettlewithcoffee" },
{ icon: "sync_saved_locally", name: "laptopsafe" },
{ icon: "computer", name: "laptoptray" },
{ icon: "local_laundry_service", name: "laundryservice" },
{ icon: "local_bar", name: "bar" },
{ icon: "deck", name: "rooftopbar" },
{ icon: "local_bar", name: "skybar" },
{ icon: "microwave", name: "microwave" },
{ icon: "nature", name: "viewparkview" },
{ icon: "nightlife", name: "disconightclub" },
{ icon: "smoke_free", name: "nonsmoking" },
{ icon: "deck", name: "outdoorterrace" },
{ icon: "local_parking", name: "parking" },
{ icon: "local_parking", name: "parkingfreeparking" },
{ icon: "pets", name: "petfriendlyrooms" },
{ icon: "phone", name: "directdialphoneandvoicemail" },
{ icon: "restaurant", name: "restaurant" },
{ icon: "room_service", name: "roomservice" },
{ icon: "sauna", name: "sauna" },
{ icon: "shower", name: "bathroomwithshower" },
{ icon: "shower", name: "rainshower" },
{ icon: "shower", name: "sharedbathroomwithshower" },
{ icon: "radio", name: "musicplayer" },
{ icon: "shopping_bag", name: "shop" },
{ icon: "pool", name: "pool" },
{ icon: "laundry", name: "handwash" },
{ icon: "connected_tv", name: "tvwithchromecast" },
{ icon: "wifi", name: "freewifi" },
{ icon: "curtains_closed", name: "blackoutcurtains" },
{ icon: "liquor", name: "minibar" },
{ icon: "yard", name: "viewatriumview" },
]
const CustomIconMappings = [
{ icon: BathroomCabinetIcon, name: 'bathroomwithshowerorbathtub' },
{ icon: MovingBedsIcon, name: 'adjustablebeds' },
{ icon: MovingBedsIcon, name: 'pulloutbed' },
{ icon: BedHotelIcon, name: 'extrabed' },
{ icon: CoolingIcon, name: 'coolingcabinet' },
{ icon: FootStoolIcon, name: 'footstool' },
{ icon: HairdryerIcon, name: 'hairdryer' },
{ icon: HairdresserIcon, name: 'hairdresser' },
{ icon: HandSoapIcon, name: 'toiletries' },
{ icon: TowelIcon, name: 'bathrobes' },
{ icon: HandSoapIcon, name: 'bodycareproducts' },
{ icon: HandSoapIcon, name: 'bodylotion' },
{ icon: BowlingPinsIcon, name: 'bowling' },
{ icon: BunkBedIcon, name: 'bunkbed' },
{ icon: BunkBedIcon, name: 'bunkbed80x188cm' },
{ icon: IceMachineIcon, name: 'icemachine' },
{ icon: IceMachineIcon, name: 'icemachinereception' },
{ icon: MassageIcon, name: 'massage' },
{ icon: ConferenceRoomIcon, name: 'meetingarea' },
{ icon: UserPoliceIcon, name: 'overnightsecurity' },
{ icon: UserPoliceIcon, name: 'security24hoours' },
{ icon: UserPoliceIcon, name: 'servicesecurity24h' },
{ icon: FootStoolIcon, name: 'footstool' },
{ icon: WindowNotAvailableIcon, name: 'nowindow' },
{ icon: DoorIcon, name: 'luggagelockers' },
{ icon: MirrorIcon, name: 'cosmeticmirror' },
{ icon: WardIcon, name: 'wallbed' },
{ icon: CouchTableIcon, name: 'sofawithtable' },
{ icon: SafetyBoxIcon, name: 'safetybox' },
{ icon: RecordPlayerIcon, name: 'modernvinylplayer' },
{ icon: RugIcon, name: 'carpetingwalltowallcarpet' },
{ icon: ToiletIcon, name: 'separatetoilet' },
{ icon: WoodFloorIcon, name: 'woodenfloor' },
{ icon: ViewIcon, name: 'view' },
{ icon: HandSoapIcon, name: 'shampoo' },
{ icon: HandSoapIcon, name: 'conditioner' },
{ icon: RoadIcon, name: 'viewstreetview' },
{ icon: SlippersIcon, name: 'slippers' },
{ icon: HandSoapIcon, name: 'showergel' },
{ icon: HandSoapIcon, name: 'showerproductsscentbygrandcentral' },
{ icon: BathroomCabinetIcon, name: "bathroomwithshowerorbathtub" },
{ icon: MovingBedsIcon, name: "adjustablebeds" },
{ icon: MovingBedsIcon, name: "pulloutbed" },
{ icon: BedHotelIcon, name: "extrabed" },
{ icon: CoolingIcon, name: "coolingcabinet" },
{ icon: FootStoolIcon, name: "footstool" },
{ icon: HairdryerIcon, name: "hairdryer" },
{ icon: HairdresserIcon, name: "hairdresser" },
{ icon: HandSoapIcon, name: "toiletries" },
{ icon: TowelIcon, name: "bathrobes" },
{ icon: HandSoapIcon, name: "bodycareproducts" },
{ icon: HandSoapIcon, name: "bodylotion" },
{ icon: BowlingPinsIcon, name: "bowling" },
{ icon: BunkBedIcon, name: "bunkbed" },
{ icon: BunkBedIcon, name: "bunkbed80x188cm" },
{ icon: IceMachineIcon, name: "icemachine" },
{ icon: IceMachineIcon, name: "icemachinereception" },
{ icon: MassageIcon, name: "massage" },
{ icon: ConferenceRoomIcon, name: "meetingarea" },
{ icon: UserPoliceIcon, name: "overnightsecurity" },
{ icon: UserPoliceIcon, name: "security24hoours" },
{ icon: UserPoliceIcon, name: "servicesecurity24h" },
{ icon: FootStoolIcon, name: "footstool" },
{ icon: WindowNotAvailableIcon, name: "nowindow" },
{ icon: DoorIcon, name: "luggagelockers" },
{ icon: MirrorIcon, name: "cosmeticmirror" },
{ icon: WardIcon, name: "wallbed" },
{ icon: CouchTableIcon, name: "sofawithtable" },
{ icon: SafetyBoxIcon, name: "safetybox" },
{ icon: RecordPlayerIcon, name: "modernvinylplayer" },
{ icon: RugIcon, name: "carpetingwalltowallcarpet" },
{ icon: ToiletIcon, name: "separatetoilet" },
{ icon: WoodFloorIcon, name: "woodenfloor" },
{ icon: ViewIcon, name: "view" },
{ icon: HandSoapIcon, name: "shampoo" },
{ icon: HandSoapIcon, name: "conditioner" },
{ icon: RoadIcon, name: "viewstreetview" },
{ icon: SlippersIcon, name: "slippers" },
{ icon: HandSoapIcon, name: "showergel" },
{ icon: HandSoapIcon, name: "showerproductsscentbygrandcentral" },
]

View File

@@ -1,9 +1,9 @@
import BouquetIcon from './Nucleo/Benefits/bouquet'
import DiscountIcon from './Nucleo/Benefits/discount-2-2'
import { MaterialIcon, type MaterialIconProps } from './MaterialIcon'
import PalmTreeIcon from './Nucleo/Experiences/palm-tree-2'
import BouquetIcon from "./Nucleo/Benefits/bouquet"
import DiscountIcon from "./Nucleo/Benefits/discount-2-2"
import { MaterialIcon, type MaterialIconProps } from "./MaterialIcon"
import PalmTreeIcon from "./Nucleo/Experiences/palm-tree-2"
import type { IconProps } from './icon'
import type { IconProps } from "./icon"
interface IconByCSSelectProps extends IconProps {
identifier: string
@@ -11,72 +11,72 @@ interface IconByCSSelectProps extends IconProps {
export default function IconByCSSelect({
identifier,
color = 'CurrentColor',
color = "CurrentColor",
size = 24,
...props
}: IconByCSSelectProps) {
switch (identifier) {
// These are custom icons
case 'discount-2-2':
case "discount-2-2":
return <DiscountIcon size={size} color={color} {...props} />
case 'bouquet':
case "bouquet":
return <BouquetIcon size={size} color={color} {...props} />
case 'palm_tree':
case "palm_tree":
return <PalmTreeIcon size={size} color={color} {...props} />
// These are all Material Icons
case 'electric_car':
case 'golf_course':
case 'museum':
case 'spa':
case 'airplane_ticket':
case 'apartment':
case 'attractions':
case 'award_star':
case 'beach_access':
case 'box':
case 'deck':
case 'directions_run':
case 'directions_subway':
case 'downhill_skiing':
case 'emoji_transportation':
case 'exercise':
case 'family_restroom':
case 'festival':
case 'forest':
case 'garage':
case 'hiking':
case 'houseboat':
case 'kayaking':
case 'landscape':
case 'location_city':
case 'location_on':
case 'loyalty':
case 'music_note':
case 'night_shelter':
case 'nightlife':
case 'pedal_bike':
case 'pets':
case 'pool':
case 'recommend':
case 'redeem':
case 'restaurant':
case 'sauna':
case 'sell':
case 'shopping_bag':
case 'sports_handball':
case 'sports_tennis':
case 'theater_comedy':
case 'things_to_do':
case 'tram':
case 'transit_ticket':
case 'travel':
case 'trophy':
case 'travel_luggage_and_bags':
case 'favorite':
case "electric_car":
case "golf_course":
case "museum":
case "spa":
case "airplane_ticket":
case "apartment":
case "attractions":
case "award_star":
case "beach_access":
case "box":
case "deck":
case "directions_run":
case "directions_subway":
case "downhill_skiing":
case "emoji_transportation":
case "exercise":
case "family_restroom":
case "festival":
case "forest":
case "garage":
case "hiking":
case "houseboat":
case "kayaking":
case "landscape":
case "location_city":
case "location_on":
case "loyalty":
case "music_note":
case "night_shelter":
case "nightlife":
case "pedal_bike":
case "pets":
case "pool":
case "recommend":
case "redeem":
case "restaurant":
case "sauna":
case "sell":
case "shopping_bag":
case "sports_handball":
case "sports_tennis":
case "theater_comedy":
case "things_to_do":
case "tram":
case "transit_ticket":
case "travel":
case "trophy":
case "travel_luggage_and_bags":
case "favorite":
return (
<MaterialIcon
icon={identifier as MaterialIconProps['icon']}
icon={identifier as MaterialIconProps["icon"]}
size={size}
color={color}
{...props}

View File

@@ -1,30 +1,30 @@
import BathroomCabinetIcon from './Nucleo/Amenities_Facilities/bathroom-cabinet-2'
import BouquetIcon from './Nucleo/Benefits/bouquet'
import BowlingPinsIcon from './Nucleo/Experiences/bowling-pins'
import ChipsIcon from './Nucleo/Food/chips-3'
import ConferenceRoomIcon from './Nucleo/Amenities_Facilities/conference-room'
import DoorIcon from './Nucleo/Amenities_Facilities/door-2'
import FacebookIcon from './Customised/Socials/Facebook'
import FootStoolIcon from './Customised/Amenities_Facilities/FootStool'
import HairdresserIcon from './Nucleo/Amenities_Facilities/hairdresser-1'
import HairdryerIcon from './Customised/Amenities_Facilities/Hairdryer'
import IceMachineIcon from './Customised/Amenities_Facilities/IceMachine'
import InstagramIcon from './Customised/Socials/Instagram'
import MassageIcon from './Customised/Amenities_Facilities/Massage'
import { MaterialIcon, type MaterialIconSetIconProps } from './MaterialIcon'
import PalmTreeIcon from './Nucleo/Experiences/palm-tree-2'
import PopcornIcon from './Nucleo/Food/popcorn-2'
import RecordPlayerIcon from './Nucleo/Amenities_Facilities/record-player-3'
import RoadIcon from './Customised/Amenities_Facilities/Road'
import SafetyBoxIcon from './Customised/Amenities_Facilities/SafetyBox'
import ToiletIcon from './Nucleo/Amenities_Facilities/toilet-2'
import TripadvisorIcon from './Customised/Socials/Tripadvisor'
import UserPoliceIcon from './Nucleo/Amenities_Facilities/user-police-2'
import BathroomCabinetIcon from "./Nucleo/Amenities_Facilities/bathroom-cabinet-2"
import BouquetIcon from "./Nucleo/Benefits/bouquet"
import BowlingPinsIcon from "./Nucleo/Experiences/bowling-pins"
import ChipsIcon from "./Nucleo/Food/chips-3"
import ConferenceRoomIcon from "./Nucleo/Amenities_Facilities/conference-room"
import DoorIcon from "./Nucleo/Amenities_Facilities/door-2"
import FacebookIcon from "./Customised/Socials/Facebook"
import FootStoolIcon from "./Customised/Amenities_Facilities/FootStool"
import HairdresserIcon from "./Nucleo/Amenities_Facilities/hairdresser-1"
import HairdryerIcon from "./Customised/Amenities_Facilities/Hairdryer"
import IceMachineIcon from "./Customised/Amenities_Facilities/IceMachine"
import InstagramIcon from "./Customised/Socials/Instagram"
import MassageIcon from "./Customised/Amenities_Facilities/Massage"
import { MaterialIcon, type MaterialIconSetIconProps } from "./MaterialIcon"
import PalmTreeIcon from "./Nucleo/Experiences/palm-tree-2"
import PopcornIcon from "./Nucleo/Food/popcorn-2"
import RecordPlayerIcon from "./Nucleo/Amenities_Facilities/record-player-3"
import RoadIcon from "./Customised/Amenities_Facilities/Road"
import SafetyBoxIcon from "./Customised/Amenities_Facilities/SafetyBox"
import ToiletIcon from "./Nucleo/Amenities_Facilities/toilet-2"
import TripadvisorIcon from "./Customised/Socials/Tripadvisor"
import UserPoliceIcon from "./Nucleo/Amenities_Facilities/user-police-2"
import { IconName } from './iconName'
import { IconName } from "./iconName"
import type { IconProps, NucleoIconProps } from './icon'
import type { JSX } from 'react'
import type { IconProps, NucleoIconProps } from "./icon"
import type { JSX } from "react"
interface IconByIconNameProps {
iconName: IconName | null

View File

@@ -1,22 +1,22 @@
import BedIcon from './Illustrations/Bed'
import CoinIcon from './Illustrations/Coin'
import CroissantCoffeeEggIcon from './Illustrations/CroissantCoffeeEgg'
import CutleryOneIcon from './Illustrations/CutleryOne'
import CutleryTwoIcon from './Illustrations/CutleryTwo'
import GiftOpenIcon from './Illustrations/GiftOpen'
import GranolaIcon from './Illustrations/Granola'
import HandKeyIcon from './Illustrations/HandKey'
import HotelNightIcon from './Illustrations/HotelNight'
import KidsIcon from './Illustrations/Kids'
import KidsMocktailIcon from './Illustrations/KidsMocktail'
import MagicWandIcon from './Illustrations/MagicWand'
import MoneyHandIcon from './Illustrations/MoneyHand'
import MoneyHandEllipsisIcon from './Illustrations/MoneyHandEllipsis'
import SpaIcon from './Illustrations/Spa'
import TrophyIcon from './Illustrations/Trophy'
import VoucherIcon from './Illustrations/Voucher'
import BedIcon from "./Illustrations/Bed"
import CoinIcon from "./Illustrations/Coin"
import CroissantCoffeeEggIcon from "./Illustrations/CroissantCoffeeEgg"
import CutleryOneIcon from "./Illustrations/CutleryOne"
import CutleryTwoIcon from "./Illustrations/CutleryTwo"
import GiftOpenIcon from "./Illustrations/GiftOpen"
import GranolaIcon from "./Illustrations/Granola"
import HandKeyIcon from "./Illustrations/HandKey"
import HotelNightIcon from "./Illustrations/HotelNight"
import KidsIcon from "./Illustrations/Kids"
import KidsMocktailIcon from "./Illustrations/KidsMocktail"
import MagicWandIcon from "./Illustrations/MagicWand"
import MoneyHandIcon from "./Illustrations/MoneyHand"
import MoneyHandEllipsisIcon from "./Illustrations/MoneyHandEllipsis"
import SpaIcon from "./Illustrations/Spa"
import TrophyIcon from "./Illustrations/Trophy"
import VoucherIcon from "./Illustrations/Voucher"
import { IconName } from './iconName'
import { IconName } from "./iconName"
export function IllustrationByIconName(iconName: IconName | null) {
switch (iconName) {

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedBunkIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedBunkExtraIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedGenericIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedKingIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedPullOutIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedPullOutExtraIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedQueenIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedSingleIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedSofaIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedSofaExtraIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedTwinIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BedWallExtraIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function BreakfastBuffetIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function CoinIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function CroissantCoffeeEggIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function CutleryOneIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function CutleryTwoIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function GiftOpenIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,4 +1,4 @@
import type { IllustrationProps } from '../icon'
import type { IllustrationProps } from "../icon"
export default function Granola(props: IllustrationProps) {
return (

View File

@@ -1,4 +1,4 @@
import type { IllustrationProps } from '../icon'
import type { IllustrationProps } from "../icon"
export default function HandGiftIcon(props: IllustrationProps) {
return (

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function HandKeyIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function HotelNightIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function KidsIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function KidsMocktailIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function MagicWandIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function MoneyHandIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function MoneyHandEllipsisIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function NoBreakfastBuffetIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,4 +1,4 @@
import type { IllustrationProps } from '../icon'
import type { IllustrationProps } from "../icon"
export default function SpaIcon(props: IllustrationProps) {
return (

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function SurpriseIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function TrophyIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,5 +1,5 @@
import type { IllustrationProps } from '../icon'
import { getIconAriaProps } from '../utils'
import type { IllustrationProps } from "../icon"
import { getIconAriaProps } from "../utils"
export default function VoucherIcon(props: IllustrationProps) {
const ariaProps = getIconAriaProps(props)

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function DowntownCamperIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 30,
width = 123,
...props
@@ -16,7 +16,7 @@ export default function DowntownCamperIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Downtown Camper'}
aria-label={ariaLabel ?? "Downtown Camper"}
{...props}
>
<path

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function GrandHotelOsloLogoIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 30,
width = 69,
...props
@@ -16,7 +16,7 @@ export default function GrandHotelOsloLogoIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Grand Hotel Oslo'}
aria-label={ariaLabel ?? "Grand Hotel Oslo"}
{...props}
>
<path

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function HaymarketIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 26,
width = 100,
...props
@@ -16,7 +16,7 @@ export default function HaymarketIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Haymarket'}
aria-label={ariaLabel ?? "Haymarket"}
{...props}
>
<path

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function HotelNorgeIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 24,
width = 117,
...props
@@ -16,7 +16,7 @@ export default function HotelNorgeIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Hotel Norge'}
aria-label={ariaLabel ?? "Hotel Norge"}
{...props}
>
<path

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function MarskiLogoIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 30,
width = 92,
...props
@@ -16,7 +16,7 @@ export default function MarskiLogoIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Marski'}
aria-label={ariaLabel ?? "Marski"}
{...props}
>
<path

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function ScandicGoLogoIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 18,
width = 90,
...props
@@ -16,7 +16,7 @@ export default function ScandicGoLogoIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Scandic Go'}
aria-label={ariaLabel ?? "Scandic Go"}
{...props}
>
<path

View File

@@ -1,11 +1,11 @@
import { cx } from 'class-variance-authority'
import type { LogoProps } from '../icon'
import { cx } from "class-variance-authority"
import type { LogoProps } from "../icon"
import styles from './logo.module.css'
import styles from "./logo.module.css"
export default function ScandicLogoIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 14,
width = 58,
...props
@@ -19,7 +19,7 @@ export default function ScandicLogoIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'Scandic'}
aria-label={ariaLabel ?? "Scandic"}
{...props}
>
<path

View File

@@ -1,8 +1,8 @@
import type { LogoProps } from '../icon'
import type { LogoProps } from "../icon"
export default function TheDockIcon({
className = '',
'aria-label': ariaLabel,
className = "",
"aria-label": ariaLabel,
height = 30,
width = 128,
...props
@@ -16,7 +16,7 @@ export default function TheDockIcon({
fill="none"
xmlns="http://www.w3.org/2000/svg"
// eslint-disable-next-line formatjs/no-literal-string-in-jsx
aria-label={ariaLabel ?? 'The Dock'}
aria-label={ariaLabel ?? "The Dock"}
{...props}
>
<path

View File

@@ -1,11 +1,11 @@
import DowntownCamperIcon from './DowntownCamper'
import GrandHotelOsloLogoIcon from './GrandHotelOslo'
import HaymarketIcon from './Haymarket'
import HotelNorgeIcon from './HotelNorge'
import MarskiLogoIcon from './Marski'
import ScandicGoLogoIcon from './ScandicGoLogo'
import ScandicLogoIcon from './ScandicLogo'
import TheDockIcon from './TheDock'
import DowntownCamperIcon from "./DowntownCamper"
import GrandHotelOsloLogoIcon from "./GrandHotelOslo"
import HaymarketIcon from "./Haymarket"
import HotelNorgeIcon from "./HotelNorge"
import MarskiLogoIcon from "./Marski"
import ScandicGoLogoIcon from "./ScandicGoLogo"
import ScandicLogoIcon from "./ScandicLogo"
import TheDockIcon from "./TheDock"
type HotelLogoProps = {
hotelId: string
@@ -14,18 +14,18 @@ type HotelLogoProps = {
}
enum HotelTypeEnum {
Signature = 'signature',
ScandicGo = 'scandicgo',
Regular = 'regular',
Signature = "signature",
ScandicGo = "scandicgo",
Regular = "regular",
}
enum SignatureHotelEnum {
DowntownCamper = '879',
GrandHotelOslo = '340',
Haymarket = '890',
HotelNorge = '785',
Marski = '605',
TheDock = '796',
DowntownCamper = "879",
GrandHotelOslo = "340",
Haymarket = "890",
HotelNorge = "785",
Marski = "605",
TheDock = "796",
}
export default function HotelLogoIcon({

View File

@@ -1,19 +1,19 @@
import { MaterialSymbol, type MaterialSymbolProps } from './MaterialSymbol'
import { MaterialSymbol, type MaterialSymbolProps } from "./MaterialSymbol"
import { iconVariants } from '../variants'
import { iconVariants } from "../variants"
import type { VariantProps } from 'class-variance-authority'
import { HTMLAttributes } from 'react'
import { getIconAriaProps } from '../utils'
import type { VariantProps } from "class-variance-authority"
import { HTMLAttributes } from "react"
import { getIconAriaProps } from "../utils"
export interface MaterialIconProps
extends
Pick<MaterialSymbolProps, 'size' | 'icon' | 'className' | 'style'>,
Omit<HTMLAttributes<HTMLSpanElement>, 'color' | 'id'>,
Pick<MaterialSymbolProps, "size" | "icon" | "className" | "style">,
Omit<HTMLAttributes<HTMLSpanElement>, "color" | "id">,
VariantProps<typeof iconVariants> {
isFilled?: boolean
}
export type MaterialIconSetIconProps = Omit<MaterialIconProps, 'icon'>
export type MaterialIconSetIconProps = Omit<MaterialIconProps, "icon">
export function MaterialIcon({
color,
size = 24,

View File

@@ -2,14 +2,14 @@
// since it doesn't support React 19 and is not maintained anymore.
// We should probably move to a different solution in the future.
import type { ElementType, CSSProperties, ReactElement, Ref } from 'react'
import type { ElementType, CSSProperties, ReactElement, Ref } from "react"
import type {
MaterialSymbolWeight,
PolymorphicComponentProps,
SymbolCodepoints,
} from './types'
import { cx } from 'class-variance-authority'
export type { MaterialSymbolWeight, SymbolCodepoints } from './types'
} from "./types"
import { cx } from "class-variance-authority"
export type { MaterialSymbolWeight, SymbolCodepoints } from "./types"
export type MaterialSymbolProps = {
/** Required. The name of the icon to render. */
@@ -29,7 +29,7 @@ export type MaterialSymbolProps = {
/** Default `'inherit'`
*
* Color accepts key values (`'red'`, `'blue'`, `'indigo'`, etc.), `<hex-color>`, `<rgb()>`, `<hsl()>` and `<hwb()>` values. */
color?: CSSProperties['color']
color?: CSSProperties["color"]
className?: string
style?: CSSProperties
}
@@ -54,34 +54,34 @@ export const MaterialSymbol = (<C extends ElementType>(
ref: Ref<C>
): ReactElement => {
const Component =
onClick !== undefined ? 'button' : ((as as ElementType) ?? 'span')
onClick !== undefined ? "button" : ((as as ElementType) ?? "span")
const style = { color, ...propStyle }
if (fill)
style.fontVariationSettings = [style.fontVariationSettings, '"FILL" 1']
.filter(Boolean)
.join(', ')
.join(", ")
if (weight)
style.fontVariationSettings = [
style.fontVariationSettings,
`"wght" ${weight}`,
]
.filter(Boolean)
.join(', ')
.join(", ")
if (grade)
style.fontVariationSettings = [
style.fontVariationSettings,
`"GRAD" ${grade}`,
]
.filter(Boolean)
.join(', ')
.join(", ")
if (size) {
style.fontVariationSettings = [
style.fontVariationSettings,
`"opsz" ${size}`,
]
.filter(Boolean)
.join(', ')
.join(", ")
style.fontSize = size
}
@@ -91,7 +91,7 @@ export const MaterialSymbol = (<C extends ElementType>(
ref={ref}
style={style}
onClick={onClick}
className={cx('material-symbols', className)}
className={cx("material-symbols", className)}
>
{icon}
</Component>

View File

@@ -1 +1 @@
export { MaterialSymbol, type MaterialSymbolProps } from './MaterialSymbol'
export { MaterialSymbol, type MaterialSymbolProps } from "./MaterialSymbol"

View File

@@ -2,8 +2,8 @@ import type {
JSXElementConstructor,
ComponentPropsWithoutRef,
JSX,
} from 'react'
import type { MaterialSymbolWeightArray, SymbolCodepointsArray } from './consts'
} from "react"
import type { MaterialSymbolWeightArray, SymbolCodepointsArray } from "./consts"
export type SymbolCodepoints = (typeof SymbolCodepointsArray)[number]

View File

@@ -2,4 +2,4 @@ export {
MaterialIcon,
type MaterialIconProps,
type MaterialIconSetIconProps,
} from './MaterialIcon'
} from "./MaterialIcon"

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function BathroomCabinet2(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function ConferenceRoom(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Door2(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Hairdresser1(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function RecordPlayer3(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Toilet2(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function UserPolice2(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
export default function FilledDiscount(props: NucleoIconProps) {
const { fill, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Bouquet(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Discount22(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function BowlingPins(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function PalmTree2(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Chips3(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,5 +1,5 @@
import type { NucleoIconProps } from '../../icon'
import { getNucleoIconProps } from '../utils'
import type { NucleoIconProps } from "../../icon"
import { getNucleoIconProps } from "../utils"
function Popcorn2(props: NucleoIconProps) {
const { fill, strokeWidth, ...iconProps } = getNucleoIconProps(props)

View File

@@ -1,17 +1,17 @@
export const colorVariants = {
'Icon/Default': 'var(--Icon-Default)',
'Icon/Intense': 'var(--Icon-Intense)',
'Icon/Accent': 'var(--Icon-Accent)',
'Icon/Inverted': 'var(--Icon-Inverted)',
'Icon/Interactive/Default': 'var(--Icon-Interactive-Default)',
'Icon/Interactive/Secondary': 'var(--Icon-Interactive-Secondary)',
'Icon/Interactive/Accent': 'var(--Icon-Interactive-Accent)',
'Icon/Interactive/Disabled': 'var(--Icon-Interactive-Disabled)',
'Icon/Interactive/Placeholder': 'var(--Icon-Interactive-Placeholder)',
'Icon/Feedback/Information': 'var(--Icon-Feedback-Information)',
'Icon/Feedback/Success': 'var(--Icon-Feedback-Success)',
'Icon/Feedback/Warning': 'var(--Icon-Feedback-Warning)',
'Icon/Feedback/Error': 'var(--Icon-Feedback-Error)',
'Icon/Feedback/Neutral': 'var(--Icon-Feedback-Neutral)',
CurrentColor: 'currentColor',
"Icon/Default": "var(--Icon-Default)",
"Icon/Intense": "var(--Icon-Intense)",
"Icon/Accent": "var(--Icon-Accent)",
"Icon/Inverted": "var(--Icon-Inverted)",
"Icon/Interactive/Default": "var(--Icon-Interactive-Default)",
"Icon/Interactive/Secondary": "var(--Icon-Interactive-Secondary)",
"Icon/Interactive/Accent": "var(--Icon-Interactive-Accent)",
"Icon/Interactive/Disabled": "var(--Icon-Interactive-Disabled)",
"Icon/Interactive/Placeholder": "var(--Icon-Interactive-Placeholder)",
"Icon/Feedback/Information": "var(--Icon-Feedback-Information)",
"Icon/Feedback/Success": "var(--Icon-Feedback-Success)",
"Icon/Feedback/Warning": "var(--Icon-Feedback-Warning)",
"Icon/Feedback/Error": "var(--Icon-Feedback-Error)",
"Icon/Feedback/Neutral": "var(--Icon-Feedback-Neutral)",
CurrentColor: "currentColor",
}

View File

@@ -1,12 +1,12 @@
import { NucleoIconProps } from '../icon'
import { getIconAriaProps } from '../utils'
import { colorVariants } from './colorVariants'
import { NucleoIconProps } from "../icon"
import { getIconAriaProps } from "../utils"
import { colorVariants } from "./colorVariants"
export function getNucleoIconProps(props: NucleoIconProps) {
const fill = props.color ? colorVariants[props.color] : 'currentColor'
const fill = props.color ? colorVariants[props.color] : "currentColor"
const strokeWidth = props.strokeWidth || 2
const width = props.size || '1em'
const height = props.size || '1em'
const width = props.size || "1em"
const height = props.size || "1em"
const ariaProps = getIconAriaProps(props)
return { fill, strokeWidth, width, height, ...ariaProps }

View File

@@ -1,24 +1,24 @@
import type { VariantProps } from 'class-variance-authority'
import { iconVariants } from './variants'
import type { VariantProps } from "class-variance-authority"
import { iconVariants } from "./variants"
export interface IconProps
extends
Omit<React.SVGAttributes<HTMLOrSVGElement>, 'color'>,
Omit<React.SVGAttributes<HTMLOrSVGElement>, "color">,
VariantProps<typeof iconVariants> {
size?: number
}
export interface IllustrationProps
extends
Omit<React.SVGAttributes<HTMLOrSVGElement>, 'color'>,
Omit<VariantProps<typeof iconVariants>, 'color'> {
Omit<React.SVGAttributes<HTMLOrSVGElement>, "color">,
Omit<VariantProps<typeof iconVariants>, "color"> {
width?: string | number
height?: string | number
}
export interface LogoProps extends Omit<
React.SVGAttributes<HTMLOrSVGElement>,
'color'
"color"
> {
width?: string | number
height?: string | number

View File

@@ -1,185 +1,185 @@
export enum IconName {
Accesories = 'Accesories',
Accessibility = 'Accessibility',
AccountCircle = 'AccountCircle',
Air = 'Air',
AirConAirCooling = 'AirConAirCooling',
AirConditioningInRoom = 'AirConditioningInRoom',
Airplane = 'Airplane',
ArmChair = 'ArmChair',
ArrowFrom = 'ArrowFrom',
ArrowLeft = 'ArrowLeft',
ArrowLeftSmall = 'ArrowLeftSmall',
ArrowRight = 'ArrowRight',
ArrowRightSmall = 'ArrowRightSmall',
ArrowTo = 'ArrowTo',
AwardStar = 'AwardStar',
Bar = 'Bar',
BathroomCabinet = 'BathroomCabinet',
Beach = 'Beach',
BeautySalon = 'BeautySalon',
Bed = 'Bed',
Bike = 'Bike',
Bouquet = 'Bouquet',
Bowling = 'Bowling',
Breakfast = 'Breakfast',
Business = 'Business',
BusinessCentre = 'BusinessCentre',
Calendar = 'Calendar',
Camera = 'Camera',
CashFree = 'CashFree',
Cellphone = 'Cellphone',
Check = 'Check',
CheckCircle = 'CheckCircle',
ChevronDown = 'ChevronDown',
ChevronDownSmall = 'ChevronDownSmall',
ChevronLeft = 'ChevronLeft',
ChevronLeftSmall = 'ChevronLeftSmall',
ChevronRight = 'ChevronRight',
ChevronRightSmall = 'ChevronRightSmall',
ChevronUp = 'ChevronUp',
ChevronUpSmall = 'ChevronUpSmall',
Chips = 'Chips',
City = 'City',
Close = 'Close',
CloseLarge = 'CloseLarge',
CoffeeAlt = 'CoffeeAlt',
CoffeeInReceptionAtCharge = 'CoffeeInReceptionAtCharge',
CoffeeShop = 'CoffeeShop',
Coin = 'Coin',
ComplimentaryColdRefreshments = 'ComplimentaryColdRefreshments',
Concierge = 'Concierge',
ConferenceRoom = 'ConferenceRoom',
ConvenienceStore24h = 'ConvenienceStore24h',
ConventionCentre = 'ConventionCentre',
CreditCard = 'CreditCard',
CroissantCoffeeEgg = 'CroissantCoffeeEgg',
CrossCircle = 'CrossCircle',
CrossCircleOutline = 'CrossCircleOutline',
Cultural = 'Cultural',
CutleryOne = 'CutleryOne',
CutleryTwo = 'CutleryTwo',
Deck = 'Deck',
Desk = 'Desk',
Diamond = 'Diamond',
Dining = 'Dining',
DirectDial = 'DirectDial',
Directions = 'Directions',
DoorOpen = 'DoorOpen',
Dresser = 'Dresser',
ElectricBike = 'ElectricBike',
ElectricCar = 'ElectricCar',
Elevator = 'Elevator',
Email = 'Email',
ExternalLink = 'ExternalLink',
ExtraFamilyFriendly = 'ExtraFamilyFriendly',
EyeHide = 'EyeHide',
EyeShow = 'EyeShow',
Facebook = 'Facebook',
Fan = 'Fan',
Fax = 'Fax',
Fitness = 'Fitness',
FoodDrinks247 = 'FoodDrinks247',
Footstool = 'Footstool',
Gallery = 'Gallery',
Gaming = 'Gaming',
Garage = 'Garage',
Gift = 'Gift',
GiftOpen = 'GiftOpen',
Globe = 'Globe',
Golf = 'Golf',
Granola = 'Granola',
Guard = 'Guard',
Hairdresser = 'Hairdresser',
HairdryerInRoomAllScandic = 'HairdryerInRoomAllScandic',
HandKey = 'HandKey',
Hanger = 'Hanger',
HangerAlt = 'HangerAlt',
Heart = 'Heart',
Heat = 'Heat',
Hiking = 'Hiking',
HotelNight = 'HotelNight',
House = 'House',
Houseboat = 'Houseboat',
IceMachine = 'IceMachine',
Image = 'Image',
InfoCircle = 'InfoCircle',
Instagram = 'Instagram',
Ironing = 'Ironing',
Jacuzzi = 'Jaccuzzi',
Kayaking = 'Kayaking',
Kettle = 'Kettle',
Kids = 'Kids',
KidsMocktail = 'KidsMocktail',
Kitchen = 'Kitchen',
Lamp = 'Lamp',
Landscape = 'Landscape',
LaptopSafe = 'LaptopSafe',
LaundryMachine = 'LaundryMachine',
Link = 'Link',
LocalBar = 'LocalBar',
Location = 'Location',
Lock = 'Lock',
Luggage = 'Luggage',
LuggageLockers = 'LuggageLockers',
MagicWand = 'MagicWand',
Map = 'Map',
Massage = 'Massage',
Minibar = 'Minibar',
Minus = 'Minus',
MoneyHand = 'MoneyHand',
MoneyHandEllipsis = 'MoneyHandEllipsis',
Museum = 'Museum',
Nature = 'Nature',
Nightlife = 'Nightlife',
NightShelter = 'NightShelter',
NonSmoking = 'NonSmoking',
NoSmoking = 'NoSmoking',
OpenInNew = 'OpenInNew',
OpenInNewSmall = 'OpenInNewSmall',
OutdoorFurniture = 'OutdoorFurniture',
PalmTree = 'Palmtree',
Parking = 'Parking',
ParkingOutdoor = 'ParkingOutdoor',
Person = 'Person',
Pets = 'Pets',
Phone = 'Phone',
Plus = 'Plus',
PlusCircle = 'PlusCircle',
Popcorn = 'Popcorn',
PriceTag = 'PriceTag',
RecordPlayer = 'RecordPlayer',
Restaurant = 'Restaurant',
RoomService = 'RoomService',
SafetyBox = 'SafetyBox',
Sauna = 'Sauna',
Search = 'Search',
Service = 'Service',
Shopping = 'Shopping',
Skateboarding = 'Skateboarding',
Skiing = 'Skiing',
Smoking = 'Smoking',
Snowflake = 'Snowflake',
Spa = 'Spa',
Sports = 'Sports',
Star = 'Star',
StarFilled = 'StarFilled',
Street = 'Street',
Swim = 'Swim',
Swipe = 'Swipe',
Theatre = 'Theatre',
Thermostat = 'Thermostat',
Ticket = 'Ticket',
Toilet = 'Toilet',
Train = 'Train',
Tripadvisor = 'Tripadvisor',
Trophy = 'Trophy',
Tshirt = 'Tshirt',
TshirtWash = 'TshirtWash',
TvCasting = 'TvCasting',
TVRemote = 'TVRemote',
Voucher = 'Voucher',
WarningTriangle = 'WarningTriangle',
Wheelchair = 'Wheelchair',
Wifi = 'Wifi',
Accesories = "Accesories",
Accessibility = "Accessibility",
AccountCircle = "AccountCircle",
Air = "Air",
AirConAirCooling = "AirConAirCooling",
AirConditioningInRoom = "AirConditioningInRoom",
Airplane = "Airplane",
ArmChair = "ArmChair",
ArrowFrom = "ArrowFrom",
ArrowLeft = "ArrowLeft",
ArrowLeftSmall = "ArrowLeftSmall",
ArrowRight = "ArrowRight",
ArrowRightSmall = "ArrowRightSmall",
ArrowTo = "ArrowTo",
AwardStar = "AwardStar",
Bar = "Bar",
BathroomCabinet = "BathroomCabinet",
Beach = "Beach",
BeautySalon = "BeautySalon",
Bed = "Bed",
Bike = "Bike",
Bouquet = "Bouquet",
Bowling = "Bowling",
Breakfast = "Breakfast",
Business = "Business",
BusinessCentre = "BusinessCentre",
Calendar = "Calendar",
Camera = "Camera",
CashFree = "CashFree",
Cellphone = "Cellphone",
Check = "Check",
CheckCircle = "CheckCircle",
ChevronDown = "ChevronDown",
ChevronDownSmall = "ChevronDownSmall",
ChevronLeft = "ChevronLeft",
ChevronLeftSmall = "ChevronLeftSmall",
ChevronRight = "ChevronRight",
ChevronRightSmall = "ChevronRightSmall",
ChevronUp = "ChevronUp",
ChevronUpSmall = "ChevronUpSmall",
Chips = "Chips",
City = "City",
Close = "Close",
CloseLarge = "CloseLarge",
CoffeeAlt = "CoffeeAlt",
CoffeeInReceptionAtCharge = "CoffeeInReceptionAtCharge",
CoffeeShop = "CoffeeShop",
Coin = "Coin",
ComplimentaryColdRefreshments = "ComplimentaryColdRefreshments",
Concierge = "Concierge",
ConferenceRoom = "ConferenceRoom",
ConvenienceStore24h = "ConvenienceStore24h",
ConventionCentre = "ConventionCentre",
CreditCard = "CreditCard",
CroissantCoffeeEgg = "CroissantCoffeeEgg",
CrossCircle = "CrossCircle",
CrossCircleOutline = "CrossCircleOutline",
Cultural = "Cultural",
CutleryOne = "CutleryOne",
CutleryTwo = "CutleryTwo",
Deck = "Deck",
Desk = "Desk",
Diamond = "Diamond",
Dining = "Dining",
DirectDial = "DirectDial",
Directions = "Directions",
DoorOpen = "DoorOpen",
Dresser = "Dresser",
ElectricBike = "ElectricBike",
ElectricCar = "ElectricCar",
Elevator = "Elevator",
Email = "Email",
ExternalLink = "ExternalLink",
ExtraFamilyFriendly = "ExtraFamilyFriendly",
EyeHide = "EyeHide",
EyeShow = "EyeShow",
Facebook = "Facebook",
Fan = "Fan",
Fax = "Fax",
Fitness = "Fitness",
FoodDrinks247 = "FoodDrinks247",
Footstool = "Footstool",
Gallery = "Gallery",
Gaming = "Gaming",
Garage = "Garage",
Gift = "Gift",
GiftOpen = "GiftOpen",
Globe = "Globe",
Golf = "Golf",
Granola = "Granola",
Guard = "Guard",
Hairdresser = "Hairdresser",
HairdryerInRoomAllScandic = "HairdryerInRoomAllScandic",
HandKey = "HandKey",
Hanger = "Hanger",
HangerAlt = "HangerAlt",
Heart = "Heart",
Heat = "Heat",
Hiking = "Hiking",
HotelNight = "HotelNight",
House = "House",
Houseboat = "Houseboat",
IceMachine = "IceMachine",
Image = "Image",
InfoCircle = "InfoCircle",
Instagram = "Instagram",
Ironing = "Ironing",
Jacuzzi = "Jaccuzzi",
Kayaking = "Kayaking",
Kettle = "Kettle",
Kids = "Kids",
KidsMocktail = "KidsMocktail",
Kitchen = "Kitchen",
Lamp = "Lamp",
Landscape = "Landscape",
LaptopSafe = "LaptopSafe",
LaundryMachine = "LaundryMachine",
Link = "Link",
LocalBar = "LocalBar",
Location = "Location",
Lock = "Lock",
Luggage = "Luggage",
LuggageLockers = "LuggageLockers",
MagicWand = "MagicWand",
Map = "Map",
Massage = "Massage",
Minibar = "Minibar",
Minus = "Minus",
MoneyHand = "MoneyHand",
MoneyHandEllipsis = "MoneyHandEllipsis",
Museum = "Museum",
Nature = "Nature",
Nightlife = "Nightlife",
NightShelter = "NightShelter",
NonSmoking = "NonSmoking",
NoSmoking = "NoSmoking",
OpenInNew = "OpenInNew",
OpenInNewSmall = "OpenInNewSmall",
OutdoorFurniture = "OutdoorFurniture",
PalmTree = "Palmtree",
Parking = "Parking",
ParkingOutdoor = "ParkingOutdoor",
Person = "Person",
Pets = "Pets",
Phone = "Phone",
Plus = "Plus",
PlusCircle = "PlusCircle",
Popcorn = "Popcorn",
PriceTag = "PriceTag",
RecordPlayer = "RecordPlayer",
Restaurant = "Restaurant",
RoomService = "RoomService",
SafetyBox = "SafetyBox",
Sauna = "Sauna",
Search = "Search",
Service = "Service",
Shopping = "Shopping",
Skateboarding = "Skateboarding",
Skiing = "Skiing",
Smoking = "Smoking",
Snowflake = "Snowflake",
Spa = "Spa",
Sports = "Sports",
Star = "Star",
StarFilled = "StarFilled",
Street = "Street",
Swim = "Swim",
Swipe = "Swipe",
Theatre = "Theatre",
Thermostat = "Thermostat",
Ticket = "Ticket",
Toilet = "Toilet",
Train = "Train",
Tripadvisor = "Tripadvisor",
Trophy = "Trophy",
Tshirt = "Tshirt",
TshirtWash = "TshirtWash",
TvCasting = "TvCasting",
TVRemote = "TVRemote",
Voucher = "Voucher",
WarningTriangle = "WarningTriangle",
Wheelchair = "Wheelchair",
Wifi = "Wifi",
}

View File

@@ -3,4 +3,4 @@ export type {
IllustrationProps as LogoAndIllustrationProps,
LogoProps,
NucleoIconProps,
} from './icon'
} from "./icon"

View File

@@ -1,5 +1,5 @@
import { IconProps, IllustrationProps, NucleoIconProps } from './icon'
import { MaterialIconSetIconProps } from './MaterialIcon'
import { IconProps, IllustrationProps, NucleoIconProps } from "./icon"
import { MaterialIconSetIconProps } from "./MaterialIcon"
export function getIconAriaProps(
props:
@@ -8,10 +8,10 @@ export function getIconAriaProps(
| MaterialIconSetIconProps
| IllustrationProps
) {
const { role, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden } = props
const { role, "aria-label": ariaLabel, "aria-hidden": ariaHidden } = props
const computedAriaHidden =
ariaHidden !== undefined ? ariaHidden : ariaLabel || role ? false : true
return { role, 'aria-label': ariaLabel, 'aria-hidden': computedAriaHidden }
return { role, "aria-label": ariaLabel, "aria-hidden": computedAriaHidden }
}

View File

@@ -1,32 +1,32 @@
import { cva } from 'class-variance-authority'
import { cva } from "class-variance-authority"
import styles from './icon.module.css'
import styles from "./icon.module.css"
export const iconVariantConfig = {
variants: {
color: {
'Icon/Default': styles.iconDefault,
'Icon/Intense': styles.iconIntense,
'Icon/Accent': styles.iconAccent,
'Icon/Inverted': styles.iconInverted,
"Icon/Default": styles.iconDefault,
"Icon/Intense": styles.iconIntense,
"Icon/Accent": styles.iconAccent,
"Icon/Inverted": styles.iconInverted,
'Icon/Interactive/Default': styles.iconInteractiveDefault,
'Icon/Interactive/Secondary': styles.iconInteractiveSecondary,
'Icon/Interactive/Accent': styles.iconInteractiveAccent,
'Icon/Interactive/Disabled': styles.iconInteractiveDisabled,
'Icon/Interactive/Placeholder': styles.iconInteractivePlaceholder,
"Icon/Interactive/Default": styles.iconInteractiveDefault,
"Icon/Interactive/Secondary": styles.iconInteractiveSecondary,
"Icon/Interactive/Accent": styles.iconInteractiveAccent,
"Icon/Interactive/Disabled": styles.iconInteractiveDisabled,
"Icon/Interactive/Placeholder": styles.iconInteractivePlaceholder,
'Icon/Feedback/Information': styles.iconFeedbackInformation,
'Icon/Feedback/Success': styles.iconFeedbackSuccess,
'Icon/Feedback/Warning': styles.iconFeedbackWarning,
'Icon/Feedback/Neutral': styles.iconFeedbackNeutral,
'Icon/Feedback/Error': styles.iconFeedbackError,
"Icon/Feedback/Information": styles.iconFeedbackInformation,
"Icon/Feedback/Success": styles.iconFeedbackSuccess,
"Icon/Feedback/Warning": styles.iconFeedbackWarning,
"Icon/Feedback/Neutral": styles.iconFeedbackNeutral,
"Icon/Feedback/Error": styles.iconFeedbackError,
CurrentColor: styles.currentColor,
},
},
defaultVariants: {
color: 'Icon/Default',
color: "Icon/Default",
},
} as const