Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.1.3 (2021-11-09)

Bug Fixes

  • Heading: fix error when passing unsupported props (b52bcdb)

2.1.2 (2021-11-09)

Note: Version bump only for package @kiwicom/orbit-components

2.1.1 (2021-11-05)

Bug Fixes

2.1.0 (2021-11-05)

Bug Fixes

  • useMediaQuery: optimize, support custom breakpoints, and make it work without context (8a734fd)

Features

  • Wizard: close after click on WizardStep in compact (#3176) (247e7ae)

2.0.1 (2021-11-03)

Bug Fixes

  • missing storybook provider (#3173) (4967fb7)
  • useToggle: make typings reflect initial param is optional (95821c5)

2.0.0 (2021-11-02)

Bug Fixes

Code Refactoring

  • TooltipPrimitive: use Popper instead of custom logic (#3129) (0e2271f)

BREAKING CHANGES

  • TooltipPrimitive: replace props preferredAlign and preferredPosition with placement, and add new props noFlip and offset.
  • CountryFlag: The default code for CountryFlag is now "undefined" rather than "anywhere", a gray flag with a question mark. This code is also used if the given code isn’t supported.
  • media queries in useMediaQuery are now being properly initialized, in useEffect rather than directly in render, which should prevent some cryptic bugs, but there is a tiny chance that it will break code for those who have been relying on previous behavior, so it’s important to be aware of this change.

1.6.1 (2021-10-27)

Bug Fixes

  • cloneWithTooltip: wrong type declaration (52c2418)

1.6.0 (2021-10-27)

Features

  • InputField: add width prop (2a2fe0f)
  • InputFile: add width prop (70d1d39)
  • InputStepper: add width prop (c479f41)
  • Select: add width prop (865d690)
  • TextLink: add active and focus colors (3df1647)

1.5.0 (2021-10-21)

Bug Fixes

  • bring back missing icon Flow declarations (9c0dcac)
  • ErrorForms: fix font-size (#3151) (323c480)
  • useLockScrolling: support nested scroll locks (#3149) (8215c85)

Features

Reverts

  • Revert “feat: export Theme type from root (#3125)” (c0754d9), closes #3125

1.4.0 (2021-10-20)

Bug Fixes

  • ModalHeader: remove margins from title (e9ae04d)

Features

1.3.1 (2021-10-18)

Bug Fixes

1.3.0 (2021-10-14)

Bug Fixes

  • useRandomId: fix missing UIDReset (d2e0ec8)

Features

1.2.2 (2021-10-06)

Bug Fixes

  • Skeleton: fix default height (cc02dd3)

1.2.1 (2021-10-06)

Bug Fixes

1.2.0 (2021-10-01)

Bug Fixes

Features

  • Skeleton: allow string values for height and width (43f51bb)
  • add component structure component (8cacce0)
  • export useRandomId and useRandomIdSeed from root (cf4dd14)
  • export useTheme hook from root (a622f6d)

1.1.0 (2021-09-22)

Bug Fixes

  • Icon: explicitly set expected display (5babd1a)
  • useLockScrolling: ensure that scroll is locked by default (bb2da46)

Features

  • Alert: properly style links in Alert (8d3fff5)

1.0.1 (2021-09-13)

Bug Fixes

  • InputField: remove aria-labelledby when label is provided (#3103) (724163b)

1.0.0 (2021-09-10)

Code Refactoring

Features

BREAKING CHANGES

  • Popover:

    • props preferredPosition and preferredAlign are replaced by single prop placement, which same as popper.js’s placement can have one of the following values:

      • "top-start"
      • "top-end"
      • "bottom-start"
      • "bottom-end"
      • "right-start"
      • "right-end"
      • "left-start"
      • "left-end"
      • "auto"
      • "auto-start"
      • "auto-end"
    • extended by two props:

      • noFlip: Turns off automatic flipping of the Popover when there is not enough space
      • allowOverflow: Allows the Popover to be cut off instead of moving it while scrolling to keep it visible.
  • deletes deprecated components, their usage should be replaced with better existing or upcoming alternatives.

0.122.0 (2021-09-09)

Features

  • Skeleton: introduce Skeleton component (#3071) (6a3cf3d)
  • useLockScrolling: allow specifying additional dependencies (aac39f0)
  • add lockScrolling theme flag (abfe92c)

0.121.0 (2021-09-07)

Bug Fixes

  • Badge: add border to type white (#3085) (70264ee)
  • CountryFlag: disallow code value null (481b36c)
  • Drawer: fix iOS bug with scrolling content (92827ab)
  • Modal: fix bug with detached footer (#3093) (d552b78)
  • add missing TS definitions in ESM build (90ec51a)
  • use @kiwicom/orbit-design-tokens’s ESM build (a85a521)

Features

BREAKING CHANGES

  • CountryFlag: Flow and TypeScript type definitions no longer allow null as value for CountryFlag’s code.

0.120.0 (2021-08-19)

Bug Fixes

  • useLockScrolling: fix body positioning on iOS (b780fde)

Features

0.119.0 (2021-08-10)

Features

0.118.1 (2021-08-05)

Bug Fixes

  • Modal: hide closeContainer with mobileHeader set to false (#3065) (78c1a55)

0.118.0 (2021-08-05)

Bug Fixes

Features

0.117.0 (2021-07-22)

Bug Fixes

  • ChoiceGroup: use correct box sizing (68c2303)
  • InputField: add aria-required (7d7f5ef)

Features

0.116.0 (2021-06-24)

Bug Fixes

Features

  • ChoiceGroup: increase rendering flexibility (#2983) (9c2625b)

0.115.0 (2021-05-27)

Bug Fixes

  • HorizontalScroll: getSnap (9823909)

Features

  • CarrierLogo: add kiwicom type fallback (#2959) (041d8d6)
  • Dialog: add insidePortal prop (dbe7785)
  • HorizontalScroll: add scroll-snap-type (#2964) (837685d)
  • Illustration: add GroundTransport404 (#2966) (24771e2)
  • MobileDialog: add insidePortal prop (3b55af6)
  • Modal: add disableAnimation prop (306455b)
  • Popover: add insidePortal prop (14d126f)
  • TextLink: add status types (#2915) (970edc7)
  • Tooltip: add insidePortal prop (fa127e8)
  • TooltipPrimitive: add insidePortal prop (4cb5dde)
  • introduce BadgeList component (#2937) (b2b68ec)

0.114.2 (2021-05-17)

Bug Fixes

  • ButtonLink: pass size prop to icons (#2938) (0184785)
  • HorizontalScroll: remove automatic height calculation for wrapper (#2936) (0880483)
  • MobileDialog: change to dialog role (9895ac7)
  • popover: close on overlay (e2cef68)
  • pass aria-labelledby for switch labels (#2935) (1b10e4c)

Reverts

  • Modal: revert CLS changes (b1d00b4)

0.114.1 (2021-05-12)

Bug Fixes

  • BaggageStepper: forgotten prop (#2931) (6797d73)
  • Modal: reduce Cumulative Layout Shift (2108956)

0.114.0 (2021-05-05)

Bug Fixes

  • Popover: fix bug with Tooltip inside Popover on mobile (75d8fa4)

Features

0.113.1 (2021-04-28)

Bug Fixes

  • Button: pass forgotten size prop to utility functions (8b97281)
  • ButtonPrimitive: remove redundant size property (#2847) (bec9180)
  • examples: strip flow types from the generated JSONs (#2913) (49f36fd)
  • SocialButton: add forgotten size property to getCommomProps (a950d6d)

0.113.0 (2021-04-22)

Bug Fixes

  • add TypeScript definition of getTokens (267109a)
  • add typescript export of defaultTheme (1047b61)
  • export SeatLegend (576027f)
  • update React peer dependency versions (#2898) (b841f2d)
  • Breadcrumbs: missing action in default story (#2884) (683bd86)
  • docs: escape pipe in Alert button props table (f50485f)
  • useBoundingRect: fix TypeScript declaration (#2875) (371b30d)

Features

  • add export of calculateCountOf (6ac26ff)
  • docs: update guidance on notification badges (f5b0da7)

BREAKING CHANGES

  • useBoundingRect: In TypeScript useBoundingRect now requires a type parameter based on which HTML element it measures:
function App() {
const [dimensions, ref] = useBoundingRect<HTMLDivElement>();
return <div ref={ref} />;
}

0.112.0 (2021-04-07)

Bug Fixes

  • add default export for Icon stories (#2864) (2e9d2c7)
  • docs: add exports for types (3acc31e)
  • docs: change null to 0 (9eca6cd)
  • docs: remove improper token in enum (4ab6b23)
  • TextLink: called twice when stopPropagation specified (#2857) (4fc78dc)
  • TypeScript: fix root mediaQueries export (32a70a6)

Features

BREAKING CHANGES

  • Renamed icons BaggageChecked -> BaggageChecked30; BaggagePersonalItem -> BaggagePersonal; BaggagePersonalItemNone -> BaggagePersonalNone

Added new icons:

  • BaggageChecked10
  • BaggageChecked20

Renamed icons:

  • BaggageChecked -> BaggageChecked30
  • BaggagePersonalItem -> BaggagePersonal
  • BaggagePersonalItemNone -> BaggagePersonalNone

Updated icons:

  • PriorityBorading
  • BaggageCheckedNone
  • BaggageCabin
  • BaggageCabinNone

0.111.1 (2021-03-19)

Bug Fixes

0.111.0 (2021-03-08)

Bug Fixes

Features

0.110.0 (2021-03-03)

Bug Fixes

Features

  • Modal: autofocus (#2749) (7318569)
  • slide: added static defaultProps inside class (e344e61)
  • slide: added transitionDuration support (7e5cf6a)
  • slide: fixed eslint issues (d0bd068)
  • slide: using defaultProps instead of destruct value (140f896)
  • Slide: added transitionDuration support (#2751) (e7b5c72)

0.109.2 (2021-02-16)

Bug Fixes

0.109.1 (2021-02-08)

Bug Fixes

  • use postinstall script only in development (05cecc4)

0.109.0 (2021-02-05)

Bug Fixes

  • InputTags: fix cleanup logic (7d66ff8)
  • PictureCard: label semantic (#2713) (0c454e0)
  • Seat: small selected state (#2715) (8426630)
  • useIntersect: do nothing in browsers that don’t support IntersectionObserver (99d3772)
  • useMediaQuery: fix Rules of Hooks violation (6146505)

Features

  • eslint-orbit: add unique-ids rule (#2671) (b6a1057)
  • Seat: new icon sizes, general refactoring (a86cd07)

BREAKING CHANGES

  • Seat: separated component for legend, changed icon sizes

0.108.2 (2021-01-26)

Bug Fixes

0.108.1 (2021-01-25)

Bug Fixes

0.108.0 (2021-01-22)

Bug Fixes

  • Accordion: missing onExpand ts (4a64429)
  • Card: missing titleAs in d.ts (#2666) (0f60daa)
  • IllustrationPrimitive: allow empty alt (1c9e3d7)
  • Tag: focus only if onClick/onRemove provided (41a163a)

Features

  • Tag: add forwardRef (4445cbb)
  • Tag: Icon prop removed, changed colors (4b918c0)

0.107.0 (2021-01-13)

Bug Fixes

  • seat: randomize id to prevent namespace errors (114e38f)

Features

0.106.0 (2021-01-07)

Bug Fixes

Features

0.105.0 (2020-12-18)

Bug Fixes

Features

0.104.0 (2020-12-17)

Bug Fixes

Features

0.103.0 (2020-12-10)

Bug Fixes

  • SkipLink: sr-only styles, label as aria-label (eb0d625)
  • SmartPassIllustration: linergradients missing ids restored (93fd176)
  • Wizard: translate progress label on mobile (#2576) (cf6fc54)

Features

BREAKING CHANGES

  • Modal: size prop is changed, added new value CODEMODE: jscodeshift -t https://raw.githubusercontent.com/kiwicom/orbit/master/packages/orbit-components/transforms/Modal-size.js <pathToYourCode> --parser=flow|t

0.102.0 (2020-12-01)

Bug Fixes

  • Accordion: allow any children type in Flow (#2552) (1f7e37d)
  • Popover: popover bottom position issue (#2540) (4b251ad)
  • SmartPassIllustration: change smartPass api, to reduce bundle size (#2529) (761d3f3)

Features

BREAKING CHANGES

  • SmartPassIllustration: API of SmartPassIllustation has changed

0.101.0 (2020-11-26)

Bug Fixes

  • Modal: expose modalBody and modalContent (500cf6b)

Features

  • Modal: add scrollingElementRef prop (0cf4f7e)
  • SmartPassIllustration: added v5 image (#2519) (f718651)

0.100.1 (2020-11-24)

Bug Fixes

0.100.0 (2020-11-23)

Bug Fixes

Features

0.99.0 (2020-11-19)

Bug Fixes

Features

0.98.0 (2020-11-10)

Bug Fixes

Features

0.97.0 (2020-11-10)

Bug Fixes

Features

0.96.3 (2020-11-09)

Bug Fixes

  • Modal: expose setScrollPosition via forwardRef (#2472) (3f30a63)
  • Modal: fix TypeScript definition for ref (#2479) (86c5c7e)

0.96.2 (2020-11-06)

Bug Fixes

  • Inline: add inner wrapper for negative margin (#2469) (efd7ab2)

0.96.1 (2020-11-05)

Bug Fixes

0.96.0 (2020-11-04)

Bug Fixes

  • InputFile: forward onFocus event handler (#2461) (92ad4da)
  • SkipNavigation: fix typos in stories (#2414) (b380a1c)
  • Stack: add forgotten interface export (#2456) (a85d20a)
  • Tooltip: do not propagate the onClick event on mobile when stopPropagate is set to true (#2438) (00467c5)
  • remove //flow from *.d.ts (5a57884)
  • CountryFlag stop exporting getCountryProps (#2436) (e001aabe)
  • ButtonPrimitive correctly forward ref (#2418) (cf4c4f33)

Features

BREAKING CHANGES

  • Stack: Renaming spacing values of Stack component and LinkList component – that was using Stack internally.

Also dropped support of different spacings between mobile and desktop version. It no longer make sense from design point of view.

  • AlertButton: Removed size property from AlertButton since only the small size should be used and from now, it’s the default value. No actions should be necessary. If you used different than small size, just remove the usage of the property. Co-authored-by: Luděk Vepřek [email protected]

0.95.0 (2020-10-23)

Bug Fixes

Features

0.94.0 (2020-10-19)

Bug Fixes

  • TextLink: ariaCurrent should in optional in TS definition (#2365) (09857f7)

Features

0.93.0 (2020-10-16)

Bug Fixes

Features

  • Accordion: added Accordion component (#2280) (9d24499)
  • add Wizard component (99229b1)
  • ButtonPrimitive: add support for aria-current (d26067b)
  • Illustration: added image to images.kiwi (#2312) (6652782)
  • InputField: adding a autofocus attribute (#2236) (3ebec2e)
  • Modal: add prop to remove the close button (d96f46d)
  • TextLink: add support for aria-current (9e0b3e2)
  • Timeline: init component (#2287) (9447edf)
  • Tooltip: refactoring Tooltip into 2 separate components (#2230) (df3b3be)
  • add an agnostic entry point for icons (#2237) (597d1ec)

0.92.0 (2020-09-09)

Bug Fixes

  • Layout: width of Card on mobile (#2181) (8daca18)
  • updating TypeScript definitions to match Flow (#2202) (d476c2f)
  • Docs: internal github links (#2182) (da12261)
  • Table: updating default align and removing unnecessary vertical-align options (#2204) (0bfe9ae)
  • Tooltip: enable event bubbling for disabled children (#2201) (5f26d88)
  • update docs and icons link for monorepo (#2200) (27f4974)

Features

Reverts

0.90.1 (2020-08-06)

Bug Fixes

  • Pricingtable: rendering of wrapped mobile child (#2094) (5713e76)
  • popover memory leak (#2095) (9a9a890)
  • types: adjust Breadcrumbs, Tile, Button type declarations and exports (#2096) (b6cdc68)
  • types: adjust typescript types for heading and textarea (#2093) (0fcd753)

0.90.0 (2020-08-05)

  • fix!(Popover): actions on mobile are no longer hidden (#2040) (1a71008), closes #2040
  • feat!(PricingTable): adding option to display radio buttons on desktop (#2076) (8d1fee4), closes #2076

Bug Fixes

  • IllustrationPrimitive: defaulting flex shrink to false (#2036) (0a867f1)
  • InputStepper, Stepper: callbacks triggered when disabled (#2050) (81ed35b)
  • Layout: edge to edge behavior of deprecated Card (#2049) (637f677)
  • ListChoice: set role to checkbox when selectable is true (#2062) (70d1625)
  • Rtl: flow definition of destructured assigment (#2077) (6dd89e2)
  • Typescript: updating definitions (#2083) (b1fc89f)

Features

BREAKING CHANGES

  • adding a padding-top to Actions causing it to potentially collide with some wrappers with padding which might be in place
  • activeElement no longer passes active to children

0.89.0 (2020-07-17)

Bug Fixes

  • Breadcrumbs: unification of style from figma (#2032) (8c8868d)
  • extend type of tabIndex to allow numbers (#2029) (96c1a7b)
  • InputStepper: onChange is triggered when disabled (#2024) (387806c)
  • Layout: inner usage of Card – edge to edge behavior (#2025) (3d475f3)

Features

0.88.0 (2020-06-30)

Bug Fixes

0.87.2 (2020-06-16)

Bug Fixes

0.87.1 (2020-06-12)

Bug Fixes

  • Breadcrumbs: add mobile back button onClick (#1944) (2bb09e0)

0.87.0 (2020-06-11)

Bug Fixes

Features

  • ButtonLink: inline type and compact property, remove transparent (#1912) (8e2f128)
  • ButtonPrimitive: adding responsive visual style behaviour (#1911) (06a8622)
  • Dialog: change spacing between title and description (#1922) (7718db7)
  • FormElements: adding mobile border radius (#1915) (3a3c227)
  • General: adding display name to react contexts (#1936) (c1a0da4)
  • MediaQuery: adding prefersReducedMotion (#1921) (dd807cb)
  • Portal: refactor to hooks (#1923) (04ad886)
  • Stack: add baseline to align options (#1930) (eecc296)
  • TextLink: change focus state to non underlined text (#1914) (e2bb67d)

0.86.0 (2020-06-01)

Bug Fixes

Features

  • InputField: adding onSelect, onMouseUp, onMouseDown (#1883) (8ce9435)
  • PictureCard: Add src attribute (#1544) (5a17c0b)
  • Table: adding striped on Table. Scope and as on TableCell (#1881) (5d49cfd)
  • TableCell: adding white-space and vertical align options (#1910) (5380443)

0.85.2 (2020-05-21)

Bug Fixes

  • defaultTheme global declaration and references of themeType (#1876) (6e1e60e)

0.85.1 (2020-05-20)

Bug Fixes

  • InputStepper: improve TypeScript definition (#1865) (86915f3)
  • Typescript: defaultTheme, missing instance (#1873) (d7e62cf)

0.85.0 (2020-05-15)

Bug Fixes

Features

0.84.2 (2020-04-29)

Bug Fixes

  • ButtonPrimitive: disabled render to DOM element (#1813) (0147810)

0.84.1 (2020-04-28)

Bug Fixes

  • Button: missing white type in flow definition (#1806) (153b158)

0.84.0 (2020-04-27)

Features

  • feat(Buttons)!: Introduce ButtonPrimitive, implementing planned breaking changes (#1522) (ca4a641), closes #1522

Bug Fixes

BREAKING CHANGES

  • Shifting small size to extraSmall
  • removes a separated type from List
  • SkipLink: renaming description prop
  • Buttons: Removing info, success, warning, facebook, google types from Button. Removing bordered property from Button.
  • removing unsafe className (deprecated, not public API) removing icon property (deprecated) changing type of width to string (planned)

0.83.0 (2020-04-03)

Bug Fixes

  • Compass: broken svg definition for icon font (#1759) (f8e7b72)
  • Tooltip: calculation upon change in the wrapped element (#1761) (e7b5474)

Features

  • ChoiceGroup: updating the filter color from product color (#1757) (e1ad6f2)
  • adding new ButtonMobileStore component (#1756) (223c846)
  • Alert: changing the alignment of description (#1758) (fff86ca)

0.82.1 (2020-04-01)

Bug Fixes

  • Tooltip: with clickable element should close on mobile (#1752) (3af61f8)

0.82.0 (2020-03-31)

Bug Fixes

Features

Reverts

0.81.0 (2020-03-24)

Features

0.80.0 (2020-03-20)

Features

0.79.0 (2020-03-17)

Bug Fixes

  • Breadcrumbs: add correct html5 structured microdata for breadcrumbs (#1666) (692b3f5)
  • tooltip: usage of TextLink in content (#1680) (139a787)

Features

0.78.0 (2020-03-12)

Bug Fixes

  • button: circled not being perfect circle with small children (#1654) (280905d)
  • button: Fix flow type of the button export (#1663) (4c07ca0)
  • pictureCard: Enabling heiight to be smaller than 200 (#1660) (633fbe5)
  • popover: Border radius on desktop and close button padding (#1658) (50b2a24)
  • popover: Opening with onKeyDown event (#1657) (ea27780)
  • popover: RTL calculation (#1653) (8572fea)

Features

  • dictionary: add index.js export of all languages (#1650) (83f5a9d)
  • illustrations: Add optional alt property (#1656) (4a60dfd)
  • modal: Change title size to title2 on mobile (5ab25f2)

0.77.1 (2020-03-09)

Bug Fixes

0.77.0 (2020-03-06)

0.76.0 (2020-02-25)

0.75.0 (2020-02-19)

0.74.0 (2020-02-18)

Bug Fixes

0.73.1 (2020-02-12)

0.73.0 (2020-02-07)

0.72.0 (2020-01-27)

0.71.0 (2020-01-15)

0.70.0 (2019-12-18)

0.69.0 (2019-12-06)

0.68.0 (2019-11-27)

0.67.1 (2019-11-13)

0.67.0 (2019-11-11)

0.66.0 (2019-10-31)

0.65.0 (2019-10-22)

0.64.2 (2019-10-16)

0.64.1 (2019-10-14)

0.64.0 (2019-10-11)

0.63.0 (2019-10-04)

0.62.0 (2019-10-02)

0.61.3 (2019-10-01)

0.61.2 (2019-09-25)

0.61.1 (2019-09-25)

0.61.0 (2019-09-21)

0.60.0 (2019-09-16)

0.59.0 (2019-09-12)

0.58.0 (2019-09-04)

0.57.0 (2019-09-03)

0.56.0 (2019-08-27)

0.55.0 (2019-08-21)

0.54.0 (2019-08-15)

0.53.0 (2019-08-08)

0.52.0 (2019-07-31)

0.51.0 (2019-07-24)

0.50.0 (2019-07-17)

0.49.1 (2019-07-02)

0.49.0 (2019-07-01)

0.48.0 (2019-06-18)

0.47.0 (2019-06-10)

0.46.0 (2019-06-05)

0.45.0 (2019-05-31)

0.44.0 (2019-05-29)

0.43.0 (2019-05-27)

0.42.0 (2019-05-20)

0.41.0 (2019-05-15)

0.40.1 (2019-05-02)

Bug Fixes

  • build script to include data dir in compilation (#1025) (a71ab3d)

0.40.0 (2019-04-30)

0.39.1 (2019-04-23)

0.39.0 (2019-04-17)

0.38.1 (2019-04-05)

0.38.0 (2019-04-04)

0.37.0 (2019-03-27)

0.36.0 (2019-03-22)

0.35.0 (2019-03-15)

0.34.1 (2019-03-11)

0.34.0 (2019-03-08)

0.0.0-rc5 (2018-02-28)