Skip to content

Commit

Permalink
Feat: [OV-45016] Pie Chart Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
vicky-comeau committed Jul 18, 2023
1 parent 255d062 commit 4d6ecdc
Show file tree
Hide file tree
Showing 26 changed files with 1,342 additions and 723 deletions.
7 changes: 7 additions & 0 deletions .changeset/sharp-wasps-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@igloo-ui/area-chart': patch
'@igloo-ui/dropdown': patch
'@igloo-ui/stacked-bar': patch
---

Updated recharts version and fixed dropdown mock
5 changes: 5 additions & 0 deletions .changeset/thirty-pandas-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@igloo-ui/pie-chart': minor
---

Initial release of the pie chart component
1 change: 0 additions & 1 deletion packages/ActionMenu/src/ActionMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import MockDropdown from '@igloo-ui/dropdown/src/__mocks__/Dropdown.mock';
import Button from '@igloo-ui/button';
import { OptionType } from '@igloo-ui/list';
import ActionMenu, { ActionMenuOption, ActionMenuProps } from './ActionMenu';

const actionMenuList: ActionMenuOption[] = [
Expand Down
112 changes: 58 additions & 54 deletions packages/ActionMenu/src/__snapshots__/ActionMenu.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,96 +22,100 @@ exports[`ActionMenu It should render without errors and a snapshot 1`] = `
data-show="true"
style="position: fixed; top: 0px; left: 0px;"
>
<ul
class="ids-list ids-list--compact"
role="listbox"
tabindex="-1"
<div
class="ids-dropdown__scroll-content"
>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
<ul
class="ids-list ids-list--compact"
role="listbox"
tabindex="-1"
>
<div
class="ids-list-item__content"
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
tabindex="-1"
>
<span
class="ids-list-item__text"
<div
class="ids-list-item__content"
>
<span
class="ids-list-item__text-body"
class="ids-list-item__text"
>
<span
class="ids-list-item__text-content"
class="ids-list-item__text-body"
>
<span
class="ids-list-item__text-label"
class="ids-list-item__text-content"
>
Add Item
<span
class="ids-list-item__text-label"
>
Add Item
</span>
</span>
</span>
</span>
</span>
</div>
</li>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--disabled"
role="option"
tabindex="-1"
>
<div
class="ids-list-item__content"
</div>
</li>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--disabled"
role="option"
tabindex="-1"
>
<span
class="ids-list-item__text"
<div
class="ids-list-item__content"
>
<span
class="ids-list-item__text-body"
class="ids-list-item__text"
>
<span
class="ids-list-item__text-content"
class="ids-list-item__text-body"
>
<span
class="ids-list-item__text-label"
class="ids-list-item__text-content"
>
Delete Item
<span
class="ids-list-item__text-label"
>
Delete Item
</span>
</span>
</span>
</span>
</span>
</div>
</li>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
tabindex="-1"
>
<div
class="ids-list-item__content"
</div>
</li>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
tabindex="-1"
>
<span
class="ids-list-item__text"
<div
class="ids-list-item__content"
>
<span
class="ids-list-item__text-body"
class="ids-list-item__text"
>
<span
class="ids-list-item__text-content"
class="ids-list-item__text-body"
>
<span
class="ids-list-item__text-label"
class="ids-list-item__text-content"
>
Copy Item
<span
class="ids-list-item__text-label"
>
Copy Item
</span>
</span>
</span>
</span>
</span>
</div>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
</DocumentFragment>
Expand Down
4 changes: 2 additions & 2 deletions packages/AreaChart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"@igloo-ui/tokens": "^2.0.0",
"classnames": "^2.3.2",
"luxon": "^3.2.1",
"recharts": "^2.4.3"
"recharts": "^2.7.2"
},
"devDependencies": {
"@types/recharts": "^1.8.23"
"@types/recharts": "^1.8.24"
},
"browserslist": [
"> 1%",
Expand Down
80 changes: 42 additions & 38 deletions packages/Combobox/src/__snapshots__/Combobox.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,72 +44,76 @@ exports[`Combobox It should render a snapshot 1`] = `
</div>
</div>
<div
class="ids-dropdown ids-combobox__dropdown ids-dropdown--bottom-start"
class="ids-dropdown ids-combobox__dropdown ids-dropdown--bottom-start ids-dropdown--scrollable"
data-show="true"
style="position: fixed; top: 0px; left: 0px;"
>
<ul
class="ids-list ids-combobox__list ids-list--compact"
role="listbox"
tabindex="-1"
<div
class="ids-dropdown__scroll-content"
>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
<ul
class="ids-list ids-combobox__list ids-list--compact"
role="listbox"
tabindex="-1"
>
<div
class="ids-list-item__content"
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
tabindex="-1"
>
<span
class="ids-list-item__text"
<div
class="ids-list-item__content"
>
<span
class="ids-list-item__text-body"
class="ids-list-item__text"
>
<span
class="ids-list-item__text-content"
class="ids-list-item__text-body"
>
<span
class="ids-list-item__text-label"
class="ids-list-item__text-content"
>
Option 1
<span
class="ids-list-item__text-label"
>
Option 1
</span>
</span>
</span>
</span>
</span>
</div>
</li>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
tabindex="-1"
>
<div
class="ids-list-item__content"
</div>
</li>
<li
aria-selected="false"
class="ids-list-item ids-list-item--compact ids-list-item--selectable"
role="option"
tabindex="-1"
>
<span
class="ids-list-item__text"
<div
class="ids-list-item__content"
>
<span
class="ids-list-item__text-body"
class="ids-list-item__text"
>
<span
class="ids-list-item__text-content"
class="ids-list-item__text-body"
>
<span
class="ids-list-item__text-label"
class="ids-list-item__text-content"
>
Option 2
<span
class="ids-list-item__text-label"
>
Option 2
</span>
</span>
</span>
</span>
</span>
</div>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
</DocumentFragment>
Expand Down
Loading

0 comments on commit 4d6ecdc

Please sign in to comment.