@canonical/react-components 0.59.0 → 0.60.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.d.ts +5 -0
- package/dist/components/Accordion/Accordion.js +6 -0
- package/dist/components/Accordion/Accordion.stories.d.ts +18 -0
- package/dist/components/Accordion/Accordion.stories.js +117 -0
- package/dist/components/ActionButton/ActionButton.d.ts +7 -0
- package/dist/components/ActionButton/ActionButton.js +7 -0
- package/dist/components/ActionButton/ActionButton.stories.d.ts +7 -0
- package/dist/components/ActionButton/ActionButton.stories.js +36 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.d.ts +3 -3
- package/dist/components/ApplicationLayout/ApplicationLayout.js +4 -4
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.d.ts +5 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +16 -2
- package/dist/components/ArticlePagination/ArticlePagination.d.ts +5 -0
- package/dist/components/ArticlePagination/ArticlePagination.js +5 -0
- package/dist/components/ArticlePagination/ArticlePagination.stories.d.ts +6 -0
- package/dist/components/ArticlePagination/ArticlePagination.stories.js +22 -0
- package/dist/components/Badge/Badge.d.ts +5 -0
- package/dist/components/Badge/Badge.js +6 -0
- package/dist/components/Badge/Badge.stories.d.ts +15 -0
- package/dist/components/Badge/Badge.stories.js +62 -0
- package/dist/components/Button/Button.d.ts +3 -1
- package/dist/components/Button/Button.js +3 -1
- package/dist/components/Button/Button.stories.d.ts +32 -0
- package/dist/components/Button/Button.stories.js +180 -0
- package/dist/components/Card/Card.stories.js +0 -1
- package/dist/components/CheckboxInput/CheckboxInput.d.ts +5 -0
- package/dist/components/CheckboxInput/CheckboxInput.js +5 -0
- package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +11 -0
- package/dist/components/CheckboxInput/CheckboxInput.stories.js +84 -0
- package/dist/components/Chip/Chip.d.ts +5 -0
- package/dist/components/Chip/Chip.js +5 -0
- package/dist/components/Chip/Chip.stories.d.ts +9 -0
- package/dist/components/Chip/Chip.stories.js +45 -0
- package/dist/components/CodeSnippet/CodeSnippet.d.ts +7 -0
- package/dist/components/CodeSnippet/CodeSnippet.js +7 -0
- package/dist/components/CodeSnippet/CodeSnippet.stories.d.ts +45 -0
- package/dist/components/CodeSnippet/CodeSnippet.stories.js +279 -0
- package/dist/components/Col/Col.d.ts +5 -0
- package/dist/components/Col/Col.js +5 -0
- package/dist/components/Col/Col.stories.d.ts +11 -0
- package/dist/components/Col/Col.stories.js +154 -0
- package/dist/components/ConfirmationButton/ConfirmationButton.d.ts +3 -0
- package/dist/components/ConfirmationButton/ConfirmationButton.js +13 -1
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.d.ts +9 -0
- package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +108 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +16 -4
- package/dist/components/ConfirmationModal/ConfirmationModal.js +8 -3
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +135 -0
- package/dist/components/ContextualMenu/ContextualMenu.d.ts +3 -20
- package/dist/components/ContextualMenu/ContextualMenu.js +3 -20
- package/dist/components/ContextualMenu/ContextualMenu.stories.d.ts +13 -0
- package/dist/components/ContextualMenu/ContextualMenu.stories.js +107 -0
- package/dist/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/components/EmptyState/EmptyState.js +3 -0
- package/dist/components/EmptyState/EmptyState.stories.d.ts +7 -0
- package/dist/components/EmptyState/EmptyState.stories.js +49 -0
- package/dist/components/Form/Form.d.ts +5 -0
- package/dist/components/Form/Form.js +5 -0
- package/dist/components/Form/Form.stories.d.ts +12 -0
- package/dist/components/Form/Form.stories.js +179 -0
- package/dist/components/FormikField/FormikField.stories.js +0 -1
- package/dist/components/Icon/Icon.d.ts +3 -1
- package/dist/components/Icon/Icon.js +3 -1
- package/dist/components/Icon/Icon.stories.d.ts +16 -0
- package/dist/components/Icon/Icon.stories.js +49 -0
- package/dist/components/Input/Input.d.ts +5 -0
- package/dist/components/Input/Input.js +5 -0
- package/dist/components/Input/Input.stories.d.ts +14 -0
- package/dist/components/Input/Input.stories.js +148 -0
- package/dist/components/Link/Link.d.ts +5 -0
- package/dist/components/Link/Link.js +5 -0
- package/dist/components/Link/Link.stories.d.ts +9 -0
- package/dist/components/Link/Link.stories.js +48 -0
- package/dist/components/List/List.d.ts +5 -0
- package/dist/components/List/List.js +6 -0
- package/dist/components/List/List.stories.d.ts +15 -0
- package/dist/components/List/List.stories.js +122 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.d.ts +4 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.js +4 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.d.ts +9 -0
- package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +58 -0
- package/dist/components/MainTable/MainTable.d.ts +3 -0
- package/dist/components/MainTable/MainTable.js +4 -0
- package/dist/components/MainTable/MainTable.stories.d.ts +15 -0
- package/dist/components/MainTable/MainTable.stories.js +553 -0
- package/dist/components/Modal/Modal.d.ts +5 -0
- package/dist/components/Modal/Modal.js +5 -0
- package/dist/components/Modal/Modal.stories.d.ts +6 -0
- package/dist/components/Modal/Modal.stories.js +57 -0
- package/dist/components/ModularTable/ModularTable.d.ts +52 -0
- package/dist/components/ModularTable/ModularTable.js +53 -0
- package/dist/components/ModularTable/ModularTable.stories.d.ts +27 -0
- package/dist/components/ModularTable/ModularTable.stories.js +343 -0
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +5 -64
- package/dist/components/MultiSelect/MultiSelect.stories.js +0 -1
- package/dist/components/Navigation/Navigation.d.ts +8 -0
- package/dist/components/Navigation/Navigation.js +9 -0
- package/dist/components/Navigation/Navigation.stories.d.ts +43 -0
- package/dist/components/Navigation/Navigation.stories.js +232 -0
- package/dist/components/Notification/Notification.d.ts +25 -0
- package/dist/components/Notification/Notification.js +25 -0
- package/dist/components/Notification/Notification.stories.d.ts +45 -0
- package/dist/components/Notification/Notification.stories.js +201 -0
- package/dist/components/Pagination/Pagination.d.ts +12 -0
- package/dist/components/Pagination/Pagination.js +12 -0
- package/dist/components/Pagination/Pagination.stories.d.ts +14 -0
- package/dist/components/Pagination/Pagination.stories.js +94 -0
- package/dist/components/PasswordToggle/PasswordToggle.d.ts +5 -0
- package/dist/components/PasswordToggle/PasswordToggle.js +5 -0
- package/dist/components/PasswordToggle/PasswordToggle.stories.d.ts +12 -0
- package/dist/components/PasswordToggle/PasswordToggle.stories.js +74 -0
- package/dist/components/RadioInput/RadioInput.d.ts +5 -0
- package/dist/components/RadioInput/RadioInput.js +5 -0
- package/dist/components/RadioInput/RadioInput.stories.d.ts +10 -0
- package/dist/components/RadioInput/RadioInput.stories.js +83 -0
- package/dist/components/Row/Row.d.ts +5 -0
- package/dist/components/Row/Row.js +5 -0
- package/dist/components/Row/Row.stories.d.ts +9 -0
- package/dist/components/Row/Row.stories.js +29 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.d.ts +3 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.js +3 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.d.ts +8 -0
- package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +218 -0
- package/dist/components/SearchBox/SearchBox.d.ts +5 -0
- package/dist/components/SearchBox/SearchBox.js +5 -0
- package/dist/components/SearchBox/SearchBox.stories.d.ts +14 -0
- package/dist/components/SearchBox/SearchBox.stories.js +106 -0
- package/dist/components/Select/Select.d.ts +5 -0
- package/dist/components/Select/Select.js +6 -0
- package/dist/components/Select/Select.stories.d.ts +7 -0
- package/dist/components/Select/Select.stories.js +97 -0
- package/dist/components/Slider/Slider.d.ts +6 -0
- package/dist/components/Slider/Slider.js +6 -0
- package/dist/components/Slider/Slider.stories.d.ts +10 -0
- package/dist/components/Slider/Slider.stories.js +74 -0
- package/dist/components/Spinner/Spinner.d.ts +3 -0
- package/dist/components/Spinner/Spinner.js +3 -0
- package/dist/components/Spinner/Spinner.stories.d.ts +8 -0
- package/dist/components/Spinner/Spinner.stories.js +28 -0
- package/dist/components/StatusLabel/StatusLabel.d.ts +3 -1
- package/dist/components/StatusLabel/StatusLabel.js +3 -1
- package/dist/components/StatusLabel/StatusLabel.stories.d.ts +10 -0
- package/dist/components/StatusLabel/StatusLabel.stories.js +61 -0
- package/dist/components/Strip/Strip.d.ts +5 -0
- package/dist/components/Strip/Strip.js +5 -0
- package/dist/components/Strip/Strip.stories.d.ts +12 -0
- package/dist/components/Strip/Strip.stories.js +130 -0
- package/dist/components/SummaryButton/SummaryButton.d.ts +3 -0
- package/dist/components/SummaryButton/SummaryButton.js +3 -0
- package/dist/components/SummaryButton/SummaryButton.stories.d.ts +18 -0
- package/dist/components/SummaryButton/SummaryButton.stories.js +59 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.js +3 -0
- package/dist/components/Switch/Switch.stories.d.ts +7 -0
- package/dist/components/Switch/Switch.stories.js +26 -0
- package/dist/components/TablePagination/TablePagination.d.ts +21 -0
- package/dist/components/TablePagination/TablePagination.js +21 -0
- package/dist/components/TablePagination/TablePagination.stories.d.ts +10 -0
- package/dist/components/TablePagination/TablePagination.stories.js +302 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -0
- package/dist/components/Tabs/Tabs.js +5 -0
- package/dist/components/Tabs/Tabs.stories.d.ts +11 -0
- package/dist/components/Tabs/Tabs.stories.js +56 -0
- package/dist/components/Textarea/Textarea.d.ts +5 -0
- package/dist/components/Textarea/Textarea.js +5 -0
- package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/Textarea/Textarea.stories.js +62 -0
- package/dist/components/Tooltip/Tooltip.d.ts +7 -11
- package/dist/components/Tooltip/Tooltip.js +7 -11
- package/dist/components/Tooltip/Tooltip.stories.d.ts +12 -0
- package/dist/components/Tooltip/Tooltip.stories.js +71 -0
- package/package.json +14 -14
|
@@ -37,5 +37,10 @@ export type Props = PropsWithSpread<{
|
|
|
37
37
|
*/
|
|
38
38
|
titleElement?: AccordionHeadings;
|
|
39
39
|
}, HTMLProps<HTMLElement>>;
|
|
40
|
+
/**
|
|
41
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Accordion](https://docs.vanillaframework.io/patterns/accordion/).
|
|
42
|
+
*
|
|
43
|
+
* The sidebar accordion, used in listing pages or as navigation, can hold multiple navigation items or to be used as a filter for content.
|
|
44
|
+
*/
|
|
40
45
|
declare const Accordion: ({ className, expanded, externallyControlled, onExpandedChange, sections, titleElement, ...asideProps }: Props) => JSX.Element;
|
|
41
46
|
export default Accordion;
|
|
@@ -24,6 +24,12 @@ const generateSections = (sections, setExpanded, expanded, titleElement) => sect
|
|
|
24
24
|
titleElement: titleElement
|
|
25
25
|
}, props));
|
|
26
26
|
});
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Accordion](https://docs.vanillaframework.io/patterns/accordion/).
|
|
30
|
+
*
|
|
31
|
+
* The sidebar accordion, used in listing pages or as navigation, can hold multiple navigation items or to be used as a filter for content.
|
|
32
|
+
*/
|
|
27
33
|
const Accordion = _ref2 => {
|
|
28
34
|
let {
|
|
29
35
|
className,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Accordion from "./Accordion";
|
|
3
|
+
declare const meta: Meta<typeof Accordion>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Accordion>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
/**
|
|
8
|
+
* The expanded accordion section can be controlled by external state.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ExternalState: Story;
|
|
11
|
+
/**
|
|
12
|
+
* `titleElement` prop can be used to define heading element for section titles.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Headings: Story;
|
|
15
|
+
/**
|
|
16
|
+
* The `title` prop can be a `ReactNode`, allowing a higher degree of customisation of the section titles.
|
|
17
|
+
*/
|
|
18
|
+
export declare const CustomHeadings: Story;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Headings = exports.ExternalState = exports.Default = exports.CustomHeadings = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
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 && 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
|
+
const meta = {
|
|
13
|
+
component: _Accordion.default,
|
|
14
|
+
tags: ["autodocs"],
|
|
15
|
+
argTypes: {
|
|
16
|
+
sections: {
|
|
17
|
+
control: {
|
|
18
|
+
disable: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
externallyControlled: {
|
|
22
|
+
control: {
|
|
23
|
+
disable: true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = meta;
|
|
29
|
+
const Default = exports.Default = {
|
|
30
|
+
name: "Default",
|
|
31
|
+
args: {
|
|
32
|
+
sections: [{
|
|
33
|
+
title: "Advanced topics",
|
|
34
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Charm bundles"), /*#__PURE__*/_react.default.createElement("p", null, "Machine authentication"), /*#__PURE__*/_react.default.createElement("p", null, "Migrating models"), /*#__PURE__*/_react.default.createElement("p", null, "Using storage"), /*#__PURE__*/_react.default.createElement("p", null, "Working with actions"), /*#__PURE__*/_react.default.createElement("p", null, "Working with resources"), /*#__PURE__*/_react.default.createElement("p", null, "Cloud image metadata"), /*#__PURE__*/_react.default.createElement("p", null, "Tools"))
|
|
35
|
+
}, {
|
|
36
|
+
title: "Networking",
|
|
37
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Working offline"), /*#__PURE__*/_react.default.createElement("p", null, "Fan container networking"), /*#__PURE__*/_react.default.createElement("p", null, "Network spaces"))
|
|
38
|
+
}, {
|
|
39
|
+
title: "Miscellaneous",
|
|
40
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Juju GUI"), /*#__PURE__*/_react.default.createElement("p", null, "CentOS support"), /*#__PURE__*/_react.default.createElement("p", null, "Collecting Juju metrics"))
|
|
41
|
+
}]
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The expanded accordion section can be controlled by external state.
|
|
47
|
+
*/
|
|
48
|
+
const ExternalState = exports.ExternalState = {
|
|
49
|
+
render: () => {
|
|
50
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
51
|
+
const [expandedSection, setExpandedSection] = (0, _react.useState)();
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_Accordion.default, {
|
|
53
|
+
expanded: expandedSection,
|
|
54
|
+
externallyControlled: true,
|
|
55
|
+
onExpandedChange: setExpandedSection,
|
|
56
|
+
sections: [{
|
|
57
|
+
title: "Advanced topics",
|
|
58
|
+
key: "advanced-topics",
|
|
59
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Charm bundles"), /*#__PURE__*/_react.default.createElement("p", null, "Machine authentication"), /*#__PURE__*/_react.default.createElement("p", null, "Migrating models"), /*#__PURE__*/_react.default.createElement("p", null, "Using storage"), /*#__PURE__*/_react.default.createElement("p", null, "Working with actions"), /*#__PURE__*/_react.default.createElement("p", null, "Working with resources"), /*#__PURE__*/_react.default.createElement("p", null, "Cloud image metadata"), /*#__PURE__*/_react.default.createElement("p", null, "Tools"))
|
|
60
|
+
}, {
|
|
61
|
+
title: "Networking",
|
|
62
|
+
key: "networking",
|
|
63
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Working offline"), /*#__PURE__*/_react.default.createElement("p", null, "Fan container networking"), /*#__PURE__*/_react.default.createElement("p", null, "Network spaces"))
|
|
64
|
+
}, {
|
|
65
|
+
title: "Miscellaneous",
|
|
66
|
+
key: "miscellaneous",
|
|
67
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Juju GUI"), /*#__PURE__*/_react.default.createElement("p", null, "CentOS support"), /*#__PURE__*/_react.default.createElement("p", null, "Collecting Juju metrics"))
|
|
68
|
+
}]
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
name: "External state"
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* `titleElement` prop can be used to define heading element for section titles.
|
|
76
|
+
*/
|
|
77
|
+
const Headings = exports.Headings = {
|
|
78
|
+
name: "Headings",
|
|
79
|
+
args: {
|
|
80
|
+
sections: [{
|
|
81
|
+
title: "Advanced topics",
|
|
82
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Charm bundles"), /*#__PURE__*/_react.default.createElement("p", null, "Machine authentication"), /*#__PURE__*/_react.default.createElement("p", null, "Migrating models"), /*#__PURE__*/_react.default.createElement("p", null, "Using storage"), /*#__PURE__*/_react.default.createElement("p", null, "Working with actions"), /*#__PURE__*/_react.default.createElement("p", null, "Working with resources"), /*#__PURE__*/_react.default.createElement("p", null, "Cloud image metadata"), /*#__PURE__*/_react.default.createElement("p", null, "Tools"))
|
|
83
|
+
}, {
|
|
84
|
+
title: "Networking",
|
|
85
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Working offline"), /*#__PURE__*/_react.default.createElement("p", null, "Fan container networking"), /*#__PURE__*/_react.default.createElement("p", null, "Network spaces"))
|
|
86
|
+
}, {
|
|
87
|
+
title: "Miscellaneous",
|
|
88
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Juju GUI"), /*#__PURE__*/_react.default.createElement("p", null, "CentOS support"), /*#__PURE__*/_react.default.createElement("p", null, "Collecting Juju metrics"))
|
|
89
|
+
}],
|
|
90
|
+
titleElement: "h3"
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The `title` prop can be a `ReactNode`, allowing a higher degree of customisation of the section titles.
|
|
96
|
+
*/
|
|
97
|
+
const CustomHeadings = exports.CustomHeadings = {
|
|
98
|
+
args: {
|
|
99
|
+
sections: [{
|
|
100
|
+
title: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "Advanced topics", " ", /*#__PURE__*/_react.default.createElement("span", {
|
|
101
|
+
className: "u-text--muted p-text--small"
|
|
102
|
+
}, "optional")),
|
|
103
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Charm bundles"), /*#__PURE__*/_react.default.createElement("p", null, "Machine authentication"), /*#__PURE__*/_react.default.createElement("p", null, "Migrating models"), /*#__PURE__*/_react.default.createElement("p", null, "Using storage"), /*#__PURE__*/_react.default.createElement("p", null, "Working with actions"), /*#__PURE__*/_react.default.createElement("p", null, "Working with resources"), /*#__PURE__*/_react.default.createElement("p", null, "Cloud image metadata"), /*#__PURE__*/_react.default.createElement("p", null, "Tools"))
|
|
104
|
+
}, {
|
|
105
|
+
title: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "Networking", " ", /*#__PURE__*/_react.default.createElement("span", {
|
|
106
|
+
className: "u-text--muted p-text--small"
|
|
107
|
+
}, "optional")),
|
|
108
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Working offline"), /*#__PURE__*/_react.default.createElement("p", null, "Fan container networking"), /*#__PURE__*/_react.default.createElement("p", null, "Network spaces"))
|
|
109
|
+
}, {
|
|
110
|
+
title: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "Miscellaneous", " ", /*#__PURE__*/_react.default.createElement("span", {
|
|
111
|
+
className: "u-text--muted p-text--small"
|
|
112
|
+
}, "optional")),
|
|
113
|
+
content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", null, "Juju GUI"), /*#__PURE__*/_react.default.createElement("p", null, "CentOS support"), /*#__PURE__*/_react.default.createElement("p", null, "Collecting Juju metrics"))
|
|
114
|
+
}],
|
|
115
|
+
titleElement: "h3"
|
|
116
|
+
}
|
|
117
|
+
};
|
|
@@ -37,5 +37,12 @@ export type Props = PropsWithSpread<{
|
|
|
37
37
|
*/
|
|
38
38
|
success?: boolean;
|
|
39
39
|
}, ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
40
|
+
/**
|
|
41
|
+
* This is a not an existing Vanilla component. It can be used to display submitting states for forms or other actions.
|
|
42
|
+
*
|
|
43
|
+
* ActionButton accepts the props from
|
|
44
|
+
* [Button](?path=/docs/components-button--docs) in addition to those in the
|
|
45
|
+
* props table:
|
|
46
|
+
*/
|
|
40
47
|
declare const ActionButton: ({ appearance, children, className, disabled, inline, loading, success, ...buttonProps }: Props) => JSX.Element;
|
|
41
48
|
export default ActionButton;
|
|
@@ -18,6 +18,13 @@ let Label = exports.Label = /*#__PURE__*/function (Label) {
|
|
|
18
18
|
Label["SUCCESS"] = "Action completed";
|
|
19
19
|
return Label;
|
|
20
20
|
}({});
|
|
21
|
+
/**
|
|
22
|
+
* This is a not an existing Vanilla component. It can be used to display submitting states for forms or other actions.
|
|
23
|
+
*
|
|
24
|
+
* ActionButton accepts the props from
|
|
25
|
+
* [Button](?path=/docs/components-button--docs) in addition to those in the
|
|
26
|
+
* props table:
|
|
27
|
+
*/
|
|
21
28
|
const ActionButton = _ref => {
|
|
22
29
|
let {
|
|
23
30
|
appearance,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ActionButton from "./ActionButton";
|
|
3
|
+
declare const meta: Meta<typeof ActionButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ActionButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Loading: Story;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Loading = exports.Default = void 0;
|
|
7
|
+
var _ActionButton = _interopRequireDefault(require("./ActionButton"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
const meta = {
|
|
10
|
+
component: _ActionButton.default,
|
|
11
|
+
tags: ["autodocs"],
|
|
12
|
+
argTypes: {
|
|
13
|
+
children: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "text"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var _default = exports.default = meta;
|
|
21
|
+
const Default = exports.Default = {
|
|
22
|
+
name: "Default",
|
|
23
|
+
args: {
|
|
24
|
+
appearance: "positive",
|
|
25
|
+
children: "Click me!"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const Loading = exports.Loading = {
|
|
29
|
+
name: "Loading",
|
|
30
|
+
args: {
|
|
31
|
+
appearance: "positive",
|
|
32
|
+
loading: true,
|
|
33
|
+
disabled: true,
|
|
34
|
+
children: "Click me!"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -26,7 +26,7 @@ export type BaseProps<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefau
|
|
|
26
26
|
/**
|
|
27
27
|
* The logo to appear in the navigation panels.
|
|
28
28
|
*/
|
|
29
|
-
logo
|
|
29
|
+
logo?: PanelProps<PL>["logo"];
|
|
30
30
|
/**
|
|
31
31
|
* The component to use to render links inside the navigation e.g. when
|
|
32
32
|
* using react-router you'd pass `Link` to this prop.
|
|
@@ -70,9 +70,9 @@ export type BaseProps<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefau
|
|
|
70
70
|
statusClassName?: string;
|
|
71
71
|
}, HTMLProps<HTMLDivElement>>;
|
|
72
72
|
export type Props<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement> = BaseProps<NI, PL> & ExclusiveProps<{
|
|
73
|
-
navItems
|
|
73
|
+
navItems?: SideNavigationProps<NI>["items"];
|
|
74
74
|
}, {
|
|
75
|
-
sideNavigation
|
|
75
|
+
sideNavigation?: ReactNode;
|
|
76
76
|
}>;
|
|
77
77
|
/**
|
|
78
78
|
* This is a [React](https://reactjs.org/) component for the Vanilla
|
|
@@ -55,7 +55,7 @@ const ApplicationLayout = _ref => {
|
|
|
55
55
|
const setMenuPinned = onPinMenu !== null && onPinMenu !== void 0 ? onPinMenu : setInternalMenuPinned;
|
|
56
56
|
const menuIsCollapsed = menuCollapsed !== null && menuCollapsed !== void 0 ? menuCollapsed : internalMenuCollapsed;
|
|
57
57
|
const setMenuCollapsed = onCollapseMenu !== null && onCollapseMenu !== void 0 ? onCollapseMenu : setInternalMenuCollapsed;
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_Application.default, props, /*#__PURE__*/_react.default.createElement(_AppNavigationBar.default, {
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement(_Application.default, props, (navItems || sideNavigation) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_AppNavigationBar.default, {
|
|
59
59
|
className: navigationBarClassName
|
|
60
60
|
}, /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
61
61
|
dark: dark,
|
|
@@ -109,10 +109,10 @@ const ApplicationLayout = _ref => {
|
|
|
109
109
|
dark: dark,
|
|
110
110
|
items: navItems,
|
|
111
111
|
linkComponent: navLinkComponent
|
|
112
|
-
}) : sideNavigation)), /*#__PURE__*/_react.default.createElement(_AppMain.default, {
|
|
112
|
+
}) : sideNavigation))), /*#__PURE__*/_react.default.createElement(_AppMain.default, {
|
|
113
113
|
className: mainClassName
|
|
114
|
-
}, children), aside, status
|
|
114
|
+
}, children), aside, status && /*#__PURE__*/_react.default.createElement(_AppStatus.default, {
|
|
115
115
|
className: statusClassName
|
|
116
|
-
}, status)
|
|
116
|
+
}, status));
|
|
117
117
|
};
|
|
118
118
|
var _default = exports.default = ApplicationLayout;
|
|
@@ -17,3 +17,8 @@ export declare const ExternalStates: Story;
|
|
|
17
17
|
* [`SideNavigation`](/docs/components-sidenavigation--docs) docs.
|
|
18
18
|
*/
|
|
19
19
|
export declare const Navigation: Story;
|
|
20
|
+
/**
|
|
21
|
+
* App navigation can also be completely opted out of, for some
|
|
22
|
+
* particular scenarios (e.g. login page, error pages).
|
|
23
|
+
*/
|
|
24
|
+
export declare const NoNavigation: Story;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.Navigation = exports.ExternalStates = exports.Default = void 0;
|
|
6
|
+
exports.default = exports.NoNavigation = exports.Navigation = exports.ExternalStates = exports.Default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _Form = _interopRequireDefault(require("../Form"));
|
|
9
9
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
@@ -52,9 +52,9 @@ const Default = exports.Default = {
|
|
|
52
52
|
}]
|
|
53
53
|
}],
|
|
54
54
|
aside: showAside ? /*#__PURE__*/_react.default.createElement(_AppAside.default, {
|
|
55
|
-
title: "Aside panel",
|
|
56
55
|
pinned: asidePinned
|
|
57
56
|
}, /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
57
|
+
title: "Aside panel",
|
|
58
58
|
controls: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
59
59
|
onClick: () => setAsidePinned(!asidePinned),
|
|
60
60
|
dense: true,
|
|
@@ -215,4 +215,18 @@ const Navigation = exports.Navigation = {
|
|
|
215
215
|
size: 12
|
|
216
216
|
}, "Content"))));
|
|
217
217
|
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* App navigation can also be completely opted out of, for some
|
|
222
|
+
* particular scenarios (e.g. login page, error pages).
|
|
223
|
+
*/
|
|
224
|
+
const NoNavigation = exports.NoNavigation = {
|
|
225
|
+
render: () => {
|
|
226
|
+
return /*#__PURE__*/_react.default.createElement(_ApplicationLayout.default, null, /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
227
|
+
title: "Application Layout with no navigation"
|
|
228
|
+
}, /*#__PURE__*/_react.default.createElement(_Row.default, null, /*#__PURE__*/_react.default.createElement(_Col.default, {
|
|
229
|
+
size: 12
|
|
230
|
+
}, "Content"))));
|
|
231
|
+
}
|
|
218
232
|
};
|
|
@@ -22,5 +22,10 @@ export type Props = PropsWithSpread<{
|
|
|
22
22
|
*/
|
|
23
23
|
previousLabel?: string;
|
|
24
24
|
}, HTMLProps<HTMLElement>>;
|
|
25
|
+
/**
|
|
26
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Article pagination](https://docs.vanillaframework.io/patterns/article-pagination/).
|
|
27
|
+
*
|
|
28
|
+
* The article pagination component should be used to navigate from one article to the next, or previous, in chronological order.
|
|
29
|
+
*/
|
|
25
30
|
declare const ArticlePagination: ({ className, nextURL, nextLabel, previousURL, previousLabel, ...props }: Props) => JSX.Element;
|
|
26
31
|
export default ArticlePagination;
|
|
@@ -8,6 +8,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
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
|
+
/**
|
|
12
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Article pagination](https://docs.vanillaframework.io/patterns/article-pagination/).
|
|
13
|
+
*
|
|
14
|
+
* The article pagination component should be used to navigate from one article to the next, or previous, in chronological order.
|
|
15
|
+
*/
|
|
11
16
|
const ArticlePagination = _ref => {
|
|
12
17
|
let {
|
|
13
18
|
className,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ArticlePagination from "./ArticlePagination";
|
|
3
|
+
declare const meta: Meta<typeof ArticlePagination>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ArticlePagination>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
var _ArticlePagination = _interopRequireDefault(require("./ArticlePagination"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
const meta = {
|
|
10
|
+
component: _ArticlePagination.default,
|
|
11
|
+
tags: ["autodocs"]
|
|
12
|
+
};
|
|
13
|
+
var _default = exports.default = meta;
|
|
14
|
+
const Default = exports.Default = {
|
|
15
|
+
name: "Default",
|
|
16
|
+
args: {
|
|
17
|
+
nextLabel: "Consectetur adipisicing elit",
|
|
18
|
+
nextURL: "#next",
|
|
19
|
+
previousLabel: "Lorem ipsum dolor sit amet",
|
|
20
|
+
previousURL: "#previous"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -25,5 +25,10 @@ export type Props = PropsWithSpread<{
|
|
|
25
25
|
*/
|
|
26
26
|
className?: ClassName;
|
|
27
27
|
}, HTMLProps<HTMLSpanElement>>;
|
|
28
|
+
/**
|
|
29
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Badge](https://vanillaframework.io/docs/patterns/badge).
|
|
30
|
+
*
|
|
31
|
+
* It can be used to display a numeric values.
|
|
32
|
+
*/
|
|
28
33
|
declare const Badge: ({ value, badgeType, className, isNegative, ...spanProps }: Props) => JSX.Element;
|
|
29
34
|
export default Badge;
|
|
@@ -37,6 +37,12 @@ const clamp = value => {
|
|
|
37
37
|
}
|
|
38
38
|
return value;
|
|
39
39
|
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Badge](https://vanillaframework.io/docs/patterns/badge).
|
|
43
|
+
*
|
|
44
|
+
* It can be used to display a numeric values.
|
|
45
|
+
*/
|
|
40
46
|
const Badge = _ref => {
|
|
41
47
|
let {
|
|
42
48
|
value,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Badge from "./Badge";
|
|
3
|
+
declare const meta: Meta<typeof Badge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Badge>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ColourCoding: Story;
|
|
8
|
+
/**
|
|
9
|
+
* When the amount of items is only relevant for small values, this variant should be used. When the value grows further than 999, the badge should show "999+".
|
|
10
|
+
*/
|
|
11
|
+
export declare const UndefinedLargeNumber: Story;
|
|
12
|
+
/**
|
|
13
|
+
* When the value of the badge represents a type of information where differences between large amounts of items are relevant, it should include a decimal unit prefix and round the value.
|
|
14
|
+
*/
|
|
15
|
+
export declare const RoundedLargeNumber: Story;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.UndefinedLargeNumber = exports.RoundedLargeNumber = exports.Default = exports.ColourCoding = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Badge = _interopRequireWildcard(require("./Badge"));
|
|
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 && 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
|
+
const meta = {
|
|
13
|
+
component: _Badge.default,
|
|
14
|
+
tags: ["autodocs"],
|
|
15
|
+
argTypes: {
|
|
16
|
+
badgeType: {
|
|
17
|
+
control: {
|
|
18
|
+
options: _Badge.BadgeType,
|
|
19
|
+
type: "select"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
args: {
|
|
24
|
+
badgeType: _Badge.BadgeType.UNDEFINED_LARGE_NUMBER
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var _default = exports.default = meta;
|
|
28
|
+
const Default = exports.Default = {
|
|
29
|
+
name: "Default",
|
|
30
|
+
args: {
|
|
31
|
+
value: 9
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const ColourCoding = exports.ColourCoding = {
|
|
35
|
+
render: () => /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
36
|
+
value: 9,
|
|
37
|
+
isNegative: true
|
|
38
|
+
}),
|
|
39
|
+
name: "Colour Coding"
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* When the amount of items is only relevant for small values, this variant should be used. When the value grows further than 999, the badge should show "999+".
|
|
44
|
+
*/
|
|
45
|
+
const UndefinedLargeNumber = exports.UndefinedLargeNumber = {
|
|
46
|
+
render: () => /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
47
|
+
value: 1000,
|
|
48
|
+
badgeType: _Badge.BadgeType.UNDEFINED_LARGE_NUMBER
|
|
49
|
+
}),
|
|
50
|
+
name: "Undefined Large Number"
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* When the value of the badge represents a type of information where differences between large amounts of items are relevant, it should include a decimal unit prefix and round the value.
|
|
55
|
+
*/
|
|
56
|
+
const RoundedLargeNumber = exports.RoundedLargeNumber = {
|
|
57
|
+
render: () => /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
58
|
+
value: 1234,
|
|
59
|
+
badgeType: _Badge.BadgeType.ROUNDED_LARGE_NUMBER
|
|
60
|
+
}),
|
|
61
|
+
name: "Rounded Large Number"
|
|
62
|
+
};
|
|
@@ -55,7 +55,9 @@ export type Props<P = null> = {
|
|
|
55
55
|
small?: boolean;
|
|
56
56
|
} & (Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> | P);
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Button](https://docs.vanillaframework.io/patterns/buttons/).
|
|
59
|
+
*
|
|
60
|
+
* Buttons are clickable elements used to perform an action, they can be used for buttons and link elements.
|
|
59
61
|
* @template P - The type of the props if providing a component to `element`
|
|
60
62
|
*/
|
|
61
63
|
declare const Button: <P>({ appearance, children, className, dense, disabled, element: Component, hasIcon, inline, onClick, small, ...buttonProps }: Props<P>) => JSX.Element;
|
|
@@ -23,7 +23,9 @@ const ButtonAppearance = exports.ButtonAppearance = {
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Button](https://docs.vanillaframework.io/patterns/buttons/).
|
|
27
|
+
*
|
|
28
|
+
* Buttons are clickable elements used to perform an action, they can be used for buttons and link elements.
|
|
27
29
|
* @template P - The type of the props if providing a component to `element`
|
|
28
30
|
*/
|
|
29
31
|
const Button = _ref => {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLProps } from "react";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import Button from "./Button";
|
|
4
|
+
declare const meta: Meta<typeof Button>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story<P = null> = StoryObj<typeof Button<P>>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const DefaultDisabled: Story;
|
|
9
|
+
export declare const Base: Story;
|
|
10
|
+
export declare const BaseDisabled: Story;
|
|
11
|
+
export declare const Link: {
|
|
12
|
+
name: string;
|
|
13
|
+
args: {
|
|
14
|
+
children: string;
|
|
15
|
+
appearance: string;
|
|
16
|
+
element: string;
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const LinkDisabled: Story<HTMLProps<HTMLAnchorElement>>;
|
|
21
|
+
export declare const Positive: Story;
|
|
22
|
+
export declare const PositiveDisabled: Story;
|
|
23
|
+
export declare const Negative: Story;
|
|
24
|
+
export declare const NegativeDisabled: Story;
|
|
25
|
+
export declare const Brand: Story;
|
|
26
|
+
export declare const BrandDisabled: Story;
|
|
27
|
+
export declare const Inline: Story;
|
|
28
|
+
export declare const Dense: Story;
|
|
29
|
+
export declare const Small: Story;
|
|
30
|
+
export declare const Icon: Story;
|
|
31
|
+
export declare const IconText: Story;
|
|
32
|
+
export declare const IconWithTooltip: Story;
|