Skip to content

Latest commit

 

History

History
2535 lines (1396 loc) · 176 KB

CHANGELOG.md

File metadata and controls

2535 lines (1396 loc) · 176 KB

Changelog

6.28.0 (2024-09-24)

Features

Bug Fixes

  • Button: selected styles override disabled styles in button (#1856) (052889d)

6.27.2 (2024-09-18)

Bug Fixes

6.27.1 (2024-09-18)

Bug Fixes

  • Sheet: take into account margins and padding of content when calculating height (#1865) (a796f88)
  • TextInput: use controlProps only for underlying input (#1863) (020b9b0)
  • User: make font-size 13px for xs size (#1866) (54bb231)

6.27.0 (2024-09-17)

Features

  • Avatar: add 2xs Avatar size (#1721) (1698d51)
  • i18n: functionality for adding translations into other languages (#1859) (33ad008)
  • withTableSelection: add indeterminate state (#1743) (824164c)

Bug Fixes

  • List: use Component instead of PureComponent in ListItem (#1862) (62072d6)
  • Table: not propagate click in table actions menu (#1854) (226fbf0)
  • useElementSize: set initial size of the element (#1857) (d442a6a)

6.26.0 (2024-09-12)

Features

  • Card: enable onClick event handler on selected card (#1840) (a1678b6)
  • Select: pass aria attributes to render functions (#1841) (9801d33)
  • TextInput: add unstable_endContent prop (#1845) (a38b73b)

Bug Fixes

  • Select: correctly scroll to active element (#1853) (d6c512a)

6.25.1 (2024-09-10)

Bug Fixes

  • List: deactivate on mouse leave (#1847) (cc14563)
  • useFocusWithin: ignore blur event when window loses focus (#1836) (216e700)

6.25.0 (2024-09-09)

Features

Bug Fixes

  • TreeList: provide types for renderContainerProps (#1842) (90ca9cc)

6.24.0 (2024-09-02)

Features

Bug Fixes

  • Select: close popup when click on select button (Safari) (#1828) (3f5adc5)
  • Select: correctly set active item in listbox (#1829) (ee2d040)
  • Select: pass disabled prop to renderControl, don't change state if disabled (#1766) (24bbb05)
  • useListFilter: fixed bug with initial items array change (#1751) (b9d2671)
  • useList: support activeItemId in initialState prop (#1824) (aa308d8)

6.23.1 (2024-08-14)

Bug Fixes

  • useList: fixed expanded controlled state behaviour (#1749) (82db00e)

6.23.0 (2024-08-06)

Features

  • ListItemView: ability to pass custom react node as a content prop (#1726) (5d5417a)
  • useList: added migration guide to set of useList components (#1728) (69283f1)

Bug Fixes

  • Icon: correctly parse function with default props (#1713) (b7eef14)
  • TreeSelect: fix crashes while has selected elements and has no items (#1727) (0e22bde)
  • typography: use correct variables across the project (#1712) (4a9a6d1)

6.22.0 (2024-07-27)

Features

Bug Fixes

  • Breadcrums: support react <18 types (#1722) (5229e99)
  • useList: fix useList hook for support initialization state (#1719) (2b04b18)

6.21.0 (2024-07-16)

Features

  • PinInput: form support (#1686) (b82262e)
  • Select: new label and value resize behaviour (#1694) (891fa88)
  • TreeList: add ListTreeItemType interface export and id argument to renderItem prop (#1707) (de544b8)
  • TreeSelect: add placeholder prop (#1705) (88696a3)
  • useControlledState: support update callback with additional params (#1688) (8bff882)
  • useResizeObserver: support box option (#1687) (a178dff)

Bug Fixes

  • Avatar: update text font weight (#1684) (0ae513a)
  • ListItemView: div -> li default list item html tag (#1698) (07a16c9)
  • Sheet: fix incorrect content height calculation (#1700) (7e4dd23)
  • TextArea: fix content width & height styles (#1690) (94979cf)
  • TreeSelect: add disabled prop (#1697) (f9650da)
  • TreeSelect: fix page gap on component focus in some cases (#1708) (cd4eb93)
  • useList: fix disabled elements activate logic (#1706) (f12d49f)

6.20.1 (2024-07-01)

Bug Fixes

6.20.0 (2024-06-26)

Features

6.19.0 (2024-06-20)

Features

Bug Fixes

6.18.0 (2024-06-14)

Features

Bug Fixes

  • Button: remove useless pointer-events style for icon content (#1641) (47b9850)
  • PinInput: add use client (#1646) (d0bdede)

6.17.0 (2024-06-11)

Features

Bug Fixes

  • Button: normal-contrast loading view (#1630) (bfa2dbf)
  • Slider: export function for preparing initial value (#1637) (434949e)
  • Text: return missing props to TextProps type (#1631) (6a70f17)
  • theme: bring back root classname helper and fix docs (#1633) (ba08c66)
  • Toc: unify item line height (#1635) (4612a77)
  • useList: add qa property to container (#1625) (05c1fc2)

6.16.0 (2024-05-24)

Features

Bug Fixes

  • Button: do not shrink button when there is only one icon (#1577) (98fd95f)
  • Flex,ListItemView: return ref drilling by React.forwardRef (#1612) (9b8f4f8)
  • Link: change href property type description (#1574) (#1593) (0aec983)
  • Text: fix custom html tag inheritance (#1584) (fcd2ff3)
  • Tooltip: use more reasonable animation delay (#1586) (fe14706)

6.15.0 (2024-05-08)

Features

  • add new css variable --g-color-base-float-medium (#1572) (aeda6fe)

Bug Fixes

  • Select: fix focus state on control click in Safari (#1132) (80730cc)
  • Sheet: resize sheet if image in content is loaded (#1566) (8b56abd)

6.14.1 (2024-05-02)

Bug Fixes

  • TextInput: fix handleAdditionalContentClick handler (#1558) (911624f)
  • utils: correctly check type of element (#1560) (c854f4f)

6.14.0 (2024-04-27)

Features

Bug Fixes

  • Alert: fix close button width (#1542) (f916681)
  • layout: update layout docs (#1550) (575477a)
  • Select: add onLoadMore to useCallback deps in SelectList (#1041) (c34590e)
  • Select: fix examples in docs and storybook (#1553) (3a46421)
  • Select: show invalid state without passing error message (#1554) (882c9a9)
  • TreeList: added missed initial state for elements (#1524) (5d3b154)
  • useList: remove debug dev only information (#1552) (02bf33c)

6.13.0 (2024-04-22)

Features

  • layout: unification of Theme and Layout Providers (#1518) (d89610a)

Bug Fixes

6.12.0 (2024-04-18)

Features

  • useList: added ability to define initial value to useListState (#1483) (7f66d28)

Bug Fixes

  • do not call warnOnce function in production (#1520) (9ab7d7c)

6.11.0 (2024-04-17)

Features

  • Button: refactor to flex and center icons (#1452) (31c22e8)

Bug Fixes

  • add load more functionallity to virtualized list (#1490) (#1513) (8de1653)
  • Breadcrumbs: unset more item alignment (#1505) (7d9797a)
  • Dialog: correct width's vars order (#1510) (f54da2d)
  • Label: isolate inner z-indexes (#1519) (200c052)
  • layout: ability to override breakpoint during theme (#1512) (bad4fa9)
  • ListItemView: fix indentation in depth more than 10 (#1517) (2cde017)
  • ListItemView: some changes after feedback (#1516) (b274498)
  • prevent deselection of required table column items (#1508) (a69050c)
  • return --g-color-private-white-20-solid css variable (#1511) (4a366be)
  • theme: add option for controlling :root color-scheme (#1468) (f6237e1)

6.10.2 (2024-04-10)

Bug Fixes

  • TableColumnSetup: switcher wrapper styles (#1500) (d871319)

6.10.1 (2024-04-10)

Bug Fixes

  • TableColumnSetup: uniq i18n keysets, styles (#1498) (271ae3f)

6.10.0 (2024-04-09)

Features

Bug Fixes

  • Dialog: fix header paddings without close button (#1495) (820dd60)
  • Label: correctly work with keyboard (#1485) (1e5380f)
  • Label: do not inherit parent's font weight (#1496) (8a8c2e5)
  • List: fix Home & End keys handle (#1491) (77156ff)
  • List: fix SimpleContainer dimensions handle (#1479) (68243be)
  • Popover: remove flex gap workaround (#1489) (ad997e5)
  • withTableSettings: isSelected -> selected, isRequired -> required (#1478) (cf1dfb0)
  • withTableSettings: renderClone for dnd (#1463) (76409f4)

6.9.0 (2024-04-03)

Features

Bug Fixes

6.8.0 (2024-03-29)

Features

Bug Fixes

  • Divider: add export of Divider to Components/index (#1461) (bdab522)
  • TextInput: turn off event onBlur on input when use clear button (#1458) (3274c04)

6.7.0 (2024-03-28)

Features

Bug Fixes

6.6.0 (2024-03-26)

Features

  • improve focus outline styles for text/select inputs (#1318) (ce75de8)

Bug Fixes

6.5.0 (2024-03-21)

Features

  • Breadcrumbs: export LinkBreadcrumbsItem & ButtonBreadcrumbsItem types (#1435) (e5fde1b)
  • Pagination: add qa attributes (#1438) (785079a)

Bug Fixes

  • Breadcrumbs: renamed LinkBreadcrumbsItem and ButtonBreadcrumbsItem types (#1437) (db09f93)
  • UserLabel: replace text to children in README (#1432) (b8c79e1)

6.4.0 (2024-03-20)

Features

  • TreeList: new useList family component (#1417) (5e7d8b9)
  • User: added qa attribute for name and description nodes (#1429) (ef6143a)

Bug Fixes

  • Palette: fixed README.md for the landing (#1431) (c15f2e3)
  • withTableSettings: deprecate the renderControls prop (#1427) (27be674)

6.3.0 (2024-03-18)

Features

Bug Fixes

  • adding new classes in rootClassName before removing (#1411) (e29cde1)
  • DropdownMenu: fix opening from keyboard (#1404) (9251714)
  • prevent event bubbling for table item action (#1399) (d2e9d41)
  • ThemeProvider: always set CSS class when scoped (#1423) (c787b5b)
  • Toc: set aria-current attribute to selected item (#1426) (682444a)

6.2.0 (2024-03-05)

Features

Bug Fixes

6.1.1 (2024-02-26)

Bug Fixes

  • breadcrumbs: fix adaptive more view and define ResizeObserver in ssr apps (#1364) (dc6e514)
  • controls: allow disable input via controlProps (#1371) (3228dca)
  • CopyToClipboard: return CopyToClipboardProps type (#1367) (43599c2)

6.1.0 (2024-02-21)

Features

  • Disclosure: possibility to use DefaultDisclosureSummary inside … (#1359) (f8b52b9)
  • Select: add useSelectOptions hook (#1356) (456ffaa)
  • Slider: introduce Slider component (#1243) (a1bf754)
  • Table: add renderRowActions property (#1353) (e074b1a)
  • withTableSettings: add the renderControls prop (#1357) (b3f0d78)

Bug Fixes

  • List: fix virtualized list items rerender (#1314) (8c45f7c)
  • Select: do not call onFilterChange on mount (#1321) (0bb7c66)
  • TextInput: unequal text alignment in textinput (#1306) (c9cdbd0)
  • TreeSelect: fix render container method (#1344) (1ab9d59)
  • TreeSelect: fixed dnd examples with selected values (#1329) (14d6ceb)
  • TreeSelect: remove default popup width (#1350) (84044f0)

6.0.0 (2024-02-06)

⚠ BREAKING CHANGES

  • rename onClose to onCloseClick (#1295)
  • Persona: refactored and renamed to UserLabel (#1292)
  • Link: the "href" property is required (#1270)
  • Breadcrumbs: use gap property for gaps between breadcrumbs items instead of paddings (#1185)
  • rename .yc class prefix (#1260)
  • Table: update cell paddings (#1271)
  • remove setters from mobile hooks (#1262)
  • remove remaining --yc-* variables (#1256)
  • Table: update SortIndicator view (#1220)
  • delete deprecated hooks (#1213)
  • update avatar and user components (#1221)
  • Table: remove uppercase heading style (#1222)
  • merge old Tooltip with ActionTooltip and introduce new Tooltip (#1189)
  • Toaster: use theme prop instead of type (#1198)
  • add CSS API instead of --yc-* variables (#1127)
  • Button: use logical properties (#1119)
  • support RTL direction (#1111)
  • Link: Remove normal-visitable view (#905)
  • rename theme prop positive -> success (#1093)
  • add css imports to cjs files (#1101)
  • remove old theme variables fallback (#1092)
  • remove focus visible fallback (#1086)
  • Button: add CSS API (#1066)

refactor

  • Breadcrumbs: use gap property for gaps between breadcrumbs items instead of paddings (#1185) (a31d7a1)
  • Link: Remove normal-visitable view (#905) (82f8afa)
  • remove remaining --yc-* variables (#1256) (69efabe)
  • rename .yc class prefix (#1260) (c879bba)

Features

Bug Fixes

  • Button: fix disabled raised view style (#1226) (fb62985)
  • DropdownMenu: fix rtl behaviour (3f3a805)
  • fix controls css api (#1289) (9882c53)
  • fix unit tests (99e454f)
  • fix visual tests (4baeef9)
  • Popover: fix rtl placement (62405d5)
  • rebase fixes (b272b72)
  • rebase issues (4f9d2ec)
  • rebase issues (39b4694)
  • rework new ListItemView text crop behaviour (#1301) (5f123e9)
  • ThemeProvider: inner provider should overwrite specified props and only them (#1235) (aaf9b0f)
  • Toaster: use logical css values in stories (#1142) (6dcbdae)
  • TreeSelect component after useMobile refactoring (#1265) (9c23dae)
  • TreeSelect: removed select indentation from group items (#1303) (e0471d6)
  • use ActionTooltip in components (1042ac3)

5.30.1 (2024-02-06)

Bug Fixes

  • Dropdown: opening sub menus in dropdown menu with using keyboard (#1298) (1aed302)
  • MenuItem: fix non interactive MenuItem style (#1307) (b1a386d)
  • TextInput: add overflow hidden to text-input__content wrapper (#1293) (d52a7bd)

5.30.0 (2024-01-31)

Features

  • Select: added errorMessage, errorPlacement and validationType props (#1291) (8f2f07b)
  • Table: added link as Table action element (#1290) (de63cef)

Bug Fixes

  • Label: missing text overflow (#1206) (60357cd)
  • List: calling onLoadMore function while using keyboard (#1284) (1760166)
  • Pagination: stories controls (#1281) (a6fac44)
  • Table: sticky column (#1283) (7366c9b)
  • Table: withTableSorting can get sort value using column's ID written as path (#640) (d5bb68b)

5.29.0 (2024-01-19)

Features

  • Disclosure: added qa attribute for details and summary nodes (#1253) (b1bbcd1)

Bug Fixes

  • Select: add type="button" to SelectClear (#1255) (6a9e189)

5.28.0 (2024-01-16)

Features

Bug Fixes

5.27.0 (2024-01-10)

Features

  • Disclosure: allow use React.Node as summary (#1233) (3180060)

Bug Fixes

  • Disclosure: component size should not be used for its content (#1234) (c721640)
  • Pagination: fix total page calculation (#1237) (8f1af66)
  • Select: activate first clickable item (#1228) (13b921e)
  • Select: add 100% width to default labels (#1239) (5bd5edd)
  • ThemeProvider: fix rootClassName update (#1231) (4f0f099)

5.26.0 (2023-12-26)

Features

  • calculate body class names seperately (#1197) (3dcf03d)
  • Popup: add aria-label & aria-labelledby attributes (#1202) (f68183a)

Bug Fixes

5.25.0 (2023-12-12)

Features

5.24.0 (2023-12-08)

Features

  • Table: use &lt;colgroup/&gt; to set cells width (#831) (c33b330)

5.23.0 (2023-12-06)

Features

Bug Fixes

  • a11y: make a short text for the clear button (#1172) (d767727)
  • add qa property for some components (#1173) (0f2a491)
  • export TableColumnSetupItem type from index (#1169) (21e21a3)
  • Select: proper filter updates when closing the popup (#1180) (7d12e86)
  • Select: update keyboard interaction to correspond with specification (#1176) (504b05c)
  • Table: fixed checkbox max width (#1174) (ed68043)

5.22.0 (2023-11-28)

Features

  • List: use Grip icon from @gravity-ui/icons (#1164) (625679a)

Bug Fixes

  • Select: add onLoadMore to the list of dependencies to avoid closures (#1168) (a804684)

5.21.1 (2023-11-27)

Bug Fixes

  • align checkbox when there is more than 1 line of text in any cell (#1149) (8011430)

5.21.0 (2023-11-24)

Features

5.20.0 (2023-11-14)

Features

Bug Fixes

5.19.1 (2023-11-07)

Bug Fixes

5.19.0 (2023-11-03)

Features

  • improving a11y (#1070) (146ff4f)
  • Menu: add support for item icon on the end of the item (#965) (55885d0)
  • Popover: prevent closing by click in case of using openOnHover property (#1085) (2c17a06)

Bug Fixes

  • Popover: pass classname to html content (#1073) (c0a725a)
  • Select: fix SelectRenderControlProps.onClick type (#1075) (9dbfc3a)

5.18.1 (2023-10-24)

Bug Fixes

  • Sheet: fix Sheet resize when viewport size changes (#1055) (35a7b74)

5.18.0 (2023-10-19)

Features

Bug Fixes

  • Sheet: fix Sheet intermediate hanging when touch ends above it (#1052) (38e6308)

5.17.0 (2023-10-05)

Features

  • List: extend emptyPlaceholder type to ReactNode (#1013) (56437e6)
  • synced codeowners with sharepoint table (#1034) (5bdfa75)
  • withTableSorting: add control the use of data sorting (#1032) (53248c9)

Bug Fixes

  • start refactor hooks: useOutsideClick (#1035) (6ad4a78)
  • use correct font-size through component styles (#1036) (44d7160)

5.16.0 (2023-09-29)

Features

  • Table: add options for WithTableSettings HOC (#1029) (b338bf9)

5.15.0 (2023-09-22)

Features

Bug Fixes

  • DocsDecorator: add new css prefix support (#1027) (6ff4c1c)

5.14.0 (2023-09-20)

Features

  • Select: add onClear argument to renderControl method (#1022) (d3af988)

5.13.0 (2023-09-19)

Features

5.12.2 (2023-09-15)

Bug Fixes

  • Select: fix filtering in case of using grouped options (#1011) (096d404)

5.12.1 (2023-09-13)

Bug Fixes

5.12.0 (2023-09-13)

Features

Bug Fixes

  • Menu: make menu item content width limited by a container (#1001) (f3943c9)
  • Select: fix control border radius in case of using xl size (#998) (8084778)
  • Tabs: show focused state if focus-visible only (#1000) (88b89f7)
  • ThemeProvider: fix scoped CSS classes (#1003) (9fe15e3)

5.11.0 (2023-09-07)

Features

  • Alert, Card: deprecate positive theme (#986) (e4758d4)
  • Breadcrumbs: add title prop to item (#863) (0146f5f)
  • Popover: add popper modifiers to popover props (#993) (fdce64a)
  • TextArea, TextInput: use aria-describedby for error and note (#904) (d51039b)

5.10.0 (2023-09-05)

Features

  • add CSS variables to control focus outline (#973) (d926ef8)
  • Card: update README (#976) (60bf6cc)
  • Flex: add alignContent, justifyItems and justifySelf css props (#974) (0be31c9)
  • Menu: improve MenuItem a11y (#959) (338f907)
  • Popover: accept function as a children (#900) (ca5bcc7)
  • Table: update README (#985) (cc95a33)
  • TextInput: add an option to display error via tooltip (#821) (f883f01)
  • Toast: update icons according to design (#984) (d10d2c9)

Bug Fixes

  • Disclosure: explicit type export (#983) (eeba89d)
  • Pagination: increase priority over input styles (#989) (bbfa6a5)
  • Toast: don't render empty actions array (#979) (e19d0b9)

5.9.1 (2023-08-28)

Bug Fixes

5.9.0 (2023-08-24)

Features

Bug Fixes

5.8.0 (2023-08-24)

Features

Bug Fixes

  • ClearButton: increase selector specificity (#945) (edee285)
  • Table: fix copying the array from getRowClassNames (#923) (3f123b7)

5.7.0 (2023-08-22)

Features

  • Table: add wordWrap option to prevent text cut (#919) (52d6efb)

Bug Fixes

  • Table: calculate column styles on mount (#926) (e51a73b)

5.6.0 (2023-08-22)

Features

5.5.1 (2023-08-18)

Bug Fixes

  • Button: fix maxWidth property in case of using button only with icon node (#914) (15dde1a)
  • MobileProvider: fix SSR compatibility (#897) (9c6f5a7)

5.5.0 (2023-08-17)

Features

Bug Fixes

5.4.1 (2023-08-11)

Bug Fixes

  • Disclosure: add displayName (#891) (81a71ae)
  • focusTrap: do not create focusTrap during render (#888) (2a6bb83)
  • Popup: set tabIndex on focusTrap root element (#889) (4941880)
  • Tooltip: set default open delay, focus/blur ignores delay (#892) (625f4f4)

5.4.0 (2023-08-10)

Features

5.3.0 (2023-08-10)

Features

  • use useId from React 18 to generate uniq ids (#883) (2b83656)

Bug Fixes

5.2.0 (2023-08-10)

Features

Bug Fixes

  • add menu-item-content-children class name (#839) (4519ea5)
  • Disclosure: readme (#852) (6065c56)
  • Label: actions icon size fix (#851) (1bce6e4)
  • Menu: set properly QA attributes names (#844) (b3a9f1e)
  • Select: disable option selection (#870) (09c2e7d)
  • Select: do not show cursor:pointer on control when Select is disabled (#874) (5d7c8b4)
  • Select: popup width fit mode with identation (#873) (61a4c9a)
  • TextArea: fix incorrect type (#867) (831bf5f)
  • useRestoreFocus: correctly set current restore element (#865) (35bc0d5)

5.1.0 (2023-07-20)

Features

Bug Fixes

  • Table: remove redundant height with enabled sorting (#826) (c5c09b6)

5.0.2 (2023-07-18)

Bug Fixes

  • Card: prevent keyboard handler form abort (#825) (273d316)

5.0.1 (2023-07-17)

Bug Fixes

5.0.0 (2023-07-14)

⚠ BREAKING CHANGES

  • new brand color (#815)
  • update colors (#794)
  • remove moved components (#795)
  • TextInput: separate into 2 components TextInput & TextArea (#764)
  • customization refactor (#773)
  • remove popup wrapper class, use content classes for popover… (#711)
  • update xs border radius (#775)
  • rename CSS vars (#767)
  • themization update (#758)
  • refactor theme context data flow (#745)
  • Button: add selected state for all views (#755)
  • Button: update paddings (#636)
  • Progress: rename view prop to size (#747)
  • remove resize-observer-polyfill (#744)
  • Label: remove style prop (#733)
  • removed migrated components (#743)
  • Toaster: remove deprecated isOverride prop (#734)
  • use icons from Gravity (#735)
  • SharePopover: remove deprecated handleMetrika prop (#739)

Features

Bug Fixes

refactor

4.24.0 (2023-07-14)

Features

  • ArrowToggle: use icon from gravity-ui/icons (#811) (7113923)

Bug Fixes

  • Hotkey: setting a key property of a span in Hotkey's content (#813) (d7aa609)
  • LayerManager: ignore clicks on Toast (#792) (ba7d7b0)
  • useListNavigation: remove navigation with right and left arrows (#817) (0aab910)

4.23.0 (2023-07-07)

Features

4.22.1 (2023-07-03)

Bug Fixes

  • Label: use proper Button size (#776) (81395ad)
  • Select: fix vertical align for SelectControl (#790) (0abdc4a)

4.22.0 (2023-06-30)

Features

  • SelectFilter: pass styles to renderFilter and remove wrapper (#786) (29a6d3b)

4.21.4 (2023-06-29)

Bug Fixes

  • Select: fix selectControl height & bg hover style (#784) (f2fa9e9)

4.21.3 (2023-06-29)

Bug Fixes

  • Select: fix qa & selectControl bg hover style (#781) (f12a08e)

4.21.2 (2023-06-29)

Bug Fixes

  • Select: fix selectControl block style (#777) (fb146de)

4.21.1 (2023-06-28)

Bug Fixes

  • Select: fix SelectControl hover and border-radius styles (#772) (9d6ef59)

4.21.0 (2023-06-26)

Features

4.20.0 (2023-06-23)

Features

  • Menu: change extra pseudo classes in markup to padding's (#703) (24cfc5b)

Bug Fixes

  • Popover: no left-side overflow due to negative margins (#736) (c113920)
  • Select: add [type="button"] to control node (#762) (adc01f0)

4.19.0 (2023-06-21)

Features

  • ClipboardButton: added tooltip to clipboard button (#667) (0508268)

Bug Fixes

  • revert "fix: change span to div in popover" (#750) (e0ff9f5)

4.18.0 (2023-06-21)

Features

Bug Fixes

4.17.0 (2023-06-15)

Features

  • Select: design improvements (control & options) (#727) (6526c86)

4.16.0 (2023-06-09)

Features

4.15.1 (2023-06-05)

Bug Fixes

4.15.0 (2023-06-01)

Features

Bug Fixes

4.14.0 (2023-05-22)

Features

  • LayerManager: add a way to subscribe to stack changes (#652) (84f6b46)

Bug Fixes

  • Select: fixed behaviour of isOptionMatchedByFilter (#673) (823fb09)

4.13.0 (2023-05-18)

Features

4.12.0 (2023-05-17)

Features

4.11.1 (2023-05-12)

Bug Fixes

  • Select: align items by baseline for label and values (#661) (b25734f)

4.11.0 (2023-05-11)

Features

Bug Fixes

  • Tooltip: increase selector specificity (#660) (1f53d8d)

4.10.0 (2023-04-26)

Features

  • Popover: let action and cancel buttons to wrap on long text (#631) (f22f9b5)

4.9.0 (2023-04-20)

Features

Bug Fixes

4.8.1 (2023-04-17)

Bug Fixes

  • FocusTrap: deactivate focusTrap before clear root node (#627) (7a5abf1)
  • usePopper: return flip modifier (#625) (03239bf)

4.8.0 (2023-04-14)

Features

Bug Fixes

  • Label: Increase priority over button styles (#622) (e67ce4d)

4.7.0 (2023-04-11)

Features

Bug Fixes

  • ControlLabel: allow control text to be stretched (#619) (5193fc4)

4.6.1 (2023-04-07)

Bug Fixes

  • Icon: use href attribute in <use> element (#580) (aaaa900)
  • Table: add export for TableSortIndicator (#612) (5072097)

4.6.0 (2023-04-06)

Features

  • Card: add size Card and add new sfx style (#550) (d1dbea6)
  • export LayoutDirection (#586) (c1b3375)
  • FocusTrap: automatically add popup content to parent focus-trap (#594) (7de4a6f)
  • SharePopover: add an onClick prop, deprecate a handleMetrika prop (#606) (f5c5c16)

Bug Fixes

  • table component resize observer loop error (#610) (4962e47)

4.5.0 (2023-04-04)

Features

4.4.3 (2023-04-03)

Bug Fixes

  • layout/Flex: fix gap size values and remove default theme spacin… (#592) (42aea11)
  • Select: fix empty group label render (#601) (548c81c)

4.4.2 (2023-03-29)

Bug Fixes

  • Select: fix scroll when virtualization disabled (#593) (e78e7ad)

4.4.1 (2023-03-29)

Bug Fixes

  • layout/Flex: remove wrappers around null children elements (#588) (6c6c62f)
  • layout: fixed flex gap properties and replaced api with complex … (#583) (8686fbb)

4.4.0 (2023-03-27)

Features

  • added wrappers to Flex children components if spacing enabled (#573) (0a44309)
  • List: add autoFocus (#570) (3b96d37)
  • Select: add generic type for select option data (#569) (21819cb)
  • Select: add support mobile view (#579) (0c0df4a)

Bug Fixes

  • SheetContent: fix setting height for content (#572) (e749230)

4.3.0 (2023-03-16)

Features

  • Select: add support selected value in renderControl (#566) (f987fb3)
  • unstable layout components set (#551) (dc2ffad)

Bug Fixes

  • DropdownMenu: remove required path from DropdownMenuItemProps, fix navigation (#567) (e7470c3)
  • only known names are now exported from the package (#565) (203653d)
  • storybook: remove RE_RENDER event from theme addon (#562) (305aa38)

4.2.0 (2023-03-07)

Features

Bug Fixes

  • Toaster: fix animation when toast is updated (#441) (9e25c8b)

4.1.0 (2023-03-01)

Features

  • Select: add error property (#548) (061a8df)
  • Select: add opportunity to apply maxHeight style to popup via popupClassName property (#537) (16786e0)
  • Table: add onMouseDown action for Table tr (#534) (4f287b3)
  • Table: add table action icon (#510) (a265b34)
  • typography: do not use SF Mono (#541) (6f4f0d6)

Bug Fixes

  • base-generic-ultralight color in dark-hc theme (#545) (6e23eac)
  • Button: change border for outlined view (#546) (f47bdfb)
  • fix exports object (#555) (68dd2bd)
  • LayerManager: check click outside event on the same layer where the mousedown event happened (#549) (63637b2)
  • TextInput: no unexpected autocomplete when label prop present (#509) (0a81ce2)

4.0.7 (2023-02-10)

Bug Fixes

4.0.6 (2023-02-08)

Bug Fixes

  • add explicitly used deps to package.json (#530) (72c134d)
  • Label: the Label with the close button style fix (#524) (b7963be)

4.0.5 (2023-02-01)

Bug Fixes

4.0.4 (2023-01-31)

Bug Fixes

  • Select: filter options when filter text is empty (#517) (9fd57d5)

4.0.3 (2023-01-31)

Bug Fixes

  • old exports should work with the new ones (#515) (fe7790c)

4.0.2 (2023-01-30)

Bug Fixes

4.0.1 (2023-01-26)

Bug Fixes

  • TextInput: do not auto generate id for input if not needed (#505) (26b24df)

4.0.0 (2023-01-26)

⚠ BREAKING CHANGES

  • text semantic colors update (#484)
  • remove deprecated props (#486)
  • ShareTooltip: rename to SharePopover (#488)
  • Popover: make forceLinksAppearance false by default (#472)
  • Icon: remove onClick handler (#473)
  • Toaster: rename timeout to autoHiding (#248)
  • ShareTooltip: socialNets props renamed to shareOptions (#411)
  • HelpPopup: remove default ofset (#304)
  • TextInput: remove incorrect resize attribute styles (#266)
  • Toaster: remove singleton instantiation (#225)
  • Label: new xs size and click action for more custom label (#380)
  • DropdownMenu: custom popup props, controlled popup visibility, submenus, keyboard navigation (#409)

Features

  • add focus trap (#482) (e091ee0)
  • DropdownMenu: custom popup props, controlled popup visibility, submenus, keyboard navigation (#409) (a6db9f8)
  • HelpPopup: remove default ofset (#304) (c150cb2)
  • Icon: remove onClick handler (#473) (50faf8f)
  • Label: new xs size and click action for more custom label (#380) (c9f7c36)
  • Popover: make forceLinksAppearance false by default (#472) (65f44ec)
  • ShareTooltip: socialNets props renamed to shareOptions (#411) (c3b1aeb)
  • support React 18 (#469) (e54108d)
  • text semantic colors update (#484) (dbbf04a)
  • Toaster: remove singleton instantiation (#225) (60933f8)
  • Toaster: rename timeout to autoHiding (#248) (ed0585a)

Bug Fixes

  • TextInput: remove incorrect resize attribute styles (#266) (85ef55a)
  • Toaster: pre 18 react fix (#494) (0f0877a)
  • Toaster: swap namings in singletons (440ed7e)
  • Tooltip: hide Popup border (252f2f3)

refactor

3.20.0 (2023-01-25)

Features

  • eventBroker: eventBroker acts in the bubbling phase (#489) (ef2c901)

3.19.2 (2023-01-23)

Bug Fixes

  • Portal: add condition for default container for Portal (#497) (da21d63)

3.19.1 (2023-01-22)

Bug Fixes

3.19.0 (2023-01-20)

Features

  • RadioGroup: improve radio-group components a11y (#196) (70f36ea)
  • TextInput: ability to show innerLabel in InputControl (#426) (8a5e3c5)

Bug Fixes

3.18.2 (2023-01-19)

Bug Fixes

3.18.1 (2023-01-16)

Bug Fixes

  • Popup: return shadow on root element (#479) (5a4098d)

3.18.0 (2023-01-13)

Features

  • add Hotkey and ActionTooltip components (#398) (76cf9dd)
  • Select: add prop renderSelectedOption (#474) (6449e31)
  • ThemeProvider: add props scoped and rootClassName (#478) (763af7b)

3.17.0 (2023-01-12)

Features

3.16.0 (2023-01-11)

Features

  • Select: add popupClassName property (#468) (f0184a8)
  • Table: pass click event to action handler (#461) (620c0e1)
  • use react-transition in Modal and Popup (#453) (9edec4a)

Bug Fixes

3.15.0 (2023-01-10)

Features

  • Select: add defaultOpen prop (#459) (775f857)
  • Text: add text break common properties (#438) (c879e0a)
  • Text: replace titleAttribute with native title (#437) (cf9d42e)

Bug Fixes

  • List: remove focus from list on Tab key (#444) (78a8a60)

3.14.1 (2022-12-30)

Bug Fixes

3.14.0 (2022-12-22)

Features

3.13.1 (2022-12-20)

Bug Fixes

  • DropdownMenu.Item: allow usage w/out text (#406) (54def67)

3.13.0 (2022-12-20)

Features

  • Select: add virtualizationThreshold property (#431) (6bd9751)

3.12.0 (2022-12-19)

Features

Bug Fixes

3.11.0 (2022-12-14)

Features

Bug Fixes

3.10.2 (2022-12-13)

Bug Fixes

3.10.1 (2022-12-12)

Bug Fixes

  • ShareTooltip: fix link for email share option (#415) (4a5eed0)

3.10.0 (2022-12-12)

Features

Bug Fixes

  • ShareTooltip: popup default options container width (#410) (7cf7435)
  • Tooltip: fix transition glitch on nearby tooltips (#408) (7f7f752)
  • Tooltip: tooltip sometimes gets stuck on an element (#413) (2fdab3f)
  • withTableSelection: range select must ignore disabled lines (#414) (5b50237)

3.9.2 (2022-12-07)

Bug Fixes

3.9.1 (2022-12-06)

Bug Fixes

  • DropdownMenu.Item: allow children (#402) (253e291)
  • Menu.Item: remove onClick from disabled items (#404) (1394457)

3.9.0 (2022-12-06)

Features

  • ShareTooltip: add Email as one of default sharing options and r… (#399) (48bfbcb)

3.8.0 (2022-12-05)

Features

  • DropdownMenu: allow &lt;DropdownMenu.Item/&gt; w/out action (#392) (a606920)
  • DropdownMenu: extract &lt;DropdownMenu.Item/&gt; (#397) (1307f87)
  • ShareTooltip: add LinkedIn as one of default SM sharing option (#383) (5aacc1a)

Bug Fixes

  • DropdownMenu: close opened menu on disable (#393) (14ba916)
  • DropdownMenu: trigger callback on each state change (#394) (a70b248)

3.7.0 (2022-12-01)

Features

3.6.0 (2022-11-18)

Features

  • CopyToClipboard: add options (#378) (80c5329)
  • Label: support action button in all themes (#381) (7bdcce9)
  • List: remove pointer-events from disabled items (#382) (c6367cf)

Bug Fixes

  • Label: change hover style for label with copy, fix label with single icon (#351) (786e706)

3.5.0 (2022-11-09)

Features

  • Select: move selection logic to useSelect (#370) (dcf97a4)
  • Table: add possibility to range select with shift key pressed (#374) (d76407f)

Bug Fixes

  • Button: correctly show focused state for raised button (#377) (dbcfa97)

3.4.0 (2022-11-01)

Features

  • Popover: updated anchorRef prop, added strategy prop to Popover (#372) (22021c9)

3.3.0 (2022-10-20)

Features

  • share tooltip component copy button customization (#350) (3d608b2)

3.2.0 (2022-10-19)

Features

3.1.3 (2022-10-18)

Bug Fixes

  • Select: prevent page scrolling after first click (#364) (3320a7e)
  • use directly import from lodash (#359) (490cf20)

3.1.2 (2022-10-14)

Bug Fixes

  • update hc colors for labels, buttons and brand-text (#356) (8d6d596)

3.1.1 (2022-10-13)

Bug Fixes

  • Add missing --yc-color-base-modal for light-hc (#352) (db14312)
  • update hc colors for generic-accent-disabled (#355) (2760749)

3.1.0 (2022-10-03)

Features

  • Tooltip: add ability to disable display of the tooltip (#348) (5d32afe)

Bug Fixes

3.0.2 (2022-09-26)

Bug Fixes

  • loose i18n typings (#345) (5612aee)
  • RadioButton: fix option icon styles (#339) (ea9e31f)
  • use background-size as percent value for loading button for safari (#342) (c0ec61b)

3.0.1 (2022-09-09)

Bug Fixes

3.0.0 (2022-09-08)

⚠ BREAKING CHANGES

  • transfer package from yandex-cloud (#331)
  • updated i18n, and remove it from peer deps
  • Popover: refactored to functional component, use PopoverInstanceProps type as ref type for public methods

Setting language in uikit

v2

import {I18N} from '@yandex-cloud/i18n';

I18N.setDefaultLang('en');

v3

import {configure} from '@gravity-ui/uikit';

configure({lang: 'en'});

Features

2.15.0 (2022-09-07)

Features

  • Button: added content and view to eventBroker meta (#319) (19a3463)

Bug Fixes

  • relax RealTheme type for compatibility (#329) (a716448)

2.14.0 (2022-09-01)

Features

2.13.4 (2022-08-22)

Bug Fixes

  • ChangelogModal: fix sizes and margins (#310) (d6e0cae)

2.13.3 (2022-08-18)

Bug Fixes

  • Select: calculate tick size from content (#313) (f40144e)

2.13.2 (2022-08-11)

Bug Fixes

  • TextInput: increase css specificity to rewrite Button styles (#301) (def1da0)

2.13.1 (2022-08-10)

Bug Fixes

  • StoreBadge: content image for StoreBadge with url (#299) (194fa66)

2.13.0 (2022-08-08)

Features

  • Label: add closeButtonLabel prop (#292) (5b6499d)
  • Modal: add contentClassName prop to the Modal component (#289) (79caad6)

2.12.0 (2022-08-02)

Features

  • add ShareTooltip and StoreBadge components (#275) (8c38211)

2.11.0 (2022-08-01)

Features

Bug Fixes

  • Button: do not reduce clickable area on click (#247) (8214da4)
  • Text: fixed warning-heavy textColor variant (#264) (fb7efdc)
  • withTableSettings: updateSettings can be a not async function (#256) (918a87b)

2.10.3 (2022-07-28)

Bug Fixes

  • Button: add contrast for selected state in dark theme (#262) (cbb86ac)

2.10.2 (2022-07-28)

Bug Fixes

  • Breadcrumbs: revert data pass to <Breadcrumbs.Item/> (#276) (5b4bc4b)

2.10.1 (2022-07-27)

Bug Fixes

  • Breadcrumbs: i18n must be used inside component (#271) (ec479a2)
  • Breadcrumbs: render custom divider before more button (#272) (353d13e)

2.10.0 (2022-07-21)

Features

  • Link: add color scheme for a visited link (#243) (857e434)

2.9.0 (2022-07-20)

Features

  • Icon: deprecate onClick (#240) (6936469)
  • Select: add type=button for <SelectControl/> (#227) (47e0aeb)
  • Toaster: move logic to React context (#211) (346cb95)
  • Toaster: replace <Link/> in actions with <Button/> (#254) (f603711)

Bug Fixes

2.8.0 (2022-06-24)

Features

  • popover applies actual visibility on autoclosable true (#206) (151273b)
  • Table: add ability to set className of all cells in a column (#205) (b5e6608)

Bug Fixes

  • Tabs: center tab content for horizontal tabs (#210) (af73379)
  • textinput: set paddings for clear cross depending on size (#208) (0428ca2)
  • ThemeProvider theme updating (#202) (4b0962d)

2.7.0 (2022-06-20)

Features

  • allow use layers for Dialog/Modal/Popup with different root (#120) (b2782e6)
  • Modal: color updates (#195) (be004a6)
  • Text: a new component for working with typography (#141) (7837ee8)

Bug Fixes

  • List: fix getContainer for sortable container (#190) (efb9257)
  • Popover: should be no empty space above links block if no other content provided (#191) (8432fc1)
  • Tabs: fix styles for vertical tabs (#177) (27b809f)
  • Tabs: return missing spacing when wrapTo used (#198) (48ef89d)

2.6.0 (2022-06-15)

Features

  • Popover: use "Delayed" as default behaviour (#193) (f9ade6f)

2.5.0 (2022-06-07)

Features

  • I18N: add configure function for manage internal variables like language (#186) (bc3ee55)

Bug Fixes

2.4.2 (2022-05-30)

Bug Fixes

2.4.1 (2022-05-27)

Bug Fixes

  • List: rerender list after changing activeItemIndex prop (#173) (23f9945)

2.4.0 (2022-05-25)

Features

2.3.1 (2022-05-19)

Bug Fixes

  • replace font-weight usages with mixin (#167) (b38318f)

2.3.0 (2022-05-18)

Features

2.2.2 (2022-05-17)

Bug Fixes

  • Toaster: increase css specificity of close button mixin (#163) (17b4637)

2.2.1 (2022-05-16)

Bug Fixes

2.2.0 (2022-05-16)

Features

  • tests: replace enzyme with react testing library (#157) (403b303)

Bug Fixes

2.1.1 (2022-04-29)

Bug Fixes

2.1.0 (2022-04-27)

Features

Bug Fixes

2.0.0 (2022-04-08)

Typography

BREAKING

  • CSS var renamed: --yc-font-family--yc-text-body-font-family
  • CSS var renamed: --yc-text-body-font-size--yc-text-body-1-font-size
  • CSS var renamed: --yc-text-body-line-height--yc-text-body-1-line-height
  • CSS var renamed: --yc-text-body2-font-size--yc-text-body-2-font-size
  • CSS var renamed: --yc-text-body2-line-height--yc-text-body-2-line-height
  • CSS var renamed: --yc-text-body3-font-size--yc-text-body-3-font-size
  • CSS var renamed: --yc-text-body3-line-height--yc-text-body-3-line-height
  • CSS var removed: --yc-text-lead-font-size (possible replacement - --yc-text-subheader-3-font-size)
  • CSS var removed: --yc-text-lead-line-height (possible replacement - --yc-text-subheader-3-line-height)
  • CSS var renamed: --yc-text-header-font-size--yc-text-header-1-font-size
  • CSS var renamed: --yc-text-header-line-height--yc-text-header-1-line-height
  • CSS var renamed: --yc-text-title-font-size--yc-text-header-2-font-size
  • CSS var renamed: --yc-text-title-line-height--yc-text-header-2-line-height
  • CSS var renamed: --yc-text-display1-font-size--yc-text-display-1-font-size
  • CSS var renamed: --yc-text-display1-line-height--yc-text-display-1-line-height
  • CSS var renamed: --yc-text-display2-font-size--yc-text-display-2-font-size
  • CSS var renamed: --yc-text-display2-line-height--yc-text-display-2-line-height
  • CSS var renamed: --yc-text-display3-font-size--yc-text-display-3-font-size
  • CSS var renamed: --yc-text-display3-line-height--yc-text-display-3-line-height
  • CSS var renamed: --yc-text-code-1-inline-font-size--yc-text-code-inline-1-font-size
  • CSS var renamed: --yc-text-code-1-inline-line-height--yc-text-code-inline-1-line-height
  • CSS var renamed: --yc-text-code-2-inline-font-size--yc-text-code-inline-2-font-size
  • CSS var renamed: --yc-text-code-2-inline-line-height--yc-text-code-inline-2-line-height
  • CSS var renamed: --yc-text-code-3-inline-font-size--yc-text-code-inline-3-font-size
  • CSS var renamed: --yc-text-code-3-inline-line-height--yc-text-code-inline-3-line-height
  • CSS var removed: --yc-text-code-font-size (possible replacement - --yc-text-code-1-font-size)
  • CSS var removed: --yc-text-code-line-height (possible replacement - --yc-text-code-1-line-height)
  • Body line-height: 16px18px

New

  • CSS var added: --yc-text-body-short-font-size
  • CSS var added: --yc-text-body-short-line-height
  • CSS var added: --yc-text-header-font-weight
  • CSS var added: --yc-text-subheader-font-weight
  • CSS var added: --yc-text-display-font-weight
  • CSS var added: --yc-text-display-4-font-size
  • CSS var added: --yc-text-display-4-line-height
  • CSS var added: --yc-text-subheader-1-font-size
  • CSS var added: --yc-text-subheader-1-line-height
  • CSS var added: --yc-text-subheader-2-font-size
  • CSS var added: --yc-text-subheader-2-line-height
  • CSS var added: --yc-text-subheader-3-font-size
  • CSS var added: --yc-text-subheader-3-line-height
  • CSS var added: --yc-text-caption-1-font-size
  • CSS var added: --yc-text-caption-1-line-height
  • CSS var added: --yc-text-caption-2-font-size
  • CSS var added: --yc-text-caption-2-line-height
  • Mixins added: text-body-1, text-body-2, text-body-3, text-body-short, text-caption-1, text-caption-2, text-header-1, text-header-2, text-subheader-1, text-subheader-2, text-subheader-3, text-display-1, text-display-2, text-display-3, text-display-4, text-code-1, text-code-2, text-code-3, text-code-inline-1, text-code-inline-2, text-code-inline-3

Styles

BREAKING

  • CSS var removed: --yc-color-loader-active
  • CSS var removed: --yc-color-loader-inactive
  • CSS var removed: --yc-color-base-selection-solid, use --yc-color-base-selection
  • CSS var removed: --yc-color-base-selection-hover-solid, use --yc-color-base-selection-hover
  • CSS var renamed: --yc-tooltip-max-width--yc-popover-max-width
  • CSS var removed: --yc-tabs-space-between, use different sizes of Tabs
  • CSS var removed: --yc-tab-item-horizontal-border-width, use different sizes of Tabs
  • CSS var removed: --yc-tab-item-horizontal-height, use different sizes of Tabs

New

Some CSS variables are now available for overwrite. Every -yc-my-* variable can be set to redefine base theme. Here full list of such variables:

  • --yc-my-scrollbar-width
  • --yc-my-border-radius-s
  • --yc-my-border-radius-m
  • --yc-my-border-radius-l
  • --yc-my-border-radius-xl
  • --yc-my-color-brand-normal
  • --yc-my-color-brand-normal-hover
  • --yc-my-color-brand-light
  • --yc-my-color-brand-selection
  • --yc-my-color-brand-selection-hover
  • --yc-my-color-brand-link
  • --yc-my-color-brand-link-hover
  • --yc-my-color-brand-text-contrast

Components

BREAKING

  • DropdownMenu: default switcher size changed from s to m
  • Button: clear view was removed, consider using flat-secondary instead
  • Tooltip: component was renamed to Popover
  • HelpTooltip: component was renamed to HelpPopover

New

  • New Tooltip component
  • Tabs: icon, counter and label can be set on TabsItem

Other

  • Removed react-router-dom dependency

1.10.0 (2022-03-25)

Features

1.9.0 (2022-03-22)

Features

Bug Fixes

1.8.1 (2022-03-18)

Bug Fixes

1.8.0 (2022-03-10)

Features

Bug Fixes

1.7.0 (2022-02-04)

Features

1.6.0 (2022-01-27)

Features

Bug Fixes

  • List: clear timeout for delayed setState (#67) (217e72f)

1.5.0 (2022-01-25)

Features

Bug Fixes

  • List: remove type cast for getItemHeight (#59) (a352b21)
  • remove Yandex proprietary fonts (#52) (5017d43)
  • Table: actions button click triggers row action (#62) (00ba47d)

1.4.2 (2022-01-21)

Bug Fixes

  • allow not to set a fixed height for non-virtualized lists (#54) (df17e41)

1.4.1 (2022-01-20)

Bug Fixes

1.4.0 (2022-01-18)

Features

Bug Fixes

  • ClipboardButton: correctly handle click event (b170ac0), closes #45
  • ClipboardButton: should work properly (#47) (5c00db3)
  • correctly show textarea resize control (#33) (bed5a23)

Performance Improvements

1.3.0 (2021-12-24)

Features

1.2.1 (2021-12-23)

Bug Fixes

  • reexport common types (e1af8ed)
  • reexport event-broker hooks (b76fe70)

1.2.0 (2021-12-23)

Features

Bug Fixes

1.1.4 (2021-12-22)

Bug Fixes

  • compile js files via tsc aswell (efa9914)

1.1.3 (2021-12-16)

Bug Fixes

  • correctly copy js files to build (54a63ba)
  • reexport ThemeValueContext (b972b95)

1.1.2 (2021-12-16)

Bug Fixes

  • reexport List and Table from index (6e5379f)

1.1.1 (2021-12-16)

Bug Fixes

  • reexport RadioGroup from index (f45339a)

1.1.0 (2021-12-16)

Features