Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Styled Components #4317

Merged
merged 16 commits into from
Apr 4, 2024
Merged

Remove Styled Components #4317

merged 16 commits into from
Apr 4, 2024

Conversation

DSil
Copy link
Collaborator

@DSil DSil commented Mar 25, 2024

Created on top of #4313.

Remove Styled Components from the orbit-components package.

The OrbitProvider no longer includes the styled-components' ThemeProvider. This should have no impact for teams not using styled-components.

Docs and migration guide updated accordingly.

FEPLT-1923

@DSil DSil self-assigned this Mar 25, 2024
Copy link

cloudflare-workers-and-pages bot commented Mar 25, 2024

Deploying orbit with  Cloudflare Pages  Cloudflare Pages

Latest commit: fd70526
Status: ✅  Deploy successful!
Preview URL: https://09e95280.orbit.pages.dev
Branch Preview URL: https://tw-refactor-orbit-provider.orbit.pages.dev

View logs

@DSil DSil force-pushed the tw/refactor-orbit-provider branch from 12f029e to 0b2a0cb Compare March 25, 2024 20:59
Copy link
Contributor

Storybook staging is available at https://kiwicom-orbit-tw-refactor-orbit-provider.surge.sh

Copy link
Contributor

github-actions bot commented Mar 25, 2024

Size Change: -4.67 kB (-1%)

Total Size: 436 kB

