@appquality/unguess-design-system 2.12.38 → 2.12.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +26 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v2.12.39 (Wed Nov 30 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Export tabs component [#124](https://github.com/AppQuality/unguess-design-system/pull/124) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
- fix(tabs): export component [#123](https://github.com/AppQuality/unguess-design-system/pull/123) ([@marcbon](https://github.com/marcbon))
|
|
7
|
+
|
|
8
|
+
#### Authors: 1
|
|
9
|
+
|
|
10
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v2.12.38 (Tue Nov 29 2022)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/build/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export * from "./stories/profile-modal";
|
|
|
72
72
|
export * from "./stories/stepper";
|
|
73
73
|
export { Table, Head as TableHead, HeaderRow, HeaderCell, Body as TableBody, Row as TableRow, Cell as TableCell, Caption, } from "./stories/table";
|
|
74
74
|
export { GroupRow, GroupedTable } from "./stories/table/grouped";
|
|
75
|
+
export * from "./stories/tabs";
|
|
75
76
|
export * from "./stories/tags";
|
|
76
77
|
export * from "./stories/tiles";
|
|
77
78
|
export * from "./stories/timeline";
|
package/build/index.js
CHANGED
|
@@ -36,6 +36,7 @@ var formik = require('formik');
|
|
|
36
36
|
var reactPagination = require('@zendeskgarden/react-pagination');
|
|
37
37
|
var reactTables = require('@zendeskgarden/react-tables');
|
|
38
38
|
var reactSpring = require('react-spring');
|
|
39
|
+
var reactTabs = require('@zendeskgarden/react-tabs');
|
|
39
40
|
var reactTooltips = require('@zendeskgarden/react-tooltips');
|
|
40
41
|
|
|
41
42
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -3439,6 +3440,30 @@ var GroupedTable = function (_a) {
|
|
|
3439
3440
|
};
|
|
3440
3441
|
var templateObject_1$5, templateObject_2$2, templateObject_3$1, templateObject_4;
|
|
3441
3442
|
|
|
3443
|
+
/**
|
|
3444
|
+
* Use Tabs to organize related content in a single view. This helps users navigate related content without having to switch contexts.
|
|
3445
|
+
|
|
3446
|
+
* Used for this:
|
|
3447
|
+
- To filter information into easily parsable views
|
|
3448
|
+
- To organize related content and controls within a single page
|
|
3449
|
+
|
|
3450
|
+
* Not for this:
|
|
3451
|
+
- To guide users through a task list, use a Stepper instead
|
|
3452
|
+
- As a secondary navigation bar that spans multiple pages, use Anchors instead
|
|
3453
|
+
*/
|
|
3454
|
+
var TabsComponent = React.forwardRef(function (props, ref) {
|
|
3455
|
+
var _a = React.useState(props.selectedItem), selectedTab = _a[0], setSelectedTab = _a[1];
|
|
3456
|
+
return (jsxRuntime.jsx(reactTabs.Tabs, __assign({ ref: ref }, props, { selectedItem: selectedTab, onChange: function (item) {
|
|
3457
|
+
var _a;
|
|
3458
|
+
setSelectedTab(item);
|
|
3459
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
3460
|
+
} })));
|
|
3461
|
+
});
|
|
3462
|
+
var Tabs = TabsComponent;
|
|
3463
|
+
Tabs.List = reactTabs.TabList;
|
|
3464
|
+
Tabs.Tab = reactTabs.Tab;
|
|
3465
|
+
Tabs.Panel = reactTabs.TabPanel;
|
|
3466
|
+
|
|
3442
3467
|
/**
|
|
3443
3468
|
* Tiles are Radio buttons styled with icons or images.
|
|
3444
3469
|
|
|
@@ -3660,6 +3685,7 @@ exports.TableBody = Body;
|
|
|
3660
3685
|
exports.TableCell = Cell;
|
|
3661
3686
|
exports.TableHead = Head;
|
|
3662
3687
|
exports.TableRow = Row;
|
|
3688
|
+
exports.Tabs = Tabs;
|
|
3663
3689
|
exports.Tag = Tag;
|
|
3664
3690
|
exports.Textarea = Textarea;
|
|
3665
3691
|
exports.Tiles = Tiles;
|