@canonical/react-components 1.9.0 → 1.9.1
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.js +3 -3
- package/dist/components/Modal/Modal.stories.js +2 -2
- 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.js +3 -3
- 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
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.Small = exports.PositiveDisabled = exports.Positive = exports.NegativeDisabled = exports.Negative = exports.LinkDisabled = exports.Link = exports.Inline = exports.
|
|
6
|
+
exports.default = exports.Small = exports.PositiveDisabled = exports.Positive = exports.NegativeDisabled = exports.Negative = exports.LinkDisabled = exports.Link = exports.Inline = exports.IconText = exports.Icon = exports.DisabledWithTooltip = exports.Dense = exports.DefaultDisabled = exports.Default = exports.ButtonAsLinkDisabled = exports.ButtonAsLink = exports.BrandDisabled = exports.Brand = exports.BaseDisabled = exports.Base = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
9
9
|
var _Button = _interopRequireWildcard(require("./Button"));
|
|
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 meta = {
|
|
14
14
|
component: _Button.default,
|
|
15
15
|
tags: ["autodocs"],
|
|
@@ -36,6 +36,13 @@ const Default = exports.Default = {
|
|
|
36
36
|
name: "Default",
|
|
37
37
|
args: {
|
|
38
38
|
children: "Button"
|
|
39
|
+
},
|
|
40
|
+
parameters: {
|
|
41
|
+
docs: {
|
|
42
|
+
description: {
|
|
43
|
+
story: "Button with default appearance"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
48
|
const DefaultDisabled = exports.DefaultDisabled = {
|
|
@@ -43,6 +50,13 @@ const DefaultDisabled = exports.DefaultDisabled = {
|
|
|
43
50
|
args: {
|
|
44
51
|
children: "Button",
|
|
45
52
|
disabled: true
|
|
53
|
+
},
|
|
54
|
+
parameters: {
|
|
55
|
+
docs: {
|
|
56
|
+
description: {
|
|
57
|
+
story: "Disabled button with default appearance"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
46
60
|
}
|
|
47
61
|
};
|
|
48
62
|
const Base = exports.Base = {
|
|
@@ -50,6 +64,13 @@ const Base = exports.Base = {
|
|
|
50
64
|
args: {
|
|
51
65
|
children: "Base button",
|
|
52
66
|
appearance: "base"
|
|
67
|
+
},
|
|
68
|
+
parameters: {
|
|
69
|
+
docs: {
|
|
70
|
+
description: {
|
|
71
|
+
story: "Button with base appearance"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
53
74
|
}
|
|
54
75
|
};
|
|
55
76
|
const BaseDisabled = exports.BaseDisabled = {
|
|
@@ -58,25 +79,42 @@ const BaseDisabled = exports.BaseDisabled = {
|
|
|
58
79
|
children: "Base button disabled",
|
|
59
80
|
appearance: "base",
|
|
60
81
|
disabled: true
|
|
82
|
+
},
|
|
83
|
+
parameters: {
|
|
84
|
+
docs: {
|
|
85
|
+
description: {
|
|
86
|
+
story: "Disabled button with base appearance"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
61
89
|
}
|
|
62
90
|
};
|
|
63
91
|
const Link = exports.Link = {
|
|
64
92
|
name: "Link",
|
|
65
93
|
args: {
|
|
66
94
|
children: "Link button",
|
|
67
|
-
appearance: "
|
|
68
|
-
|
|
69
|
-
|
|
95
|
+
appearance: "link"
|
|
96
|
+
},
|
|
97
|
+
parameters: {
|
|
98
|
+
docs: {
|
|
99
|
+
description: {
|
|
100
|
+
story: "Button with link appearance"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
70
103
|
}
|
|
71
104
|
};
|
|
72
105
|
const LinkDisabled = exports.LinkDisabled = {
|
|
73
106
|
name: "Link disabled",
|
|
74
107
|
args: {
|
|
75
108
|
children: "Link button disabled",
|
|
76
|
-
appearance: "
|
|
77
|
-
element: "a",
|
|
78
|
-
href: "#test",
|
|
109
|
+
appearance: "link",
|
|
79
110
|
disabled: true
|
|
111
|
+
},
|
|
112
|
+
parameters: {
|
|
113
|
+
docs: {
|
|
114
|
+
description: {
|
|
115
|
+
story: "Disabled button with link appearance"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
80
118
|
}
|
|
81
119
|
};
|
|
82
120
|
const Positive = exports.Positive = {
|
|
@@ -84,6 +122,13 @@ const Positive = exports.Positive = {
|
|
|
84
122
|
args: {
|
|
85
123
|
children: "Positive button",
|
|
86
124
|
appearance: "positive"
|
|
125
|
+
},
|
|
126
|
+
parameters: {
|
|
127
|
+
docs: {
|
|
128
|
+
description: {
|
|
129
|
+
story: "Button with positive appearance"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
87
132
|
}
|
|
88
133
|
};
|
|
89
134
|
const PositiveDisabled = exports.PositiveDisabled = {
|
|
@@ -92,6 +137,13 @@ const PositiveDisabled = exports.PositiveDisabled = {
|
|
|
92
137
|
children: "Positive button disabled",
|
|
93
138
|
appearance: "positive",
|
|
94
139
|
disabled: true
|
|
140
|
+
},
|
|
141
|
+
parameters: {
|
|
142
|
+
docs: {
|
|
143
|
+
description: {
|
|
144
|
+
story: "Disabled button with positive appearance"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
95
147
|
}
|
|
96
148
|
};
|
|
97
149
|
const Negative = exports.Negative = {
|
|
@@ -99,6 +151,13 @@ const Negative = exports.Negative = {
|
|
|
99
151
|
args: {
|
|
100
152
|
children: "Negative button",
|
|
101
153
|
appearance: "negative"
|
|
154
|
+
},
|
|
155
|
+
parameters: {
|
|
156
|
+
docs: {
|
|
157
|
+
description: {
|
|
158
|
+
story: "Button with negative appearance"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
102
161
|
}
|
|
103
162
|
};
|
|
104
163
|
const NegativeDisabled = exports.NegativeDisabled = {
|
|
@@ -107,6 +166,13 @@ const NegativeDisabled = exports.NegativeDisabled = {
|
|
|
107
166
|
children: "Negative button disabled",
|
|
108
167
|
appearance: "negative",
|
|
109
168
|
disabled: true
|
|
169
|
+
},
|
|
170
|
+
parameters: {
|
|
171
|
+
docs: {
|
|
172
|
+
description: {
|
|
173
|
+
story: "Disabled button with negative appearance"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
110
176
|
}
|
|
111
177
|
};
|
|
112
178
|
const Brand = exports.Brand = {
|
|
@@ -114,6 +180,13 @@ const Brand = exports.Brand = {
|
|
|
114
180
|
args: {
|
|
115
181
|
children: "Brand button",
|
|
116
182
|
appearance: "brand"
|
|
183
|
+
},
|
|
184
|
+
parameters: {
|
|
185
|
+
docs: {
|
|
186
|
+
description: {
|
|
187
|
+
story: "Button with brand appearance"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
117
190
|
}
|
|
118
191
|
};
|
|
119
192
|
const BrandDisabled = exports.BrandDisabled = {
|
|
@@ -122,6 +195,13 @@ const BrandDisabled = exports.BrandDisabled = {
|
|
|
122
195
|
children: "Brand button disabled",
|
|
123
196
|
appearance: "brand",
|
|
124
197
|
disabled: true
|
|
198
|
+
},
|
|
199
|
+
parameters: {
|
|
200
|
+
docs: {
|
|
201
|
+
description: {
|
|
202
|
+
story: "Disabled button with brand appearance"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
125
205
|
}
|
|
126
206
|
};
|
|
127
207
|
const Inline = exports.Inline = {
|
|
@@ -129,13 +209,27 @@ const Inline = exports.Inline = {
|
|
|
129
209
|
appearance: "neutral",
|
|
130
210
|
inline: true
|
|
131
211
|
}, "Inline button")),
|
|
132
|
-
name: "Inline"
|
|
212
|
+
name: "Inline",
|
|
213
|
+
parameters: {
|
|
214
|
+
docs: {
|
|
215
|
+
description: {
|
|
216
|
+
story: "Button that displays on the same line as the sibling elements"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
133
220
|
};
|
|
134
221
|
const Dense = exports.Dense = {
|
|
135
222
|
render: () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, "Everything you need to get started with Vanilla."), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
136
223
|
dense: true
|
|
137
224
|
}, "Dense button")),
|
|
138
|
-
name: "Dense"
|
|
225
|
+
name: "Dense",
|
|
226
|
+
parameters: {
|
|
227
|
+
docs: {
|
|
228
|
+
description: {
|
|
229
|
+
story: "Button with reduced vertical padding"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
139
233
|
};
|
|
140
234
|
const Small = exports.Small = {
|
|
141
235
|
render: () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
@@ -144,7 +238,14 @@ const Small = exports.Small = {
|
|
|
144
238
|
small: true,
|
|
145
239
|
dense: true
|
|
146
240
|
}, "Small dense button")),
|
|
147
|
-
name: "Small"
|
|
241
|
+
name: "Small",
|
|
242
|
+
parameters: {
|
|
243
|
+
docs: {
|
|
244
|
+
description: {
|
|
245
|
+
story: "Button that can fit small text inside"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
148
249
|
};
|
|
149
250
|
const Icon = exports.Icon = {
|
|
150
251
|
name: "Icon",
|
|
@@ -153,6 +254,13 @@ const Icon = exports.Icon = {
|
|
|
153
254
|
className: "p-icon--plus"
|
|
154
255
|
}),
|
|
155
256
|
hasIcon: true
|
|
257
|
+
},
|
|
258
|
+
parameters: {
|
|
259
|
+
docs: {
|
|
260
|
+
description: {
|
|
261
|
+
story: "Button with an icon inside"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
156
264
|
}
|
|
157
265
|
};
|
|
158
266
|
const IconText = exports.IconText = {
|
|
@@ -162,9 +270,16 @@ const IconText = exports.IconText = {
|
|
|
162
270
|
className: "p-icon--plus"
|
|
163
271
|
}), " ", /*#__PURE__*/_react.default.createElement("span", null, "Button with icon & text")),
|
|
164
272
|
hasIcon: true
|
|
273
|
+
},
|
|
274
|
+
parameters: {
|
|
275
|
+
docs: {
|
|
276
|
+
description: {
|
|
277
|
+
story: "Button with both an icon and text inside"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
165
280
|
}
|
|
166
281
|
};
|
|
167
|
-
const
|
|
282
|
+
const DisabledWithTooltip = exports.DisabledWithTooltip = {
|
|
168
283
|
name: "Disabled with tooltip",
|
|
169
284
|
args: {
|
|
170
285
|
children: "Disabled button with a tooltip",
|
|
@@ -176,5 +291,45 @@ const IconWithTooltip = exports.IconWithTooltip = {
|
|
|
176
291
|
}
|
|
177
292
|
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
178
293
|
message: "This button is disabled"
|
|
179
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.default, args)))
|
|
294
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, args))),
|
|
295
|
+
parameters: {
|
|
296
|
+
docs: {
|
|
297
|
+
description: {
|
|
298
|
+
story: "Disabled button that displays a tooltip when hovered"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
const ButtonAsLink = exports.ButtonAsLink = {
|
|
304
|
+
name: "Button as link",
|
|
305
|
+
args: {
|
|
306
|
+
children: "Button as link",
|
|
307
|
+
appearance: "base",
|
|
308
|
+
element: "a",
|
|
309
|
+
href: "#test"
|
|
310
|
+
},
|
|
311
|
+
parameters: {
|
|
312
|
+
docs: {
|
|
313
|
+
description: {
|
|
314
|
+
story: "Button that is rendered as an `a` element"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
const ButtonAsLinkDisabled = exports.ButtonAsLinkDisabled = {
|
|
320
|
+
name: "Button as link disabled",
|
|
321
|
+
args: {
|
|
322
|
+
children: "Button as link disabled",
|
|
323
|
+
appearance: "base",
|
|
324
|
+
element: "a",
|
|
325
|
+
href: "#test",
|
|
326
|
+
disabled: true
|
|
327
|
+
},
|
|
328
|
+
parameters: {
|
|
329
|
+
docs: {
|
|
330
|
+
description: {
|
|
331
|
+
story: "Disabled button that is rendered as an `a` element"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
180
335
|
};
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "default", {
|
|
|
17
17
|
});
|
|
18
18
|
var _Button = _interopRequireWildcard(require("./Button"));
|
|
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; }
|
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
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); }
|
|
10
|
-
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 &&
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() {
|
|
10
|
+
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; }
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
13
|
/**
|
|
14
14
|
* This is a [React](https://reactjs.org/) component for the Vanilla [Card](https://docs.vanillaframework.io/patterns/card/).
|
|
15
15
|
*
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _ = _interopRequireDefault(require("./"));
|
|
9
9
|
var _Col = _interopRequireDefault(require("../Col"));
|
|
10
10
|
var _Row = _interopRequireDefault(require("../Row"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
const meta = {
|
|
13
13
|
component: _.default,
|
|
14
14
|
tags: ["autodocs"]
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Card = _interopRequireDefault(require("./Card"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
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); }
|
|
10
|
-
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 &&
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() {
|
|
10
|
+
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; }
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
13
|
const CheckableInput = _ref => {
|
|
14
14
|
let {
|
|
15
15
|
inputType,
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _CheckableInput = _interopRequireDefault(require("./CheckableInput"));
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _CheckableInput = _interopRequireDefault(require("./CheckableInput"));
|
|
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 a [React](https://reactjs.org/) component for the Vanilla [Checkbox input](https://docs.vanillaframework.io/base/forms#checkbox).
|
|
13
13
|
*
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Required = exports.Inline = exports.Indeterminate = exports.Disabled = exports.Default = exports.Children = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _CheckboxInput = _interopRequireDefault(require("./CheckboxInput"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
const meta = {
|
|
11
11
|
component: _CheckboxInput.default,
|
|
12
12
|
tags: ["autodocs"],
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _CheckboxInput = _interopRequireDefault(require("./CheckboxInput"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -7,8 +7,8 @@ exports.default = exports.Label = exports.ChipType = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _utils = require("../../utils");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _extends() {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
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); }
|
|
12
12
|
let Label = exports.Label = /*#__PURE__*/function (Label) {
|
|
13
13
|
Label["Dismiss"] = "Dismiss";
|
|
14
14
|
return Label;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.LeadValue = exports.Dismissible = exports.Default = exports.Appearance = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Chip = _interopRequireDefault(require("./Chip"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
const meta = {
|
|
11
11
|
component: _Chip.default,
|
|
12
12
|
tags: ["autodocs"]
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Chip = _interopRequireDefault(require("./Chip"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -9,9 +9,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _CodeSnippet = _interopRequireWildcard(require("../CodeSnippet"));
|
|
10
10
|
var _utils = require("../../utils");
|
|
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(
|
|
14
|
-
function _extends() {
|
|
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
|
+
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); }
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated Code component is deprecated. Use CodeSnippet component or inline `<code>` instead.
|
|
17
17
|
*/
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _Code = _interopRequireDefault(require("./Code"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -7,8 +7,8 @@ exports.default = CodeSnippet;
|
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _CodeSnippetBlock = _interopRequireDefault(require("./CodeSnippetBlock"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _extends() {
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
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); }
|
|
12
12
|
/**
|
|
13
13
|
* This is a [React](https://reactjs.org/) component for the Vanilla [Code snippet](https://docs.vanillaframework.io/base/code#code-snippet).
|
|
14
14
|
*
|
|
@@ -8,9 +8,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _CodeSnippet = _interopRequireDefault(require("./CodeSnippet"));
|
|
9
9
|
var _CodeSnippetBlock = require("./CodeSnippetBlock");
|
|
10
10
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
|
-
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 _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; }
|
|
14
14
|
const meta = {
|
|
15
15
|
component: _CodeSnippet.default,
|
|
16
16
|
tags: ["autodocs"],
|
|
@@ -8,8 +8,8 @@ exports.default = CodeSnippetBlock;
|
|
|
8
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _CodeSnippetDropdown = _interopRequireDefault(require("./CodeSnippetDropdown"));
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() {
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
13
|
const CodeSnippetBlockAppearance = exports.CodeSnippetBlockAppearance = {
|
|
14
14
|
LINUX_PROMPT: "linuxPrompt",
|
|
15
15
|
NUMBERED: "numbered",
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = CodeSnippetDropdown;
|
|
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
|
function CodeSnippetDropdown(_ref) {
|
|
11
11
|
let {
|
|
12
12
|
options,
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "default", {
|
|
|
17
17
|
});
|
|
18
18
|
var _CodeSnippet = _interopRequireDefault(require("./CodeSnippet"));
|
|
19
19
|
var _CodeSnippetBlock = require("./CodeSnippetBlock");
|
|
20
|
-
function _interopRequireDefault(
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.colSizes = 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
|
const colSizes = exports.colSizes = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
12
12
|
/**
|
|
13
13
|
* This is a [React](https://reactjs.org/) component for use within the Vanilla [Grid](https://docs.vanillaframework.io/patterns/grid/).
|
|
@@ -7,7 +7,7 @@ exports.default = exports.NestedColumns = exports.Grid = exports.EmptyColumns =
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Col = _interopRequireDefault(require("./Col"));
|
|
9
9
|
var _Row = _interopRequireDefault(require("../Row"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
const Template = args => {
|
|
12
12
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
13
13
|
className: "grid-demo"
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "default", {
|
|
|
17
17
|
});
|
|
18
18
|
var _Col = _interopRequireWildcard(require("./Col"));
|
|
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; }
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _ActionButton = _interopRequireDefault(require("../ActionButton"));
|
|
9
9
|
var _ConfirmationModal = _interopRequireDefault(require("../ConfirmationModal"));
|
|
10
10
|
var _reactUseportal = _interopRequireDefault(require("react-useportal"));
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() {
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
13
|
const generateTitle = title => {
|
|
14
14
|
if (typeof title === "string") {
|
|
15
15
|
return title;
|
|
@@ -7,9 +7,9 @@ exports.default = exports.IconOnly = exports.IconAndLabel = exports.Default = ex
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _ConfirmationButton = _interopRequireDefault(require("./ConfirmationButton"));
|
|
9
9
|
var _Icon = _interopRequireWildcard(require("../Icon"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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 &&
|
|
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
13
|
const doNothing = () => {};
|
|
14
14
|
const meta = {
|
|
15
15
|
component: _ConfirmationButton.default,
|
|
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
var _ConfirmationButton = _interopRequireDefault(require("./ConfirmationButton"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
9
9
|
var _Modal = _interopRequireDefault(require("../Modal"));
|
|
10
10
|
var _ActionButton = _interopRequireDefault(require("../ActionButton"));
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function _extends() {
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
13
|
/**
|
|
14
14
|
* `ConfirmationModal` is a specialised version of the [Modal](?path=/docs/modal--default-story) component to prompt a confirmation from the user before executing an action.
|
|
15
15
|
*/
|