Filename Size Change
packages/orbit-components/lib/common/consts.js 383 B +110 B (+40%) 🚨
packages/orbit-components/lib/common/getSpacingToken/consts.js 0 B -245 B (removed) 🏆
packages/orbit-components/lib/common/getSpacingToken/index.js 0 B -347 B (removed) 🏆
packages/orbit-components/lib/common/tailwind/spaceAfter.js 503 B -3 B (-1%)
packages/orbit-components/lib/hooks/useTheme/index.js 243 B +2 B (+1%)
packages/orbit-components/lib/hooks/useTransition/index.js 0 B -801 B (removed) 🏆
packages/orbit-components/lib/Icon/IconList.js 655 B -264 B (-29%) 🎉
packages/orbit-components/lib/icons/ColoredImessage.js 693 B -1 B (0%)
packages/orbit-components/lib/icons/ColoredTelegram.js 816 B -1 B (0%)
packages/orbit-components/lib/index.js 2.48 kB -18 B (-1%)
packages/orbit-components/lib/InputField/helpers/formElementFocus.js 0 B -155 B (removed) 🏆
packages/orbit-components/lib/OrbitProvider/index.js 821 B -12 B (-1%)
packages/orbit-components/lib/primitives/ButtonPrimitive/components/ButtonPrimitiveContent.js 0 B -572 B (removed) 🏆
packages/orbit-components/lib/Text/deprecated/index.js 0 B -1.24 kB (removed) 🏆
packages/orbit-components/lib/TextLink/deprecated/index.js 0 B -695 B (removed) 🏆
packages/orbit-components/lib/utils/common/index.js 0 B -485 B (removed) 🏆
packages/orbit-components/lib/utils/rtl/index.js 310 B -258 B (-45%) 🎉
packages/orbit-components/lib/OrbitProvider/ThemeProvider/Provider.js 315 B +315 B (new file) 🆕
ℹ️ View Unchanged
Filename Size
packages/orbit-components/lib/Accordion/AccordionContext.js 336 B
packages/orbit-components/lib/Accordion/AccordionSection/components/SectionContent.js 287 B
packages/orbit-components/lib/Accordion/AccordionSection/components/SectionFooter.js 321 B
packages/orbit-components/lib/Accordion/AccordionSection/components/SectionHeader.js 470 B
packages/orbit-components/lib/Accordion/AccordionSection/index.js 754 B
packages/orbit-components/lib/Accordion/index.js 659 B
packages/orbit-components/lib/AirportIllustration/index.js 344 B
packages/orbit-components/lib/Alert/AlertButton/consts.js 376 B
packages/orbit-components/lib/Alert/AlertButton/helpers/getAlertButtonBoxShadow.js 576 B
packages/orbit-components/lib/Alert/AlertButton/helpers/getAlertButtonIconForeground.js 268 B
packages/orbit-components/lib/Alert/AlertButton/helpers/getAlertButtonStyles.js 507 B
packages/orbit-components/lib/Alert/AlertButton/helpers/getAlertButtonTypeToken.js 770 B
packages/orbit-components/lib/Alert/AlertButton/index.js 625 B
packages/orbit-components/lib/Alert/consts.js 304 B
packages/orbit-components/lib/Alert/index.js 1.62 kB
packages/orbit-components/lib/Badge/consts.js 268 B
packages/orbit-components/lib/Badge/index.js 698 B
packages/orbit-components/lib/BadgeList/BadgeListItem/index.js 990 B
packages/orbit-components/lib/BadgeList/consts.js 272 B
packages/orbit-components/lib/BadgeList/index.js 341 B
packages/orbit-components/lib/Box/helpers/getBackground.js 225 B
packages/orbit-components/lib/Box/helpers/getBorderRadius.js 213 B
packages/orbit-components/lib/Box/helpers/getColor.js 210 B
packages/orbit-components/lib/Box/helpers/getElevation.js 210 B
packages/orbit-components/lib/Box/helpers/getMargin.js 355 B
packages/orbit-components/lib/Box/helpers/getOverflow.js 207 B
packages/orbit-components/lib/Box/helpers/getPadding.js 358 B
packages/orbit-components/lib/Box/helpers/getPosition.js 206 B
packages/orbit-components/lib/Box/helpers/getTextAlign.js 216 B
packages/orbit-components/lib/Box/helpers/getWrap.js 210 B
packages/orbit-components/lib/Box/helpers/index.js 610 B
packages/orbit-components/lib/Box/helpers/tailwindClasses.js 1.21 kB
packages/orbit-components/lib/Box/index.js 2.03 kB
packages/orbit-components/lib/Breadcrumbs/BreadcrumbsItem/index.js 928 B
packages/orbit-components/lib/Breadcrumbs/index.js 860 B
packages/orbit-components/lib/Button/consts.js 341 B
packages/orbit-components/lib/Button/index.js 1.21 kB
packages/orbit-components/lib/ButtonGroup/index.js 352 B
packages/orbit-components/lib/ButtonLink/consts.js 292 B
packages/orbit-components/lib/ButtonLink/helpers/getButtonLinkCommonProps.js 272 B
packages/orbit-components/lib/ButtonLink/helpers/getButtonLinkIconForeground.js 435 B
packages/orbit-components/lib/ButtonLink/helpers/getButtonLinkStyles.js 479 B
packages/orbit-components/lib/ButtonLink/helpers/getButtonLinkTypeToken.js 390 B
packages/orbit-components/lib/ButtonLink/index.js 890 B
packages/orbit-components/lib/ButtonMobileStore/consts.js 344 B
packages/orbit-components/lib/ButtonMobileStore/index.js 622 B
packages/orbit-components/lib/CallOutBanner/index.js 747 B
packages/orbit-components/lib/Card/CardSection/components/Expandable.js 395 B
packages/orbit-components/lib/Card/CardSection/index.js 1.26 kB
packages/orbit-components/lib/Card/components/Header.js 759 B
packages/orbit-components/lib/Card/index.js 872 B
packages/orbit-components/lib/CarrierLogo/consts.js 349 B
packages/orbit-components/lib/CarrierLogo/index.js 1.26 kB
packages/orbit-components/lib/Checkbox/index.js 1.19 kB
packages/orbit-components/lib/ChoiceGroup/components/Feedback.js 555 B
packages/orbit-components/lib/ChoiceGroup/components/FilterWrapper.js 644 B
packages/orbit-components/lib/ChoiceGroup/consts.js 241 B
packages/orbit-components/lib/ChoiceGroup/index.js 1.2 kB
packages/orbit-components/lib/Collapse/index.js 1.15 kB
packages/orbit-components/lib/common/getFieldDataState.js 138 B
packages/orbit-components/lib/common/keyMaps.js 202 B
packages/orbit-components/lib/common/tailwind/alignContent.js 572 B
packages/orbit-components/lib/common/tailwind/alignItems.js 543 B
packages/orbit-components/lib/common/tailwind/backgroundColor.js 2.33 kB
packages/orbit-components/lib/common/tailwind/color.js 2.33 kB
packages/orbit-components/lib/common/tailwind/direction.js 512 B
packages/orbit-components/lib/common/tailwind/display.js 656 B
packages/orbit-components/lib/common/tailwind/grow.js 412 B
packages/orbit-components/lib/common/tailwind/index.js 532 B
packages/orbit-components/lib/common/tailwind/justify.js 550 B
packages/orbit-components/lib/common/tailwind/margin.js 1.65 kB
packages/orbit-components/lib/common/tailwind/padding.js 1.32 kB
packages/orbit-components/lib/common/tailwind/shrink.js 427 B
packages/orbit-components/lib/common/tailwind/spacing.js 2.08 kB
packages/orbit-components/lib/common/tailwind/textAlign.js 512 B
packages/orbit-components/lib/common/tailwind/wrap.js 416 B
packages/orbit-components/lib/CountryFlag/consts.js 1.51 kB
packages/orbit-components/lib/CountryFlag/index.js 829 B
packages/orbit-components/lib/Coupon/index.js 379 B
packages/orbit-components/lib/defaultTheme.js 213 B
packages/orbit-components/lib/Dialog/index.js 1.53 kB
packages/orbit-components/lib/Drawer/components/DrawerClose.js 376 B
packages/orbit-components/lib/Drawer/consts.js 185 B
packages/orbit-components/lib/Drawer/index.js 1.64 kB
packages/orbit-components/lib/ErrorFormTooltip/hooks/useErrorTooltip.js 320 B
packages/orbit-components/lib/ErrorFormTooltip/index.js 411 B
packages/orbit-components/lib/ErrorFormTooltip/Tooltip/index.js 1.77 kB
packages/orbit-components/lib/FeatureIcon/consts.js 244 B
packages/orbit-components/lib/FeatureIcon/index.js 542 B
packages/orbit-components/lib/FormLabel/index.js 676 B
packages/orbit-components/lib/fromPlainObject.js 148 B
packages/orbit-components/lib/getTokens.js 147 B
packages/orbit-components/lib/Heading/consts.js 434 B
packages/orbit-components/lib/Heading/index.js 810 B
packages/orbit-components/lib/Heading/twClasses.js 775 B
packages/orbit-components/lib/Hide/index.js 383 B
packages/orbit-components/lib/hooks/useBoundingRect/index.js 431 B
packages/orbit-components/lib/hooks/useClickOutside/index.js 333 B
packages/orbit-components/lib/hooks/useEventListener/index.js 529 B
packages/orbit-components/lib/hooks/useFocusTrap/consts.js 216 B
packages/orbit-components/lib/hooks/useFocusTrap/index.js 654 B
packages/orbit-components/lib/hooks/useIntersect/index.js 430 B
packages/orbit-components/lib/hooks/useInterval/index.js 281 B
packages/orbit-components/lib/hooks/useIsMounted/index.js 270 B
packages/orbit-components/lib/hooks/useIsMountedRef/index.js 210 B
packages/orbit-components/lib/hooks/useLockScrolling/index.js 558 B
packages/orbit-components/lib/hooks/useLockScrolling/lock-scrolling.js 2.34 kB
packages/orbit-components/lib/hooks/useMediaQuery/index.js 1.02 kB
packages/orbit-components/lib/hooks/usePrevious/index.js 260 B
packages/orbit-components/lib/hooks/useRandomId/index.js 238 B
packages/orbit-components/lib/hooks/useStateWithCallback/index.js 265 B
packages/orbit-components/lib/hooks/useStateWithTimeout/index.js 358 B
packages/orbit-components/lib/hooks/useToggle/index.js 267 B
packages/orbit-components/lib/HorizontalScroll/helpers.js 200 B
packages/orbit-components/lib/HorizontalScroll/index.js 1.63 kB
packages/orbit-components/lib/HorizontalScroll/useScroll.js 1.02 kB
packages/orbit-components/lib/Icon/consts.js 311 B
packages/orbit-components/lib/Icon/createIcon.js 349 B
packages/orbit-components/lib/Icon/helpers/whiteListProps.js 254 B
packages/orbit-components/lib/Icon/index.js 881 B
packages/orbit-components/lib/icons/Accommodation.js 511 B
packages/orbit-components/lib/icons/AccountCircle.js 613 B
packages/orbit-components/lib/icons/Admin.js 808 B
packages/orbit-components/lib/icons/Ai.js 650 B
packages/orbit-components/lib/icons/AirConditioning.js 1.02 kB
packages/orbit-components/lib/icons/Airplane.js 789 B
packages/orbit-components/lib/icons/AirplaneDown.js 661 B
packages/orbit-components/lib/icons/AirplaneLanding.js 830 B
packages/orbit-components/lib/icons/AirplaneReturn.js 796 B
packages/orbit-components/lib/icons/AirplaneTakeoff.js 863 B
packages/orbit-components/lib/icons/AirplaneUp.js 667 B
packages/orbit-components/lib/icons/AirplaneUpOff.js 753 B
packages/orbit-components/lib/icons/AirportSecurity.js 613 B
packages/orbit-components/lib/icons/Alert.js 510 B
packages/orbit-components/lib/icons/AlertCircle.js 445 B
packages/orbit-components/lib/icons/AlertOctagon.js 416 B
packages/orbit-components/lib/icons/All.js 664 B
packages/orbit-components/lib/icons/Android.js 616 B
packages/orbit-components/lib/icons/Anywhere.js 923 B
packages/orbit-components/lib/icons/Apple.js 602 B
packages/orbit-components/lib/icons/AppNotification.js 789 B
packages/orbit-components/lib/icons/ArrowDown.js 466 B
packages/orbit-components/lib/icons/ArrowUp.js 454 B
packages/orbit-components/lib/icons/Atm.js 755 B
packages/orbit-components/lib/icons/Attachment.js 551 B
packages/orbit-components/lib/icons/BaggageCabin.js 676 B
packages/orbit-components/lib/icons/BaggageCabinNone.js 746 B
packages/orbit-components/lib/icons/BaggageChecked10.js 636 B
packages/orbit-components/lib/icons/BaggageChecked20.js 632 B
packages/orbit-components/lib/icons/BaggageChecked30.js 648 B
packages/orbit-components/lib/icons/BaggageCheckedNone.js 753 B
packages/orbit-components/lib/icons/BaggagePersonal.js 943 B
packages/orbit-components/lib/icons/BaggagePersonalNone.js 990 B
packages/orbit-components/lib/icons/BaggageRecheck.js 595 B
packages/orbit-components/lib/icons/BaggageSet.js 797 B
packages/orbit-components/lib/icons/BaggageStorage.js 757 B
packages/orbit-components/lib/icons/Bank.js 607 B
packages/orbit-components/lib/icons/BillingDetails.js 668 B
packages/orbit-components/lib/icons/BoardingGate.js 781 B
packages/orbit-components/lib/icons/Boat.js 965 B
packages/orbit-components/lib/icons/Bookmark.js 481 B
packages/orbit-components/lib/icons/Bug.js 889 B
packages/orbit-components/lib/icons/Bus.js 715 B
packages/orbit-components/lib/icons/Cake.js 834 B
packages/orbit-components/lib/icons/Calendar.js 567 B
packages/orbit-components/lib/icons/CalendarAnytime.js 636 B
packages/orbit-components/lib/icons/CalendarDuration.js 630 B
packages/orbit-components/lib/icons/CalendarRange.js 622 B
packages/orbit-components/lib/icons/CalendarTripLength.js 667 B
packages/orbit-components/lib/icons/Camera.js 638 B
packages/orbit-components/lib/icons/Car.js 738 B
packages/orbit-components/lib/icons/CarDoor.js 480 B
packages/orbit-components/lib/icons/CarRental.js 1.04 kB
packages/orbit-components/lib/icons/Chart.js 543 B
packages/orbit-components/lib/icons/Chat.js 477 B
packages/orbit-components/lib/icons/Check.js 400 B
packages/orbit-components/lib/icons/CheckCircle.js 435 B
packages/orbit-components/lib/icons/ChevronBackward.js 438 B
packages/orbit-components/lib/icons/ChevronDoubleBackward.js 450 B
packages/orbit-components/lib/icons/ChevronDoubleForward.js 439 B
packages/orbit-components/lib/icons/ChevronDown.js 410 B
packages/orbit-components/lib/icons/ChevronForward.js 433 B
packages/orbit-components/lib/icons/ChevronUp.js 417 B
packages/orbit-components/lib/icons/Child.js 796 B
packages/orbit-components/lib/icons/ChildFriendly.js 675 B
packages/orbit-components/lib/icons/Circle.js 337 B
packages/orbit-components/lib/icons/CircleEmpty.js 402 B
packages/orbit-components/lib/icons/CircleFilled.js 436 B
packages/orbit-components/lib/icons/CircleSmall.js 344 B
packages/orbit-components/lib/icons/CircleSmallEmpty.js 373 B
packages/orbit-components/lib/icons/City.js 586 B
packages/orbit-components/lib/icons/Clock.js 469 B
packages/orbit-components/lib/icons/Close.js 449 B
packages/orbit-components/lib/icons/CloseCircle.js 491 B
packages/orbit-components/lib/icons/Cocktail.js 721 B
packages/orbit-components/lib/icons/Code.js 500 B
packages/orbit-components/lib/icons/CodeKiwi.js 434 B
packages/orbit-components/lib/icons/Coffee.js 527 B
packages/orbit-components/lib/icons/ColoredFacebook.js 626 B
packages/orbit-components/lib/icons/ColoredMessenger.js 790 B
packages/orbit-components/lib/icons/ColoredSignal.js 1.06 kB
packages/orbit-components/lib/icons/ColoredTwitter.js 595 B
packages/orbit-components/lib/icons/ColoredViber.js 1.37 kB
packages/orbit-components/lib/icons/ColoredWhatsapp.js 866 B
packages/orbit-components/lib/icons/ColorPicker.js 591 B
packages/orbit-components/lib/icons/Compare.js 680 B
packages/orbit-components/lib/icons/Compass.js 482 B
packages/orbit-components/lib/icons/ContactEmail.js 869 B
packages/orbit-components/lib/icons/Copy.js 535 B
packages/orbit-components/lib/icons/CreditCard.js 500 B
packages/orbit-components/lib/icons/CustomerSupport.js 626 B
packages/orbit-components/lib/icons/Dashboard.js 706 B
packages/orbit-components/lib/icons/Deals.js 467 B
packages/orbit-components/lib/icons/DealsV2.js 636 B
packages/orbit-components/lib/icons/DeviceDesktop.js 512 B
packages/orbit-components/lib/icons/DeviceMobile.js 418 B
packages/orbit-components/lib/icons/Diamond.js 620 B
packages/orbit-components/lib/icons/Document.js 584 B
packages/orbit-components/lib/icons/Download.js 519 B
packages/orbit-components/lib/icons/Duplicate.js 667 B
packages/orbit-components/lib/icons/Edit.js 483 B
packages/orbit-components/lib/icons/EditOff.js 561 B
packages/orbit-components/lib/icons/Email.js 601 B
packages/orbit-components/lib/icons/Entertainment.js 520 B
packages/orbit-components/lib/icons/Exchange.js 1.02 kB
packages/orbit-components/lib/icons/Facebook.js 500 B
packages/orbit-components/lib/icons/FamilyAll.js 669 B
packages/orbit-components/lib/icons/FamilyHalf.js 708 B
packages/orbit-components/lib/icons/Feedback.js 478 B
packages/orbit-components/lib/icons/Filters.js 603 B
packages/orbit-components/lib/icons/Flash.js 482 B
packages/orbit-components/lib/icons/FlightDirect.js 452 B
packages/orbit-components/lib/icons/FlightMulticity.js 511 B
packages/orbit-components/lib/icons/FlightNomad.js 692 B
packages/orbit-components/lib/icons/FlightReturn.js 585 B
packages/orbit-components/lib/icons/FlightServices.js 689 B
packages/orbit-components/lib/icons/Fuel.js 662 B
packages/orbit-components/lib/icons/FullScreen.js 624 B
packages/orbit-components/lib/icons/FullScreenOff.js 666 B
packages/orbit-components/lib/icons/Gallery.js 702 B
packages/orbit-components/lib/icons/GenderMan.js 1.07 kB
packages/orbit-components/lib/icons/GenderWoman.js 1.22 kB
packages/orbit-components/lib/icons/Github.js 686 B
packages/orbit-components/lib/icons/Google.js 666 B
packages/orbit-components/lib/icons/GooglePlay.js 495 B
packages/orbit-components/lib/icons/GpsFixed.js 518 B
packages/orbit-components/lib/icons/GpsIos.js 419 B
packages/orbit-components/lib/icons/GpsNotFixed.js 494 B
packages/orbit-components/lib/icons/GpsOff.js 832 B
packages/orbit-components/lib/icons/Grid.js 577 B
packages/orbit-components/lib/icons/Gym.js 548 B
packages/orbit-components/lib/icons/Heart.js 478 B
packages/orbit-components/lib/icons/HeartOutline.js 617 B
packages/orbit-components/lib/icons/History.js 527 B
packages/orbit-components/lib/icons/Inbox.js 419 B
packages/orbit-components/lib/icons/index.js 5.26 kB
packages/orbit-components/lib/icons/Infant.js 1.21 kB
packages/orbit-components/lib/icons/InformationCircle.js 529 B
packages/orbit-components/lib/icons/Instagram.js 1.03 kB
packages/orbit-components/lib/icons/Insurance.js 456 B
packages/orbit-components/lib/icons/InsuranceConfirmed.js 544 B
packages/orbit-components/lib/icons/InsuranceOff.js 512 B
packages/orbit-components/lib/icons/Invoice.js 695 B
packages/orbit-components/lib/icons/ItemCompleted.js 544 B
packages/orbit-components/lib/icons/Kiwicom.js 894 B
packages/orbit-components/lib/icons/KiwicomCare.js 548 B
packages/orbit-components/lib/icons/KiwicomGuarantee.js 653 B
packages/orbit-components/lib/icons/KiwicomNoGuarantee.js 651 B
packages/orbit-components/lib/icons/Leisure.js 1.09 kB
packages/orbit-components/lib/icons/Link.js 633 B
packages/orbit-components/lib/icons/Linkedin.js 544 B
packages/orbit-components/lib/icons/List.js 386 B
packages/orbit-components/lib/icons/Location.js 422 B
packages/orbit-components/lib/icons/LocationA.js 589 B
packages/orbit-components/lib/icons/LocationAdd.js 501 B
packages/orbit-components/lib/icons/LocationB.js 610 B
packages/orbit-components/lib/icons/LocationC.js 574 B
packages/orbit-components/lib/icons/LocationD.js 542 B
packages/orbit-components/lib/icons/LocationE.js 528 B
packages/orbit-components/lib/icons/LocationF.js 561 B
packages/orbit-components/lib/icons/LocationG.js 617 B
packages/orbit-components/lib/icons/LocationH.js 508 B
packages/orbit-components/lib/icons/LocationI.js 443 B
packages/orbit-components/lib/icons/LocationJ.js 514 B
packages/orbit-components/lib/icons/Lock.js 470 B
packages/orbit-components/lib/icons/LockOpen.js 576 B
packages/orbit-components/lib/icons/Logout.js 605 B
packages/orbit-components/lib/icons/Lounge.js 602 B
packages/orbit-components/lib/icons/Map.js 641 B
packages/orbit-components/lib/icons/Markdown.js 544 B
packages/orbit-components/lib/icons/Meal.js 800 B
packages/orbit-components/lib/icons/MenuHamburger.js 454 B
packages/orbit-components/lib/icons/MenuKebab.js 354 B
packages/orbit-components/lib/icons/MenuMeatballs.js 356 B
packages/orbit-components/lib/icons/Messages.js 551 B
packages/orbit-components/lib/icons/MessagesOutline.js 607 B
packages/orbit-components/lib/icons/Minus.js 335 B
packages/orbit-components/lib/icons/MinusCircle.js 372 B
packages/orbit-components/lib/icons/Money.js 592 B
packages/orbit-components/lib/icons/MoneyTransferIn.js 612 B
packages/orbit-components/lib/icons/MoneyTransferOut.js 607 B
packages/orbit-components/lib/icons/Moon.js 455 B
packages/orbit-components/lib/icons/MusicalInstruments.js 872 B
packages/orbit-components/lib/icons/NewWindow.js 561 B
packages/orbit-components/lib/icons/NoFlash.js 551 B
packages/orbit-components/lib/icons/Nonstop.js 660 B
packages/orbit-components/lib/icons/NoRefund.js 959 B
packages/orbit-components/lib/icons/NoRescheduling.js 622 B
packages/orbit-components/lib/icons/Notification.js 466 B
packages/orbit-components/lib/icons/NotificationAdd.js 646 B
packages/orbit-components/lib/icons/NotificationOff.js 572 B
packages/orbit-components/lib/icons/NotificationOn.js 673 B
packages/orbit-components/lib/icons/OnlineCheckin.js 525 B
packages/orbit-components/lib/icons/OnlineCheckinOff.js 587 B
packages/orbit-components/lib/icons/Outlook.js 706 B
packages/orbit-components/lib/icons/Paid.js 621 B
packages/orbit-components/lib/icons/Parking.js 446 B
packages/orbit-components/lib/icons/Partners.js 1.73 kB
packages/orbit-components/lib/icons/Passenger.js 504 B
packages/orbit-components/lib/icons/PassengerAdd.js 700 B
packages/orbit-components/lib/icons/PassengerOutline.js 728 B
packages/orbit-components/lib/icons/PassengerRemove.js 646 B
packages/orbit-components/lib/icons/Passengers.js 714 B
packages/orbit-components/lib/icons/Passport.js 858 B
packages/orbit-components/lib/icons/Pet.js 489 B
packages/orbit-components/lib/icons/Pharmacy.js 533 B
packages/orbit-components/lib/icons/Phone.js 440 B
packages/orbit-components/lib/icons/Pin.js 503 B
packages/orbit-components/lib/icons/PinOutline.js 635 B
packages/orbit-components/lib/icons/Placeholder.js 334 B
packages/orbit-components/lib/icons/Play.js 421 B
packages/orbit-components/lib/icons/Playground.js 688 B
packages/orbit-components/lib/icons/Plus.js 431 B
packages/orbit-components/lib/icons/PlusCircle.js 468 B
packages/orbit-components/lib/icons/PlusMinus.js 386 B
packages/orbit-components/lib/icons/Pool.js 727 B
packages/orbit-components/lib/icons/PowerPlug.js 684 B
packages/orbit-components/lib/icons/PowerPlugOff.js 809 B
packages/orbit-components/lib/icons/PriceChange.js 700 B
packages/orbit-components/lib/icons/PriorityBoarding.js 607 B
packages/orbit-components/lib/icons/Profit.js 699 B
packages/orbit-components/lib/icons/PromoCode.js 516 B
packages/orbit-components/lib/icons/QrCode.js 880 B
packages/orbit-components/lib/icons/QuestionCircle.js 511 B
packages/orbit-components/lib/icons/Radar.js 559 B
packages/orbit-components/lib/icons/RadiusSearch.js 701 B
packages/orbit-components/lib/icons/Refund.js 667 B
packages/orbit-components/lib/icons/Relax.js 706 B
packages/orbit-components/lib/icons/Reload.js 584 B
packages/orbit-components/lib/icons/Remove.js 566 B
packages/orbit-components/lib/icons/Replace.js 613 B
packages/orbit-components/lib/icons/Restaurant.js 522 B
packages/orbit-components/lib/icons/RouteNoStops.js 436 B
packages/orbit-components/lib/icons/RouteOneStop.js 453 B
packages/orbit-components/lib/icons/RouteTwoStops.js 478 B
packages/orbit-components/lib/icons/Search.js 396 B
packages/orbit-components/lib/icons/Seat.js 609 B
packages/orbit-components/lib/icons/SeatAisle.js 649 B
packages/orbit-components/lib/icons/SeatExtraLegroom.js 660 B
packages/orbit-components/lib/icons/SeatWindow.js 699 B
packages/orbit-components/lib/icons/Security.js 535 B
packages/orbit-components/lib/icons/SelfTransfer.js 893 B
packages/orbit-components/lib/icons/Send.js 464 B
packages/orbit-components/lib/icons/Settings.js 659 B
packages/orbit-components/lib/icons/Share.js 520 B
packages/orbit-components/lib/icons/ShareAndroid.js 513 B
packages/orbit-components/lib/icons/ShareAndroidOutline.js 616 B
packages/orbit-components/lib/icons/ShareIos.js 571 B
packages/orbit-components/lib/icons/Shopping.js 631 B
packages/orbit-components/lib/icons/ShowLess.js 491 B
packages/orbit-components/lib/icons/ShowMore.js 490 B
packages/orbit-components/lib/icons/Sightseeing.js 576 B
packages/orbit-components/lib/icons/Sign.js 573 B
packages/orbit-components/lib/icons/Smoking.js 595 B
packages/orbit-components/lib/icons/SmokingOff.js 691 B
packages/orbit-components/lib/icons/Sms.js 1.02 kB
packages/orbit-components/lib/icons/Sort.js 524 B
packages/orbit-components/lib/icons/Spa.js 975 B
packages/orbit-components/lib/icons/SportEquipment.js 835 B
packages/orbit-components/lib/icons/Sports.js 686 B
packages/orbit-components/lib/icons/Stackoverflow.js 766 B
packages/orbit-components/lib/icons/StarEmpty.js 596 B
packages/orbit-components/lib/icons/StarFull.js 498 B
packages/orbit-components/lib/icons/Subway.js 852 B
packages/orbit-components/lib/icons/Suitcase.js 537 B
packages/orbit-components/lib/icons/Sun.js 618 B
packages/orbit-components/lib/icons/Sunrise.js 554 B
packages/orbit-components/lib/icons/Taxi.js 893 B
packages/orbit-components/lib/icons/Terminal.js 862 B
packages/orbit-components/lib/icons/TermsAndConditions.js 882 B
packages/orbit-components/lib/icons/ThumbDown.js 614 B
packages/orbit-components/lib/icons/ThumbUp.js 624 B
packages/orbit-components/lib/icons/Ticket.js 526 B
packages/orbit-components/lib/icons/TicketOutline.js 736 B
packages/orbit-components/lib/icons/Tiktok.js 502 B
packages/orbit-components/lib/icons/Timelapse.js 450 B
packages/orbit-components/lib/icons/Timer.js 653 B
packages/orbit-components/lib/icons/Tips.js 707 B
packages/orbit-components/lib/icons/Toilets.js 760 B
packages/orbit-components/lib/icons/Train.js 780 B
packages/orbit-components/lib/icons/Transmission.js 485 B
packages/orbit-components/lib/icons/Trip.js 719 B
packages/orbit-components/lib/icons/Twitter.js 847 B
packages/orbit-components/lib/icons/Uber.js 482 B
packages/orbit-components/lib/icons/Upload.js 518 B
packages/orbit-components/lib/icons/UserGroup.js 893 B
packages/orbit-components/lib/icons/Visa.js 581 B
packages/orbit-components/lib/icons/Visibility.js 679 B
packages/orbit-components/lib/icons/VisibilityOff.js 849 B
packages/orbit-components/lib/icons/Walk.js 627 B
packages/orbit-components/lib/icons/Wallet.js 575 B
packages/orbit-components/lib/icons/Wheelchair.js 665 B
packages/orbit-components/lib/icons/Wifi.js 610 B
packages/orbit-components/lib/icons/WifiOff.js 762 B
packages/orbit-components/lib/icons/Youtube.js 469 B
packages/orbit-components/lib/Illustration/index.js 340 B
packages/orbit-components/lib/Inline/consts.js 247 B
packages/orbit-components/lib/Inline/helpers.js 1.13 kB
packages/orbit-components/lib/Inline/index.js 737 B
packages/orbit-components/lib/InputField/consts.js 389 B
packages/orbit-components/lib/InputField/index.js 2.74 kB
packages/orbit-components/lib/InputField/InputTags/index.js 670 B
packages/orbit-components/lib/InputFile/index.js 1.74 kB
packages/orbit-components/lib/InputGroup/consts.js 225 B
packages/orbit-components/lib/InputGroup/index.js 2.14 kB
packages/orbit-components/lib/InputSelect/helpers.js 401 B
packages/orbit-components/lib/InputSelect/index.js 3.49 kB
packages/orbit-components/lib/InputSelect/InputSelectOption/index.js 505 B
packages/orbit-components/lib/Itinerary/context.js 424 B
packages/orbit-components/lib/Itinerary/index.js 529 B
packages/orbit-components/lib/Itinerary/ItineraryBadgeList/index.js 553 B
packages/orbit-components/lib/Itinerary/ItineraryBadgeList/ItineraryBadgeListItem.js 602 B
packages/orbit-components/lib/Itinerary/ItinerarySegment/context.js 477 B
packages/orbit-components/lib/Itinerary/ItinerarySegment/index.js 958 B
packages/orbit-components/lib/Itinerary/ItinerarySegment/ItineraryIcon.js 912 B
packages/orbit-components/lib/Itinerary/ItinerarySegment/ItinerarySegmentBanner/index.js 624 B
packages/orbit-components/lib/Itinerary/ItinerarySegment/ItinerarySegmentDetail/index.js 1.7 kB
packages/orbit-components/lib/Itinerary/ItinerarySegment/ItinerarySegmentStop/index.js 1.19 kB
packages/orbit-components/lib/Itinerary/ItinerarySeparator/Divider.js 1.31 kB
packages/orbit-components/lib/Itinerary/ItinerarySeparator/index.js 551 B
packages/orbit-components/lib/Itinerary/ItineraryStatus/consts.js 212 B
packages/orbit-components/lib/Itinerary/ItineraryStatus/index.js 1.23 kB
packages/orbit-components/lib/Itinerary/ItineraryText/index.js 697 B
packages/orbit-components/lib/Itinerary/utils.js 325 B
packages/orbit-components/lib/Layout/consts.js 464 B
packages/orbit-components/lib/Layout/index.js 594 B
packages/orbit-components/lib/Layout/LayoutColumn/index.js 466 B
packages/orbit-components/lib/LinkList/index.js 597 B
packages/orbit-components/lib/List/consts.js 242 B
packages/orbit-components/lib/List/index.js 663 B
packages/orbit-components/lib/List/ListItem/index.js 495 B
packages/orbit-components/lib/ListChoice/index.js 1.04 kB
packages/orbit-components/lib/Loading/consts.js 241 B
packages/orbit-components/lib/Loading/index.js 1.23 kB
packages/orbit-components/lib/Modal/consts.js 250 B
packages/orbit-components/lib/Modal/helpers/useModalContextFunctions.js 221 B
packages/orbit-components/lib/Modal/index.js 4.3 kB
packages/orbit-components/lib/Modal/ModalCloseButton/index.js 358 B
packages/orbit-components/lib/Modal/ModalContext.js 461 B
packages/orbit-components/lib/Modal/ModalFooter/index.js 1.09 kB
packages/orbit-components/lib/Modal/ModalHeader/index.js 1.1 kB
packages/orbit-components/lib/Modal/ModalSection/index.js 813 B
packages/orbit-components/lib/NavigationBar/index.js 1.04 kB
packages/orbit-components/lib/NotificationBadge/index.js 393 B
packages/orbit-components/lib/OrbitProvider/QueryContext/index.js 311 B
packages/orbit-components/lib/OrbitProvider/QueryContext/Provider.js 319 B
packages/orbit-components/lib/OrbitProvider/RandomId/Provider.js 368 B
packages/orbit-components/lib/Pagination/components/ActiveButton.js 391 B
packages/orbit-components/lib/Pagination/components/CompactPages.js 522 B
packages/orbit-components/lib/Pagination/components/PageButtonLink.js 313 B
packages/orbit-components/lib/Pagination/components/Pages.js 416 B
packages/orbit-components/lib/Pagination/consts.js 196 B
packages/orbit-components/lib/Pagination/index.js 949 B
packages/orbit-components/lib/Popover/components/ContentWrapper.js 2.12 kB
packages/orbit-components/lib/Popover/consts.js 108 B
packages/orbit-components/lib/Popover/index.js 1.45 kB
packages/orbit-components/lib/Portal/index.js 472 B
packages/orbit-components/lib/primitives/BadgePrimitive/index.js 652 B
packages/orbit-components/lib/primitives/ButtonPrimitive/common/consts.js 408 B
packages/orbit-components/lib/primitives/ButtonPrimitive/common/createRel.js 266 B
packages/orbit-components/lib/primitives/ButtonPrimitive/common/getCommonProps.js 503 B
packages/orbit-components/lib/primitives/ButtonPrimitive/common/getIconContainer.js 509 B
packages/orbit-components/lib/primitives/ButtonPrimitive/common/getPadding.js 464 B
packages/orbit-components/lib/primitives/ButtonPrimitive/common/getSizeToken.js 363 B
packages/orbit-components/lib/primitives/ButtonPrimitive/index.js 2.26 kB
packages/orbit-components/lib/primitives/ButtonPrimitive/sizes.js 337 B
packages/orbit-components/lib/primitives/IllustrationPrimitive/IllustrationPrimitiveList.js 493 B
packages/orbit-components/lib/primitives/IllustrationPrimitive/index.js 976 B
packages/orbit-components/lib/primitives/MobileDialogPrimitive/components/DialogContent.js 1.13 kB
packages/orbit-components/lib/primitives/MobileDialogPrimitive/index.js 853 B
packages/orbit-components/lib/primitives/TooltipPrimitive/components/TooltipContent.js 1.87 kB
packages/orbit-components/lib/primitives/TooltipPrimitive/index.js 1.25 kB
packages/orbit-components/lib/Radio/index.js 1.12 kB
packages/orbit-components/lib/Seat/components/primitives/Edge.js 379 B
packages/orbit-components/lib/Seat/components/primitives/SymbolUnavailable.js 273 B
packages/orbit-components/lib/Seat/components/primitives/Text.js 464 B
packages/orbit-components/lib/Seat/components/primitives/TransitionPathFill.js 543 B
packages/orbit-components/lib/Seat/components/primitives/TransitionPathStroke.js 522 B
packages/orbit-components/lib/Seat/components/SeatCircle.js 4.51 kB
packages/orbit-components/lib/Seat/components/SeatLegend/index.js 639 B
packages/orbit-components/lib/Seat/components/SeatNormal.js 938 B
packages/orbit-components/lib/Seat/components/SeatSmall.js 939 B
packages/orbit-components/lib/Seat/consts.js 263 B
packages/orbit-components/lib/Seat/index.js 987 B
packages/orbit-components/lib/SegmentedSwitch/index.js 956 B
packages/orbit-components/lib/SegmentedSwitch/SwitchSegment/index.js 893 B
packages/orbit-components/lib/Select/index.js 2.07 kB
packages/orbit-components/lib/Separator/index.js 756 B
packages/orbit-components/lib/ServiceLogo/consts.js 777 B
packages/orbit-components/lib/ServiceLogo/index.js 646 B
packages/orbit-components/lib/Skeleton/index.js 312 B
packages/orbit-components/lib/Skeleton/presets/Button.js 362 B
packages/orbit-components/lib/Skeleton/presets/Card.js 346 B
packages/orbit-components/lib/Skeleton/presets/Image.js 367 B
packages/orbit-components/lib/Skeleton/presets/index.js 210 B
packages/orbit-components/lib/Skeleton/presets/List.js 382 B
packages/orbit-components/lib/Skeleton/presets/Text.js 378 B
packages/orbit-components/lib/Skeleton/Svg.js 1.12 kB
packages/orbit-components/lib/SkipLink/index.js 611 B
packages/orbit-components/lib/SkipNavigation/index.js 1.14 kB
packages/orbit-components/lib/Slider/components/Bar/index.js 837 B
packages/orbit-components/lib/Slider/components/Handle/index.js 1.18 kB
packages/orbit-components/lib/Slider/components/Histogram/index.js 779 B
packages/orbit-components/lib/Slider/consts.js 211 B
packages/orbit-components/lib/Slider/index.js 2.68 kB
packages/orbit-components/lib/Slider/utils/calculateCountOf.js 296 B
packages/orbit-components/lib/Slider/utils/index.js 1.39 kB
packages/orbit-components/lib/SmartPassIllustrations/illustrations/IllustrationWrapper.js 595 B
packages/orbit-components/lib/SmartPassIllustrations/illustrations/SmartPassV1.js 4.69 kB
packages/orbit-components/lib/SmartPassIllustrations/illustrations/SmartPassV2.js 4.56 kB
packages/orbit-components/lib/SmartPassIllustrations/illustrations/SmartPassV3.js 3.44 kB
packages/orbit-components/lib/SmartPassIllustrations/illustrations/SmartPassV4.js 2.69 kB
packages/orbit-components/lib/SmartPassIllustrations/illustrations/SmartPassV5.js 3.01 kB
packages/orbit-components/lib/SmartPassIllustrations/index.js 239 B
packages/orbit-components/lib/SocialButton/consts.js 344 B
packages/orbit-components/lib/SocialButton/helpers/getSocialButtonBoxShadow.js 563 B
packages/orbit-components/lib/SocialButton/helpers/getSocialButtonIcon.js 409 B
packages/orbit-components/lib/SocialButton/helpers/getSocialButtonIconForeground.js 267 B
packages/orbit-components/lib/SocialButton/helpers/getSocialButtonStyles.js 503 B
packages/orbit-components/lib/SocialButton/helpers/getSocialButtonTypeToken.js 592 B
packages/orbit-components/lib/SocialButton/index.js 718 B
packages/orbit-components/lib/Stack/index.js 1.53 kB
packages/orbit-components/lib/Stepper/index.js 717 B
packages/orbit-components/lib/Stepper/StepperStateless/index.js 1.29 kB
packages/orbit-components/lib/StopoverArrow/consts.js 189 B
packages/orbit-components/lib/StopoverArrow/index.js 1.22 kB
packages/orbit-components/lib/Switch/index.js 932 B
packages/orbit-components/lib/Table/consts.js 219 B
packages/orbit-components/lib/Table/index.js 1.24 kB
packages/orbit-components/lib/Table/TableBody/index.js 296 B
packages/orbit-components/lib/Table/TableCell/consts.js 405 B
packages/orbit-components/lib/Table/TableCell/index.js 630 B
packages/orbit-components/lib/Table/TableFooter/index.js 297 B
packages/orbit-components/lib/Table/TableHead/index.js 302 B
packages/orbit-components/lib/Table/TableRow/index.js 285 B
packages/orbit-components/lib/Tabs/components/Tab/consts.js 200 B
packages/orbit-components/lib/Tabs/components/Tab/index.js 1.1 kB
packages/orbit-components/lib/Tabs/components/TabList/index.js 835 B
packages/orbit-components/lib/Tabs/components/TabPanel/index.js 673 B
packages/orbit-components/lib/Tabs/components/TabPanels/index.js 413 B
packages/orbit-components/lib/Tabs/index.js 427 B
packages/orbit-components/lib/Tabs/TabContext.js 543 B
packages/orbit-components/lib/Tag/consts.js 222 B
packages/orbit-components/lib/Tag/index.js 1.24 kB
packages/orbit-components/lib/Text/consts.js 524 B
packages/orbit-components/lib/Text/helpers/twClasses.js 689 B
packages/orbit-components/lib/Text/index.js 678 B
packages/orbit-components/lib/Textarea/consts.js 181 B
packages/orbit-components/lib/Textarea/index.js 1.43 kB
packages/orbit-components/lib/TextLink/consts.js 323 B
packages/orbit-components/lib/TextLink/helpers/twClasses.js 693 B
packages/orbit-components/lib/TextLink/index.js 1.09 kB
packages/orbit-components/lib/Tile/components/TileContent/index.js 431 B
packages/orbit-components/lib/Tile/components/TileExpandable/index.js 875 B
packages/orbit-components/lib/Tile/components/TileHeader/index.js 1.02 kB
packages/orbit-components/lib/Tile/components/TileWrapper/index.js 708 B
packages/orbit-components/lib/Tile/index.js 729 B
packages/orbit-components/lib/TileGroup/index.js 505 B
packages/orbit-components/lib/Timeline/index.js 769 B
packages/orbit-components/lib/Timeline/TimelineContext.js 530 B
packages/orbit-components/lib/Timeline/TimelineStep/components/ProgressLine.js 722 B
packages/orbit-components/lib/Timeline/TimelineStep/components/TextWrapper.js 333 B
packages/orbit-components/lib/Timeline/TimelineStep/components/TimelineStepDesktop.js 817 B
packages/orbit-components/lib/Timeline/TimelineStep/components/TimelineStepMobile.js 624 B
packages/orbit-components/lib/Timeline/TimelineStep/components/TypeIcon.js 873 B
packages/orbit-components/lib/Timeline/TimelineStep/consts.js 175 B
packages/orbit-components/lib/Timeline/TimelineStep/index.js 692 B
packages/orbit-components/lib/Toast/consts.js 249 B
packages/orbit-components/lib/Toast/hooks/useSwipe.js 790 B
packages/orbit-components/lib/Toast/index.js 269 B
packages/orbit-components/lib/Toast/ToastMessage.js 1.25 kB
packages/orbit-components/lib/Toast/ToastRoot.js 770 B
packages/orbit-components/lib/Tooltip/consts.js 178 B
packages/orbit-components/lib/Tooltip/index.js 620 B
packages/orbit-components/lib/Truncate/index.js 425 B
packages/orbit-components/lib/utils/boundingClientRect/index.js 369 B
packages/orbit-components/lib/utils/cloneWithTooltip/index.js 207 B
packages/orbit-components/lib/utils/debounce/index.js 190 B
packages/orbit-components/lib/utils/Grid/index.js 1.51 kB
packages/orbit-components/lib/utils/handleKeyDown/index.js 293 B
packages/orbit-components/lib/utils/layout/consts.js 571 B
packages/orbit-components/lib/utils/layout/index.js 634 B
packages/orbit-components/lib/utils/mediaQuery/index.js 374 B
packages/orbit-components/lib/utils/mergeRefs/index.js 259 B
packages/orbit-components/lib/utils/randomID/index.js 198 B
packages/orbit-components/lib/utils/scroll/index.js 244 B
packages/orbit-components/lib/utils/Slide/index.js 1.24 kB
packages/orbit-components/lib/utils/transition/index.js 339 B
packages/orbit-components/lib/utils/validateDecrement/index.js 223 B
packages/orbit-components/lib/utils/validateIncrement/index.js 223 B
packages/orbit-components/lib/Wizard/index.js 1.23 kB
packages/orbit-components/lib/Wizard/WizardContext.js 455 B
packages/orbit-components/lib/Wizard/WizardStep.js 1.47 kB
packages/orbit-components/lib/Wizard/WizardStepIcon.js 725 B

