@canonical/react-components 1.9.0 → 1.10.0
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/dist/components/Accordion/Accordion.js +3 -3
- package/dist/components/Accordion/Accordion.stories.js +2 -2
- package/dist/components/Accordion/AccordionSection/AccordionSection.js +1 -1
- package/dist/components/Accordion/AccordionSection/index.js +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/ActionButton/ActionButton.js +3 -3
- package/dist/components/ActionButton/ActionButton.stories.js +1 -1
- package/dist/components/ActionButton/index.js +1 -1
- package/dist/components/ApplicationLayout/AppAside/AppAside.js +2 -2
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +3 -3
- package/dist/components/ApplicationLayout/AppAside/index.js +1 -1
- package/dist/components/ApplicationLayout/AppMain/AppMain.js +2 -2
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +1 -1
- package/dist/components/ApplicationLayout/AppMain/index.js +1 -1
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.js +2 -2
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +3 -3
- package/dist/components/ApplicationLayout/AppNavigation/index.js +1 -1
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +2 -2
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +2 -2
- package/dist/components/ApplicationLayout/AppNavigationBar/index.js +1 -1
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.js +2 -2
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +1 -1
- package/dist/components/ApplicationLayout/AppStatus/index.js +1 -1
- package/dist/components/ApplicationLayout/Application/Application.js +2 -2
- package/dist/components/ApplicationLayout/Application/Application.stories.js +1 -1
- package/dist/components/ApplicationLayout/Application/index.js +1 -1
- package/dist/components/ApplicationLayout/ApplicationLayout.js +2 -2
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +2 -2
- package/dist/components/ApplicationLayout/index.js +1 -1
- package/dist/components/ArticlePagination/ArticlePagination.js +2 -2
- package/dist/components/ArticlePagination/ArticlePagination.stories.js +1 -1
- package/dist/components/ArticlePagination/index.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Badge/Badge.stories.js +2 -2
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +40 -4
- package/dist/components/Button/Button.stories.js +169 -14
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/Card.js +3 -3
- package/dist/components/Card/Card.stories.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CheckboxInput/CheckableInput/CheckableInput.js +3 -3
- package/dist/components/CheckboxInput/CheckableInput/index.js +1 -1
- package/dist/components/CheckboxInput/CheckboxInput.js +2 -2
- package/dist/components/CheckboxInput/CheckboxInput.stories.js +1 -1
- package/dist/components/CheckboxInput/index.js +1 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/Code/Code.js +3 -3
- package/dist/components/Code/index.js +1 -1
- package/dist/components/CodeSnippet/CodeSnippet.js +2 -2
- package/dist/components/CodeSnippet/CodeSnippet.stories.js +2 -2
- package/dist/components/CodeSnippet/CodeSnippetBlock.js +2 -2
- package/dist/components/CodeSnippet/CodeSnippetDropdown.js +2 -2
- package/dist/components/CodeSnippet/index.js +1 -1
- package/dist/components/Col/Col.js +2 -2
- package/dist/components/Col/Col.stories.js +1 -1
- package/dist/components/Col/index.js +1 -1
- package/dist/components/ConfirmationButton/ConfirmationButton.js +2 -2
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +2 -2
- package/dist/components/ConfirmationButton/index.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +2 -2
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +2 -2
- package/dist/components/ConfirmationModal/index.js +1 -1
- package/dist/components/ContextualMenu/ContextualMenu.js +3 -3
- package/dist/components/ContextualMenu/ContextualMenu.stories.js +1 -1
- package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +3 -3
- package/dist/components/ContextualMenu/ContextualMenuDropdown/index.js +1 -1
- package/dist/components/ContextualMenu/index.js +1 -1
- package/dist/components/CustomSelect/CustomSelect.js +3 -3
- package/dist/components/CustomSelect/CustomSelect.stories.js +3 -3
- package/dist/components/CustomSelect/CustomSelectDropdown/CustomSelectDropdown.js +2 -2
- package/dist/components/CustomSelect/CustomSelectDropdown/index.js +1 -1
- package/dist/components/CustomSelect/index.js +1 -1
- package/dist/components/DoughnutChart/DoughnutChart.js +2 -2
- package/dist/components/DoughnutChart/DoughnutChart.stories.js +1 -1
- package/dist/components/DoughnutChart/index.js +1 -1
- package/dist/components/EmptyState/EmptyState.js +2 -2
- package/dist/components/EmptyState/EmptyState.stories.js +2 -2
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/Field/Field.js +2 -2
- package/dist/components/Field/index.js +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.stories.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormikField/FormikField.js +2 -2
- package/dist/components/FormikField/FormikField.stories.js +1 -1
- package/dist/components/FormikField/index.js +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icon/Icon.stories.js +2 -2
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Input/Input.js +3 -3
- package/dist/components/Input/Input.stories.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Label/Label.js +2 -2
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Link/Link.js +2 -2
- package/dist/components/Link/Link.stories.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/List.js +2 -2
- package/dist/components/List/List.stories.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/Loader/Loader.js +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/LoginPageLayout/LoginPageLayout.js +2 -2
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +1 -1
- package/dist/components/LoginPageLayout/index.js +1 -1
- package/dist/components/MainTable/MainTable.js +3 -3
- package/dist/components/MainTable/MainTable.stories.js +2 -2
- package/dist/components/MainTable/index.js +1 -1
- package/dist/components/Modal/Modal.d.ts +5 -1
- package/dist/components/Modal/Modal.js +5 -4
- package/dist/components/Modal/Modal.stories.js +10 -3
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/ModularTable/ModularTable.js +3 -3
- package/dist/components/ModularTable/ModularTable.stories.js +2 -2
- package/dist/components/ModularTable/index.js +1 -1
- package/dist/components/MultiSelect/FadeInDown/FadeInDown.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +3 -3
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/Navigation/Navigation.js +3 -3
- package/dist/components/Navigation/Navigation.stories.js +1 -1
- package/dist/components/Navigation/NavigationLink/NavigationLink.js +2 -2
- package/dist/components/Navigation/NavigationLink/index.js +1 -1
- package/dist/components/Navigation/NavigationMenu/NavigationMenu.js +3 -3
- package/dist/components/Navigation/NavigationMenu/index.js +1 -1
- package/dist/components/Navigation/index.js +1 -1
- package/dist/components/Notification/Notification.js +3 -3
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/NotificationProvider/NotificationProvider.js +2 -2
- package/dist/components/NotificationProvider/messageBuilder.js +1 -1
- package/dist/components/Pagination/Pagination.js +2 -2
- package/dist/components/Pagination/Pagination.stories.js +1 -1
- package/dist/components/Pagination/PaginationButton/PaginationButton.js +1 -1
- package/dist/components/Pagination/PaginationButton/index.js +1 -1
- package/dist/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/dist/components/Pagination/PaginationItem/index.js +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/Panel/Panel.js +2 -2
- package/dist/components/Panel/Panel.stories.js +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/PasswordToggle/PasswordToggle.js +3 -3
- package/dist/components/PasswordToggle/PasswordToggle.stories.js +1 -1
- package/dist/components/PasswordToggle/index.js +1 -1
- package/dist/components/RadioInput/RadioInput.js +2 -2
- package/dist/components/RadioInput/RadioInput.stories.js +1 -1
- package/dist/components/RadioInput/index.js +1 -1
- package/dist/components/Row/Row.js +2 -2
- package/dist/components/Row/Row.stories.js +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +2 -2
- package/dist/components/SearchAndFilter/FilterPanelSection/index.js +1 -1
- package/dist/components/SearchAndFilter/SearchAndFilter.js +3 -3
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +1 -1
- package/dist/components/SearchAndFilter/index.js +1 -1
- package/dist/components/SearchBox/SearchBox.js +3 -3
- package/dist/components/SearchBox/SearchBox.stories.js +1 -1
- package/dist/components/SearchBox/index.js +1 -1
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/Select.stories.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigation.js +2 -2
- package/dist/components/SideNavigation/SideNavigation.stories.js +1 -1
- package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +2 -2
- package/dist/components/SideNavigation/SideNavigationBase/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +2 -2
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +2 -2
- package/dist/components/SideNavigation/SideNavigationItem/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +2 -2
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +1 -1
- package/dist/components/SideNavigation/SideNavigationLink/index.js +1 -1
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.js +2 -2
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +1 -1
- package/dist/components/SideNavigation/SideNavigationText/index.js +1 -1
- package/dist/components/SideNavigation/index.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.stories.js +1 -1
- package/dist/components/SkipLink/index.js +1 -1
- package/dist/components/Slider/Slider.js +3 -3
- package/dist/components/Slider/Slider.stories.js +3 -3
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Spinner/Spinner.stories.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusLabel/StatusLabel.js +2 -2
- package/dist/components/StatusLabel/StatusLabel.stories.js +2 -2
- package/dist/components/StatusLabel/index.js +1 -1
- package/dist/components/Stepper/Step/Step.js +2 -2
- package/dist/components/Stepper/Step/Step.stories.js +2 -2
- package/dist/components/Stepper/Step/index.js +1 -1
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/Stepper.stories.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Strip/Strip.js +2 -2
- package/dist/components/Strip/Strip.stories.js +1 -1
- package/dist/components/Strip/index.js +1 -1
- package/dist/components/SummaryButton/SummaryButton.js +1 -1
- package/dist/components/SummaryButton/SummaryButton.stories.js +1 -1
- package/dist/components/SummaryButton/index.js +1 -1
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/Switch/Switch.stories.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TableCell/TableCell.js +2 -2
- package/dist/components/TableCell/index.js +1 -1
- package/dist/components/TableHeader/TableHeader.js +2 -2
- package/dist/components/TableHeader/index.js +1 -1
- package/dist/components/TablePagination/TablePagination.js +3 -3
- package/dist/components/TablePagination/TablePagination.stories.js +1 -1
- package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.js +2 -2
- package/dist/components/TablePagination/TablePaginationControls/index.js +1 -1
- package/dist/components/TablePagination/index.js +1 -1
- package/dist/components/TableRow/TableRow.js +2 -2
- package/dist/components/TableRow/index.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/Tabs.stories.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Textarea/Textarea.js +3 -3
- package/dist/components/Textarea/Textarea.stories.js +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.stories.js +2 -2
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/enums.js +6 -0
- package/dist/esm/components/Accordion/Accordion.js +3 -3
- package/dist/esm/components/ActionButton/ActionButton.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.js +1 -1
- package/dist/esm/components/ApplicationLayout/AppMain/AppMain.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +1 -1
- package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +3 -3
- package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.js +3 -3
- package/dist/esm/components/ApplicationLayout/Application/Application.js +3 -3
- package/dist/esm/components/ApplicationLayout/ApplicationLayout.js +2 -2
- package/dist/esm/components/ArticlePagination/ArticlePagination.js +3 -3
- package/dist/esm/components/Badge/Badge.js +6 -6
- package/dist/esm/components/Button/Button.js +3 -3
- package/dist/esm/components/Button/Button.stories.d.ts +40 -4
- package/dist/esm/components/Button/Button.stories.js +166 -11
- package/dist/esm/components/Card/Card.js +3 -3
- package/dist/esm/components/Card/Card.stories.js +2 -2
- package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.js +3 -3
- package/dist/esm/components/CheckboxInput/CheckboxInput.js +3 -3
- package/dist/esm/components/Chip/Chip.js +3 -3
- package/dist/esm/components/Code/Code.js +3 -3
- package/dist/esm/components/CodeSnippet/CodeSnippet.js +3 -3
- package/dist/esm/components/CodeSnippet/CodeSnippetBlock.js +1 -1
- package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.js +3 -3
- package/dist/esm/components/Col/Col.js +3 -3
- package/dist/esm/components/ConfirmationButton/ConfirmationButton.js +3 -3
- package/dist/esm/components/ConfirmationModal/ConfirmationModal.js +3 -3
- package/dist/esm/components/ContextualMenu/ContextualMenu.js +3 -3
- package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +5 -5
- package/dist/esm/components/CustomSelect/CustomSelect.js +3 -3
- package/dist/esm/components/CustomSelect/CustomSelect.stories.js +4 -4
- package/dist/esm/components/EmptyState/EmptyState.js +3 -3
- package/dist/esm/components/Field/Field.js +3 -3
- package/dist/esm/components/Form/Form.js +3 -3
- package/dist/esm/components/FormikField/FormikField.js +3 -3
- package/dist/esm/components/Icon/Icon.js +3 -3
- package/dist/esm/components/Input/Input.js +5 -5
- package/dist/esm/components/Label/Label.js +3 -3
- package/dist/esm/components/Link/Link.js +3 -3
- package/dist/esm/components/List/List.js +3 -3
- package/dist/esm/components/MainTable/MainTable.js +3 -3
- package/dist/esm/components/Modal/Modal.d.ts +5 -1
- package/dist/esm/components/Modal/Modal.js +7 -6
- package/dist/esm/components/Modal/Modal.stories.js +8 -1
- package/dist/esm/components/ModularTable/ModularTable.js +5 -5
- package/dist/esm/components/MultiSelect/MultiSelect.js +3 -3
- package/dist/esm/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/esm/components/Navigation/Navigation.js +5 -5
- package/dist/esm/components/Navigation/NavigationLink/NavigationLink.js +5 -5
- package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.js +5 -5
- package/dist/esm/components/Notification/Notification.js +3 -3
- package/dist/esm/components/Pagination/Pagination.js +3 -3
- package/dist/esm/components/Panel/Panel.js +3 -3
- package/dist/esm/components/PasswordToggle/PasswordToggle.js +3 -3
- package/dist/esm/components/RadioInput/RadioInput.js +3 -3
- package/dist/esm/components/Row/Row.js +3 -3
- package/dist/esm/components/SearchAndFilter/SearchAndFilter.js +3 -3
- package/dist/esm/components/SearchBox/SearchBox.js +3 -3
- package/dist/esm/components/Select/Select.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigation.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +1 -1
- package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +3 -3
- package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +3 -3
- package/dist/esm/components/Slider/Slider.js +3 -3
- package/dist/esm/components/Slider/Slider.stories.js +1 -1
- package/dist/esm/components/Spinner/Spinner.js +3 -3
- package/dist/esm/components/StatusLabel/StatusLabel.js +3 -3
- package/dist/esm/components/Stepper/Step/Step.js +3 -3
- package/dist/esm/components/Stepper/Step/Step.stories.js +1 -1
- package/dist/esm/components/Strip/Strip.js +3 -3
- package/dist/esm/components/Switch/Switch.js +3 -3
- package/dist/esm/components/Table/Table.js +3 -3
- package/dist/esm/components/TableCell/TableCell.js +3 -3
- package/dist/esm/components/TableHeader/TableHeader.js +3 -3
- package/dist/esm/components/TablePagination/TablePagination.js +3 -3
- package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +3 -3
- package/dist/esm/components/TableRow/TableRow.js +3 -3
- package/dist/esm/components/Tabs/Tabs.js +3 -3
- package/dist/esm/components/Textarea/Textarea.js +5 -5
- package/dist/esm/enums.js +6 -0
- package/dist/index.js +2 -2
- package/package.json +49 -48
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _TableCell = _interopRequireDefault(require("./TableCell"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
function _extends() {
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
10
10
|
const TableHeader = _ref => {
|
|
11
11
|
let {
|
|
12
12
|
children,
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _TableHeader = _interopRequireDefault(require("./TableHeader"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -9,10 +9,10 @@ require("./TablePagination.scss");
|
|
|
9
9
|
var _TablePaginationControls = _interopRequireDefault(require("./TablePaginationControls"));
|
|
10
10
|
var _utils = require("./utils");
|
|
11
11
|
var _hooks = require("../../hooks");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
15
|
-
function _extends() {
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
16
16
|
/**
|
|
17
17
|
This is an HOC [React](https://reactjs.org/) component for applying pagination to direct children components. This component is un-opinionated about
|
|
18
18
|
the structure of the input data and can be used with any child component that displays a list of data. However, the styling and behaviour of this component were designed
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _TablePagination = _interopRequireDefault(require("./TablePagination"));
|
|
9
9
|
var _MainTable = _interopRequireDefault(require("../MainTable"));
|
|
10
10
|
var _TablePaginationControls = _interopRequireDefault(require("./TablePaginationControls"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
const meta = {
|
|
13
13
|
component: _TablePagination.default,
|
|
14
14
|
tags: ["autodocs"],
|
|
@@ -12,8 +12,8 @@ var _Select = _interopRequireDefault(require("../../Select"));
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _utils = require("../utils");
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
function _extends() {
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
17
|
let Label = exports.Label = /*#__PURE__*/function (Label) {
|
|
18
18
|
Label["NEXT_PAGE"] = "Next page";
|
|
19
19
|
Label["PREVIOUS_PAGE"] = "Previous page";
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _TablePaginationControls = _interopRequireDefault(require("./TablePaginationControls"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _TablePagination = _interopRequireDefault(require("./TablePagination"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
function _extends() {
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
10
10
|
const TableRow = _ref => {
|
|
11
11
|
let {
|
|
12
12
|
children,
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _TableRow = _interopRequireDefault(require("./TableRow"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
function _extends() {
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
11
|
/**
|
|
12
12
|
* This is the [React](https://reactjs.org/) component for Vanilla [Tabs](https://vanillaframework.io/docs/patterns/tabs).
|
|
13
13
|
Tabs organise and allow navigation between groups of content that are related and at the same level
|
|
@@ -7,7 +7,7 @@ exports.default = exports.HorizontallyAligned = exports.Default = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Row = _interopRequireDefault(require("../Row"));
|
|
9
9
|
var _Tabs = _interopRequireDefault(require("./Tabs"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
const meta = {
|
|
12
12
|
component: _Tabs.default,
|
|
13
13
|
tags: ["autodocs"]
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Tabs = _interopRequireDefault(require("./Tabs"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -8,9 +8,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _Field = _interopRequireDefault(require("../Field"));
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
-
function _interopRequireDefault(
|
|
13
|
-
function _extends() {
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
14
|
/**
|
|
15
15
|
* The props for the Textarea component.
|
|
16
16
|
*/
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.DynamicHeight = exports.Default = void 0;
|
|
7
7
|
var _Textarea = _interopRequireDefault(require("./Textarea"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const meta = {
|
|
10
10
|
component: _Textarea.default,
|
|
11
11
|
tags: ["autodocs"],
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Textarea = _interopRequireDefault(require("./Textarea"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -9,8 +9,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactUseportal = _interopRequireDefault(require("react-useportal"));
|
|
10
10
|
var _hooks = require("../../hooks");
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
13
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
const position = exports.position = {
|
|
15
15
|
btmCenter: "btm-center",
|
|
16
16
|
btmLeft: "btm-left",
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
9
9
|
var _Tooltip = _interopRequireWildcard(require("./Tooltip"));
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
const Template = args => {
|
|
14
14
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
15
15
|
style: {
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "position", {
|
|
|
17
17
|
});
|
|
18
18
|
var _Tooltip = _interopRequireWildcard(require("./Tooltip"));
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/dist/enums.js
CHANGED
|
@@ -8,7 +8,13 @@ exports.Theme = void 0;
|
|
|
8
8
|
* The Vanilla theme types.
|
|
9
9
|
*/
|
|
10
10
|
let Theme = exports.Theme = /*#__PURE__*/function (Theme) {
|
|
11
|
+
/**
|
|
12
|
+
* The dark Vanilla theme.
|
|
13
|
+
*/
|
|
11
14
|
Theme["DARK"] = "dark";
|
|
15
|
+
/**
|
|
16
|
+
* The light Vanilla theme.
|
|
17
|
+
*/
|
|
12
18
|
Theme["LIGHT"] = "light";
|
|
13
19
|
return Theme;
|
|
14
20
|
}({});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["key"],
|
|
2
2
|
_excluded2 = ["className", "expanded", "externallyControlled", "onExpandedChange", "sections", "titleElement"];
|
|
3
|
-
function _extends() {
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import React, { useState } from "react";
|
|
8
8
|
import AccordionSection from "./AccordionSection";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["appearance", "children", "className", "disabled", "inline", "loading", "success"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React, { useEffect, useRef, useState } from "react";
|
|
7
7
|
import Icon from "../Icon";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className", "collapsed", "narrow", "forwardRef", "pinned", "wide"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
var AppAside = _ref => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() {
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
3
3
|
import React, { useState } from "react";
|
|
4
4
|
import Application from "../Application";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className", "collapsed", "pinned"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() {
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "className"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["aside", "children", "dark", "logo", "mainClassName", "menuCollapsed", "menuPinned", "navigationBarClassName", "navigationClassName", "navItems", "navLinkComponent", "onCollapseMenu", "onPinMenu", "sideNavigation", "status", "statusClassName", "mainId"];
|
|
2
|
-
function _objectWithoutProperties(
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
import React from "react";
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import { useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["className", "nextURL", "nextLabel", "previousURL", "previousLabel"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["value", "badgeType", "className", "isNegative"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
export var BadgeType = {
|
|
@@ -15,7 +15,7 @@ export var BadgeType = {
|
|
|
15
15
|
|
|
16
16
|
var MAX_VAL = 999;
|
|
17
17
|
var units = ["", "k", "M", "B", "T"];
|
|
18
|
-
var
|
|
18
|
+
var _round = function round(value) {
|
|
19
19
|
var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
20
20
|
if (value < 1000) {
|
|
21
21
|
var truncatedValue = Number(value.toString().slice(0, 3));
|
|
@@ -25,7 +25,7 @@ var round = function round(value) {
|
|
|
25
25
|
return "999T";
|
|
26
26
|
}
|
|
27
27
|
var newValue = value / 1000;
|
|
28
|
-
return
|
|
28
|
+
return _round(newValue, unit + 1);
|
|
29
29
|
};
|
|
30
30
|
var clamp = value => {
|
|
31
31
|
if (value > MAX_VAL) {
|
|
@@ -56,7 +56,7 @@ var Badge = _ref => {
|
|
|
56
56
|
console.error("The value used in the badge should be positive");
|
|
57
57
|
safeValue = 0;
|
|
58
58
|
}
|
|
59
|
-
var formattedValue = badgeType === BadgeType.ROUNDED_LARGE_NUMBER ?
|
|
59
|
+
var formattedValue = badgeType === BadgeType.ROUNDED_LARGE_NUMBER ? _round(safeValue) : clamp(safeValue);
|
|
60
60
|
return /*#__PURE__*/React.createElement("span", _extends({}, spanProps, {
|
|
61
61
|
className: badgeClassName
|
|
62
62
|
}), formattedValue);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["appearance", "children", "className", "dense", "disabled", "element", "hasIcon", "inline", "onClick", "small"];
|
|
2
|
-
function _extends() {
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import React from "react";
|
|
7
7
|
export var ButtonAppearance = {
|
|
@@ -13,11 +13,30 @@ export declare const Link: {
|
|
|
13
13
|
args: {
|
|
14
14
|
children: string;
|
|
15
15
|
appearance: string;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
};
|
|
17
|
+
parameters: {
|
|
18
|
+
docs: {
|
|
19
|
+
description: {
|
|
20
|
+
story: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const LinkDisabled: {
|
|
26
|
+
name: string;
|
|
27
|
+
args: {
|
|
28
|
+
children: string;
|
|
29
|
+
appearance: string;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
};
|
|
32
|
+
parameters: {
|
|
33
|
+
docs: {
|
|
34
|
+
description: {
|
|
35
|
+
story: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
18
38
|
};
|
|
19
39
|
};
|
|
20
|
-
export declare const LinkDisabled: Story<HTMLProps<HTMLAnchorElement>>;
|
|
21
40
|
export declare const Positive: Story;
|
|
22
41
|
export declare const PositiveDisabled: Story;
|
|
23
42
|
export declare const Negative: Story;
|
|
@@ -29,4 +48,21 @@ export declare const Dense: Story;
|
|
|
29
48
|
export declare const Small: Story;
|
|
30
49
|
export declare const Icon: Story;
|
|
31
50
|
export declare const IconText: Story;
|
|
32
|
-
export declare const
|
|
51
|
+
export declare const DisabledWithTooltip: Story;
|
|
52
|
+
export declare const ButtonAsLink: {
|
|
53
|
+
name: string;
|
|
54
|
+
args: {
|
|
55
|
+
children: string;
|
|
56
|
+
appearance: string;
|
|
57
|
+
element: string;
|
|
58
|
+
href: string;
|
|
59
|
+
};
|
|
60
|
+
parameters: {
|
|
61
|
+
docs: {
|
|
62
|
+
description: {
|
|
63
|
+
story: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const ButtonAsLinkDisabled: Story<HTMLProps<HTMLAnchorElement>>;
|