@clubmed/trident-ui 1.2.0-beta.1 → 1.2.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/atoms/Icons/Icon.d.ts +5 -1
- package/atoms/Icons/Icon.js +3 -2
- package/atoms/Icons/Icon.js.map +1 -1
- package/atoms/Icons/Iconics.d.ts +9 -1
- package/atoms/Icons/Iconics.js +1 -1
- package/atoms/Icons/IconsResolver.d.ts +33 -1
- package/atoms/Icons/IconsResolver.js +6 -5
- package/atoms/Icons/IconsResolver.js.map +1 -1
- package/atoms/Icons/contexts/IconsContext.d.ts +8 -1
- package/atoms/Icons/contexts/IconsContext.js +6 -47
- package/atoms/Icons/contexts/IconsContext.js.map +1 -1
- package/atoms/Icons/index.js +8 -6
- package/atoms/Icons/index.js.map +1 -1
- package/atoms/Icons/svg/Actions.d.ts +1 -1
- package/atoms/Icons/svg/Actions.js +2 -144
- package/atoms/Icons/svg/Actions.js.map +1 -1
- package/atoms/Icons/svg/Activities.d.ts +1 -1
- package/atoms/Icons/svg/Activities.js +2 -188
- package/atoms/Icons/svg/Activities.js.map +1 -1
- package/atoms/Icons/svg/Brand.d.ts +1 -1
- package/atoms/Icons/svg/Brand.js +2 -89
- package/atoms/Icons/svg/Brand.js.map +1 -1
- package/atoms/Icons/svg/Covid.d.ts +1 -1
- package/atoms/Icons/svg/Covid.js +1 -75
- package/atoms/Icons/svg/Covid.js.map +1 -1
- package/atoms/Icons/svg/Food.d.ts +1 -1
- package/atoms/Icons/svg/Food.js +2 -136
- package/atoms/Icons/svg/Food.js.map +1 -1
- package/atoms/Icons/svg/HappyToCare.d.ts +1 -1
- package/atoms/Icons/svg/HappyToCare.js +1 -71
- package/atoms/Icons/svg/HappyToCare.js.map +1 -1
- package/atoms/Icons/svg/Places.d.ts +1 -1
- package/atoms/Icons/svg/Places.js +1 -75
- package/atoms/Icons/svg/Places.js.map +1 -1
- package/atoms/Icons/svg/ResortFill-EC.d.ts +1 -1
- package/atoms/Icons/svg/ResortFill-EC.js +2 -134
- package/atoms/Icons/svg/ResortFill-EC.js.map +1 -1
- package/atoms/Icons/svg/ResortFill.d.ts +1 -1
- package/atoms/Icons/svg/ResortFill.js +2 -398
- package/atoms/Icons/svg/ResortFill.js.map +1 -1
- package/atoms/Icons/svg/ResortOutline-EC.d.ts +1 -1
- package/atoms/Icons/svg/ResortOutline-EC.js +2 -134
- package/atoms/Icons/svg/ResortOutline-EC.js.map +1 -1
- package/atoms/Icons/svg/ResortOutline.d.ts +1 -1
- package/atoms/Icons/svg/ResortOutline.js +2 -398
- package/atoms/Icons/svg/ResortOutline.js.map +1 -1
- package/atoms/Icons/svg/Room.d.ts +1 -1
- package/atoms/Icons/svg/Room.js +1 -151
- package/atoms/Icons/svg/Room.js.map +1 -1
- package/atoms/Icons/svg/Services.d.ts +1 -1
- package/atoms/Icons/svg/Services.js +2 -96
- package/atoms/Icons/svg/Services.js.map +1 -1
- package/atoms/Icons/svg/Socials.d.ts +1 -1
- package/atoms/Icons/svg/Socials.js +1 -78
- package/atoms/Icons/svg/Socials.js.map +1 -1
- package/atoms/Icons/svg/SvgIcon.d.ts +9 -1
- package/atoms/Icons/svg/SvgIcon.js +3 -2
- package/atoms/Icons/svg/SvgIcon.js.map +1 -1
- package/atoms/Icons/svg/SvgIconResolver.d.ts +5 -1
- package/atoms/Icons/svg/SvgIconResolver.js +2 -1
- package/atoms/Icons/svg/SvgIconResolver.js.map +1 -1
- package/atoms/Icons/svg/Transports.d.ts +1 -1
- package/atoms/Icons/svg/Transports.js +2 -60
- package/atoms/Icons/svg/Transports.js.map +1 -1
- package/atoms/Icons/svg/Utilities.d.ts +1 -1
- package/atoms/Icons/svg/Utilities.js +2 -232
- package/atoms/Icons/svg/Utilities.js.map +1 -1
- package/atoms/Icons/svg/index.d.ts +2 -1
- package/atoms/Icons/svg/index.js +4 -2
- package/atoms/Icons/svg/index.js.map +1 -1
- package/atoms/Icons/svg-use/Actions.d.ts +1 -1
- package/atoms/Icons/svg-use/Actions.js +2 -176
- package/atoms/Icons/svg-use/Actions.js.map +1 -1
- package/atoms/Icons/svg-use/Activities.d.ts +1 -1
- package/atoms/Icons/svg-use/Activities.js +2 -232
- package/atoms/Icons/svg-use/Activities.js.map +1 -1
- package/atoms/Icons/svg-use/Brand.d.ts +1 -1
- package/atoms/Icons/svg-use/Brand.js +2 -105
- package/atoms/Icons/svg-use/Brand.js.map +1 -1
- package/atoms/Icons/svg-use/Covid.d.ts +1 -1
- package/atoms/Icons/svg-use/Covid.js +2 -92
- package/atoms/Icons/svg-use/Covid.js.map +1 -1
- package/atoms/Icons/svg-use/Food.d.ts +1 -1
- package/atoms/Icons/svg-use/Food.js +2 -167
- package/atoms/Icons/svg-use/Food.js.map +1 -1
- package/atoms/Icons/svg-use/HappyToCare.d.ts +1 -1
- package/atoms/Icons/svg-use/HappyToCare.js +2 -87
- package/atoms/Icons/svg-use/HappyToCare.js.map +1 -1
- package/atoms/Icons/svg-use/Places.d.ts +1 -1
- package/atoms/Icons/svg-use/Places.js +2 -92
- package/atoms/Icons/svg-use/Places.js.map +1 -1
- package/atoms/Icons/svg-use/ResortFill-EC.d.ts +1 -1
- package/atoms/Icons/svg-use/ResortFill-EC.js +2 -154
- package/atoms/Icons/svg-use/ResortFill-EC.js.map +1 -1
- package/atoms/Icons/svg-use/ResortFill.d.ts +1 -1
- package/atoms/Icons/svg-use/ResortFill.js +2 -462
- package/atoms/Icons/svg-use/ResortFill.js.map +1 -1
- package/atoms/Icons/svg-use/ResortOutline-EC.d.ts +1 -1
- package/atoms/Icons/svg-use/ResortOutline-EC.js +2 -154
- package/atoms/Icons/svg-use/ResortOutline-EC.js.map +1 -1
- package/atoms/Icons/svg-use/ResortOutline.d.ts +1 -1
- package/atoms/Icons/svg-use/ResortOutline.js +2 -462
- package/atoms/Icons/svg-use/ResortOutline.js.map +1 -1
- package/atoms/Icons/svg-use/Room.d.ts +1 -1
- package/atoms/Icons/svg-use/Room.js +2 -187
- package/atoms/Icons/svg-use/Room.js.map +1 -1
- package/atoms/Icons/svg-use/Services.d.ts +1 -1
- package/atoms/Icons/svg-use/Services.js +2 -117
- package/atoms/Icons/svg-use/Services.js.map +1 -1
- package/atoms/Icons/svg-use/Socials.d.ts +1 -1
- package/atoms/Icons/svg-use/Socials.js +2 -95
- package/atoms/Icons/svg-use/Socials.js.map +1 -1
- package/atoms/Icons/svg-use/SvgUseIcon.d.ts +9 -1
- package/atoms/Icons/svg-use/SvgUseIcon.js +3 -2
- package/atoms/Icons/svg-use/SvgUseIcon.js.map +1 -1
- package/atoms/Icons/svg-use/SvgUseIconResolver.d.ts +5 -1
- package/atoms/Icons/svg-use/SvgUseIconResolver.js +2 -1
- package/atoms/Icons/svg-use/SvgUseIconResolver.js.map +1 -1
- package/atoms/Icons/svg-use/Transports.d.ts +1 -1
- package/atoms/Icons/svg-use/Transports.js +2 -72
- package/atoms/Icons/svg-use/Transports.js.map +1 -1
- package/atoms/Icons/svg-use/Utilities.d.ts +1 -1
- package/atoms/Icons/svg-use/Utilities.js +2 -287
- package/atoms/Icons/svg-use/Utilities.js.map +1 -1
- package/atoms/Icons/svg-use/index.d.ts +2 -1
- package/atoms/Icons/svg-use/index.js +4 -2
- package/atoms/Icons/svg-use/index.js.map +1 -1
- package/molecules/Breadcrumb.js +9 -8
- package/molecules/Breadcrumb.js.map +1 -1
- package/molecules/Buttons/ButtonContent.js +6 -5
- package/molecules/Buttons/ButtonContent.js.map +1 -1
- package/molecules/Card.js +8 -7
- package/molecules/Card.js.map +1 -1
- package/molecules/Forms/Checkboxes/Checkbox.js +13 -12
- package/molecules/Forms/Checkboxes/Checkbox.js.map +1 -1
- package/molecules/Forms/DateField.js +4 -3
- package/molecules/Forms/DateField.js.map +1 -1
- package/molecules/Forms/Filter.js +13 -12
- package/molecules/Forms/Filter.js.map +1 -1
- package/molecules/Forms/FormControl.js +16 -15
- package/molecules/Forms/FormControl.js.map +1 -1
- package/molecules/Forms/Password/Password.js +11 -10
- package/molecules/Forms/Password/Password.js.map +1 -1
- package/molecules/Forms/Password/ValidationMessage.js +9 -8
- package/molecules/Forms/Password/ValidationMessage.js.map +1 -1
- package/molecules/Forms/Select.js +4 -3
- package/molecules/Forms/Select.js.map +1 -1
- package/molecules/Forms/TextField.js +8 -7
- package/molecules/Forms/TextField.js.map +1 -1
- package/molecules/Link.js +9 -8
- package/molecules/Link.js.map +1 -1
- package/package.json +1 -1
- package/chunks/360Videos.js +0 -8
- package/chunks/360Videos.js.map +0 -1
- package/chunks/AC.js +0 -6
- package/chunks/AC.js.map +0 -1
- package/chunks/AEXC_Fill.js +0 -6
- package/chunks/AEXC_Fill.js.map +0 -1
- package/chunks/AEXC_Outline.js +0 -6
- package/chunks/AEXC_Outline.js.map +0 -1
- package/chunks/ALBC_EC_Fill.js +0 -6
- package/chunks/ALBC_EC_Fill.js.map +0 -1
- package/chunks/ALBC_EC_Outline.js +0 -6
- package/chunks/ALBC_EC_Outline.js.map +0 -1
- package/chunks/ALBV_EC_Fill.js +0 -6
- package/chunks/ALBV_EC_Fill.js.map +0 -1
- package/chunks/ALBV_EC_Outline.js +0 -6
- package/chunks/ALBV_EC_Outline.js.map +0 -1
- package/chunks/ALHC_Fill.js +0 -6
- package/chunks/ALHC_Fill.js.map +0 -1
- package/chunks/ALHC_Outline.js +0 -6
- package/chunks/ALHC_Outline.js.map +0 -1
- package/chunks/ANJJ_Fill.js +0 -6
- package/chunks/ANJJ_Fill.js.map +0 -1
- package/chunks/ANJJ_Outline.js +0 -6
- package/chunks/ANJJ_Outline.js.map +0 -1
- package/chunks/ARPC_EC_Fill.js +0 -6
- package/chunks/ARPC_EC_Fill.js.map +0 -1
- package/chunks/ARPC_EC_Outline.js +0 -6
- package/chunks/ARPC_EC_Outline.js.map +0 -1
- package/chunks/ARPC_Fill.js +0 -6
- package/chunks/ARPC_Fill.js.map +0 -1
- package/chunks/ARPC_Outline.js +0 -6
- package/chunks/ARPC_Outline.js.map +0 -1
- package/chunks/ActionsAgainstSexualTourism.js +0 -6
- package/chunks/ActionsAgainstSexualTourism.js.map +0 -1
- package/chunks/AllInclusive.js +0 -6
- package/chunks/AllInclusive.js.map +0 -1
- package/chunks/AllInclusiveDefault.js +0 -6
- package/chunks/AllInclusiveDefault.js.map +0 -1
- package/chunks/AllInclusiveDonations.js +0 -6
- package/chunks/AllInclusiveDonations.js.map +0 -1
- package/chunks/AllInclusiveFlexible.js +0 -6
- package/chunks/AllInclusiveFlexible.js.map +0 -1
- package/chunks/AmazingFamily.js +0 -6
- package/chunks/AmazingFamily.js.map +0 -1
- package/chunks/Amenities.js +0 -6
- package/chunks/Amenities.js.map +0 -1
- package/chunks/AnimalProtection.js +0 -6
- package/chunks/AnimalProtection.js.map +0 -1
- package/chunks/Apple.js +0 -6
- package/chunks/Apple.js.map +0 -1
- package/chunks/Archery.js +0 -6
- package/chunks/Archery.js.map +0 -1
- package/chunks/ArrowDefault.js +0 -6
- package/chunks/ArrowDefault.js.map +0 -1
- package/chunks/ArrowFilled.js +0 -6
- package/chunks/ArrowFilled.js.map +0 -1
- package/chunks/ArrowOutlined.js +0 -6
- package/chunks/ArrowOutlined.js.map +0 -1
- package/chunks/ArrowTail.js +0 -6
- package/chunks/ArrowTail.js.map +0 -1
- package/chunks/BALC_Fill.js +0 -6
- package/chunks/BALC_Fill.js.map +0 -1
- package/chunks/BALC_Outline.js +0 -6
- package/chunks/BALC_Outline.js.map +0 -1
- package/chunks/BEIC_Fill.js +0 -6
- package/chunks/BEIC_Fill.js.map +0 -1
- package/chunks/BEIC_Outline.js +0 -6
- package/chunks/BEIC_Outline.js.map +0 -1
- package/chunks/BODC_Fill.js +0 -6
- package/chunks/BODC_Fill.js.map +0 -1
- package/chunks/BODC_Outline.js +0 -6
- package/chunks/BODC_Outline.js.map +0 -1
- package/chunks/BUCC_Fill.js +0 -6
- package/chunks/BUCC_Fill.js.map +0 -1
- package/chunks/BUCC_Outline.js +0 -6
- package/chunks/BUCC_Outline.js.map +0 -1
- package/chunks/BabyBed.js +0 -6
- package/chunks/BabyBed.js.map +0 -1
- package/chunks/BabyBottle.js +0 -6
- package/chunks/BabyBottle.js.map +0 -1
- package/chunks/BabyCleaning.js +0 -6
- package/chunks/BabyCleaning.js.map +0 -1
- package/chunks/BabyClubMed.js +0 -6
- package/chunks/BabyClubMed.js.map +0 -1
- package/chunks/BabyCorner.js +0 -6
- package/chunks/BabyCorner.js.map +0 -1
- package/chunks/BabyWelcome.js +0 -6
- package/chunks/BabyWelcome.js.map +0 -1
- package/chunks/Badminton.js +0 -6
- package/chunks/Badminton.js.map +0 -1
- package/chunks/Balcony.js +0 -6
- package/chunks/Balcony.js.map +0 -1
- package/chunks/Balneotherapy.js +0 -6
- package/chunks/Balneotherapy.js.map +0 -1
- package/chunks/Bar.js +0 -6
- package/chunks/Bar.js.map +0 -1
- package/chunks/Bars.js +0 -6
- package/chunks/Bars.js.map +0 -1
- package/chunks/Bathrobe.js +0 -6
- package/chunks/Bathrobe.js.map +0 -1
- package/chunks/BathtubShower.js +0 -6
- package/chunks/BathtubShower.js.map +0 -1
- package/chunks/BeachTowel.js +0 -6
- package/chunks/BeachTowel.js.map +0 -1
- package/chunks/BeachView.js +0 -6
- package/chunks/BeachView.js.map +0 -1
- package/chunks/Bedroom.js +0 -6
- package/chunks/Bedroom.js.map +0 -1
- package/chunks/Benin_Fill.js +0 -6
- package/chunks/Benin_Fill.js.map +0 -1
- package/chunks/Benin_Outline.js +0 -6
- package/chunks/Benin_Outline.js.map +0 -1
- package/chunks/Bidet.js +0 -6
- package/chunks/Bidet.js.map +0 -1
- package/chunks/Biodiversity.js +0 -6
- package/chunks/Biodiversity.js.map +0 -1
- package/chunks/Boat.js +0 -6
- package/chunks/Boat.js.map +0 -1
- package/chunks/BocceBall.js +0 -6
- package/chunks/BocceBall.js.map +0 -1
- package/chunks/Borneo_Fill.js +0 -6
- package/chunks/Borneo_Fill.js.map +0 -1
- package/chunks/Borneo_Outline.js +0 -6
- package/chunks/Borneo_Outline.js.map +0 -1
- package/chunks/Bus.js +0 -6
- package/chunks/Bus.js.map +0 -1
- package/chunks/ByeByePlastic.js +0 -6
- package/chunks/ByeByePlastic.js.map +0 -1
- package/chunks/CANC_EC_Fill.js +0 -6
- package/chunks/CANC_EC_Fill.js.map +0 -1
- package/chunks/CANC_EC_Outline.js +0 -6
- package/chunks/CANC_EC_Outline.js.map +0 -1
- package/chunks/CANC_Fill.js +0 -6
- package/chunks/CANC_Fill.js.map +0 -1
- package/chunks/CANC_Outline.js +0 -6
- package/chunks/CANC_Outline.js.map +0 -1
- package/chunks/CARC_Fill.js +0 -6
- package/chunks/CARC_Fill.js.map +0 -1
- package/chunks/CARC_Outline.js +0 -6
- package/chunks/CARC_Outline.js.map +0 -1
- package/chunks/CBAC_Fill.js +0 -6
- package/chunks/CBAC_Fill.js.map +0 -1
- package/chunks/CBAC_Outline.js +0 -6
- package/chunks/CBAC_Outline.js.map +0 -1
- package/chunks/CFAC_EC_Fill.js +0 -6
- package/chunks/CFAC_EC_Fill.js.map +0 -1
- package/chunks/CFAC_EC_Outline.js +0 -6
- package/chunks/CFAC_EC_Outline.js.map +0 -1
- package/chunks/CGBJ_Fill.js +0 -6
- package/chunks/CGBJ_Fill.js.map +0 -1
- package/chunks/CGBJ_Outline.js +0 -6
- package/chunks/CGBJ_Outline.js.map +0 -1
- package/chunks/CHEC_Fill.js +0 -6
- package/chunks/CHEC_Fill.js.map +0 -1
- package/chunks/CHEC_Outline.js +0 -6
- package/chunks/CHEC_Outline.js.map +0 -1
- package/chunks/CM2C_EC_Fill.js +0 -6
- package/chunks/CM2C_EC_Fill.js.map +0 -1
- package/chunks/CM2C_EC_Outline.js +0 -6
- package/chunks/CM2C_EC_Outline.js.map +0 -1
- package/chunks/COLC_Fill.js +0 -6
- package/chunks/COLC_Fill.js.map +0 -1
- package/chunks/COLC_Outline.js +0 -6
- package/chunks/COLC_Outline.js.map +0 -1
- package/chunks/CSKC_Fill.js +0 -6
- package/chunks/CSKC_Fill.js.map +0 -1
- package/chunks/CSKC_Outline.js +0 -6
- package/chunks/CSKC_Outline.js.map +0 -1
- package/chunks/CableCar.js +0 -6
- package/chunks/CableCar.js.map +0 -1
- package/chunks/CalendarDefault.js +0 -6
- package/chunks/CalendarDefault.js.map +0 -1
- package/chunks/CalendarFavorites.js +0 -6
- package/chunks/CalendarFavorites.js.map +0 -1
- package/chunks/CalendarOptions.js +0 -6
- package/chunks/CalendarOptions.js.map +0 -1
- package/chunks/CalendarPlus.js +0 -6
- package/chunks/CalendarPlus.js.map +0 -1
- package/chunks/CallBack.js +0 -6
- package/chunks/CallBack.js.map +0 -1
- package/chunks/Capacity.js +0 -6
- package/chunks/Capacity.js.map +0 -1
- package/chunks/Car.js +0 -6
- package/chunks/Car.js.map +0 -1
- package/chunks/Cardio.js +0 -6
- package/chunks/Cardio.js.map +0 -1
- package/chunks/Champagne.js +0 -6
- package/chunks/Champagne.js.map +0 -1
- package/chunks/Charcuterie.js +0 -6
- package/chunks/Charcuterie.js.map +0 -1
- package/chunks/CheckDefault.js +0 -6
- package/chunks/CheckDefault.js.map +0 -1
- package/chunks/CheckFilled.js +0 -6
- package/chunks/CheckFilled.js.map +0 -1
- package/chunks/CheckOutlined.js +0 -6
- package/chunks/CheckOutlined.js.map +0 -1
- package/chunks/Cheese.js +0 -6
- package/chunks/Cheese.js.map +0 -1
- package/chunks/ChildrenSeparatedRoom.js +0 -6
- package/chunks/ChildrenSeparatedRoom.js.map +0 -1
- package/chunks/ChillPass.js +0 -6
- package/chunks/ChillPass.js.map +0 -1
- package/chunks/Circus.js +0 -6
- package/chunks/Circus.js.map +0 -1
- package/chunks/ClimateActions.js +0 -6
- package/chunks/ClimateActions.js.map +0 -1
- package/chunks/Climbing.js +0 -6
- package/chunks/Climbing.js.map +0 -1
- package/chunks/Clipboard.js +0 -6
- package/chunks/Clipboard.js.map +0 -1
- package/chunks/ClockBack.js +0 -6
- package/chunks/ClockBack.js.map +0 -1
- package/chunks/ClockDefault.js +0 -6
- package/chunks/ClockDefault.js.map +0 -1
- package/chunks/ClockSpeed.js +0 -6
- package/chunks/ClockSpeed.js.map +0 -1
- package/chunks/ClothesDryer.js +0 -6
- package/chunks/ClothesDryer.js.map +0 -1
- package/chunks/ClubMed.js +0 -6
- package/chunks/ClubMed.js.map +0 -1
- package/chunks/CoffeeMachine.js +0 -6
- package/chunks/CoffeeMachine.js.map +0 -1
- package/chunks/ColdDrinks.js +0 -6
- package/chunks/ColdDrinks.js.map +0 -1
- package/chunks/ColdSandwich.js +0 -6
- package/chunks/ColdSandwich.js.map +0 -1
- package/chunks/Compare.js +0 -6
- package/chunks/Compare.js.map +0 -1
- package/chunks/Concierge.js +0 -6
- package/chunks/Concierge.js.map +0 -1
- package/chunks/Conference.js +0 -6
- package/chunks/Conference.js.map +0 -1
- package/chunks/ConnectingRoom.js +0 -6
- package/chunks/ConnectingRoom.js.map +0 -1
- package/chunks/Cough.js +0 -6
- package/chunks/Cough.js.map +0 -1
- package/chunks/CreditCard.js +0 -6
- package/chunks/CreditCard.js.map +0 -1
- package/chunks/CreditCard2.js +0 -6
- package/chunks/CreditCard2.js.map +0 -1
- package/chunks/CrossDefault.js +0 -6
- package/chunks/CrossDefault.js.map +0 -1
- package/chunks/CrossFilled.js +0 -6
- package/chunks/CrossFilled.js.map +0 -1
- package/chunks/CrossOutlined.js +0 -6
- package/chunks/CrossOutlined.js.map +0 -1
- package/chunks/CulturalRespect.js +0 -6
- package/chunks/CulturalRespect.js.map +0 -1
- package/chunks/DBAC_Fill.js +0 -6
- package/chunks/DBAC_Fill.js.map +0 -1
- package/chunks/DBAC_Outline.js +0 -6
- package/chunks/DBAC_Outline.js.map +0 -1
- package/chunks/DDOC_Fill.js +0 -6
- package/chunks/DDOC_Fill.js.map +0 -1
- package/chunks/DDOC_Outline.js +0 -6
- package/chunks/DDOC_Outline.js.map +0 -1
- package/chunks/Danse.js +0 -6
- package/chunks/Danse.js.map +0 -1
- package/chunks/Daybed.js +0 -6
- package/chunks/Daybed.js.map +0 -1
- package/chunks/Delete.js +0 -6
- package/chunks/Delete.js.map +0 -1
- package/chunks/Dessert.js +0 -6
- package/chunks/Dessert.js.map +0 -1
- package/chunks/Diamond.js +0 -6
- package/chunks/Diamond.js.map +0 -1
- package/chunks/DigitalTools.js +0 -6
- package/chunks/DigitalTools.js.map +0 -1
- package/chunks/Disinfection.js +0 -6
- package/chunks/Disinfection.js.map +0 -1
- package/chunks/Distance.js +0 -6
- package/chunks/Distance.js.map +0 -1
- package/chunks/DoNotShakeHands.js +0 -6
- package/chunks/DoNotShakeHands.js.map +0 -1
- package/chunks/Doctor.js +0 -6
- package/chunks/Doctor.js.map +0 -1
- package/chunks/DocumentChecklist.js +0 -6
- package/chunks/DocumentChecklist.js.map +0 -1
- package/chunks/DocumentDefault.js +0 -6
- package/chunks/DocumentDefault.js.map +0 -1
- package/chunks/DocumentInsurrance.js +0 -6
- package/chunks/DocumentInsurrance.js.map +0 -1
- package/chunks/DocumentList.js +0 -6
- package/chunks/DocumentList.js.map +0 -1
- package/chunks/DocumentPDF.js +0 -6
- package/chunks/DocumentPDF.js.map +0 -1
- package/chunks/DocumentPassport.js +0 -6
- package/chunks/DocumentPassport.js.map +0 -1
- package/chunks/DocumentTicket.js +0 -6
- package/chunks/DocumentTicket.js.map +0 -1
- package/chunks/DocumentUserDetails.js +0 -6
- package/chunks/DocumentUserDetails.js.map +0 -1
- package/chunks/Download.js +0 -6
- package/chunks/Download.js.map +0 -1
- package/chunks/Dressing.js +0 -6
- package/chunks/Dressing.js.map +0 -1
- package/chunks/Dryer.js +0 -6
- package/chunks/Dryer.js.map +0 -1
- package/chunks/DualBasin.js +0 -6
- package/chunks/DualBasin.js.map +0 -1
- package/chunks/Edit.js +0 -6
- package/chunks/Edit.js.map +0 -1
- package/chunks/Electricity.js +0 -6
- package/chunks/Electricity.js.map +0 -1
- package/chunks/ElectricityManagement.js +0 -6
- package/chunks/ElectricityManagement.js.map +0 -1
- package/chunks/Elevator.js +0 -6
- package/chunks/Elevator.js.map +0 -1
- package/chunks/EnvironmentProtection.js +0 -6
- package/chunks/EnvironmentProtection.js.map +0 -1
- package/chunks/EqualOpportunities.js +0 -6
- package/chunks/EqualOpportunities.js.map +0 -1
- package/chunks/Error.js +0 -6
- package/chunks/Error.js.map +0 -1
- package/chunks/ExclusiveCollection.js +0 -6
- package/chunks/ExclusiveCollection.js.map +0 -1
- package/chunks/Expand.js +0 -6
- package/chunks/Expand.js.map +0 -1
- package/chunks/ExternalLinks.js +0 -6
- package/chunks/ExternalLinks.js.map +0 -1
- package/chunks/Facebook.js +0 -6
- package/chunks/Facebook.js.map +0 -1
- package/chunks/FacebookMessenger.js +0 -6
- package/chunks/FacebookMessenger.js.map +0 -1
- package/chunks/FarmersProgram.js +0 -6
- package/chunks/FarmersProgram.js.map +0 -1
- package/chunks/Filters.js +0 -6
- package/chunks/Filters.js.map +0 -1
- package/chunks/Fireplace.js +0 -6
- package/chunks/Fireplace.js.map +0 -1
- package/chunks/Fitness.js +0 -6
- package/chunks/Fitness.js.map +0 -1
- package/chunks/Flickr.js +0 -6
- package/chunks/Flickr.js.map +0 -1
- package/chunks/Folder.js +0 -6
- package/chunks/Folder.js.map +0 -1
- package/chunks/Footpath.js +0 -6
- package/chunks/Footpath.js.map +0 -1
- package/chunks/Foshan_Fill.js +0 -6
- package/chunks/Foshan_Fill.js.map +0 -1
- package/chunks/Foshan_Outline.js +0 -6
- package/chunks/Foshan_Outline.js.map +0 -1
- package/chunks/FourtyFive.js +0 -6
- package/chunks/FourtyFive.js.map +0 -1
- package/chunks/Fridge.js +0 -6
- package/chunks/Fridge.js.map +0 -1
- package/chunks/GMAC_Fill.js +0 -6
- package/chunks/GMAC_Fill.js.map +0 -1
- package/chunks/GMAC_Outline.js +0 -6
- package/chunks/GMAC_Outline.js.map +0 -1
- package/chunks/GMAV_EC_Fill.js +0 -6
- package/chunks/GMAV_EC_Fill.js.map +0 -1
- package/chunks/GMAV_EC_Outline.js +0 -6
- package/chunks/GMAV_EC_Outline.js.map +0 -1
- package/chunks/GREC_Fill.js +0 -6
- package/chunks/GREC_Fill.js.map +0 -1
- package/chunks/GREC_Outline.js +0 -6
- package/chunks/GREC_Outline.js.map +0 -1
- package/chunks/GUIC_Fill.js +0 -6
- package/chunks/GUIC_Fill.js.map +0 -1
- package/chunks/GUIC_Outline.js +0 -6
- package/chunks/GUIC_Outline.js.map +0 -1
- package/chunks/GardenView.js +0 -6
- package/chunks/GardenView.js.map +0 -1
- package/chunks/GlobePlane.js +0 -6
- package/chunks/GlobePlane.js.map +0 -1
- package/chunks/GlobeTrident.js +0 -6
- package/chunks/GlobeTrident.js.map +0 -1
- package/chunks/Gloves.js +0 -6
- package/chunks/Gloves.js.map +0 -1
- package/chunks/Golf.js +0 -6
- package/chunks/Golf.js.map +0 -1
- package/chunks/Google.js +0 -6
- package/chunks/Google.js.map +0 -1
- package/chunks/GourmetLounge.js +0 -6
- package/chunks/GourmetLounge.js.map +0 -1
- package/chunks/Grid.js +0 -6
- package/chunks/Grid.js.map +0 -1
- package/chunks/GridList.js +0 -6
- package/chunks/GridList.js.map +0 -1
- package/chunks/Hairdresser.js +0 -6
- package/chunks/Hairdresser.js.map +0 -1
- package/chunks/HamamMen.js +0 -6
- package/chunks/HamamMen.js.map +0 -1
- package/chunks/HamamWomen.js +0 -6
- package/chunks/HamamWomen.js.map +0 -1
- package/chunks/Hamburger.js +0 -6
- package/chunks/Hamburger.js.map +0 -1
- package/chunks/HappyFirst.js +0 -8
- package/chunks/HappyFirst.js.map +0 -1
- package/chunks/HappyToCare.js +0 -6
- package/chunks/HappyToCare.js.map +0 -1
- package/chunks/HappyToCareSmall.js +0 -6
- package/chunks/HappyToCareSmall.js.map +0 -1
- package/chunks/HealthyCorner.js +0 -6
- package/chunks/HealthyCorner.js.map +0 -1
- package/chunks/HeartFilled.js +0 -6
- package/chunks/HeartFilled.js.map +0 -1
- package/chunks/HeartOutlined.js +0 -6
- package/chunks/HeartOutlined.js.map +0 -1
- package/chunks/Heilongtan_Fill.js +0 -6
- package/chunks/Heilongtan_Fill.js.map +0 -1
- package/chunks/Heilongtan_Outline.js +0 -6
- package/chunks/Heilongtan_Outline.js.map +0 -1
- package/chunks/Hiking.js +0 -6
- package/chunks/Hiking.js.map +0 -1
- package/chunks/Home.js +0 -8
- package/chunks/Home.js.map +0 -1
- package/chunks/HorseRiding.js +0 -6
- package/chunks/HorseRiding.js.map +0 -1
- package/chunks/HotDrinks.js +0 -6
- package/chunks/HotDrinks.js.map +0 -1
- package/chunks/HotSandwiches.js +0 -6
- package/chunks/HotSandwiches.js.map +0 -1
- package/chunks/Household.js +0 -6
- package/chunks/Household.js.map +0 -1
- package/chunks/IXTC_Fill.js +0 -6
- package/chunks/IXTC_Fill.js.map +0 -1
- package/chunks/IXTC_Outline.js +0 -6
- package/chunks/IXTC_Outline.js.map +0 -1
- package/chunks/IceSkating.js +0 -6
- package/chunks/IceSkating.js.map +0 -1
- package/chunks/IconsResolver.js +0 -15
- package/chunks/IconsResolver.js.map +0 -1
- package/chunks/InclusiveToilets.js +0 -6
- package/chunks/InclusiveToilets.js.map +0 -1
- package/chunks/Information.js +0 -6
- package/chunks/Information.js.map +0 -1
- package/chunks/Instagram.js +0 -6
- package/chunks/Instagram.js.map +0 -1
- package/chunks/Internet.js +0 -6
- package/chunks/Internet.js.map +0 -1
- package/chunks/Invisible.js +0 -6
- package/chunks/Invisible.js.map +0 -1
- package/chunks/KABC_Fill.js +0 -6
- package/chunks/KABC_Fill.js.map +0 -1
- package/chunks/KABC_Outline.js +0 -6
- package/chunks/KABC_Outline.js.map +0 -1
- package/chunks/KANC_EC_Fill.js +0 -6
- package/chunks/KANC_EC_Fill.js.map +0 -1
- package/chunks/KANC_EC_Outline.js +0 -6
- package/chunks/KANC_EC_Outline.js.map +0 -1
- package/chunks/KANC_Fill.js +0 -6
- package/chunks/KANC_Fill.js.map +0 -1
- package/chunks/KANC_Outline.js +0 -6
- package/chunks/KANC_Outline.js.map +0 -1
- package/chunks/KANV_EC_Fill.js +0 -6
- package/chunks/KANV_EC_Fill.js.map +0 -1
- package/chunks/KANV_EC_Outline.js +0 -6
- package/chunks/KANV_EC_Outline.js.map +0 -1
- package/chunks/KEMC_Fill.js +0 -6
- package/chunks/KEMC_Fill.js.map +0 -1
- package/chunks/KEMC_Outline.js +0 -6
- package/chunks/KEMC_Outline.js.map +0 -1
- package/chunks/KIGC_Fill.js +0 -6
- package/chunks/KIGC_Fill.js.map +0 -1
- package/chunks/KIGC_Outline.js +0 -6
- package/chunks/KIGC_Outline.js.map +0 -1
- package/chunks/KIPC_Fill.js +0 -6
- package/chunks/KIPC_Fill.js.map +0 -1
- package/chunks/KIPC_Outline.js +0 -6
- package/chunks/KIPC_Outline.js.map +0 -1
- package/chunks/Kayak.js +0 -6
- package/chunks/Kayak.js.map +0 -1
- package/chunks/KidSupervisory.js +0 -6
- package/chunks/KidSupervisory.js.map +0 -1
- package/chunks/Kitchen.js +0 -6
- package/chunks/Kitchen.js.map +0 -1
- package/chunks/KitchenEquipments.js +0 -6
- package/chunks/KitchenEquipments.js.map +0 -1
- package/chunks/Kitchenware.js +0 -6
- package/chunks/Kitchenware.js.map +0 -1
- package/chunks/Kitesurf.js +0 -6
- package/chunks/Kitesurf.js.map +0 -1
- package/chunks/LAKJ_Fill.js +0 -6
- package/chunks/LAKJ_Fill.js.map +0 -1
- package/chunks/LAKJ_Outline.js +0 -6
- package/chunks/LAKJ_Outline.js.map +0 -1
- package/chunks/LAPC_Fill.js +0 -6
- package/chunks/LAPC_Fill.js.map +0 -1
- package/chunks/LAPC_Outline.js +0 -6
- package/chunks/LAPC_Outline.js.map +0 -1
- package/chunks/LJIC_Fill.js +0 -6
- package/chunks/LJIC_Fill.js.map +0 -1
- package/chunks/LJIC_Outline.js +0 -6
- package/chunks/LJIC_Outline.js.map +0 -1
- package/chunks/LPAC_Fill.js +0 -6
- package/chunks/LPAC_Fill.js.map +0 -1
- package/chunks/LPAC_Outline.js +0 -6
- package/chunks/LPAC_Outline.js.map +0 -1
- package/chunks/LROC_EC_Fill.js +0 -6
- package/chunks/LROC_EC_Fill.js.map +0 -1
- package/chunks/LROC_EC_Outline.js +0 -6
- package/chunks/LROC_EC_Outline.js.map +0 -1
- package/chunks/LROC_Fill.js +0 -6
- package/chunks/LROC_Fill.js.map +0 -1
- package/chunks/LROC_Outline.js +0 -6
- package/chunks/LROC_Outline.js.map +0 -1
- package/chunks/LastMinute.js +0 -6
- package/chunks/LastMinute.js.map +0 -1
- package/chunks/Laundry.js +0 -6
- package/chunks/Laundry.js.map +0 -1
- package/chunks/Letter.js +0 -6
- package/chunks/Letter.js.map +0 -1
- package/chunks/Library.js +0 -6
- package/chunks/Library.js.map +0 -1
- package/chunks/List.js +0 -6
- package/chunks/List.js.map +0 -1
- package/chunks/LocalChildrenWelcome.js +0 -6
- package/chunks/LocalChildrenWelcome.js.map +0 -1
- package/chunks/LocalDevelopment.js +0 -6
- package/chunks/LocalDevelopment.js.map +0 -1
- package/chunks/LocalSportSchool.js +0 -6
- package/chunks/LocalSportSchool.js.map +0 -1
- package/chunks/Location.js +0 -6
- package/chunks/Location.js.map +0 -1
- package/chunks/LoungeAreaInside.js +0 -6
- package/chunks/LoungeAreaInside.js.map +0 -1
- package/chunks/LoungeAreaOutside.js +0 -6
- package/chunks/LoungeAreaOutside.js.map +0 -1
- package/chunks/Luggage.js +0 -6
- package/chunks/Luggage.js.map +0 -1
- package/chunks/LuggageTransportation.js +0 -6
- package/chunks/LuggageTransportation.js.map +0 -1
- package/chunks/MAUC_Fill.js +0 -6
- package/chunks/MAUC_Fill.js.map +0 -1
- package/chunks/MAUC_Outline.js +0 -6
- package/chunks/MAUC_Outline.js.map +0 -1
- package/chunks/MMAC_Fill.js +0 -6
- package/chunks/MMAC_Fill.js.map +0 -1
- package/chunks/MMAC_Outline.js +0 -6
- package/chunks/MMAC_Outline.js.map +0 -1
- package/chunks/MPAC_EC_Fill.js +0 -6
- package/chunks/MPAC_EC_Fill.js.map +0 -1
- package/chunks/MPAC_EC_Outline.js +0 -6
- package/chunks/MPAC_EC_Outline.js.map +0 -1
- package/chunks/MPAC_Fill.js +0 -6
- package/chunks/MPAC_Fill.js.map +0 -1
- package/chunks/MPAC_Outline.js +0 -6
- package/chunks/MPAC_Outline.js.map +0 -1
- package/chunks/MPEC_EC_Fill.js +0 -6
- package/chunks/MPEC_EC_Fill.js.map +0 -1
- package/chunks/MPEC_EC_Outline.js +0 -6
- package/chunks/MPEC_EC_Outline.js.map +0 -1
- package/chunks/MagnifyingMirror.js +0 -6
- package/chunks/MagnifyingMirror.js.map +0 -1
- package/chunks/Maintenance.js +0 -6
- package/chunks/Maintenance.js.map +0 -1
- package/chunks/Mask.js +0 -6
- package/chunks/Mask.js.map +0 -1
- package/chunks/Massage.js +0 -6
- package/chunks/Massage.js.map +0 -1
- package/chunks/MaterialDonations.js +0 -6
- package/chunks/MaterialDonations.js.map +0 -1
- package/chunks/Meal.js +0 -6
- package/chunks/Meal.js.map +0 -1
- package/chunks/Meat.js +0 -6
- package/chunks/Meat.js.map +0 -1
- package/chunks/MeetingPoint.js +0 -6
- package/chunks/MeetingPoint.js.map +0 -1
- package/chunks/Menu.js +0 -6
- package/chunks/Menu.js.map +0 -1
- package/chunks/MenuClosed.js +0 -6
- package/chunks/MenuClosed.js.map +0 -1
- package/chunks/MiniClubMed.js +0 -6
- package/chunks/MiniClubMed.js.map +0 -1
- package/chunks/MinusDefault.js +0 -6
- package/chunks/MinusDefault.js.map +0 -1
- package/chunks/MinusFilled.js +0 -6
- package/chunks/MinusFilled.js.map +0 -1
- package/chunks/MinusOutlined.js +0 -6
- package/chunks/MinusOutlined.js.map +0 -1
- package/chunks/MountainView.js +0 -6
- package/chunks/MountainView.js.map +0 -1
- package/chunks/Multimedia.js +0 -6
- package/chunks/Multimedia.js.map +0 -1
- package/chunks/Multisports.js +0 -6
- package/chunks/Multisports.js.map +0 -1
- package/chunks/New.js +0 -6
- package/chunks/New.js.map +0 -1
- package/chunks/Nursery.js +0 -6
- package/chunks/Nursery.js.map +0 -1
- package/chunks/OPIC_Fill.js +0 -6
- package/chunks/OPIC_Fill.js.map +0 -1
- package/chunks/OPIC_Outline.js +0 -6
- package/chunks/OPIC_Outline.js.map +0 -1
- package/chunks/Ofuro.js +0 -6
- package/chunks/Ofuro.js.map +0 -1
- package/chunks/OnDemand.js +0 -6
- package/chunks/OnDemand.js.map +0 -1
- package/chunks/PALC_Fill.js +0 -6
- package/chunks/PALC_Fill.js.map +0 -1
- package/chunks/PALC_Outline.js +0 -6
- package/chunks/PALC_Outline.js.map +0 -1
- package/chunks/PCAC_EC_Fill.js +0 -6
- package/chunks/PCAC_EC_Fill.js.map +0 -1
- package/chunks/PCAC_EC_Outline.js +0 -6
- package/chunks/PCAC_EC_Outline.js.map +0 -1
- package/chunks/PCAC_Fill.js +0 -6
- package/chunks/PCAC_Fill.js.map +0 -1
- package/chunks/PCAC_Outline.js +0 -6
- package/chunks/PCAC_Outline.js.map +0 -1
- package/chunks/PCRTest.js +0 -6
- package/chunks/PCRTest.js.map +0 -1
- package/chunks/PHUC_Fill.js +0 -6
- package/chunks/PHUC_Fill.js.map +0 -1
- package/chunks/PHUC_Outline.js +0 -6
- package/chunks/PHUC_Outline.js.map +0 -1
- package/chunks/PLAC_Fill.js +0 -6
- package/chunks/PLAC_Fill.js.map +0 -1
- package/chunks/PLAC_Outline.js +0 -6
- package/chunks/PLAC_Outline.js.map +0 -1
- package/chunks/PMR.js +0 -6
- package/chunks/PMR.js.map +0 -1
- package/chunks/PMRElevator.js +0 -6
- package/chunks/PMRElevator.js.map +0 -1
- package/chunks/PRAC_Fill.js +0 -6
- package/chunks/PRAC_Fill.js.map +0 -1
- package/chunks/PRAC_Outline.js +0 -6
- package/chunks/PRAC_Outline.js.map +0 -1
- package/chunks/PVAC_Fill.js +0 -6
- package/chunks/PVAC_Fill.js.map +0 -1
- package/chunks/PVAC_Outline.js +0 -6
- package/chunks/PVAC_Outline.js.map +0 -1
- package/chunks/Paddle.js +0 -6
- package/chunks/Paddle.js.map +0 -1
- package/chunks/PaddleTennis.js +0 -6
- package/chunks/PaddleTennis.js.map +0 -1
- package/chunks/Padlock.js +0 -6
- package/chunks/Padlock.js.map +0 -1
- package/chunks/Parking.js +0 -6
- package/chunks/Parking.js.map +0 -1
- package/chunks/PaymentPlan.js +0 -6
- package/chunks/PaymentPlan.js.map +0 -1
- package/chunks/PeopleBaby.js +0 -6
- package/chunks/PeopleBaby.js.map +0 -1
- package/chunks/PeopleDouble.js +0 -6
- package/chunks/PeopleDouble.js.map +0 -1
- package/chunks/PeopleFamily.js +0 -6
- package/chunks/PeopleFamily.js.map +0 -1
- package/chunks/PeopleKids.js +0 -6
- package/chunks/PeopleKids.js.map +0 -1
- package/chunks/PeopleSingle.js +0 -6
- package/chunks/PeopleSingle.js.map +0 -1
- package/chunks/PeopleTeenagers.js +0 -6
- package/chunks/PeopleTeenagers.js.map +0 -1
- package/chunks/PetitClubMed.js +0 -6
- package/chunks/PetitClubMed.js.map +0 -1
- package/chunks/Phone.js +0 -6
- package/chunks/Phone.js.map +0 -1
- package/chunks/Photographer.js +0 -6
- package/chunks/Photographer.js.map +0 -1
- package/chunks/PickleBall.js +0 -6
- package/chunks/PickleBall.js.map +0 -1
- package/chunks/Pictures.js +0 -8
- package/chunks/Pictures.js.map +0 -1
- package/chunks/Pinterest.js +0 -6
- package/chunks/Pinterest.js.map +0 -1
- package/chunks/PlaneDefault.js +0 -6
- package/chunks/PlaneDefault.js.map +0 -1
- package/chunks/PlaneInBound.js +0 -6
- package/chunks/PlaneInBound.js.map +0 -1
- package/chunks/PlaneNoPlane.js +0 -6
- package/chunks/PlaneNoPlane.js.map +0 -1
- package/chunks/PlaneOutbound.js +0 -6
- package/chunks/PlaneOutbound.js.map +0 -1
- package/chunks/PlusDefault.js +0 -6
- package/chunks/PlusDefault.js.map +0 -1
- package/chunks/PlusFilled.js +0 -6
- package/chunks/PlusFilled.js.map +0 -1
- package/chunks/PlusOutlined.js +0 -6
- package/chunks/PlusOutlined.js.map +0 -1
- package/chunks/PoolView.js +0 -6
- package/chunks/PoolView.js.map +0 -1
- package/chunks/Pressing.js +0 -6
- package/chunks/Pressing.js.map +0 -1
- package/chunks/PrivateMeal.js +0 -6
- package/chunks/PrivateMeal.js.map +0 -1
- package/chunks/PromoCode.js +0 -6
- package/chunks/PromoCode.js.map +0 -1
- package/chunks/QCHC_EC_Fill.js +0 -6
- package/chunks/QCHC_EC_Fill.js.map +0 -1
- package/chunks/QCHC_EC_Outline.js +0 -6
- package/chunks/QCHC_EC_Outline.js.map +0 -1
- package/chunks/QCHC_Fill.js +0 -6
- package/chunks/QCHC_Fill.js.map +0 -1
- package/chunks/QCHC_Outline.js +0 -6
- package/chunks/QCHC_Outline.js.map +0 -1
- package/chunks/Questions.js +0 -6
- package/chunks/Questions.js.map +0 -1
- package/chunks/Quiche.js +0 -6
- package/chunks/Quiche.js.map +0 -1
- package/chunks/RBIC_Fill.js +0 -6
- package/chunks/RBIC_Fill.js.map +0 -1
- package/chunks/RBIC_Outline.js +0 -6
- package/chunks/RBIC_Outline.js.map +0 -1
- package/chunks/RDPC_EC_Fill.js +0 -6
- package/chunks/RDPC_EC_Fill.js.map +0 -1
- package/chunks/RDPC_EC_Outline.js +0 -6
- package/chunks/RDPC_EC_Outline.js.map +0 -1
- package/chunks/RDPC_Fill.js +0 -6
- package/chunks/RDPC_Fill.js.map +0 -1
- package/chunks/RDPC_Outline.js +0 -6
- package/chunks/RDPC_Outline.js.map +0 -1
- package/chunks/Reception.js +0 -6
- package/chunks/Reception.js.map +0 -1
- package/chunks/Reduce.js +0 -6
- package/chunks/Reduce.js.map +0 -1
- package/chunks/Reload.js +0 -6
- package/chunks/Reload.js.map +0 -1
- package/chunks/Restaurant.js +0 -6
- package/chunks/Restaurant.js.map +0 -1
- package/chunks/Restaurants.js +0 -6
- package/chunks/Restaurants.js.map +0 -1
- package/chunks/RoomSafe.js +0 -6
- package/chunks/RoomSafe.js.map +0 -1
- package/chunks/RoomService.js +0 -6
- package/chunks/RoomService.js.map +0 -1
- package/chunks/Running.js +0 -6
- package/chunks/Running.js.map +0 -1
- package/chunks/SAOC_Fill.js +0 -6
- package/chunks/SAOC_Fill.js.map +0 -1
- package/chunks/SAOC_Outline.js +0 -6
- package/chunks/SAOC_Outline.js.map +0 -1
- package/chunks/SCHC_Fill.js +0 -6
- package/chunks/SCHC_Fill.js.map +0 -1
- package/chunks/SCHC_Outline.js +0 -6
- package/chunks/SCHC_Outline.js.map +0 -1
- package/chunks/SEYC_EC_Fill.js +0 -6
- package/chunks/SEYC_EC_Fill.js.map +0 -1
- package/chunks/SEYC_EC_Outline.js +0 -6
- package/chunks/SEYC_EC_Outline.js.map +0 -1
- package/chunks/SMRC_Fill.js +0 -6
- package/chunks/SMRC_Fill.js.map +0 -1
- package/chunks/SMRC_Outline.js +0 -6
- package/chunks/SMRC_Outline.js.map +0 -1
- package/chunks/SMS.js +0 -6
- package/chunks/SMS.js.map +0 -1
- package/chunks/SafeReception.js +0 -6
- package/chunks/SafeReception.js.map +0 -1
- package/chunks/SafeRestaurant.js +0 -6
- package/chunks/SafeRestaurant.js.map +0 -1
- package/chunks/SafeSpa.js +0 -6
- package/chunks/SafeSpa.js.map +0 -1
- package/chunks/Sailing.js +0 -6
- package/chunks/Sailing.js.map +0 -1
- package/chunks/Salad.js +0 -6
- package/chunks/Salad.js.map +0 -1
- package/chunks/SaunaMen.js +0 -6
- package/chunks/SaunaMen.js.map +0 -1
- package/chunks/SaunaWomen.js +0 -6
- package/chunks/SaunaWomen.js.map +0 -1
- package/chunks/ScubaDiving.js +0 -6
- package/chunks/ScubaDiving.js.map +0 -1
- package/chunks/Search.js +0 -6
- package/chunks/Search.js.map +0 -1
- package/chunks/SeparatedRoom.js +0 -6
- package/chunks/SeparatedRoom.js.map +0 -1
- package/chunks/SeparatedWC.js +0 -6
- package/chunks/SeparatedWC.js.map +0 -1
- package/chunks/Shanwei_Fill.js +0 -6
- package/chunks/Shanwei_Fill.js.map +0 -1
- package/chunks/Shanwei_Outline.js +0 -6
- package/chunks/Shanwei_Outline.js.map +0 -1
- package/chunks/Share.js +0 -6
- package/chunks/Share.js.map +0 -1
- package/chunks/Shopping.js +0 -6
- package/chunks/Shopping.js.map +0 -1
- package/chunks/Shower.js +0 -6
- package/chunks/Shower.js.map +0 -1
- package/chunks/ShowerPMR.js +0 -6
- package/chunks/ShowerPMR.js.map +0 -1
- package/chunks/ShowerWC.js +0 -6
- package/chunks/ShowerWC.js.map +0 -1
- package/chunks/Size.js +0 -6
- package/chunks/Size.js.map +0 -1
- package/chunks/Ski.js +0 -6
- package/chunks/Ski.js.map +0 -1
- package/chunks/SkiInAndOut.js +0 -6
- package/chunks/SkiInAndOut.js.map +0 -1
- package/chunks/SkiRoom.js +0 -6
- package/chunks/SkiRoom.js.map +0 -1
- package/chunks/Smartphone.js +0 -6
- package/chunks/Smartphone.js.map +0 -1
- package/chunks/Snacks.js +0 -6
- package/chunks/Snacks.js.map +0 -1
- package/chunks/Snorkeling.js +0 -6
- package/chunks/Snorkeling.js.map +0 -1
- package/chunks/SnowSerenity.js +0 -6
- package/chunks/SnowSerenity.js.map +0 -1
- package/chunks/Snowboard.js +0 -6
- package/chunks/Snowboard.js.map +0 -1
- package/chunks/Snowshoeing.js +0 -6
- package/chunks/Snowshoeing.js.map +0 -1
- package/chunks/Soap.js +0 -6
- package/chunks/Soap.js.map +0 -1
- package/chunks/Solution.js +0 -6
- package/chunks/Solution.js.map +0 -1
- package/chunks/Soup.js +0 -6
- package/chunks/Soup.js.map +0 -1
- package/chunks/Spa.js +0 -6
- package/chunks/Spa.js.map +0 -1
- package/chunks/SpecialOffers.js +0 -6
- package/chunks/SpecialOffers.js.map +0 -1
- package/chunks/StarFilled.js +0 -6
- package/chunks/StarFilled.js.map +0 -1
- package/chunks/StarOutlined.js +0 -6
- package/chunks/StarOutlined.js.map +0 -1
- package/chunks/Sterilizer.js +0 -6
- package/chunks/Sterilizer.js.map +0 -1
- package/chunks/Stroller.js +0 -6
- package/chunks/Stroller.js.map +0 -1
- package/chunks/SunView.js +0 -6
- package/chunks/SunView.js.map +0 -1
- package/chunks/Surf.js +0 -6
- package/chunks/Surf.js.map +0 -1
- package/chunks/SvgIcon.js +0 -34
- package/chunks/SvgIcon.js.map +0 -1
- package/chunks/SvgIconResolver.js +0 -15
- package/chunks/SvgIconResolver.js.map +0 -1
- package/chunks/SvgUseIcon.js +0 -33
- package/chunks/SvgUseIcon.js.map +0 -1
- package/chunks/SvgUseIconResolver.js +0 -16
- package/chunks/SvgUseIconResolver.js.map +0 -1
- package/chunks/SwimmingArea.js +0 -6
- package/chunks/SwimmingArea.js.map +0 -1
- package/chunks/TIGC_EC_Fill.js +0 -6
- package/chunks/TIGC_EC_Fill.js.map +0 -1
- package/chunks/TIGC_EC_Outline.js +0 -6
- package/chunks/TIGC_EC_Outline.js.map +0 -1
- package/chunks/TIGC_Fill.js +0 -6
- package/chunks/TIGC_Fill.js.map +0 -1
- package/chunks/TIGC_Outline.js +0 -6
- package/chunks/TIGC_Outline.js.map +0 -1
- package/chunks/TOMC_Fill.js +0 -6
- package/chunks/TOMC_Fill.js.map +0 -1
- package/chunks/TOMC_Outline.js +0 -6
- package/chunks/TOMC_Outline.js.map +0 -1
- package/chunks/TRAC_Fill.js +0 -6
- package/chunks/TRAC_Fill.js.map +0 -1
- package/chunks/TRAC_Outline.js +0 -6
- package/chunks/TRAC_Outline.js.map +0 -1
- package/chunks/TURC_Fill.js +0 -6
- package/chunks/TURC_Fill.js.map +0 -1
- package/chunks/TURC_Outline.js +0 -6
- package/chunks/TURC_Outline.js.map +0 -1
- package/chunks/TV.js +0 -6
- package/chunks/TV.js.map +0 -1
- package/chunks/TableTennis.js +0 -6
- package/chunks/TableTennis.js.map +0 -1
- package/chunks/Taican_Outline.js +0 -6
- package/chunks/Taican_Outline.js.map +0 -1
- package/chunks/Taicang_Fill.js +0 -6
- package/chunks/Taicang_Fill.js.map +0 -1
- package/chunks/TakeAway.js +0 -6
- package/chunks/TakeAway.js.map +0 -1
- package/chunks/Tapas.js +0 -6
- package/chunks/Tapas.js.map +0 -1
- package/chunks/TeaMaker.js +0 -6
- package/chunks/TeaMaker.js.map +0 -1
- package/chunks/Teens.js +0 -6
- package/chunks/Teens.js.map +0 -1
- package/chunks/TemperatureCheck.js +0 -6
- package/chunks/TemperatureCheck.js.map +0 -1
- package/chunks/Tennis.js +0 -6
- package/chunks/Tennis.js.map +0 -1
- package/chunks/ThaiBoxing.js +0 -6
- package/chunks/ThaiBoxing.js.map +0 -1
- package/chunks/Thaiwoo_Fill.js +0 -6
- package/chunks/Thaiwoo_Fill.js.map +0 -1
- package/chunks/Thaiwoo_Outline.js +0 -6
- package/chunks/Thaiwoo_Outline.js.map +0 -1
- package/chunks/Theater.js +0 -6
- package/chunks/Theater.js.map +0 -1
- package/chunks/Train.js +0 -6
- package/chunks/Train.js.map +0 -1
- package/chunks/Trapeze.js +0 -6
- package/chunks/Trapeze.js.map +0 -1
- package/chunks/TreeClimbing.js +0 -6
- package/chunks/TreeClimbing.js.map +0 -1
- package/chunks/Trident.js +0 -6
- package/chunks/Trident.js.map +0 -1
- package/chunks/TripAdvisor.js +0 -6
- package/chunks/TripAdvisor.js.map +0 -1
- package/chunks/TripAdvisorMonogram.js +0 -6
- package/chunks/TripAdvisorMonogram.js.map +0 -1
- package/chunks/Twitter.js +0 -6
- package/chunks/Twitter.js.map +0 -1
- package/chunks/Utah_EC_Fill.js +0 -6
- package/chunks/Utah_EC_Fill.js.map +0 -1
- package/chunks/Utah_EC_Outline.js +0 -6
- package/chunks/Utah_EC_Outline.js.map +0 -1
- package/chunks/VDIC_EC_Fill.js +0 -6
- package/chunks/VDIC_EC_Fill.js.map +0 -1
- package/chunks/VDIC_EC_Outline.js +0 -6
- package/chunks/VDIC_EC_Outline.js.map +0 -1
- package/chunks/VERC_Fill.js +0 -6
- package/chunks/VERC_Fill.js.map +0 -1
- package/chunks/VERC_Outline.js +0 -6
- package/chunks/VERC_Outline.js.map +0 -1
- package/chunks/VK.js +0 -6
- package/chunks/VK.js.map +0 -1
- package/chunks/VMOC_EC_Fill.js +0 -6
- package/chunks/VMOC_EC_Fill.js.map +0 -1
- package/chunks/VMOC_EC_Outline.js +0 -6
- package/chunks/VMOC_EC_Outline.js.map +0 -1
- package/chunks/VMOC_Fill.js +0 -6
- package/chunks/VMOC_Fill.js.map +0 -1
- package/chunks/VMOC_Outline.js +0 -6
- package/chunks/VMOC_Outline.js.map +0 -1
- package/chunks/VMOV_EC_Fill.js +0 -6
- package/chunks/VMOV_EC_Fill.js.map +0 -1
- package/chunks/VMOV_EC_Outline.js +0 -6
- package/chunks/VMOV_EC_Outline.js.map +0 -1
- package/chunks/VTHC_Fill.js +0 -6
- package/chunks/VTHC_Fill.js.map +0 -1
- package/chunks/VTHC_Outline.js +0 -6
- package/chunks/VTHC_Outline.js.map +0 -1
- package/chunks/VTT.js +0 -6
- package/chunks/VTT.js.map +0 -1
- package/chunks/Vegan.js +0 -6
- package/chunks/Vegan.js.map +0 -1
- package/chunks/Vegetables.js +0 -6
- package/chunks/Vegetables.js.map +0 -1
- package/chunks/Vegetarian.js +0 -6
- package/chunks/Vegetarian.js.map +0 -1
- package/chunks/VideoSurveillance.js +0 -6
- package/chunks/VideoSurveillance.js.map +0 -1
- package/chunks/Videos.js +0 -8
- package/chunks/Videos.js.map +0 -1
- package/chunks/Vine.js +0 -6
- package/chunks/Vine.js.map +0 -1
- package/chunks/Visible.js +0 -6
- package/chunks/Visible.js.map +0 -1
- package/chunks/VoiceMail.js +0 -6
- package/chunks/VoiceMail.js.map +0 -1
- package/chunks/Volleyball.js +0 -6
- package/chunks/Volleyball.js.map +0 -1
- package/chunks/WIFI.js +0 -6
- package/chunks/WIFI.js.map +0 -1
- package/chunks/WashHands.js +0 -6
- package/chunks/WashHands.js.map +0 -1
- package/chunks/WaterFountain.js +0 -6
- package/chunks/WaterFountain.js.map +0 -1
- package/chunks/WaterSkiing.js +0 -6
- package/chunks/WaterSkiing.js.map +0 -1
- package/chunks/WaterVolley.js +0 -6
- package/chunks/WaterVolley.js.map +0 -1
- package/chunks/Waterpolo.js +0 -6
- package/chunks/Waterpolo.js.map +0 -1
- package/chunks/WeChat.js +0 -6
- package/chunks/WeChat.js.map +0 -1
- package/chunks/WeChatPay.js +0 -6
- package/chunks/WeChatPay.js.map +0 -1
- package/chunks/Weibo.js +0 -6
- package/chunks/Weibo.js.map +0 -1
- package/chunks/WelcomeGift.js +0 -6
- package/chunks/WelcomeGift.js.map +0 -1
- package/chunks/WellBeingAtWork.js +0 -6
- package/chunks/WellBeingAtWork.js.map +0 -1
- package/chunks/WhatsApp.js +0 -6
- package/chunks/WhatsApp.js.map +0 -1
- package/chunks/Windsurf.js +0 -6
- package/chunks/Windsurf.js.map +0 -1
- package/chunks/Wine.js +0 -6
- package/chunks/Wine.js.map +0 -1
- package/chunks/WineCellar.js +0 -6
- package/chunks/WineCellar.js.map +0 -1
- package/chunks/Wingfoil.js +0 -6
- package/chunks/Wingfoil.js.map +0 -1
- package/chunks/WinterHiking.js +0 -6
- package/chunks/WinterHiking.js.map +0 -1
- package/chunks/WithView.js +0 -6
- package/chunks/WithView.js.map +0 -1
- package/chunks/XLIJ_Fill.js +0 -6
- package/chunks/XLIJ_Fill.js.map +0 -1
- package/chunks/XLIJ_Outline.js +0 -6
- package/chunks/XLIJ_Outline.js.map +0 -1
- package/chunks/YABC_Fill.js +0 -6
- package/chunks/YABC_Fill.js.map +0 -1
- package/chunks/YABC_Outline.js +0 -6
- package/chunks/YABC_Outline.js.map +0 -1
- package/chunks/YANJ_Fill.js +0 -6
- package/chunks/YANJ_Fill.js.map +0 -1
- package/chunks/YANJ_Outline.js +0 -6
- package/chunks/YANJ_Outline.js.map +0 -1
- package/chunks/YASC_Fill.js +0 -6
- package/chunks/YASC_Fill.js.map +0 -1
- package/chunks/YASC_Outline.js +0 -6
- package/chunks/YASC_Outline.js.map +0 -1
- package/chunks/Yoga.js +0 -6
- package/chunks/Yoga.js.map +0 -1
- package/chunks/YouTube.js +0 -6
- package/chunks/YouTube.js.map +0 -1
- package/chunks/ZenPool.js +0 -6
- package/chunks/ZenPool.js.map +0 -1
- package/chunks/index2.js +0 -77
- package/chunks/index2.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateField.js","sources":["../../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../../../node_modules/date-fns/esm/toDate/index.js","../../../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../../../node_modules/date-fns/esm/formatISO/index.js","../../../lib/molecules/Forms/DateField.tsx"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","export default function addLeadingZeros(number, targetLength) {\n var sign = number < 0 ? '-' : '';\n var output = Math.abs(number).toString();\n while (output.length < targetLength) {\n output = '0' + output;\n }\n return sign + output;\n}","import toDate from \"../toDate/index.js\";\nimport addLeadingZeros from \"../_lib/addLeadingZeros/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatISO\n * @category Common Helpers\n * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).\n *\n * @description\n * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.\n * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both.\n * @returns {String} the formatted date string (in local time zone)\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.format` must be 'extended' or 'basic'\n * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918T190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, date only:\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52Z'\n */\nexport default function formatISO(date, options) {\n var _options$format, _options$representati;\n requiredArgs(1, arguments);\n var originalDate = toDate(date);\n if (isNaN(originalDate.getTime())) {\n throw new RangeError('Invalid time value');\n }\n var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended');\n var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete');\n if (format !== 'extended' && format !== 'basic') {\n throw new RangeError(\"format must be 'extended' or 'basic'\");\n }\n if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {\n throw new RangeError(\"representation must be 'date', 'time', or 'complete'\");\n }\n var result = '';\n var tzOffset = '';\n var dateDelimiter = format === 'extended' ? '-' : '';\n var timeDelimiter = format === 'extended' ? ':' : '';\n\n // Representation is either 'date' or 'complete'\n if (representation !== 'time') {\n var day = addLeadingZeros(originalDate.getDate(), 2);\n var month = addLeadingZeros(originalDate.getMonth() + 1, 2);\n var year = addLeadingZeros(originalDate.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = \"\".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== 'date') {\n // Add the timezone.\n var offset = originalDate.getTimezoneOffset();\n if (offset !== 0) {\n var absoluteOffset = Math.abs(offset);\n var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2);\n var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n var sign = offset < 0 ? '+' : '-';\n tzOffset = \"\".concat(sign).concat(hourOffset, \":\").concat(minuteOffset);\n } else {\n tzOffset = 'Z';\n }\n var hour = addLeadingZeros(originalDate.getHours(), 2);\n var minute = addLeadingZeros(originalDate.getMinutes(), 2);\n var second = addLeadingZeros(originalDate.getSeconds(), 2);\n\n // If there's also date, separate it with time with 'T'\n var separator = result === '' ? '' : 'T';\n\n // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined.\n var time = [hour, minute, second].join(timeDelimiter);\n\n // HHmmss or HH:mm:ss.\n result = \"\".concat(result).concat(separator).concat(time).concat(tzOffset);\n }\n return result;\n}","import classnames from 'classnames';\nimport { formatISO } from 'date-fns';\nimport { type ChangeEvent, useId, useRef } from 'react';\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\nimport { useValue } from '@/hooks/useValue.js';\nimport { useInternalStatus } from '@/hooks/useInternalStatus.js';\nimport { FormControl, type FormControlProps } from './FormControl.js';\n\ninterface DateFieldProps extends Omit<FormControlProps<Date | null>, 'max' | 'min'> {\n description?: string;\n /**\n * Open datepicker text\n */\n openDatepicker?: string;\n id?: string;\n icon?: IconicNames;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n /**\n * Minimum Date allowed\n */\n min?: Date | undefined;\n /**\n * Maximum Date allowed\n */\n max?: Date | undefined;\n}\n\nconst formatDate = (value: Date | number | undefined | null): string => {\n if (!value) {\n return '';\n }\n\n return formatISO(new Date(value), { representation: 'date' });\n};\n\nexport const DateField = (props: DateFieldProps) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n description,\n openDatepicker,\n validationStatus = 'default',\n icon = 'CalendarDefault',\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n dataTestId = 'DateField',\n value: initialValue,\n min: initialMin,\n max: initialMax,\n onChange,\n ...rest\n } = props;\n\n // NO LOGIC IS IMPLEMENTED YET HERE\n // THIS IS A VISUAL COMPONENT ONLY\n const ref = useRef<HTMLInputElement>(null);\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const { setValue, value } = useValue<string, Date | number | undefined | null>({\n name,\n formatter: formatDate as never,\n initialValue,\n onChange: (name, value) => onChange?.(name, new Date(value)),\n });\n\n const min = formatDate(initialMin);\n const max = formatDate(initialMax);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value);\n };\n\n const handleClickPicker = () => {\n ref.current?.showPicker();\n };\n\n return (\n <FormControl\n id={id}\n label={label}\n description={description}\n dataName=\"DateField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n type=\"date\"\n className={classnames(\n 'text-b3 rounded-pill date-field min-h-[50px] w-full border px-20 py-12 ps-[52px] font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black':\n internalStatus === 'default',\n 'pe-[52px]': internalStatus === 'error' || internalStatus === 'success',\n 'bg-pearl text-grey': disabled,\n 'bg-white text-black': !disabled,\n 'border-red': !disabled && internalStatus === 'error',\n 'border-green': !disabled && internalStatus === 'success',\n },\n )}\n id={id}\n disabled={disabled}\n required={required}\n ref={ref}\n value={value}\n min={min}\n max={max}\n onChange={handleChange}\n />\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n {\n 'text-grey': disabled,\n 'text-red': !disabled && internalStatus === 'error',\n 'text-green': !disabled && internalStatus === 'success',\n },\n )}\n >\n <button className=\"pointer-events-auto leading-none\" onClick={handleClickPicker}>\n <Icon name={icon} iconType={iconType} width=\"24px\" />\n <span className=\"sr-only\">\n {openDatepicker}\n {/* REPLACE THAT WITH SOMETHING LIKE \"OPEN DATEPICKER\" SOONER RATHER THAN LATER PLZ */}\n </span>\n </button>\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && <Icon name=\"CrossDefault\" width=\"24px\" />}\n {internalStatus === 'success' && <Icon name=\"CheckDefault\" width=\"24px\" />}\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["_typeof","o","requiredArgs","required","args","toDate","argument","argStr","addLeadingZeros","number","targetLength","sign","output","formatISO","date","options","_options$format","_options$representati","originalDate","format","representation","result","tzOffset","dateDelimiter","timeDelimiter","day","month","year","offset","absoluteOffset","hourOffset","minuteOffset","hour","minute","second","separator","time","formatDate","value","DateField","props","internalId","useId","id","name","label","description","openDatepicker","validationStatus","icon","iconType","errorMessage","disabled","hideRequiredStar","dataTestId","initialValue","initialMin","initialMax","onChange","rest","ref","useRef","internalStatus","useInternalStatus","setValue","useValue","min","max","handleChange","event","handleClickPicker","_a","jsx","FormControl","jsxs","classnames","Icon"],"mappings":";;;;;;;AAAe,SAASA,EAAQC,GAAG;AACjC;AAEA,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAChG,WAAO,OAAOA;AAAA,EACf,IAAG,SAAUA,GAAG;AACf,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EACtH,GAAKD,EAAQC,CAAC;AACd;ACRe,SAASC,EAAaC,GAAUC,GAAM;AACnD,MAAIA,EAAK,SAASD;AAChB,UAAM,IAAI,UAAUA,IAAW,kCAAmEC,EAAK,SAAS,UAAU;AAE9H;AC4Be,SAASC,EAAOC,GAAU;AACvC,EAAAJ,EAAa,GAAG,SAAS;AACzB,MAAIK,IAAS,OAAO,UAAU,SAAS,KAAKD,CAAQ;AAGpD,SAAIA,aAAoB,QAAQN,EAAQM,CAAQ,MAAM,YAAYC,MAAW,kBAEpE,IAAI,KAAKD,EAAS,QA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helpers/esm/typeof.js","../../../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../../../node_modules/date-fns/esm/toDate/index.js","../../../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../../../node_modules/date-fns/esm/formatISO/index.js","../../../lib/molecules/Forms/DateField.tsx"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');\n }\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument);\n\n // Clone the date\n if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments\");\n // eslint-disable-next-line no-console\n console.warn(new Error().stack);\n }\n return new Date(NaN);\n }\n}","export default function addLeadingZeros(number, targetLength) {\n var sign = number < 0 ? '-' : '';\n var output = Math.abs(number).toString();\n while (output.length < targetLength) {\n output = '0' + output;\n }\n return sign + output;\n}","import toDate from \"../toDate/index.js\";\nimport addLeadingZeros from \"../_lib/addLeadingZeros/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatISO\n * @category Common Helpers\n * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).\n *\n * @description\n * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.\n *\n * @param {Date|Number} date - the original date\n * @param {Object} [options] - an object with options.\n * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.\n * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both.\n * @returns {String} the formatted date string (in local time zone)\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.format` must be 'extended' or 'basic'\n * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18T19:00:52Z'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918T190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, date only:\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC):\n * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52Z'\n */\nexport default function formatISO(date, options) {\n var _options$format, _options$representati;\n requiredArgs(1, arguments);\n var originalDate = toDate(date);\n if (isNaN(originalDate.getTime())) {\n throw new RangeError('Invalid time value');\n }\n var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended');\n var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete');\n if (format !== 'extended' && format !== 'basic') {\n throw new RangeError(\"format must be 'extended' or 'basic'\");\n }\n if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {\n throw new RangeError(\"representation must be 'date', 'time', or 'complete'\");\n }\n var result = '';\n var tzOffset = '';\n var dateDelimiter = format === 'extended' ? '-' : '';\n var timeDelimiter = format === 'extended' ? ':' : '';\n\n // Representation is either 'date' or 'complete'\n if (representation !== 'time') {\n var day = addLeadingZeros(originalDate.getDate(), 2);\n var month = addLeadingZeros(originalDate.getMonth() + 1, 2);\n var year = addLeadingZeros(originalDate.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = \"\".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== 'date') {\n // Add the timezone.\n var offset = originalDate.getTimezoneOffset();\n if (offset !== 0) {\n var absoluteOffset = Math.abs(offset);\n var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2);\n var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2);\n // If less than 0, the sign is +, because it is ahead of time.\n var sign = offset < 0 ? '+' : '-';\n tzOffset = \"\".concat(sign).concat(hourOffset, \":\").concat(minuteOffset);\n } else {\n tzOffset = 'Z';\n }\n var hour = addLeadingZeros(originalDate.getHours(), 2);\n var minute = addLeadingZeros(originalDate.getMinutes(), 2);\n var second = addLeadingZeros(originalDate.getSeconds(), 2);\n\n // If there's also date, separate it with time with 'T'\n var separator = result === '' ? '' : 'T';\n\n // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined.\n var time = [hour, minute, second].join(timeDelimiter);\n\n // HHmmss or HH:mm:ss.\n result = \"\".concat(result).concat(separator).concat(time).concat(tzOffset);\n }\n return result;\n}","import classnames from 'classnames';\nimport { formatISO } from 'date-fns';\nimport { type ChangeEvent, useId, useRef } from 'react';\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\n\nimport { useValue } from '@/hooks/useValue.js';\nimport { useInternalStatus } from '@/hooks/useInternalStatus.js';\nimport { FormControl, type FormControlProps } from './FormControl.js';\n\ninterface DateFieldProps extends Omit<FormControlProps<Date | null>, 'max' | 'min'> {\n description?: string;\n /**\n * Open datepicker text\n */\n openDatepicker?: string;\n id?: string;\n icon?: IconicNames;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n /**\n * Minimum Date allowed\n */\n min?: Date | undefined;\n /**\n * Maximum Date allowed\n */\n max?: Date | undefined;\n}\n\nconst formatDate = (value: Date | number | undefined | null): string => {\n if (!value) {\n return '';\n }\n\n return formatISO(new Date(value), { representation: 'date' });\n};\n\nexport const DateField = (props: DateFieldProps) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n description,\n openDatepicker,\n validationStatus = 'default',\n icon = 'CalendarDefault',\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n dataTestId = 'DateField',\n value: initialValue,\n min: initialMin,\n max: initialMax,\n onChange,\n ...rest\n } = props;\n\n // NO LOGIC IS IMPLEMENTED YET HERE\n // THIS IS A VISUAL COMPONENT ONLY\n const ref = useRef<HTMLInputElement>(null);\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const { setValue, value } = useValue<string, Date | number | undefined | null>({\n name,\n formatter: formatDate as never,\n initialValue,\n onChange: (name, value) => onChange?.(name, new Date(value)),\n });\n\n const min = formatDate(initialMin);\n const max = formatDate(initialMax);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setValue(event.target.value);\n };\n\n const handleClickPicker = () => {\n ref.current?.showPicker();\n };\n\n return (\n <FormControl\n id={id}\n label={label}\n description={description}\n dataName=\"DateField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n type=\"date\"\n className={classnames(\n 'text-b3 rounded-pill date-field min-h-[50px] w-full border px-20 py-12 ps-[52px] font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black':\n internalStatus === 'default',\n 'pe-[52px]': internalStatus === 'error' || internalStatus === 'success',\n 'bg-pearl text-grey': disabled,\n 'bg-white text-black': !disabled,\n 'border-red': !disabled && internalStatus === 'error',\n 'border-green': !disabled && internalStatus === 'success',\n },\n )}\n id={id}\n disabled={disabled}\n required={required}\n ref={ref}\n value={value}\n min={min}\n max={max}\n onChange={handleChange}\n />\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n {\n 'text-grey': disabled,\n 'text-red': !disabled && internalStatus === 'error',\n 'text-green': !disabled && internalStatus === 'success',\n },\n )}\n >\n <button className=\"pointer-events-auto leading-none\" onClick={handleClickPicker}>\n <Icon name={icon} iconType={iconType} width=\"24px\" />\n <span className=\"sr-only\">\n {openDatepicker}\n {/* REPLACE THAT WITH SOMETHING LIKE \"OPEN DATEPICKER\" SOONER RATHER THAN LATER PLZ */}\n </span>\n </button>\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && <Icon name=\"CrossDefault\" width=\"24px\" />}\n {internalStatus === 'success' && <Icon name=\"CheckDefault\" width=\"24px\" />}\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["_typeof","o","requiredArgs","required","args","toDate","argument","argStr","addLeadingZeros","number","targetLength","sign","output","formatISO","date","options","_options$format","_options$representati","originalDate","format","representation","result","tzOffset","dateDelimiter","timeDelimiter","day","month","year","offset","absoluteOffset","hourOffset","minuteOffset","hour","minute","second","separator","time","formatDate","value","DateField","props","internalId","useId","id","name","label","description","openDatepicker","validationStatus","icon","iconType","errorMessage","disabled","hideRequiredStar","dataTestId","initialValue","initialMin","initialMax","onChange","rest","ref","useRef","internalStatus","useInternalStatus","setValue","useValue","min","max","handleChange","event","handleClickPicker","_a","jsx","FormControl","jsxs","classnames","Icon"],"mappings":";;;;;;;;AAAe,SAASA,EAAQC,GAAG;AACjC;AAEA,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAChG,WAAO,OAAOA;AAAA,EACf,IAAG,SAAUA,GAAG;AACf,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EACtH,GAAKD,EAAQC,CAAC;AACd;ACRe,SAASC,EAAaC,GAAUC,GAAM;AACnD,MAAIA,EAAK,SAASD;AAChB,UAAM,IAAI,UAAUA,IAAW,kCAAmEC,EAAK,SAAS,UAAU;AAE9H;AC4Be,SAASC,EAAOC,GAAU;AACvC,EAAAJ,EAAa,GAAG,SAAS;AACzB,MAAIK,IAAS,OAAO,UAAU,SAAS,KAAKD,CAAQ;AAGpD,SAAIA,aAAoB,QAAQN,EAAQM,CAAQ,MAAM,YAAYC,MAAW,kBAEpE,IAAI,KAAKD,EAAS,QAAS,CAAA,IACzB,OAAOA,KAAa,YAAYC,MAAW,oBAC7C,IAAI,KAAKD,CAAQ,MAEnB,OAAOA,KAAa,YAAYC,MAAW,sBAAsB,OAAO,UAAY,QAEvF,QAAQ,KAAK,oNAAoN,GAEjO,QAAQ,KAAK,IA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mB;AAAA,cAClD;AAAA,YACF;AAAA,YACA,IAAAnB;AAAA,YACA,UAAAS;AAAA,YACA,UAAAjD;AAAA,YACA,KAAAyD;AAAA,YACA,OAAAtB;AAAA,YACA,KAAA4B;AAAA,YACA,KAAAC;AAAA,YACA,UAAUC;AAAA,UAAA;AAAA,QACZ;AAAA,QACA,gBAAAM;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC;AAAA,cACT;AAAA,cACA;AAAA,gBACE,aAAavB;AAAA,gBACb,YAAY,CAACA,KAAYU,MAAmB;AAAA,gBAC5C,cAAc,CAACV,KAAYU,MAAmB;AAAA,cAChD;AAAA,YACF;AAAA,YAEA,UAAA;AAAA,cAAA,gBAAAY,EAAC,UAAO,EAAA,WAAU,oCAAmC,SAASJ,GAC5D,UAAA;AAAA,gBAAA,gBAAAE,EAACI,GAAK,EAAA,MAAM3B,GAAM,UAAAC,GAAoB,OAAM,QAAO;AAAA,gBAClD,gBAAAsB,EAAA,QAAA,EAAK,WAAU,WACb,UAEHzB,GAAA;AAAA,cAAA,GACF;AAAA,cACA,gBAAA2B,EAAC,QAAK,EAAA,WAAU,wBACb,UAAA;AAAA,gBAAAZ,MAAmB,WAAY,gBAAAU,EAAAI,GAAA,EAAK,MAAK,gBAAe,OAAM,QAAO;AAAA,gBACrEd,MAAmB,aAAa,gBAAAU,EAACI,KAAK,MAAK,gBAAe,OAAM,QAAO;AAAA,cAAA,GAC1E;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN;","x_google_ignoreList":[0,1,2,3,4]}
|
@@ -2,15 +2,16 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { c as r } from "../../chunks/index.js";
|
3
3
|
import { useId as D } from "react";
|
4
4
|
/* empty css */
|
5
|
-
import { Icon as c } from "
|
5
|
+
import { Icon as c } from "../../atoms/Icons/Icon.js";
|
6
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
6
7
|
import { useValue as N } from "../../hooks/useValue.js";
|
7
|
-
function
|
8
|
+
function T(m) {
|
8
9
|
const d = D(), {
|
9
|
-
id:
|
10
|
-
name: l =
|
11
|
-
className:
|
10
|
+
id: p = d,
|
11
|
+
name: l = p,
|
12
|
+
className: u,
|
12
13
|
dataTestId: h,
|
13
|
-
disabled:
|
14
|
+
disabled: o,
|
14
15
|
checked: f = !1,
|
15
16
|
value: a,
|
16
17
|
tabIndex: b = 0,
|
@@ -18,14 +19,14 @@ function A(m) {
|
|
18
19
|
hasDropdown: x,
|
19
20
|
children: k,
|
20
21
|
...w
|
21
|
-
} = m, { value:
|
22
|
+
} = m, { value: n, setValue: I } = N({
|
22
23
|
name: l,
|
23
24
|
initialValue: f,
|
24
25
|
onChange(v, s) {
|
25
26
|
t == null || t(v, s ? a !== void 0 ? a : s : null);
|
26
27
|
}
|
27
28
|
});
|
28
|
-
return /* @__PURE__ */ i("label", { className: r(
|
29
|
+
return /* @__PURE__ */ i("label", { className: r(u, "relative"), children: [
|
29
30
|
/* @__PURE__ */ e(
|
30
31
|
"input",
|
31
32
|
{
|
@@ -35,11 +36,11 @@ function A(m) {
|
|
35
36
|
type: "checkbox",
|
36
37
|
tabIndex: b,
|
37
38
|
onChange: () => {
|
38
|
-
!
|
39
|
+
!o && I(!n);
|
39
40
|
},
|
40
|
-
checked:
|
41
|
+
checked: n,
|
41
42
|
"data-name": "Filter",
|
42
|
-
disabled:
|
43
|
+
disabled: o,
|
43
44
|
value: a
|
44
45
|
}
|
45
46
|
),
|
@@ -51,6 +52,6 @@ function A(m) {
|
|
51
52
|
] });
|
52
53
|
}
|
53
54
|
export {
|
54
|
-
|
55
|
+
T as Filter
|
55
56
|
};
|
56
57
|
//# sourceMappingURL=Filter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Filter.js","sources":["../../../lib/molecules/Forms/Filter.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { type InputHTMLAttributes, useId } from 'react';\nimport './controls.css';\nimport { Icon } from '@/atoms/Icons';\nimport { useValue } from '@/hooks/useValue.js';\n\nexport interface FilterProps<Value = string>\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {\n /**\n * The data-testid to apply to the button.\n * This is used for testing purposes.\n * */\n dataTestId?: string;\n /**\n * Is it attached to a dropdown?\n */\n hasDropdown?: boolean;\n\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Filter<Value = string>(props: FilterProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n className,\n dataTestId,\n disabled,\n checked: initialChecked = false,\n value,\n tabIndex = 0,\n onChange,\n hasDropdown,\n children,\n ...rest\n } = props;\n\n const { value: checked, setValue } = useValue<boolean>({\n name,\n initialValue: initialChecked,\n onChange(name, checked) {\n onChange?.(name, checked ? ((value !== undefined ? value : checked) as Value) : null);\n },\n });\n\n return (\n <label className={classnames(className, 'relative')}>\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n !disabled && setValue(!checked);\n }}\n checked={checked}\n data-name=\"Filter\"\n disabled={disabled}\n value={value}\n />\n <span>\n <span className={classnames('text-b3 font-semibold')}>{children}</span>\n <Icon width={null} name=\"CheckDefault\" color=\"black\" />\n {hasDropdown && (\n <Icon name=\"ArrowDefaultDown\" className=\"ml-8\" width=\"24px\" color=\"black\" />\n )}\n </span>\n </label>\n );\n}\n"],"names":["Filter","props","internalId","useId","id","name","className","dataTestId","disabled","initialChecked","value","tabIndex","onChange","hasDropdown","children","rest","checked","setValue","useValue","classnames","jsx","Icon"],"mappings":"
|
1
|
+
{"version":3,"file":"Filter.js","sources":["../../../lib/molecules/Forms/Filter.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { type InputHTMLAttributes, useId } from 'react';\nimport './controls.css';\nimport { Icon } from '@/atoms/Icons';\nimport { useValue } from '@/hooks/useValue.js';\n\nexport interface FilterProps<Value = string>\n extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {\n /**\n * The data-testid to apply to the button.\n * This is used for testing purposes.\n * */\n dataTestId?: string;\n /**\n * Is it attached to a dropdown?\n */\n hasDropdown?: boolean;\n\n onChange?: (name: string, value: Value | null) => void;\n}\n\nexport function Filter<Value = string>(props: FilterProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n className,\n dataTestId,\n disabled,\n checked: initialChecked = false,\n value,\n tabIndex = 0,\n onChange,\n hasDropdown,\n children,\n ...rest\n } = props;\n\n const { value: checked, setValue } = useValue<boolean>({\n name,\n initialValue: initialChecked,\n onChange(name, checked) {\n onChange?.(name, checked ? ((value !== undefined ? value : checked) as Value) : null);\n },\n });\n\n return (\n <label className={classnames(className, 'relative')}>\n <input\n {...rest}\n name={name}\n data-testid={dataTestId}\n type=\"checkbox\"\n tabIndex={tabIndex}\n onChange={() => {\n !disabled && setValue(!checked);\n }}\n checked={checked}\n data-name=\"Filter\"\n disabled={disabled}\n value={value}\n />\n <span>\n <span className={classnames('text-b3 font-semibold')}>{children}</span>\n <Icon width={null} name=\"CheckDefault\" color=\"black\" />\n {hasDropdown && (\n <Icon name=\"ArrowDefaultDown\" className=\"ml-8\" width=\"24px\" color=\"black\" />\n )}\n </span>\n </label>\n );\n}\n"],"names":["Filter","props","internalId","useId","id","name","className","dataTestId","disabled","initialChecked","value","tabIndex","onChange","hasDropdown","children","rest","checked","setValue","useValue","classnames","jsx","Icon"],"mappings":";;;;;;;AAqBO,SAASA,EAAuBC,GAA2B;AAChE,QAAMC,IAAaC,KAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,WAAAE;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAASC,IAAiB;AAAA,IAC1B,OAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAd,GAEE,EAAE,OAAOe,GAAS,UAAAC,EAAA,IAAaC,EAAkB;AAAA,IACrD,MAAAb;AAAA,IACA,cAAcI;AAAA,IACd,SAASJ,GAAMW,GAAS;AACtB,MAAAJ,KAAA,QAAAA,EAAWP,GAAMW,IAAYN,MAAU,SAAYA,IAAQM,IAAqB;AAAA,IAClF;AAAA,EAAA,CACD;AAED,2BACG,SAAM,EAAA,WAAWG,EAAWb,GAAW,UAAU,GAChD,UAAA;AAAA,IAAA,gBAAAc;AAAA,MAAC;AAAA,MAAA;AAAA,QACE,GAAGL;AAAA,QACJ,MAAAV;AAAA,QACA,eAAaE;AAAA,QACb,MAAK;AAAA,QACL,UAAAI;AAAA,QACA,UAAU,MAAM;AACb,WAAAH,KAAYS,EAAS,CAACD,CAAO;AAAA,QAChC;AAAA,QACA,SAAAA;AAAA,QACA,aAAU;AAAA,QACV,UAAAR;AAAA,QACA,OAAAE;AAAA,MAAA;AAAA,IACF;AAAA,sBACC,QACC,EAAA,UAAA;AAAA,MAAA,gBAAAU,EAAC,QAAK,EAAA,WAAWD,EAAW,uBAAuB,GAAI,UAAAL,GAAS;AAAA,wBAC/DO,GAAK,EAAA,OAAO,MAAM,MAAK,gBAAe,OAAM,SAAQ;AAAA,MACpDR,KACE,gBAAAO,EAAAC,GAAA,EAAK,MAAK,oBAAmB,WAAU,QAAO,OAAM,QAAO,OAAM,QAAQ,CAAA;AAAA,IAAA,GAE9E;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
@@ -1,33 +1,34 @@
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
2
2
|
import { useInternalStatus as h } from "../../hooks/useInternalStatus.js";
|
3
3
|
import { FormLabel as S } from "./FormLabel.js";
|
4
|
-
import { Icon as b } from "
|
4
|
+
import { Icon as b } from "../../atoms/Icons/Icon.js";
|
5
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
5
6
|
import { c as g } from "../../chunks/index.js";
|
6
|
-
const
|
7
|
+
const w = ({
|
7
8
|
id: t,
|
8
9
|
label: r,
|
9
10
|
description: o,
|
10
|
-
disabled:
|
11
|
-
required:
|
12
|
-
className:
|
13
|
-
validationStatus:
|
14
|
-
children:
|
11
|
+
disabled: m,
|
12
|
+
required: n,
|
13
|
+
className: i,
|
14
|
+
validationStatus: l = "default",
|
15
|
+
children: p,
|
15
16
|
errorMessage: a,
|
16
|
-
dataTestId:
|
17
|
+
dataTestId: c,
|
17
18
|
dataName: d,
|
18
19
|
hideRequiredStar: x,
|
19
20
|
layout: f
|
20
21
|
}) => {
|
21
22
|
const u = h({
|
22
|
-
isDisabled: !!
|
23
|
-
validationStatus:
|
23
|
+
isDisabled: !!m,
|
24
|
+
validationStatus: l
|
24
25
|
}) === "error" && a;
|
25
26
|
return /* @__PURE__ */ s(
|
26
27
|
"div",
|
27
28
|
{
|
28
|
-
className: g("flex flex-col gap-4",
|
29
|
+
className: g("flex flex-col gap-4", i),
|
29
30
|
"data-name": d,
|
30
|
-
"data-testid":
|
31
|
+
"data-testid": c,
|
31
32
|
children: [
|
32
33
|
r && t && /* @__PURE__ */ e(
|
33
34
|
S,
|
@@ -35,12 +36,12 @@ const v = ({
|
|
35
36
|
description: o,
|
36
37
|
id: t,
|
37
38
|
layout: f,
|
38
|
-
required:
|
39
|
+
required: n,
|
39
40
|
hideRequiredStar: x,
|
40
41
|
children: r
|
41
42
|
}
|
42
43
|
),
|
43
|
-
|
44
|
+
p,
|
44
45
|
u && /* @__PURE__ */ s("span", { className: "text-red text-b4 flex items-start gap-x-4 px-20", children: [
|
45
46
|
/* @__PURE__ */ e(b, { name: "Error", width: "20px" }),
|
46
47
|
a
|
@@ -50,6 +51,6 @@ const v = ({
|
|
50
51
|
);
|
51
52
|
};
|
52
53
|
export {
|
53
|
-
|
54
|
+
w as FormControl
|
54
55
|
};
|
55
56
|
//# sourceMappingURL=FormControl.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormControl.js","sources":["../../../lib/molecules/Forms/FormControl.tsx"],"sourcesContent":["import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';\nimport { useInternalStatus, type ValidationStatus } from '@/hooks/useInternalStatus';\nimport { FormLabel, type FormLabelProps } from './FormLabel';\nimport { Icon } from '@/atoms/Icons';\nimport classnames from 'classnames';\n\nexport type FormControlProps<\n Value = unknown,\n Attributes extends HTMLAttributes<HTMLElement> = InputHTMLAttributes<HTMLInputElement>,\n> = {\n value?: Value;\n label?: ReactNode;\n validationStatus?: ValidationStatus;\n onChange?: (name: string, value: Value) => void;\n dataTestId?: string;\n dataName?: string;\n errorMessage?: string;\n} & Omit<Attributes & Partial<FormLabelProps>, 'onChange' | 'value'>;\n\nexport const FormControl = <Value = string,>({\n id,\n label,\n description,\n disabled,\n required,\n className,\n validationStatus = 'default',\n children,\n errorMessage,\n dataTestId,\n dataName,\n hideRequiredStar,\n layout,\n}: FormControlProps<Value>) => {\n const internalStatus = useInternalStatus({\n isDisabled: !!disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div\n className={classnames('flex flex-col gap-4', className)}\n data-name={dataName}\n data-testid={dataTestId}\n >\n {label && id && (\n <FormLabel\n description={description}\n id={id}\n layout={layout}\n required={required}\n hideRequiredStar={hideRequiredStar}\n >\n {label}\n </FormLabel>\n )}\n\n {children}\n\n {shouldDisplayErrorMessage && (\n <span className=\"text-red text-b4 flex items-start gap-x-4 px-20\">\n <Icon name=\"Error\" width=\"20px\" />\n {errorMessage}\n </span>\n )}\n </div>\n );\n};\n"],"names":["FormControl","id","label","description","disabled","required","className","validationStatus","children","errorMessage","dataTestId","dataName","hideRequiredStar","layout","shouldDisplayErrorMessage","useInternalStatus","jsxs","classnames","jsx","FormLabel","Icon"],"mappings":"
|
1
|
+
{"version":3,"file":"FormControl.js","sources":["../../../lib/molecules/Forms/FormControl.tsx"],"sourcesContent":["import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';\nimport { useInternalStatus, type ValidationStatus } from '@/hooks/useInternalStatus';\nimport { FormLabel, type FormLabelProps } from './FormLabel';\nimport { Icon } from '@/atoms/Icons';\nimport classnames from 'classnames';\n\nexport type FormControlProps<\n Value = unknown,\n Attributes extends HTMLAttributes<HTMLElement> = InputHTMLAttributes<HTMLInputElement>,\n> = {\n value?: Value;\n label?: ReactNode;\n validationStatus?: ValidationStatus;\n onChange?: (name: string, value: Value) => void;\n dataTestId?: string;\n dataName?: string;\n errorMessage?: string;\n} & Omit<Attributes & Partial<FormLabelProps>, 'onChange' | 'value'>;\n\nexport const FormControl = <Value = string,>({\n id,\n label,\n description,\n disabled,\n required,\n className,\n validationStatus = 'default',\n children,\n errorMessage,\n dataTestId,\n dataName,\n hideRequiredStar,\n layout,\n}: FormControlProps<Value>) => {\n const internalStatus = useInternalStatus({\n isDisabled: !!disabled,\n validationStatus,\n });\n\n const shouldDisplayErrorMessage = internalStatus === 'error' && errorMessage;\n\n return (\n <div\n className={classnames('flex flex-col gap-4', className)}\n data-name={dataName}\n data-testid={dataTestId}\n >\n {label && id && (\n <FormLabel\n description={description}\n id={id}\n layout={layout}\n required={required}\n hideRequiredStar={hideRequiredStar}\n >\n {label}\n </FormLabel>\n )}\n\n {children}\n\n {shouldDisplayErrorMessage && (\n <span className=\"text-red text-b4 flex items-start gap-x-4 px-20\">\n <Icon name=\"Error\" width=\"20px\" />\n {errorMessage}\n </span>\n )}\n </div>\n );\n};\n"],"names":["FormControl","id","label","description","disabled","required","className","validationStatus","children","errorMessage","dataTestId","dataName","hideRequiredStar","layout","shouldDisplayErrorMessage","useInternalStatus","jsxs","classnames","jsx","FormLabel","Icon"],"mappings":";;;;;;AAmBO,MAAMA,IAAc,CAAkB;AAAA,EAC3C,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,kBAAAC,IAAmB;AAAA,EACnB,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,QAAAC;AACF,MAA+B;AAMvB,QAAAC,IALiBC,EAAkB;AAAA,IACvC,YAAY,CAAC,CAACX;AAAA,IACd,kBAAAG;AAAA,EAAA,CACD,MAEoD,WAAWE;AAG9D,SAAA,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAW,uBAAuBX,CAAS;AAAA,MACtD,aAAWK;AAAA,MACX,eAAaD;AAAA,MAEZ,UAAA;AAAA,QAAAR,KAASD,KACR,gBAAAiB;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,aAAAhB;AAAA,YACA,IAAAF;AAAA,YACA,QAAAY;AAAA,YACA,UAAAR;AAAA,YACA,kBAAAO;AAAA,YAEC,UAAAV;AAAA,UAAA;AAAA,QACH;AAAA,QAGDM;AAAA,QAEAM,KACC,gBAAAE,EAAC,QAAK,EAAA,WAAU,mDACd,UAAA;AAAA,UAAA,gBAAAE,EAACE,GAAK,EAAA,MAAK,SAAQ,OAAM,QAAO;AAAA,UAC/BX;AAAA,QAAA,GACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
2
2
|
import { useInternalStatus as M } from "../../../hooks/useInternalStatus.js";
|
3
3
|
import { c as f } from "../../../chunks/index.js";
|
4
4
|
import { useId as P, useState as T, useEffect as q } from "react";
|
5
5
|
import { useValue as F } from "../../../hooks/useValue.js";
|
6
6
|
import { FormControl as z } from "../FormControl.js";
|
7
|
-
import { Icon as
|
7
|
+
import { Icon as c } from "../../../atoms/Icons/Icon.js";
|
8
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
8
9
|
import { ValidationMessage as E } from "./ValidationMessage.js";
|
9
|
-
function
|
10
|
+
function Q(b) {
|
10
11
|
const x = P(), {
|
11
12
|
id: l = x,
|
12
13
|
name: o = l,
|
@@ -35,7 +36,7 @@ function O(b) {
|
|
35
36
|
n(t ? "password" : r);
|
36
37
|
}, [r, t]);
|
37
38
|
const k = () => n(r === "password" ? "text" : "password");
|
38
|
-
return /* @__PURE__ */
|
39
|
+
return /* @__PURE__ */ p(
|
39
40
|
z,
|
40
41
|
{
|
41
42
|
className: y,
|
@@ -49,7 +50,7 @@ function O(b) {
|
|
49
50
|
validationStatus: s ? "default" : e,
|
50
51
|
errorMessage: w,
|
51
52
|
children: [
|
52
|
-
/* @__PURE__ */
|
53
|
+
/* @__PURE__ */ p("div", { className: "relative", children: [
|
53
54
|
/* @__PURE__ */ a(
|
54
55
|
"input",
|
55
56
|
{
|
@@ -81,9 +82,9 @@ function O(b) {
|
|
81
82
|
className: f(
|
82
83
|
"pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12"
|
83
84
|
),
|
84
|
-
children: /* @__PURE__ */
|
85
|
-
!s && e === "error" && /* @__PURE__ */ a(
|
86
|
-
!s && e === "success" && /* @__PURE__ */ a(
|
85
|
+
children: /* @__PURE__ */ p("span", { className: "ms-auto flex gap-x-8", children: [
|
86
|
+
!s && e === "error" && /* @__PURE__ */ a(c, { name: "CrossDefault", color: "red", width: "24px" }),
|
87
|
+
!s && e === "success" && /* @__PURE__ */ a(c, { name: "CheckDefault", color: "green", width: "24px" }),
|
87
88
|
!t && /* @__PURE__ */ a(
|
88
89
|
"button",
|
89
90
|
{
|
@@ -91,7 +92,7 @@ function O(b) {
|
|
91
92
|
className: "pointer-events-auto size-24 inline-flex",
|
92
93
|
onClick: k,
|
93
94
|
children: /* @__PURE__ */ a(
|
94
|
-
|
95
|
+
c,
|
95
96
|
{
|
96
97
|
name: r === "password" ? "Invisible" : "Visible",
|
97
98
|
width: "24px",
|
@@ -110,6 +111,6 @@ function O(b) {
|
|
110
111
|
);
|
111
112
|
}
|
112
113
|
export {
|
113
|
-
|
114
|
+
Q as Password
|
114
115
|
};
|
115
116
|
//# sourceMappingURL=Password.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Password.js","sources":["../../../../lib/molecules/Forms/Password/Password.tsx"],"sourcesContent":["import { useInternalStatus } from '@/hooks/useInternalStatus';\nimport classnames from 'classnames';\n\nimport { type HTMLInputTypeAttribute, useEffect, useId, useState } from 'react';\n\nimport { useValue } from '@/hooks/useValue';\nimport { FormControl, type FormControlProps } from '../FormControl';\nimport { Icon } from '@/atoms/Icons';\nimport { ValidationMessage } from './ValidationMessage';\n\nexport interface PasswordProps<Value> extends FormControlProps<Value> {\n validationMessages?: ValidationMessage[];\n withoutFieldValidation?: boolean;\n}\n\nexport function Password<Value = string>(props: PasswordProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n value: initialValue,\n disabled = false,\n required = false,\n hideRequiredStar,\n validationStatus = 'default',\n errorMessage,\n validationMessages = [],\n withoutFieldValidation = false,\n className,\n onChange,\n dataTestId = 'Password',\n ...rest\n } = props;\n\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const { value, setValue } = useValue<Value>({\n name,\n initialValue,\n onChange,\n });\n const [type, setType] = useState<HTMLInputTypeAttribute>('password');\n\n useEffect(() => {\n if (disabled) {\n setType('password');\n } else {\n setType(type);\n }\n }, [type, disabled]);\n\n const toggleType = () => setType(type === 'password' ? 'text' : 'password');\n\n return (\n <FormControl\n className={className}\n id={id}\n label={label}\n dataName=\"Password\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={withoutFieldValidation ? 'default' : validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n id={id}\n name={name}\n type={type}\n value={value as any}\n disabled={disabled}\n required={required}\n onChange={(e) => setValue(e.target.value as Value)}\n className={classnames(\n 'text-b3 rounded-pill w-full border ps-20 py-[11px] font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black pe-[52px]':\n (withoutFieldValidation || validationStatus === 'default') &&\n internalStatus !== 'disabled',\n 'bg-white text-black': internalStatus !== 'disabled',\n 'bg-pearl text-grey': internalStatus === 'disabled',\n 'pe-[84px]':\n !withoutFieldValidation &&\n (validationStatus === 'error' || validationStatus === 'success'),\n 'border-red': !withoutFieldValidation && validationStatus === 'error',\n 'border-green': !withoutFieldValidation && validationStatus === 'success',\n },\n )}\n aria-label={name}\n />\n\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n )}\n >\n <span className=\"ms-auto flex gap-x-8\">\n {!withoutFieldValidation && validationStatus === 'error' && (\n <Icon name=\"CrossDefault\" color=\"red\" width=\"24px\" />\n )}\n\n {!withoutFieldValidation && validationStatus === 'success' && (\n <Icon name=\"CheckDefault\" color=\"green\" width=\"24px\" />\n )}\n\n {!disabled && (\n <button\n type=\"button\"\n className=\"pointer-events-auto size-24 inline-flex\"\n onClick={toggleType}\n >\n <Icon\n name={type === 'password' ? 'Invisible' : 'Visible'}\n width=\"24px\"\n type=\"svg\"\n />\n </button>\n )}\n </span>\n </div>\n </div>\n\n {validationMessages.length > 0 && (\n <div className=\"flex flex-col gap-[10px] mt-8\">\n {validationMessages.map(({ label, status }, index) => (\n <ValidationMessage label={label} status={status} key={index} />\n ))}\n </div>\n )}\n </FormControl>\n );\n}\n"],"names":["Password","props","internalId","useId","id","name","label","initialValue","disabled","required","hideRequiredStar","validationStatus","errorMessage","validationMessages","withoutFieldValidation","className","onChange","dataTestId","rest","internalStatus","useInternalStatus","value","setValue","useValue","type","setType","useState","useEffect","toggleType","jsxs","FormControl","jsx","e","classnames","Icon","status","index","ValidationMessage"],"mappings":"
|
1
|
+
{"version":3,"file":"Password.js","sources":["../../../../lib/molecules/Forms/Password/Password.tsx"],"sourcesContent":["import { useInternalStatus } from '@/hooks/useInternalStatus';\nimport classnames from 'classnames';\n\nimport { type HTMLInputTypeAttribute, useEffect, useId, useState } from 'react';\n\nimport { useValue } from '@/hooks/useValue';\nimport { FormControl, type FormControlProps } from '../FormControl';\nimport { Icon } from '@/atoms/Icons';\nimport { ValidationMessage } from './ValidationMessage';\n\nexport interface PasswordProps<Value> extends FormControlProps<Value> {\n validationMessages?: ValidationMessage[];\n withoutFieldValidation?: boolean;\n}\n\nexport function Password<Value = string>(props: PasswordProps<Value>) {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n value: initialValue,\n disabled = false,\n required = false,\n hideRequiredStar,\n validationStatus = 'default',\n errorMessage,\n validationMessages = [],\n withoutFieldValidation = false,\n className,\n onChange,\n dataTestId = 'Password',\n ...rest\n } = props;\n\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n const { value, setValue } = useValue<Value>({\n name,\n initialValue,\n onChange,\n });\n const [type, setType] = useState<HTMLInputTypeAttribute>('password');\n\n useEffect(() => {\n if (disabled) {\n setType('password');\n } else {\n setType(type);\n }\n }, [type, disabled]);\n\n const toggleType = () => setType(type === 'password' ? 'text' : 'password');\n\n return (\n <FormControl\n className={className}\n id={id}\n label={label}\n dataName=\"Password\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={withoutFieldValidation ? 'default' : validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n id={id}\n name={name}\n type={type}\n value={value as any}\n disabled={disabled}\n required={required}\n onChange={(e) => setValue(e.target.value as Value)}\n className={classnames(\n 'text-b3 rounded-pill w-full border ps-20 py-[11px] font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black pe-[52px]':\n (withoutFieldValidation || validationStatus === 'default') &&\n internalStatus !== 'disabled',\n 'bg-white text-black': internalStatus !== 'disabled',\n 'bg-pearl text-grey': internalStatus === 'disabled',\n 'pe-[84px]':\n !withoutFieldValidation &&\n (validationStatus === 'error' || validationStatus === 'success'),\n 'border-red': !withoutFieldValidation && validationStatus === 'error',\n 'border-green': !withoutFieldValidation && validationStatus === 'success',\n },\n )}\n aria-label={name}\n />\n\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n )}\n >\n <span className=\"ms-auto flex gap-x-8\">\n {!withoutFieldValidation && validationStatus === 'error' && (\n <Icon name=\"CrossDefault\" color=\"red\" width=\"24px\" />\n )}\n\n {!withoutFieldValidation && validationStatus === 'success' && (\n <Icon name=\"CheckDefault\" color=\"green\" width=\"24px\" />\n )}\n\n {!disabled && (\n <button\n type=\"button\"\n className=\"pointer-events-auto size-24 inline-flex\"\n onClick={toggleType}\n >\n <Icon\n name={type === 'password' ? 'Invisible' : 'Visible'}\n width=\"24px\"\n type=\"svg\"\n />\n </button>\n )}\n </span>\n </div>\n </div>\n\n {validationMessages.length > 0 && (\n <div className=\"flex flex-col gap-[10px] mt-8\">\n {validationMessages.map(({ label, status }, index) => (\n <ValidationMessage label={label} status={status} key={index} />\n ))}\n </div>\n )}\n </FormControl>\n );\n}\n"],"names":["Password","props","internalId","useId","id","name","label","initialValue","disabled","required","hideRequiredStar","validationStatus","errorMessage","validationMessages","withoutFieldValidation","className","onChange","dataTestId","rest","internalStatus","useInternalStatus","value","setValue","useValue","type","setType","useState","useEffect","toggleType","jsxs","FormControl","jsx","e","classnames","Icon","status","index","ValidationMessage"],"mappings":";;;;;;;;;AAeO,SAASA,EAAyBC,GAA6B;AACpE,QAAMC,IAAaC,KAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,OAAAE;AAAA,IACA,OAAOC;AAAA,IACP,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,kBAAAC;AAAA,IACA,kBAAAC,IAAmB;AAAA,IACnB,cAAAC;AAAA,IACA,oBAAAC,IAAqB,CAAC;AAAA,IACtB,wBAAAC,IAAyB;AAAA,IACzB,WAAAC;AAAA,IACA,UAAAC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{ jsxs as n, jsx as e } from "react/jsx-runtime";
|
2
2
|
import { c as s } from "../../../chunks/index.js";
|
3
|
-
import { Icon as
|
4
|
-
|
3
|
+
import { Icon as t } from "../../../atoms/Icons/Icon.js";
|
4
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
5
|
+
const a = {
|
5
6
|
default: {
|
6
7
|
iconName: "Edit",
|
7
8
|
iconColor: "middleGrey"
|
@@ -15,14 +16,14 @@ const t = {
|
|
15
16
|
iconColor: "green"
|
16
17
|
}
|
17
18
|
};
|
18
|
-
function
|
19
|
-
const { iconName:
|
20
|
-
return /* @__PURE__ */
|
21
|
-
/* @__PURE__ */ e(
|
19
|
+
function x({ label: r, status: c }) {
|
20
|
+
const { iconName: i, iconColor: o } = a[c];
|
21
|
+
return /* @__PURE__ */ n("div", { className: "flex gap-[6px] px-20 items-center", children: [
|
22
|
+
/* @__PURE__ */ e(t, { name: i, width: "30px", color: o }),
|
22
23
|
/* @__PURE__ */ e("span", { className: s("text-b3", `text-${o}`), children: r })
|
23
24
|
] });
|
24
25
|
}
|
25
26
|
export {
|
26
|
-
|
27
|
+
x as ValidationMessage
|
27
28
|
};
|
28
29
|
//# sourceMappingURL=ValidationMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ValidationMessage.js","sources":["../../../../lib/molecules/Forms/Password/ValidationMessage.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { Icon } from '@/atoms/Icons';\nimport type { ValidationStatus } from '@/hooks/useInternalStatus';\n\nexport interface ValidationMessage {\n label: string;\n status: ValidationStatus;\n}\n\nconst ICON_PROPS = {\n default: {\n iconName: 'Edit',\n iconColor: 'middleGrey',\n },\n error: {\n iconName: 'Error',\n iconColor: 'red',\n },\n success: {\n iconName: 'CheckDefault',\n iconColor: 'green',\n },\n};\n\nexport function ValidationMessage({ label, status }: ValidationMessage) {\n const { iconName, iconColor } = ICON_PROPS[status];\n\n return (\n <div className=\"flex gap-[6px] px-20 items-center\">\n <Icon name={iconName} width=\"30px\" color={iconColor} />\n <span className={classnames('text-b3', `text-${iconColor}`)}>{label}</span>\n </div>\n );\n}\n"],"names":["ICON_PROPS","ValidationMessage","label","status","iconName","iconColor","jsxs","jsx","Icon","classnames"],"mappings":"
|
1
|
+
{"version":3,"file":"ValidationMessage.js","sources":["../../../../lib/molecules/Forms/Password/ValidationMessage.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { Icon } from '@/atoms/Icons';\nimport type { ValidationStatus } from '@/hooks/useInternalStatus';\n\nexport interface ValidationMessage {\n label: string;\n status: ValidationStatus;\n}\n\nconst ICON_PROPS = {\n default: {\n iconName: 'Edit',\n iconColor: 'middleGrey',\n },\n error: {\n iconName: 'Error',\n iconColor: 'red',\n },\n success: {\n iconName: 'CheckDefault',\n iconColor: 'green',\n },\n};\n\nexport function ValidationMessage({ label, status }: ValidationMessage) {\n const { iconName, iconColor } = ICON_PROPS[status];\n\n return (\n <div className=\"flex gap-[6px] px-20 items-center\">\n <Icon name={iconName} width=\"30px\" color={iconColor} />\n <span className={classnames('text-b3', `text-${iconColor}`)}>{label}</span>\n </div>\n );\n}\n"],"names":["ICON_PROPS","ValidationMessage","label","status","iconName","iconColor","jsxs","jsx","Icon","classnames"],"mappings":";;;;AASA,MAAMA,IAAa;AAAA,EACjB,SAAS;AAAA,IACP,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACL,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AACF;AAEO,SAASC,EAAkB,EAAE,OAAAC,GAAO,QAAAC,KAA6B;AACtE,QAAM,EAAE,UAAAC,GAAU,WAAAC,EAAU,IAAIL,EAAWG,CAAM;AAG/C,SAAA,gBAAAG,EAAC,OAAI,EAAA,WAAU,qCACb,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAK,MAAMJ,GAAU,OAAM,QAAO,OAAOC,GAAW;AAAA,IACrD,gBAAAE,EAAC,UAAK,WAAWE,EAAW,WAAW,QAAQJ,CAAS,EAAE,GAAI,UAAMH,EAAA,CAAA;AAAA,EACtE,EAAA,CAAA;AAEJ;"}
|
@@ -3,9 +3,10 @@ import { c as l } from "../../chunks/index.js";
|
|
3
3
|
import { useValue as I } from "../../hooks/useValue.js";
|
4
4
|
import { useInternalStatus as S } from "../../hooks/useInternalStatus.js";
|
5
5
|
import { FormControl as j } from "./FormControl.js";
|
6
|
-
import { Icon as n } from "
|
6
|
+
import { Icon as n } from "../../atoms/Icons/Icon.js";
|
7
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
7
8
|
import { useId as T } from "react";
|
8
|
-
const
|
9
|
+
const B = (p) => {
|
9
10
|
const u = T(), {
|
10
11
|
id: t = u,
|
11
12
|
name: a = t,
|
@@ -99,6 +100,6 @@ const R = (p) => {
|
|
99
100
|
);
|
100
101
|
};
|
101
102
|
export {
|
102
|
-
|
103
|
+
B as Select
|
103
104
|
};
|
104
105
|
//# sourceMappingURL=Select.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../lib/molecules/Forms/Select.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { useValue } from '@/hooks/useValue';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\nimport { FormControl, type FormControlProps } from './FormControl.js';\nimport { Icon, type IconicTypes } from '@/atoms/Icons';\nimport { type SelectHTMLAttributes, useId } from 'react';\n\nexport interface SelectProps<Value>\n extends FormControlProps<Value, SelectHTMLAttributes<HTMLSelectElement>> {\n description?: string;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n}\n\nexport const Select = <Value = string,>(props: SelectProps<Value>) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n value: initialValue,\n description,\n validationStatus = 'default',\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n className,\n dataTestId = id,\n onChange,\n children,\n ...rest\n } = props;\n\n const { value, setValue } = useValue<Value>({ name, initialValue, onChange });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n return (\n <FormControl\n id={id}\n className={className}\n label={label}\n description={description}\n dataName=\"TextField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div\n className={classnames('relative rounded-pill z-0', {\n 'bg-white': internalStatus !== 'disabled',\n 'bg-pearl': internalStatus === 'disabled',\n })}\n >\n <select\n {...rest}\n id={id}\n name={name}\n disabled={disabled}\n required={required}\n value={value as any}\n onChange={(e) => setValue(e.target.value as Value)}\n className={classnames(\n 'text-b3 rounded-pill w-full border px-20 py-12 font-normal outline-none appearance-none bg-transparent',\n {\n 'border-lightGrey focus:border-black active:border-black pe-[52px]':\n internalStatus === 'default',\n 'pe-[84px]': internalStatus === 'error' || internalStatus === 'success',\n 'text-black': internalStatus !== 'disabled',\n 'text-grey': internalStatus === 'disabled',\n 'border-red': internalStatus === 'error',\n 'border-green': internalStatus === 'success',\n },\n )}\n aria-label={name}\n >\n {children}\n </select>\n\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12 -z-1',\n {\n 'text-grey': internalStatus === 'disabled',\n 'text-red': internalStatus === 'error',\n 'text-green': internalStatus === 'success',\n },\n )}\n >\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && (\n <Icon name=\"CrossDefault\" width=\"24px\" type={iconType} />\n )}\n\n {internalStatus === 'success' && (\n <Icon name=\"CheckDefault\" width=\"24px\" type={iconType} />\n )}\n\n <button className=\"pointer-events-auto inline-flex\">\n <Icon name=\"ArrowDefaultDown\" type=\"svg\" width=\"24px\" color=\"black\" />\n </button>\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["Select","props","internalId","useId","id","name","label","initialValue","description","validationStatus","iconType","errorMessage","disabled","required","hideRequiredStar","className","dataTestId","onChange","children","rest","value","setValue","useValue","internalStatus","useInternalStatus","jsx","FormControl","jsxs","classnames","e","Icon"],"mappings":"
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../lib/molecules/Forms/Select.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { useValue } from '@/hooks/useValue';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\nimport { FormControl, type FormControlProps } from './FormControl.js';\nimport { Icon, type IconicTypes } from '@/atoms/Icons';\nimport { type SelectHTMLAttributes, useId } from 'react';\n\nexport interface SelectProps<Value>\n extends FormControlProps<Value, SelectHTMLAttributes<HTMLSelectElement>> {\n description?: string;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n}\n\nexport const Select = <Value = string,>(props: SelectProps<Value>) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n value: initialValue,\n description,\n validationStatus = 'default',\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n className,\n dataTestId = id,\n onChange,\n children,\n ...rest\n } = props;\n\n const { value, setValue } = useValue<Value>({ name, initialValue, onChange });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n return (\n <FormControl\n id={id}\n className={className}\n label={label}\n description={description}\n dataName=\"TextField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div\n className={classnames('relative rounded-pill z-0', {\n 'bg-white': internalStatus !== 'disabled',\n 'bg-pearl': internalStatus === 'disabled',\n })}\n >\n <select\n {...rest}\n id={id}\n name={name}\n disabled={disabled}\n required={required}\n value={value as any}\n onChange={(e) => setValue(e.target.value as Value)}\n className={classnames(\n 'text-b3 rounded-pill w-full border px-20 py-12 font-normal outline-none appearance-none bg-transparent',\n {\n 'border-lightGrey focus:border-black active:border-black pe-[52px]':\n internalStatus === 'default',\n 'pe-[84px]': internalStatus === 'error' || internalStatus === 'success',\n 'text-black': internalStatus !== 'disabled',\n 'text-grey': internalStatus === 'disabled',\n 'border-red': internalStatus === 'error',\n 'border-green': internalStatus === 'success',\n },\n )}\n aria-label={name}\n >\n {children}\n </select>\n\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12 -z-1',\n {\n 'text-grey': internalStatus === 'disabled',\n 'text-red': internalStatus === 'error',\n 'text-green': internalStatus === 'success',\n },\n )}\n >\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && (\n <Icon name=\"CrossDefault\" width=\"24px\" type={iconType} />\n )}\n\n {internalStatus === 'success' && (\n <Icon name=\"CheckDefault\" width=\"24px\" type={iconType} />\n )}\n\n <button className=\"pointer-events-auto inline-flex\">\n <Icon name=\"ArrowDefaultDown\" type=\"svg\" width=\"24px\" color=\"black\" />\n </button>\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["Select","props","internalId","useId","id","name","label","initialValue","description","validationStatus","iconType","errorMessage","disabled","required","hideRequiredStar","className","dataTestId","onChange","children","rest","value","setValue","useValue","internalStatus","useInternalStatus","jsx","FormControl","jsxs","classnames","e","Icon"],"mappings":";;;;;;;;AAea,MAAAA,IAAS,CAAkBC,MAA8B;AACpE,QAAMC,IAAaC,KAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,OAAAE;AAAA,IACA,OAAOC;AAAA,IACP,aAAAC;AAAA,IACA,kBAAAC,IAAmB;AAAA,IACnB,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,kBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC,IAAaZ;AAAA,IACb,UAAAa;AAAA,IACA,UAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAlB,GAEE,EAAE,OAAAmB,GAAO,UAAAC,MAAaC,EAAgB,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AAAA,oBAC/B,cAAcA,MAAmB;AAAA,kBACnC;AAAA,gBACF;AAAA,gBAEA,UAAA,gBAAAI,EAAC,QAAK,EAAA,WAAU,wBACb,UAAA;AAAA,kBAAmBJ,MAAA,6BACjBO,GAAK,EAAA,MAAK,gBAAe,OAAM,QAAO,MAAMpB,EAAU,CAAA;AAAA,kBAGxDa,MAAmB,aACjB,gBAAAE,EAAAK,GAAA,EAAK,MAAK,gBAAe,OAAM,QAAO,MAAMpB,EAAU,CAAA;AAAA,kBAGxD,gBAAAe,EAAA,UAAA,EAAO,WAAU,mCAChB,4BAACK,GAAK,EAAA,MAAK,oBAAmB,MAAK,OAAM,OAAM,QAAO,OAAM,QAAQ,CAAA,GACtE;AAAA,gBAAA,GACF;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
2
|
-
import { c as
|
2
|
+
import { c as m } from "../../chunks/index.js";
|
3
3
|
import { useValue as F } from "../../hooks/useValue.js";
|
4
4
|
import { useInternalStatus as S } from "../../hooks/useInternalStatus.js";
|
5
5
|
import { FormControl as j } from "./FormControl.js";
|
6
|
-
import { Icon as i } from "
|
6
|
+
import { Icon as i } from "../../atoms/Icons/Icon.js";
|
7
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
7
8
|
import { useId as D } from "react";
|
8
|
-
const
|
9
|
+
const E = (u) => {
|
9
10
|
const p = D(), {
|
10
11
|
id: t = p,
|
11
12
|
name: a = t,
|
@@ -24,7 +25,7 @@ const B = (m) => {
|
|
24
25
|
onChange: w,
|
25
26
|
formatter: N,
|
26
27
|
...C
|
27
|
-
} =
|
28
|
+
} = u, { value: I, setValue: T } = F({ name: a, initialValue: b, onChange: w, formatter: N }), e = S({
|
28
29
|
isDisabled: l,
|
29
30
|
validationStatus: n
|
30
31
|
});
|
@@ -53,7 +54,7 @@ const B = (m) => {
|
|
53
54
|
required: c,
|
54
55
|
value: I,
|
55
56
|
onChange: (k) => T(k.target.value),
|
56
|
-
className:
|
57
|
+
className: m(
|
57
58
|
"text-b3 rounded-pill w-full border px-20 py-12 font-normal outline-none",
|
58
59
|
{
|
59
60
|
"border-lightGrey focus:border-black active:border-black": e === "default",
|
@@ -71,7 +72,7 @@ const B = (m) => {
|
|
71
72
|
/* @__PURE__ */ o(
|
72
73
|
"div",
|
73
74
|
{
|
74
|
-
className:
|
75
|
+
className: m(
|
75
76
|
"pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12",
|
76
77
|
{
|
77
78
|
"text-grey": e === "disabled",
|
@@ -93,6 +94,6 @@ const B = (m) => {
|
|
93
94
|
);
|
94
95
|
};
|
95
96
|
export {
|
96
|
-
|
97
|
+
E as TextField
|
97
98
|
};
|
98
99
|
//# sourceMappingURL=TextField.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextField.js","sources":["../../../lib/molecules/Forms/TextField.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { useValue, type UseValueProps } from '@/hooks/useValue';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\nimport { FormControl, type FormControlProps } from './FormControl.js';\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\nimport { useId } from 'react';\n\nexport interface TextFieldProps<Value> extends FormControlProps<Value> {\n description?: string;\n icon?: IconicNames;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n formatter?: UseValueProps<Value>['formatter'];\n}\n\nexport const TextField = <Value = string,>(props: TextFieldProps<Value>) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n value: initialValue,\n description,\n validationStatus = 'default',\n icon,\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n className,\n dataTestId = 'TextField',\n onChange,\n formatter,\n ...rest\n } = props;\n\n const { value, setValue } = useValue<Value>({ name, initialValue, onChange, formatter });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n return (\n <FormControl\n id={id}\n label={label}\n className={className}\n description={description}\n dataName=\"TextField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n id={id}\n name={name}\n disabled={disabled}\n required={required}\n value={value as any}\n onChange={(e) => setValue(e.target.value as Value)}\n className={classnames(\n 'text-b3 rounded-pill w-full border px-20 py-12 font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black':\n internalStatus === 'default',\n 'ps-[52px]': icon,\n 'pe-[52px]': internalStatus === 'error' || internalStatus === 'success',\n 'bg-white text-black': internalStatus !== 'disabled',\n 'bg-pearl text-grey': internalStatus === 'disabled',\n 'border-red': internalStatus === 'error',\n 'border-green': internalStatus === 'success',\n },\n )}\n aria-label={name}\n />\n\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n {\n 'text-grey': internalStatus === 'disabled',\n 'text-red': internalStatus === 'error',\n 'text-green': internalStatus === 'success',\n },\n )}\n >\n {icon && <Icon name={icon} width=\"24px\" />}\n\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && (\n <Icon name=\"CrossDefault\" width=\"24px\" type={iconType} />\n )}\n\n {internalStatus === 'success' && (\n <Icon name=\"CheckDefault\" width=\"24px\" type={iconType} />\n )}\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["TextField","props","internalId","useId","id","name","label","initialValue","description","validationStatus","icon","iconType","errorMessage","disabled","required","hideRequiredStar","className","dataTestId","onChange","formatter","rest","value","setValue","useValue","internalStatus","useInternalStatus","jsx","FormControl","jsxs","e","classnames","Icon"],"mappings":"
|
1
|
+
{"version":3,"file":"TextField.js","sources":["../../../lib/molecules/Forms/TextField.tsx"],"sourcesContent":["import classnames from 'classnames';\nimport { useValue, type UseValueProps } from '@/hooks/useValue';\nimport { useInternalStatus } from '@/hooks/useInternalStatus';\nimport { FormControl, type FormControlProps } from './FormControl.js';\nimport { Icon, type IconicNames, type IconicTypes } from '@/atoms/Icons';\nimport { useId } from 'react';\n\nexport interface TextFieldProps<Value> extends FormControlProps<Value> {\n description?: string;\n icon?: IconicNames;\n iconType?: IconicTypes;\n errorMessage?: string;\n dataTestId?: string;\n formatter?: UseValueProps<Value>['formatter'];\n}\n\nexport const TextField = <Value = string,>(props: TextFieldProps<Value>) => {\n const internalId = useId();\n\n const {\n id = internalId,\n name = id,\n label,\n value: initialValue,\n description,\n validationStatus = 'default',\n icon,\n iconType,\n errorMessage,\n disabled = false,\n required = false,\n hideRequiredStar,\n className,\n dataTestId = 'TextField',\n onChange,\n formatter,\n ...rest\n } = props;\n\n const { value, setValue } = useValue<Value>({ name, initialValue, onChange, formatter });\n const internalStatus = useInternalStatus({\n isDisabled: disabled,\n validationStatus,\n });\n\n return (\n <FormControl\n id={id}\n label={label}\n className={className}\n description={description}\n dataName=\"TextField\"\n dataTestId={dataTestId}\n disabled={disabled}\n required={required}\n hideRequiredStar={hideRequiredStar}\n validationStatus={validationStatus}\n errorMessage={errorMessage}\n >\n <div className=\"relative\">\n <input\n {...rest}\n id={id}\n name={name}\n disabled={disabled}\n required={required}\n value={value as any}\n onChange={(e) => setValue(e.target.value as Value)}\n className={classnames(\n 'text-b3 rounded-pill w-full border px-20 py-12 font-normal outline-none',\n {\n 'border-lightGrey focus:border-black active:border-black':\n internalStatus === 'default',\n 'ps-[52px]': icon,\n 'pe-[52px]': internalStatus === 'error' || internalStatus === 'success',\n 'bg-white text-black': internalStatus !== 'disabled',\n 'bg-pearl text-grey': internalStatus === 'disabled',\n 'border-red': internalStatus === 'error',\n 'border-green': internalStatus === 'success',\n },\n )}\n aria-label={name}\n />\n\n <div\n className={classnames(\n 'pointer-events-none absolute inset-0 flex items-center justify-between px-20 py-12',\n {\n 'text-grey': internalStatus === 'disabled',\n 'text-red': internalStatus === 'error',\n 'text-green': internalStatus === 'success',\n },\n )}\n >\n {icon && <Icon name={icon} width=\"24px\" />}\n\n <span className=\"ms-auto flex gap-x-8\">\n {internalStatus === 'error' && (\n <Icon name=\"CrossDefault\" width=\"24px\" type={iconType} />\n )}\n\n {internalStatus === 'success' && (\n <Icon name=\"CheckDefault\" width=\"24px\" type={iconType} />\n )}\n </span>\n </div>\n </div>\n </FormControl>\n );\n};\n"],"names":["TextField","props","internalId","useId","id","name","label","initialValue","description","validationStatus","icon","iconType","errorMessage","disabled","required","hideRequiredStar","className","dataTestId","onChange","formatter","rest","value","setValue","useValue","internalStatus","useInternalStatus","jsx","FormControl","jsxs","e","classnames","Icon"],"mappings":";;;;;;;;AAgBa,MAAAA,IAAY,CAAkBC,MAAiC;AAC1E,QAAMC,IAAaC,KAEb;AAAA,IACJ,IAAAC,IAAKF;AAAA,IACL,MAAAG,IAAOD;AAAA,IACP,OAAAE;AAAA,IACA,OAAOC;AAAA,IACP,aAAAC;AAAA,IACA,kBAAAC,IAAmB;AAAA,IACnB,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,kBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAnB,GAEE,EAAE,OAAAoB,GAAO,UAAAC,EAAA,IAAaC,EAAgB,EAAE,MAAAlB,GAAM,cAAAE,GAAc,UAAAW,GAAU,WAAAC,EAAA,CAAW,GACjFK,IAAiBC,EAAkB;AAAA,IACvC,YAAYZ;AAAA,IACZ,kBAAAJ;AAAA,EAAA,CACD;AAGC,SAAA,gBAAAiB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAAvB;AAAA,MACA,OAAAE;AAAA,MACA,WAAAU;AAAA,MACA,aAAAR;AAAA,MACA,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AAA;AAAA,cAAA,GAE3D;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
package/molecules/Link.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import { jsxs as t, jsx as
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as a } from "../chunks/index.js";
|
3
|
-
import { Icon as u } from "
|
4
|
-
|
3
|
+
import { Icon as u } from "../atoms/Icons/Icon.js";
|
4
|
+
import "/builds/clubmed/cm-trident-ui/node_modules/@clubmed/trident-icons/index.js";
|
5
|
+
const C = ({
|
5
6
|
label: n,
|
6
7
|
icon: s,
|
7
|
-
component:
|
8
|
+
component: c = "a",
|
8
9
|
iconType: m,
|
9
10
|
underlined: e = !0,
|
10
11
|
className: l,
|
@@ -13,7 +14,7 @@ const j = ({
|
|
13
14
|
}) => {
|
14
15
|
const r = n.lastIndexOf(" "), i = r === -1 ? n.length : r, h = n.substring(0, 1), x = n.substring(1, i + 1), g = n.substring(i);
|
15
16
|
return /* @__PURE__ */ t(
|
16
|
-
p ? "span" :
|
17
|
+
p ? "span" : c,
|
17
18
|
{
|
18
19
|
className: a(
|
19
20
|
"text-b3 decoration-none link-container cursor-pointer text-inherit",
|
@@ -22,7 +23,7 @@ const j = ({
|
|
22
23
|
"data-name": "Link",
|
23
24
|
...d,
|
24
25
|
children: [
|
25
|
-
/* @__PURE__ */
|
26
|
+
/* @__PURE__ */ o("span", { className: a({ "link-underline": e }), children: h }),
|
26
27
|
/* @__PURE__ */ t(
|
27
28
|
"span",
|
28
29
|
{
|
@@ -34,7 +35,7 @@ const j = ({
|
|
34
35
|
x,
|
35
36
|
/* @__PURE__ */ t("span", { className: "inline-block", children: [
|
36
37
|
g,
|
37
|
-
s && /* @__PURE__ */
|
38
|
+
s && /* @__PURE__ */ o(
|
38
39
|
u,
|
39
40
|
{
|
40
41
|
name: s,
|
@@ -52,6 +53,6 @@ const j = ({
|
|
52
53
|
);
|
53
54
|
};
|
54
55
|
export {
|
55
|
-
|
56
|
+
C as Link
|
56
57
|
};
|
57
58
|
//# sourceMappingURL=Link.js.map
|