compressed-size-action

@DSil DSil force-pushed the tw/refactor-orbit-provider branch from 0b2a0cb to 62083ef Compare March 25, 2024 21:16
@DSil DSil marked this pull request as ready for review March 26, 2024 13:36
@DSil DSil force-pushed the tw/refactor-orbit-provider branch from 94f87d2 to ccbc8db Compare March 27, 2024 09:10
<Container key={icon}>
<div
className="gap-lg bg-white-normal mb-lg rounded-large border-cloud-normal px-lg flex w-full flex-row content-center items-center justify-start border border-solid"
style={{ minHeight: "80px" }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not min-h-[80px]?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to avoid that custom class to be built in the final CSS file. Since this component is to be used only in Storybook, I prefer the style to be inline, so that class is not unnecessarily created by the Tailwind compiler

style={{
fontFamily:
'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
fontSize: "12px",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be a class, though I agree that the font family is probably easier like that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for font-family it was just for convenience. And for font-size it's the same reason as above


## Utilities

`styled-components` doesn't know automatically how to switch `margin`, `padding` and i.e. `left` properties to the other direction. So it's necessary to use some `utilities` inside your styles.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does Tailwind do it? Does it rely on logical properties?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Tailwind has builtin classes that handle it, eg: ms- will apply margin-inline-start, that browsers translate to left margin in LTR and right margin in RTL.

One can also use the rtl: prefix in classes to apply styles that are only applicable in RTL

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to include this info in the migration guide, just to point people somewhere? I'm sure I wouldn't be the only one asking that question :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can, I just wanted to make the migration guide a bit more technology-agnostic. Because if one is still using styled-components those tailwind tips won't be that helpful, I'd say. Ultimately, it is up to each project to decide how they will handle RTL and Media Queries, based on the styling solution they are currently using (even considering the open-source side of Orbit).

I am ok with adding Tailwind example as a proposed solution for those using that technology, though. We can also link to the Tailwind docs regarding those topics.


### rtl utils removed

The `rtl` utility functions have been removed. They were used to handle RTL styles in the `styled-components` version of Orbit.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment as to how it works with Tailwind/why it's okay for this to be removed.

Also, if folks were relying on them, would it make sense to provide a code snippet replacement?

(same question for mediaQueries above actually?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some research and did not find relevant usages for those, hence why I didn't put that much effort into writing alternatives.

I did not write anything about how to achieve results in Tailwind because teams that are not yet in Tailwind and might need something will have to decide on how to handle these (I don't know if there is any, tbh).

I can add a few examples in the style of before and after scenarios, but I am afraid they will either be too incomplete (I believe it's too much to cover all scenarios) or too specific, so I am not entirely sure about what to add.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, got it.

Maybe it still make sense to just point out to Tailwind docs for RTL and media queries
Maybe we could still offer a permalink to the previous RTL utility functions for folks to copy them over in their codebases in case they'd need them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I answered part of this in the comment above.

Regarding the link to old code, I personally don't like it that much that we have links to dead code, but I can add it, for sure.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know, it's just to ease adoption: if people want to update but they have a bunch of code relying on these removed features, they can drop them in their codebase temporarily and then do a proper refactor later on.

I personally don't want to encourage it, but we want people to use the latest version of Orbit.

@DSil DSil force-pushed the remove-utils/mediaQuery branch 3 times, most recently from fbcdda8 to ddc783e Compare April 2, 2024 09:05
@DSil DSil force-pushed the tw/refactor-orbit-provider branch 2 times, most recently from 7c7e9ad to feceb02 Compare April 2, 2024 10:24
Copy link
Collaborator

@mvidalgarcia mvidalgarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpicks 💅

### mediaQueries util function removed

The `mediaQueries` function is no longer available. This was a styled-components util function that is now no longer expected to be used, as we move away from StyledComponents.
If needed, the tokens and breakpoint values are still accessible via the `getBreakpointWidth` function and the `QUERIES` and `TOKEN` constants.
Check [the documentation](/development/utilities/media-queries/) for more information on how to use these.

If you are still using styled-components in your custom components and you need this function we invite you to add the implementation to your project. The implementation can be seen [here](https://github.com/kiwicom/orbit/blob/%40kiwicom/orbit-components%4014.0.0/packages/orbit-components/src/utils/mediaQuery/index.ts#L23).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency.

Suggested change
If you are still using styled-components in your custom components and you need this function we invite you to add the implementation to your project. The implementation can be seen [here](https://github.com/kiwicom/orbit/blob/%40kiwicom/orbit-components%4014.0.0/packages/orbit-components/src/utils/mediaQuery/index.ts#L23).
If you are still using `styled-components` in your custom components and you need this function, we invite you to add the implementation to your project. The implementation can be seen [here](https://github.com/kiwicom/orbit/blob/%40kiwicom/orbit-components%4014.0.0/packages/orbit-components/src/utils/mediaQuery/index.ts#L23).

</ThemeProvider>
);
```

### mediaQueries util function removed

The `mediaQueries` function is no longer available. This was a styled-components util function that is now no longer expected to be used, as we move away from StyledComponents.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `mediaQueries` function is no longer available. This was a styled-components util function that is now no longer expected to be used, as we move away from StyledComponents.
The `mediaQueries` function is no longer available. This was a `styled-components` util function that is now no longer expected to be used, as we move away from StyledComponents.

You can add a new Component to storybook by adding the code below.
All components should have stories that display their different variations and behaviors.
Stories should be written in the file `Component.stories.tsx`.
For more informations about using Storybook check the [official documentation](https://storybook.js.org/basics/guide-react/).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For more informations about using Storybook check the [official documentation](https://storybook.js.org/basics/guide-react/).
For more information about using Storybook check the [official documentation](https://storybook.js.org/basics/guide-react/).


At the very least, it’s necessary to have the `Default` and `Playground` chapters defined. The `Default` chapter contains a Component without any additional props. The `Playground` chapter contains a Component with the possibility to change all defined props for full customization. Follow the structure of the code below. For more information check the Chapter add-on doc.
Visual tests are written in the file `Component.ct.tsx` and should be used to test the component in different states and with different props.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we mentioned above we use Jest for unit testing, what do you think about mentioning Playwright here?

return <StyledComponent size={size}>...</StyledComponent>;
};
```
We use `tailwind` for styling. Custom tailwind classes can be used but should be avoided. All design tokens from `orbit-design-tokens` have classes that apply their value to the different possible CSS properties.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We use `tailwind` for styling. Custom tailwind classes can be used but should be avoided. All design tokens from `orbit-design-tokens` have classes that apply their value to the different possible CSS properties.
We use `tailwind` for styling. Custom Tailwind classes can be used but should be avoided. All design tokens from `orbit-design-tokens` have classes that apply their value to the different possible CSS properties.

We use tailwind, tailwind, Tailwind, and Tailwind CSS indistinctly across all docs. It would be nice to be consistent on a unique form.

Copy link
Collaborator Author

@DSil DSil Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's ok to use Tailwind (or Tailwind, but consistently) as a short for TailwindCSS. For this particular sentence, I rephrased it to:

We use TailwindCSS for styling. Custom Tailwind classes can be used but should be avoided.

What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the official site, there's a space between "Tailwind" and "CSS". I don't really mind the form as long as it's consistent.

image

Copy link
Collaborator Author

@DSil DSil Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we're using both forms the official version (with space) across all docs 🤦‍♂️ I'll unify on a separate commit fix for this one sentence

@DSil DSil force-pushed the tw/refactor-orbit-provider branch 2 times, most recently from feceb02 to 45c7478 Compare April 2, 2024 15:02
@DSil DSil force-pushed the remove-utils/mediaQuery branch from ddc783e to 2aecfa8 Compare April 3, 2024 08:21
@DSil DSil force-pushed the tw/refactor-orbit-provider branch 2 times, most recently from ceae4a3 to 9c9aca6 Compare April 3, 2024 08:25
@DSil DSil force-pushed the remove-utils/mediaQuery branch from 2aecfa8 to aab97f3 Compare April 4, 2024 11:08
@DSil DSil force-pushed the tw/refactor-orbit-provider branch from 9c9aca6 to 81486b9 Compare April 4, 2024 11:09
Copy link
Collaborator

@mvidalgarcia mvidalgarcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Base automatically changed from remove-utils/mediaQuery to master April 4, 2024 13:27
DSil added 16 commits April 4, 2024 15:28
Internal component no longer used. Leftover from the TW migration
Internal non-exported component that is no longer used with Tailwind.
The consts were kept and moved to other locations. The docs were also updated.
Internal unused hook.
This was not being exported and relied on Styled Components
Internal component used only for Storybook docs.
Text and TextLink were deprecated waiting for other components to be migrated to TW.
They are no longer used anywhere so they are being removed.
Some internal utils were no longer used and relied on styled-components.
RTL utils removed. They were styled-components utils.
Some functions are kept since they're still used internally.

BREAKING CHANGE: rtl styled-components utils removed.
Old transforms used styled-components for testing. They can be removed now.
OrbitProvider no longer uses Styled-components' ThemeProvider.
Instead, we are using a custom ThemeProvider.
The useTheme hook was also updated accordingly.

BREAKING CHANGE: Styled-Components' ThemeProvider is no longer used in OrbitProvider.
If you still need styled-components capabilities, you should add the ThemeProvider from styled-components to your app and pass it the same theme.
Some reword and removal of styled-components mentions
@DSil DSil force-pushed the tw/refactor-orbit-provider branch from 81486b9 to fd70526 Compare April 4, 2024 13:28
@DSil DSil merged commit d7434ec into master Apr 4, 2024
16 checks passed
@DSil DSil deleted the tw/refactor-orbit-provider branch April 4, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants