@drivy/cobalt 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Alerter/Alert.js.map +1 -1
- package/components/Alerter/index.js.map +1 -1
- package/components/BulletList/index.js.map +1 -1
- package/components/Buttons/helpers.js.map +1 -1
- package/components/Card/index.js.map +1 -1
- package/components/Cell/index.js.map +1 -1
- package/components/EmptyState/index.js +3 -2
- package/components/EmptyState/index.js.map +1 -1
- package/components/Form/CheckablePill.js.map +1 -1
- package/components/Form/Checkmark.js.map +1 -1
- package/components/Form/field.js +2 -1
- package/components/Form/field.js.map +1 -1
- package/components/Helper/index.js.map +1 -1
- package/components/HorizontalList/index.js.map +1 -1
- package/components/Modal/ModalBody.js +1 -1
- package/components/Modal/ModalBody.js.map +1 -1
- package/components/Modal/ModalFooter.js.map +1 -1
- package/components/Popover/index.js.map +1 -1
- package/components/Rating/RatingLabel.js.map +1 -1
- package/components/Rating/index.js.map +1 -1
- package/components/Tabs/index.js +1 -1
- package/components/Tabs/index.js.map +1 -1
- package/icons/account-details.js +1 -1
- package/icons/add-picture.js +1 -1
- package/icons/air-conditioning.js +1 -1
- package/icons/airport.js +1 -1
- package/icons/android.js +1 -1
- package/icons/antique.js +1 -1
- package/icons/arrow-left-circle-filled.js +1 -1
- package/icons/arrow-left.js +1 -1
- package/icons/arrow-right-circle-filled.js +1 -1
- package/icons/arrow-right-circle.js +1 -1
- package/icons/arrow-right.js +1 -1
- package/icons/audio-input.js +1 -1
- package/icons/baby-seat.js +1 -1
- package/icons/battery.js +1 -1
- package/icons/bell.js +1 -1
- package/icons/bike-rack.js +1 -1
- package/icons/bin.js +1 -1
- package/icons/bluetooth.js +1 -1
- package/icons/briefcase.js +1 -1
- package/icons/bulb.js +1 -1
- package/icons/cable.js +1 -1
- package/icons/cabriolet.js +1 -1
- package/icons/calendar-check.js +1 -1
- package/icons/calendar-clock.js +1 -1
- package/icons/calendar-end.js +1 -1
- package/icons/calendar-start.js +1 -1
- package/icons/calendar.js +1 -1
- package/icons/camera-add.js +1 -1
- package/icons/camera.js +1 -1
- package/icons/campervan.js +1 -1
- package/icons/car-add.js +1 -1
- package/icons/car-check.js +1 -1
- package/icons/car-damages.js +1 -1
- package/icons/car-drivy-open.js +1 -1
- package/icons/car-group.js +1 -1
- package/icons/car-lock.js +1 -1
- package/icons/car-play.js +1 -1
- package/icons/car-return.js +1 -1
- package/icons/car-search.js +1 -1
- package/icons/car-type-antique.js +1 -1
- package/icons/car-type-cabriolet.js +1 -1
- package/icons/car-type-campervan.js +1 -1
- package/icons/car-type-city.js +1 -1
- package/icons/car-type-convertible.js +1 -1
- package/icons/car-type-coupe.js +1 -1
- package/icons/car-type-family.js +1 -1
- package/icons/car-type-four-four.js +1 -1
- package/icons/car-type-minibus.js +1 -1
- package/icons/car-type-sedan.js +1 -1
- package/icons/car-type-utility.js +1 -1
- package/icons/car.js +1 -1
- package/icons/card.js +1 -1
- package/icons/cd-player.js +1 -1
- package/icons/certificate.js +1 -1
- package/icons/chains.js +1 -1
- package/icons/check-circle-filled.js +1 -1
- package/icons/check-circle.js +1 -1
- package/icons/check.js +1 -1
- package/icons/checklist.js +1 -1
- package/icons/chevron-down.js +1 -1
- package/icons/chevron-left.js +1 -1
- package/icons/chevron-right.js +1 -1
- package/icons/chevron-up.js +1 -1
- package/icons/circled-arrow-right.js +1 -1
- package/icons/city.js +1 -1
- package/icons/cleaning.js +1 -1
- package/icons/clock-alert.js +1 -1
- package/icons/clock-backwards.js +1 -1
- package/icons/clock-forwards.js +1 -1
- package/icons/clock.js +1 -1
- package/icons/close-circle-filled.js +1 -1
- package/icons/close.js +1 -1
- package/icons/connect-car.js +1 -1
- package/icons/contact-mail.js +1 -1
- package/icons/contact-phone.js +1 -1
- package/icons/contextual-paperclip.js +1 -1
- package/icons/contextual-question.js +1 -1
- package/icons/contextual-warning-circle-filled.js +1 -1
- package/icons/contextual-warning-circle.js +1 -1
- package/icons/convertible.js +1 -1
- package/icons/copy.js +1 -1
- package/icons/countries/at.js +1 -1
- package/icons/countries/be.js +1 -1
- package/icons/countries/ca.js +1 -1
- package/icons/countries/de.js +1 -1
- package/icons/countries/es.js +1 -1
- package/icons/countries/eu.js +1 -1
- package/icons/countries/fr.js +1 -1
- package/icons/countries/gb.js +1 -1
- package/icons/countries/us.js +1 -1
- package/icons/coupe.js +1 -1
- package/icons/credit-card-add.js +1 -1
- package/icons/credit-card-error.js +1 -1
- package/icons/credit-card.js +1 -1
- package/icons/cruise-control.js +1 -1
- package/icons/dashcam.js +1 -1
- package/icons/directions.js +1 -1
- package/icons/document.js +1 -1
- package/icons/dot-horizontal.js +1 -1
- package/icons/dot-vertical.js +1 -1
- package/icons/dots-horizontal.js +1 -1
- package/icons/download.js +1 -1
- package/icons/earning.js +1 -1
- package/icons/earth.js +1 -1
- package/icons/electric.js +1 -1
- package/icons/ev-battery.js +1 -1
- package/icons/ev-cable.js +1 -1
- package/icons/ev-charger.js +1 -1
- package/icons/external-link.js +1 -1
- package/icons/eye-closed.js +1 -1
- package/icons/eye-opened.js +1 -1
- package/icons/eye.js +1 -1
- package/icons/face-recognition.js +1 -1
- package/icons/facebook.js +1 -1
- package/icons/family.js +1 -1
- package/icons/file-filled.js +1 -1
- package/icons/filter.js +1 -1
- package/icons/filters.js +1 -1
- package/icons/flag.js +1 -1
- package/icons/four-by-four.js +1 -1
- package/icons/fuel-tank.js +1 -1
- package/icons/geolocation.js +1 -1
- package/icons/gift.js +1 -1
- package/icons/gps.js +1 -1
- package/icons/graph-up.js +1 -1
- package/icons/healing.js +1 -1
- package/icons/heart.js +1 -1
- package/icons/hitch.js +1 -1
- package/icons/home.js +1 -1
- package/icons/id-card.js +1 -1
- package/icons/incident.js +1 -1
- package/icons/info-circle-filled.js +1 -1
- package/icons/info-circle.js +1 -1
- package/icons/info-filled.js +1 -1
- package/icons/info.js +1 -1
- package/icons/instant.js +1 -1
- package/icons/invoice.js +1 -1
- package/icons/key-connect.js +1 -1
- package/icons/key.js +1 -1
- package/icons/licence-check.js +1 -1
- package/icons/licence-paper.js +1 -1
- package/icons/licence.js +1 -1
- package/icons/life-buoy.js +1 -1
- package/icons/linkedin.js +1 -1
- package/icons/loading.js +1 -1
- package/icons/locality.js +1 -1
- package/icons/location-map.js +1 -1
- package/icons/location-parking.js +1 -1
- package/icons/location-pin.js +1 -1
- package/icons/location.js +1 -1
- package/icons/lock-check.js +1 -1
- package/icons/locked.js +1 -1
- package/icons/login.js +1 -1
- package/icons/logout.js +1 -1
- package/icons/mail-check.js +1 -1
- package/icons/mail.js +1 -1
- package/icons/map-alt.js +1 -1
- package/icons/map.js +1 -1
- package/icons/meet-driver.js +1 -1
- package/icons/meet-owner.js +1 -1
- package/icons/menu-list.js +1 -1
- package/icons/messages.js +1 -1
- package/icons/mileage.js +1 -1
- package/icons/minibus.js +1 -1
- package/icons/minus-circle-filled.js +1 -1
- package/icons/misc-gift.js +1 -1
- package/icons/nearby-device.js +1 -1
- package/icons/notification.js +1 -1
- package/icons/number-1-circle.js +1 -1
- package/icons/number-2-circle.js +1 -1
- package/icons/number-3-circle.js +1 -1
- package/icons/number-4-circle.js +1 -1
- package/icons/number-5-circle.js +1 -1
- package/icons/ok-hand.js +1 -1
- package/icons/option-air-conditioning.js +1 -1
- package/icons/option-android-auto.js +1 -1
- package/icons/option-apple-carplay.js +1 -1
- package/icons/option-audio-input.js +1 -1
- package/icons/option-baby-seat.js +1 -1
- package/icons/option-bike-rack.js +1 -1
- package/icons/option-bluetooth-audio.js +1 -1
- package/icons/option-cd-player.js +1 -1
- package/icons/option-chains.js +1 -1
- package/icons/option-cruise-control.js +1 -1
- package/icons/option-dashcam.js +1 -1
- package/icons/option-gps.js +1 -1
- package/icons/option-roof-box.js +1 -1
- package/icons/option-ski-rack.js +1 -1
- package/icons/option-snow-tire.js +1 -1
- package/icons/paperclip.js +1 -1
- package/icons/parking.js +1 -1
- package/icons/passport.js +1 -1
- package/icons/payments.js +1 -1
- package/icons/pencil.js +1 -1
- package/icons/people-user.js +1 -1
- package/icons/performance.js +1 -1
- package/icons/phone-link.js +1 -1
- package/icons/phone.js +1 -1
- package/icons/photos.js +1 -1
- package/icons/pig.js +1 -1
- package/icons/pin.js +1 -1
- package/icons/plus-circle-filled.js +1 -1
- package/icons/plus.js +1 -1
- package/icons/position.js +1 -1
- package/icons/pricing-flat.js +1 -1
- package/icons/pricing-variable.js +1 -1
- package/icons/profile-picture.js +1 -1
- package/icons/question-circle-filled.js +1 -1
- package/icons/question-circle.js +1 -1
- package/icons/question.js +1 -1
- package/icons/race-flag.js +1 -1
- package/icons/refresh.js +1 -1
- package/icons/reorder.js +1 -1
- package/icons/replacement-car.js +1 -1
- package/icons/reply.js +1 -1
- package/icons/reset.js +1 -1
- package/icons/ride.js +1 -1
- package/icons/roof-box.js +1 -1
- package/icons/seal-check.js +1 -1
- package/icons/search-car.js +1 -1
- package/icons/search-people.js +1 -1
- package/icons/search.js +1 -1
- package/icons/sedan.js +1 -1
- package/icons/service-battery.js +1 -1
- package/icons/service-cleaning.js +1 -1
- package/icons/service-fuel.js +1 -1
- package/icons/service-healing.js +1 -1
- package/icons/service-locked.js +1 -1
- package/icons/service-tolls.js +1 -1
- package/icons/service-unlocked.js +1 -1
- package/icons/settings.js +1 -1
- package/icons/share-android.js +1 -1
- package/icons/share-ios.js +1 -1
- package/icons/share.js +1 -1
- package/icons/shield-check.js +1 -1
- package/icons/shield.js +1 -1
- package/icons/shop.js +1 -1
- package/icons/ski-rack.js +1 -1
- package/icons/slider.js +1 -1
- package/icons/smartphone.js +1 -1
- package/icons/snow-tire.js +1 -1
- package/icons/social-facebook.js +1 -1
- package/icons/social-linkedin.js +1 -1
- package/icons/social-twitter.js +1 -1
- package/icons/social-whatsapp.js +1 -1
- package/icons/star-half.js +1 -1
- package/icons/star.js +1 -1
- package/icons/stars.js +1 -1
- package/icons/subway.js +1 -1
- package/icons/suitcase.js +1 -1
- package/icons/support.js +1 -1
- package/icons/suv.js +1 -1
- package/icons/synch.js +1 -1
- package/icons/tag.js +1 -1
- package/icons/time-alert.js +1 -1
- package/icons/time-backwards.js +1 -1
- package/icons/time-calendar.js +1 -1
- package/icons/time-forward.js +1 -1
- package/icons/tolls.js +1 -1
- package/icons/trailer.js +1 -1
- package/icons/train.js +1 -1
- package/icons/triangle-down.js +1 -1
- package/icons/triangle-right.js +1 -1
- package/icons/triangle-up.js +1 -1
- package/icons/twitter.js +1 -1
- package/icons/two-people.js +1 -1
- package/icons/unfold.js +1 -1
- package/icons/unlocked.js +1 -1
- package/icons/user-check.js +1 -1
- package/icons/user-question.js +1 -1
- package/icons/user-shield.js +1 -1
- package/icons/user-switch.js +1 -1
- package/icons/user.js +1 -1
- package/icons/utility-van-large.js +1 -1
- package/icons/utility-van-medium.js +1 -1
- package/icons/utility-van-small.js +1 -1
- package/icons/verified-seal.js +1 -1
- package/icons/walk.js +1 -1
- package/icons/wallet.js +1 -1
- package/icons/warning-circle-filled.js +1 -1
- package/icons/warning-circle.js +1 -1
- package/icons/whatsapp.js +1 -1
- package/icons/wheel.js +1 -1
- package/icons/wheelchair.js +1 -1
- package/icons/wrench.js +1 -1
- package/icons/yingyang.js +1 -1
- package/package.json +40 -42
- package/styles/components/Form/field.scss +4 -1
- package/types/__tests__/AsyncComponent.d.ts +5 -4
- package/types/components/Alerter/Alert.d.ts +4 -3
- package/types/components/BulletList/index.d.ts +1 -1
- package/types/components/Button/index.d.ts +6 -72
- package/types/components/Buttons/DefaultButton/index.d.ts +2 -24
- package/types/components/Buttons/GhostButton/index.d.ts +2 -24
- package/types/components/Buttons/helpers.d.ts +4 -3
- package/types/components/Card/index.d.ts +4 -3
- package/types/components/Cell/index.d.ts +7 -5
- package/types/components/Form/Autocomplete/index.d.ts +21 -18
- package/types/components/Form/CheckablePill.d.ts +2 -1
- package/types/components/Form/Checkmark.d.ts +2 -1
- package/types/components/Form/ComposedField.d.ts +6 -4
- package/types/components/Form/Select.d.ts +6 -4
- package/types/components/Form/Slider.d.ts +2 -40
- package/types/components/Form/Stepper.d.ts +1 -0
- package/types/components/Form/TextArea.d.ts +1 -0
- package/types/components/Form/TextInput.d.ts +7 -5
- package/types/components/Form/field.d.ts +2 -0
- package/types/components/Helper/index.d.ts +4 -3
- package/types/components/HorizontalList/index.d.ts +4 -3
- package/types/components/Modal/ModalBody.d.ts +5 -4
- package/types/components/Modal/ModalFooter.d.ts +4 -3
- package/types/components/Popover/index.d.ts +4 -3
- package/types/components/Rating/RatingLabel.d.ts +3 -1
- package/types/components/Rating/index.d.ts +2 -1
- package/types/components/Tabs/index.d.ts +14 -4
- package/types/components/utils/index.d.ts +0 -1
- package/types/components/utils/isExpectedReactComponent.d.ts +0 -3
- package/types/components/utils/isExpectedReactComponent.spec.d.ts +0 -1
|
@@ -2,6 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { IconSources } from "../Icon";
|
|
3
3
|
import { FormElement } from "./form";
|
|
4
4
|
export declare type TextInputType = "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
|
|
5
|
+
declare type Props = {
|
|
6
|
+
type?: TextInputType;
|
|
7
|
+
icon?: IconSources;
|
|
8
|
+
forwardedRef?: React.Ref<HTMLInputElement>;
|
|
9
|
+
} & FormElement & React.InputHTMLAttributes<HTMLInputElement>;
|
|
5
10
|
export declare const TextInputWrapper: ({ icon, status, render, }: {
|
|
6
11
|
icon?: "search" | "accountDetails" | "addPicture" | "airConditioning" | "airport" | "android" | "antique" | "arrowLeftCircleFilled" | "arrowLeft" | "arrowRightCircleFilled" | "arrowRightCircle" | "arrowRight" | "audioInput" | "babySeat" | "battery" | "bell" | "bikeRack" | "bin" | "bluetooth" | "briefcase" | "bulb" | "cable" | "cabriolet" | "calendarCheck" | "calendarClock" | "calendarEnd" | "calendarStart" | "calendar" | "cameraAdd" | "camera" | "campervan" | "carAdd" | "carCheck" | "carDamages" | "carDrivyOpen" | "carGroup" | "carLock" | "carPlay" | "carReturn" | "carSearch" | "carTypeAntique" | "carTypeCabriolet" | "carTypeCampervan" | "carTypeCity" | "carTypeConvertible" | "carTypeCoupe" | "carTypeFamily" | "carTypeFourFour" | "carTypeMinibus" | "carTypeSedan" | "carTypeUtility" | "car" | "card" | "cdPlayer" | "certificate" | "chains" | "checkCircleFilled" | "checkCircle" | "check" | "checklist" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "circledArrowRight" | "city" | "cleaning" | "clockAlert" | "clockBackwards" | "clockForwards" | "clock" | "closeCircleFilled" | "close" | "connectCar" | "contactMail" | "contactPhone" | "contextualPaperclip" | "contextualQuestion" | "contextualWarningCircleFilled" | "contextualWarningCircle" | "convertible" | "copy" | "coupe" | "creditCardAdd" | "creditCardError" | "creditCard" | "cruiseControl" | "dashcam" | "directions" | "document" | "dotHorizontal" | "dotVertical" | "dotsHorizontal" | "dotsVertical" | "download" | "earning" | "earth" | "edit" | "electric" | "evBattery" | "evCable" | "evCharger" | "externalLink" | "eyeClosed" | "eyeOpened" | "eye" | "faceRecognition" | "facebook" | "family" | "fileFilled" | "filter" | "filters" | "flag" | "fourByFour" | "fuelTank" | "geolocation" | "gift" | "gps" | "graphUp" | "healing" | "heart" | "hitch" | "home" | "idCard" | "incident" | "infoCircleFilled" | "infoCircle" | "infoFilled" | "info" | "instant" | "invoice" | "keyConnect" | "key" | "licenceCheck" | "licencePaper" | "licence" | "lifeBuoy" | "linkedin" | "loading" | "locality" | "locationMap" | "locationParking" | "locationPin" | "location" | "lockCheck" | "locked" | "login" | "logout" | "mailCheck" | "mail" | "mapAlt" | "map" | "meetDriver" | "meetOwner" | "menuList" | "messages" | "mileage" | "minibus" | "minusCircleFilled" | "minus" | "miscGift" | "nearbyDevice" | "notification" | "number1Circle" | "number2Circle" | "number3Circle" | "number4Circle" | "number5Circle" | "okHand" | "optionAirConditioning" | "optionAndroidAuto" | "optionAppleCarplay" | "optionAudioInput" | "optionBabySeat" | "optionBikeRack" | "optionBluetoothAudio" | "optionCdPlayer" | "optionChains" | "optionCruiseControl" | "optionDashcam" | "optionGps" | "optionHasTrailer" | "optionHitch" | "optionRoofBox" | "optionSkiRack" | "optionSnowTire" | "optionWheelchairAccessible" | "paperclip" | "parking" | "passport" | "payments" | "pencil" | "peopleUser" | "performance" | "phoneLink" | "phone" | "photos" | "pig" | "pin" | "plug" | "plusCircleFilled" | "plus" | "position" | "pricingFlat" | "pricingVariable" | "profilePicture" | "questionCircleFilled" | "questionCircle" | "question" | "raceFlag" | "refresh" | "reorder" | "replacementCar" | "reply" | "reset" | "ride" | "roofBox" | "sealCheck" | "searchCar" | "searchPeople" | "sedan" | "serviceBattery" | "serviceCleaning" | "serviceFuel" | "serviceHealing" | "serviceLocked" | "serviceTolls" | "serviceUnlocked" | "settings" | "shareAndroid" | "shareIos" | "share" | "shieldCheck" | "shield" | "shop" | "skiRack" | "slider" | "smartphone" | "snowTire" | "socialFacebook" | "socialLinkedin" | "socialTwitter" | "socialWhatsapp" | "starHalf" | "star" | "stars" | "subway" | "suitcase" | "support" | "suv" | "synch" | "tag" | "timeAlert" | "timeBackwards" | "timeCalendar" | "timeForward" | "tolls" | "trailer" | "train" | "triangleDown" | "triangleRight" | "triangleUp" | "twitter" | "twoPeople" | "unfold" | "unlocked" | "userCheck" | "userQuestion" | "userShield" | "userSwitch" | "user" | "utilityVanLarge" | "utilityVanMedium" | "utilityVanSmall" | "verifiedSeal" | "walk" | "wallet" | "warningCircleFilled" | "warningCircle" | "whatsapp" | "wheel" | "wheelchair" | "wrench" | "yingyang" | undefined;
|
|
7
12
|
status?: FormElement["status"];
|
|
@@ -16,11 +21,8 @@ declare const wrappedComponent: React.ComponentClass<{
|
|
|
16
21
|
label?: string | undefined;
|
|
17
22
|
hint?: string | undefined;
|
|
18
23
|
fieldClassName?: string | undefined;
|
|
24
|
+
fullWidth?: boolean | undefined;
|
|
19
25
|
}, any> & {
|
|
20
|
-
Raw: React.ComponentType<
|
|
21
|
-
type?: TextInputType | undefined;
|
|
22
|
-
icon?: "search" | "accountDetails" | "addPicture" | "airConditioning" | "airport" | "android" | "antique" | "arrowLeftCircleFilled" | "arrowLeft" | "arrowRightCircleFilled" | "arrowRightCircle" | "arrowRight" | "audioInput" | "babySeat" | "battery" | "bell" | "bikeRack" | "bin" | "bluetooth" | "briefcase" | "bulb" | "cable" | "cabriolet" | "calendarCheck" | "calendarClock" | "calendarEnd" | "calendarStart" | "calendar" | "cameraAdd" | "camera" | "campervan" | "carAdd" | "carCheck" | "carDamages" | "carDrivyOpen" | "carGroup" | "carLock" | "carPlay" | "carReturn" | "carSearch" | "carTypeAntique" | "carTypeCabriolet" | "carTypeCampervan" | "carTypeCity" | "carTypeConvertible" | "carTypeCoupe" | "carTypeFamily" | "carTypeFourFour" | "carTypeMinibus" | "carTypeSedan" | "carTypeUtility" | "car" | "card" | "cdPlayer" | "certificate" | "chains" | "checkCircleFilled" | "checkCircle" | "check" | "checklist" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "circledArrowRight" | "city" | "cleaning" | "clockAlert" | "clockBackwards" | "clockForwards" | "clock" | "closeCircleFilled" | "close" | "connectCar" | "contactMail" | "contactPhone" | "contextualPaperclip" | "contextualQuestion" | "contextualWarningCircleFilled" | "contextualWarningCircle" | "convertible" | "copy" | "coupe" | "creditCardAdd" | "creditCardError" | "creditCard" | "cruiseControl" | "dashcam" | "directions" | "document" | "dotHorizontal" | "dotVertical" | "dotsHorizontal" | "dotsVertical" | "download" | "earning" | "earth" | "edit" | "electric" | "evBattery" | "evCable" | "evCharger" | "externalLink" | "eyeClosed" | "eyeOpened" | "eye" | "faceRecognition" | "facebook" | "family" | "fileFilled" | "filter" | "filters" | "flag" | "fourByFour" | "fuelTank" | "geolocation" | "gift" | "gps" | "graphUp" | "healing" | "heart" | "hitch" | "home" | "idCard" | "incident" | "infoCircleFilled" | "infoCircle" | "infoFilled" | "info" | "instant" | "invoice" | "keyConnect" | "key" | "licenceCheck" | "licencePaper" | "licence" | "lifeBuoy" | "linkedin" | "loading" | "locality" | "locationMap" | "locationParking" | "locationPin" | "location" | "lockCheck" | "locked" | "login" | "logout" | "mailCheck" | "mail" | "mapAlt" | "map" | "meetDriver" | "meetOwner" | "menuList" | "messages" | "mileage" | "minibus" | "minusCircleFilled" | "minus" | "miscGift" | "nearbyDevice" | "notification" | "number1Circle" | "number2Circle" | "number3Circle" | "number4Circle" | "number5Circle" | "okHand" | "optionAirConditioning" | "optionAndroidAuto" | "optionAppleCarplay" | "optionAudioInput" | "optionBabySeat" | "optionBikeRack" | "optionBluetoothAudio" | "optionCdPlayer" | "optionChains" | "optionCruiseControl" | "optionDashcam" | "optionGps" | "optionHasTrailer" | "optionHitch" | "optionRoofBox" | "optionSkiRack" | "optionSnowTire" | "optionWheelchairAccessible" | "paperclip" | "parking" | "passport" | "payments" | "pencil" | "peopleUser" | "performance" | "phoneLink" | "phone" | "photos" | "pig" | "pin" | "plug" | "plusCircleFilled" | "plus" | "position" | "pricingFlat" | "pricingVariable" | "profilePicture" | "questionCircleFilled" | "questionCircle" | "question" | "raceFlag" | "refresh" | "reorder" | "replacementCar" | "reply" | "reset" | "ride" | "roofBox" | "sealCheck" | "searchCar" | "searchPeople" | "sedan" | "serviceBattery" | "serviceCleaning" | "serviceFuel" | "serviceHealing" | "serviceLocked" | "serviceTolls" | "serviceUnlocked" | "settings" | "shareAndroid" | "shareIos" | "share" | "shieldCheck" | "shield" | "shop" | "skiRack" | "slider" | "smartphone" | "snowTire" | "socialFacebook" | "socialLinkedin" | "socialTwitter" | "socialWhatsapp" | "starHalf" | "star" | "stars" | "subway" | "suitcase" | "support" | "suv" | "synch" | "tag" | "timeAlert" | "timeBackwards" | "timeCalendar" | "timeForward" | "tolls" | "trailer" | "train" | "triangleDown" | "triangleRight" | "triangleUp" | "twitter" | "twoPeople" | "unfold" | "unlocked" | "userCheck" | "userQuestion" | "userShield" | "userSwitch" | "user" | "utilityVanLarge" | "utilityVanMedium" | "utilityVanSmall" | "verifiedSeal" | "walk" | "wallet" | "warningCircleFilled" | "warningCircle" | "whatsapp" | "wheel" | "wheelchair" | "wrench" | "yingyang" | undefined;
|
|
23
|
-
forwardedRef?: React.Ref<HTMLInputElement> | undefined;
|
|
24
|
-
} & FormElement & React.InputHTMLAttributes<HTMLInputElement>>;
|
|
26
|
+
Raw: React.ComponentType<Props>;
|
|
25
27
|
};
|
|
26
28
|
export { wrappedComponent as TextInput };
|
|
@@ -5,12 +5,14 @@ declare type InjectedProps = {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
hint?: string;
|
|
7
7
|
fieldClassName?: string;
|
|
8
|
+
fullWidth?: boolean;
|
|
8
9
|
} & FormElement;
|
|
9
10
|
export declare const withFieldLabelAndHint: <OriginalProps>(WrappedComponent: React.ComponentType<OriginalProps>) => React.ComponentClass<OriginalProps & {
|
|
10
11
|
id?: string | undefined;
|
|
11
12
|
label?: string | undefined;
|
|
12
13
|
hint?: string | undefined;
|
|
13
14
|
fieldClassName?: string | undefined;
|
|
15
|
+
fullWidth?: boolean | undefined;
|
|
14
16
|
} & FormElement, any> & {
|
|
15
17
|
Raw: React.ComponentType<OriginalProps>;
|
|
16
18
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import DefaultButton from "../Buttons/DefaultButton";
|
|
3
|
-
declare type HelperPropsType =
|
|
3
|
+
declare type HelperPropsType = {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
className?: string;
|
|
5
6
|
title: string;
|
|
6
7
|
titleClassName?: string;
|
|
7
8
|
contentClassName?: string;
|
|
8
9
|
cta?: ReturnType<typeof DefaultButton | typeof DefaultButton.Link>;
|
|
9
|
-
}
|
|
10
|
+
};
|
|
10
11
|
declare const Helper: ({ className, titleClassName, contentClassName, title, children, cta, }: HelperPropsType) => JSX.Element;
|
|
11
12
|
export default Helper;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { CobaltBreakpointType } from "../../hooks/useBreakpoint";
|
|
3
|
-
export declare type HorizontalListPropsType =
|
|
3
|
+
export declare type HorizontalListPropsType = {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
className?: string;
|
|
5
6
|
fitFrom?: Exclude<CobaltBreakpointType, "over">;
|
|
6
|
-
}
|
|
7
|
+
};
|
|
7
8
|
export default function HorizontalList({ className, fitFrom, children, }: HorizontalListPropsType): JSX.Element;
|
|
8
9
|
declare type HorizontalScrollerPaddingBlockProps = {
|
|
9
10
|
className?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const ModalBody:
|
|
3
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ModalBody: ({ children, bodySpacing, hasHeader, hasFooter, }: {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
bodySpacing?: boolean | undefined;
|
|
4
5
|
hasHeader: boolean;
|
|
5
6
|
hasFooter: boolean;
|
|
6
|
-
}
|
|
7
|
+
}) => JSX.Element;
|
|
7
8
|
export default ModalBody;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type ModalFooterPropsType =
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type ModalFooterPropsType = {
|
|
3
|
+
children?: React.ReactNode;
|
|
3
4
|
className?: string;
|
|
4
|
-
}
|
|
5
|
+
};
|
|
5
6
|
declare const ModalFooter: ({ children, className }: ModalFooterPropsType) => JSX.Element;
|
|
6
7
|
export default ModalFooter;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { TippyProps } from "@tippyjs/react";
|
|
3
|
-
export declare type PopoverPropsType =
|
|
3
|
+
export declare type PopoverPropsType = {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
close: () => void;
|
|
6
7
|
"aria-label"?: string;
|
|
@@ -20,6 +21,6 @@ export declare type PopoverPropsType = PropsWithChildren<{
|
|
|
20
21
|
* Useful to render async content in the popover
|
|
21
22
|
*/
|
|
22
23
|
lazy?: boolean;
|
|
23
|
-
}
|
|
24
|
+
};
|
|
24
25
|
declare const Popover: ({ isOpen, targetRef, close, "aria-label": ariaLabel, children, bodySpacing, onShow, onHidden, arrow, placement, theme, distance, zIndex, lazy, }: PopoverPropsType) => JSX.Element;
|
|
25
26
|
export default Popover;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare type RatingLabelPropsType =
|
|
2
|
+
declare type RatingLabelPropsType = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
};
|
|
3
5
|
declare function RatingLabel({ children }: RatingLabelPropsType): JSX.Element;
|
|
4
6
|
export default RatingLabel;
|
|
@@ -3,7 +3,8 @@ import { RatingIcons, RatingIconsPropsType } from "./RatingIcons";
|
|
|
3
3
|
import { RatingInput } from "./RatingInput";
|
|
4
4
|
import { RatingCompact } from "./RatingCompact";
|
|
5
5
|
import RatingLabel from "./RatingLabel";
|
|
6
|
-
declare type RatingPropsType =
|
|
6
|
+
declare type RatingPropsType = RatingIconsPropsType & {
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
iconsClassName?: RatingIconsPropsType["className"];
|
|
8
9
|
};
|
|
9
10
|
declare function formatRatingValue(value: number): string | number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare type TabsPropsType = {
|
|
3
|
+
children?: React.ReactNode;
|
|
3
4
|
/**
|
|
4
5
|
* Index of the initial actived tab (first tab by default)
|
|
5
6
|
*/
|
|
@@ -14,6 +15,7 @@ export declare type TabsPropsType = {
|
|
|
14
15
|
subLevel?: boolean;
|
|
15
16
|
};
|
|
16
17
|
declare type TabPropsType = {
|
|
18
|
+
children?: React.ReactNode;
|
|
17
19
|
/**
|
|
18
20
|
* Label/title of the tab
|
|
19
21
|
*/
|
|
@@ -23,8 +25,16 @@ declare type TabPropsType = {
|
|
|
23
25
|
*/
|
|
24
26
|
href?: string;
|
|
25
27
|
};
|
|
26
|
-
export declare const Tab:
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
export declare const Tab: {
|
|
29
|
+
(_props: TabPropsType): null;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const Tabs: {
|
|
33
|
+
({ children, defaultTabIndex, onChange, subLevel, }: TabsPropsType): JSX.Element;
|
|
34
|
+
Tab: {
|
|
35
|
+
(_props: TabPropsType): null;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
displayName: string;
|
|
29
39
|
};
|
|
30
40
|
export default Tabs;
|
|
@@ -4,6 +4,5 @@ export { default as eqSet } from "./eqSet";
|
|
|
4
4
|
export { default as getThemeColors } from "./getThemeColors";
|
|
5
5
|
export { default as throttle } from "lodash.throttle";
|
|
6
6
|
export { default as Timer } from "./Timer";
|
|
7
|
-
export { default as isExpectedReactComponent } from "./isExpectedReactComponent";
|
|
8
7
|
export { getScrollbarWidth } from "./dom";
|
|
9
8
|
export { remToPx } from "./px";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ReactElement } from "react";
|
|
2
|
-
declare const isExpectedReactComponent: <ComponentPropsType>(component: ReactNode, expectedComponent: ReactNode) => component is ReactElement<ComponentPropsType, string | import("react").JSXElementConstructor<any>>;
|
|
3
|
-
export default isExpectedReactComponent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|