@canonical/react-components 1.3.3 → 1.5.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/ApplicationLayout/ApplicationLayout.d.ts +5 -1
- package/dist/components/ApplicationLayout/ApplicationLayout.js +6 -1
- package/dist/components/SkipLink/SkipLink.d.ts +12 -0
- package/dist/components/SkipLink/SkipLink.js +26 -0
- package/dist/components/SkipLink/index.d.ts +2 -0
- package/dist/components/SkipLink/index.js +13 -0
- package/dist/components/Stepper/Step/Step.d.ts +47 -0
- package/dist/components/Stepper/Step/Step.js +65 -0
- package/dist/components/Stepper/Step/Step.scss +113 -0
- package/dist/components/Stepper/Step/index.d.ts +2 -0
- package/dist/components/Stepper/Step/index.js +13 -0
- package/dist/components/Stepper/Stepper.d.ts +17 -0
- package/dist/components/Stepper/Stepper.js +34 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Stepper/index.js +20 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +23 -0
- package/package.json +1 -1
|
@@ -68,6 +68,10 @@ export type BaseProps<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefau
|
|
|
68
68
|
* Classes to apply to the status area.
|
|
69
69
|
*/
|
|
70
70
|
statusClassName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Id to apply to the main area. Used for the "Skip to main content" link.
|
|
73
|
+
*/
|
|
74
|
+
mainId?: string;
|
|
71
75
|
}, HTMLProps<HTMLDivElement>>;
|
|
72
76
|
export type Props<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement> = BaseProps<NI, PL> & ExclusiveProps<{
|
|
73
77
|
navItems?: SideNavigationProps<NI>["items"];
|
|
@@ -85,5 +89,5 @@ export type Props<NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultEl
|
|
|
85
89
|
* specific structure and states to function correctly so there will be a
|
|
86
90
|
* trade-off when using the sub-components directly.
|
|
87
91
|
*/
|
|
88
|
-
declare const ApplicationLayout: <NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement>({ aside, children, dark, logo, mainClassName, menuCollapsed, menuPinned, navigationBarClassName, navigationClassName, navItems, navLinkComponent, onCollapseMenu, onPinMenu, sideNavigation, status, statusClassName, ...props }: Props<NI, PL>) => React.JSX.Element;
|
|
92
|
+
declare const ApplicationLayout: <NI = SideNavigationLinkDefaultElement, PL = PanelLogoDefaultElement>({ aside, children, dark, logo, mainClassName, menuCollapsed, menuPinned, navigationBarClassName, navigationClassName, navItems, navLinkComponent, onCollapseMenu, onPinMenu, sideNavigation, status, statusClassName, mainId, ...props }: Props<NI, PL>) => React.JSX.Element;
|
|
89
93
|
export default ApplicationLayout;
|
|
@@ -15,6 +15,7 @@ var _AppStatus = _interopRequireDefault(require("./AppStatus"));
|
|
|
15
15
|
var _Application = _interopRequireDefault(require("./Application"));
|
|
16
16
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
17
17
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
18
|
+
var _SkipLink = _interopRequireDefault(require("../SkipLink"));
|
|
18
19
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
20
|
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
21
|
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 && {}.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; }
|
|
@@ -47,6 +48,7 @@ const ApplicationLayout = _ref => {
|
|
|
47
48
|
sideNavigation,
|
|
48
49
|
status,
|
|
49
50
|
statusClassName,
|
|
51
|
+
mainId = "main-content",
|
|
50
52
|
...props
|
|
51
53
|
} = _ref;
|
|
52
54
|
const [internalMenuPinned, setInternalMenuPinned] = (0, _react.useState)(false);
|
|
@@ -55,7 +57,9 @@ const ApplicationLayout = _ref => {
|
|
|
55
57
|
const setMenuPinned = onPinMenu !== null && onPinMenu !== void 0 ? onPinMenu : setInternalMenuPinned;
|
|
56
58
|
const menuIsCollapsed = menuCollapsed !== null && menuCollapsed !== void 0 ? menuCollapsed : internalMenuCollapsed;
|
|
57
59
|
const setMenuCollapsed = onCollapseMenu !== null && onCollapseMenu !== void 0 ? onCollapseMenu : setInternalMenuCollapsed;
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_Application.default, props,
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_Application.default, props, /*#__PURE__*/_react.default.createElement(_SkipLink.default, {
|
|
61
|
+
mainId: mainId
|
|
62
|
+
}), (navItems || sideNavigation) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_AppNavigationBar.default, {
|
|
59
63
|
className: navigationBarClassName
|
|
60
64
|
}, /*#__PURE__*/_react.default.createElement(_Panel.default, {
|
|
61
65
|
dark: dark,
|
|
@@ -110,6 +114,7 @@ const ApplicationLayout = _ref => {
|
|
|
110
114
|
items: navItems,
|
|
111
115
|
linkComponent: navLinkComponent
|
|
112
116
|
}) : sideNavigation))), /*#__PURE__*/_react.default.createElement(_AppMain.default, {
|
|
117
|
+
id: mainId,
|
|
113
118
|
className: mainClassName
|
|
114
119
|
}, children), aside, status && /*#__PURE__*/_react.default.createElement(_AppStatus.default, {
|
|
115
120
|
className: statusClassName
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLProps } from "react";
|
|
2
|
+
export type Props = {
|
|
3
|
+
/**
|
|
4
|
+
* Id of the main content area to skip to.
|
|
5
|
+
*/
|
|
6
|
+
mainId?: string;
|
|
7
|
+
} & HTMLProps<HTMLAnchorElement>;
|
|
8
|
+
/**
|
|
9
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Skip link](https://vanillaframework.io/docs/patterns/links#skip-link) component.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SkipLink: ({ mainId }: Props) => JSX.Element;
|
|
12
|
+
export default SkipLink;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.SkipLink = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
/**
|
|
11
|
+
* This is a [React](https://reactjs.org/) component for the Vanilla [Skip link](https://vanillaframework.io/docs/patterns/links#skip-link) component.
|
|
12
|
+
*/
|
|
13
|
+
const SkipLink = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
mainId = "main-content"
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement("a", {
|
|
18
|
+
className: "p-link--skip",
|
|
19
|
+
href: "#".concat(mainId)
|
|
20
|
+
}, "Skip to main content");
|
|
21
|
+
};
|
|
22
|
+
exports.SkipLink = SkipLink;
|
|
23
|
+
SkipLink.propTypes = {
|
|
24
|
+
mainId: _propTypes.default.string
|
|
25
|
+
};
|
|
26
|
+
var _default = exports.default = SkipLink;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SkipLink.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SkipLink = _interopRequireDefault(require("./SkipLink"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LinkProps } from "../../Link";
|
|
2
|
+
import { ClassName } from "../../../types";
|
|
3
|
+
import "./Step.scss";
|
|
4
|
+
export type Props = {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the step has a darkened progress line.
|
|
7
|
+
*/
|
|
8
|
+
hasProgressLine: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Index of the step.
|
|
11
|
+
*/
|
|
12
|
+
index: number;
|
|
13
|
+
/**
|
|
14
|
+
* Title of the step.
|
|
15
|
+
*/
|
|
16
|
+
title: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional label for the step.
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional props to configure the `Link` component.
|
|
23
|
+
*/
|
|
24
|
+
linkProps?: LinkProps;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the step is clickable. If set to false, the step is not clickable and the text is muted with a light-dark colour.
|
|
27
|
+
*/
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Optional value to highlight the selected step.
|
|
31
|
+
*/
|
|
32
|
+
selected?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Icon to display in the step. Specify "number" if the index should be displayed.
|
|
35
|
+
*/
|
|
36
|
+
iconName: string;
|
|
37
|
+
/**
|
|
38
|
+
* Optional class(es) to pass to the Icon component.
|
|
39
|
+
*/
|
|
40
|
+
iconClassName?: ClassName;
|
|
41
|
+
/**
|
|
42
|
+
* Function that is called when the step is clicked.
|
|
43
|
+
*/
|
|
44
|
+
handleClick: () => void;
|
|
45
|
+
};
|
|
46
|
+
declare const Step: ({ hasProgressLine, index, title, label, linkProps, enabled, selected, iconName, iconClassName, handleClick, ...props }: Props) => JSX.Element;
|
|
47
|
+
export default Step;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
11
|
+
var _Link = _interopRequireDefault(require("../../Link"));
|
|
12
|
+
require("./Step.scss");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
+
const Step = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
hasProgressLine,
|
|
18
|
+
index,
|
|
19
|
+
title,
|
|
20
|
+
label,
|
|
21
|
+
linkProps,
|
|
22
|
+
enabled,
|
|
23
|
+
selected = false,
|
|
24
|
+
iconName,
|
|
25
|
+
iconClassName,
|
|
26
|
+
handleClick,
|
|
27
|
+
...props
|
|
28
|
+
} = _ref;
|
|
29
|
+
const stepStatusClass = enabled ? "step-enabled" : "step-disabled";
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
31
|
+
className: (0, _classnames.default)("step", {
|
|
32
|
+
"progress-line": hasProgressLine,
|
|
33
|
+
"step-selected": selected
|
|
34
|
+
})
|
|
35
|
+
}, props), iconName === "number" ? /*#__PURE__*/_react.default.createElement("span", {
|
|
36
|
+
className: (0, _classnames.default)("step-number", {
|
|
37
|
+
"step-number-disabled": !enabled
|
|
38
|
+
})
|
|
39
|
+
}, index) : /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
40
|
+
name: iconName,
|
|
41
|
+
className: (0, _classnames.default)("step-status-icon", iconClassName)
|
|
42
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: "step-content"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
45
|
+
className: (0, _classnames.default)(stepStatusClass),
|
|
46
|
+
onClick: handleClick
|
|
47
|
+
}, title), label && /*#__PURE__*/_react.default.createElement("span", {
|
|
48
|
+
className: (0, _classnames.default)("step-optional-content", "u-no-margin--bottom", {
|
|
49
|
+
"step-disabled": !enabled
|
|
50
|
+
})
|
|
51
|
+
}, label), linkProps && /*#__PURE__*/_react.default.createElement(_Link.default, _extends({
|
|
52
|
+
className: "p-text--small u-no-margin--bottom step-optional-content"
|
|
53
|
+
}, linkProps), linkProps.children)));
|
|
54
|
+
};
|
|
55
|
+
Step.propTypes = {
|
|
56
|
+
hasProgressLine: _propTypes.default.bool.isRequired,
|
|
57
|
+
index: _propTypes.default.number.isRequired,
|
|
58
|
+
title: _propTypes.default.string.isRequired,
|
|
59
|
+
label: _propTypes.default.string,
|
|
60
|
+
enabled: _propTypes.default.bool.isRequired,
|
|
61
|
+
selected: _propTypes.default.bool,
|
|
62
|
+
iconName: _propTypes.default.string.isRequired,
|
|
63
|
+
handleClick: _propTypes.default.func.isRequired
|
|
64
|
+
};
|
|
65
|
+
var _default = exports.default = Step;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@import "vanilla-framework";
|
|
2
|
+
|
|
3
|
+
.step-number {
|
|
4
|
+
border: 0.08rem solid black;
|
|
5
|
+
border-radius: 1rem;
|
|
6
|
+
height: 1.4rem;
|
|
7
|
+
line-height: 1.3;
|
|
8
|
+
margin-left: $sph--small;
|
|
9
|
+
margin-right: 0.1rem;
|
|
10
|
+
margin-top: 0.1rem;
|
|
11
|
+
text-align: center;
|
|
12
|
+
width: 1.4rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.step-number-disabled {
|
|
16
|
+
border: 0.08rem solid #757575;
|
|
17
|
+
color: #757575;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.step-content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: 1;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
margin-left: $sph--small;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.step-enabled:hover {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
text-decoration: underline;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.step-disabled {
|
|
33
|
+
color: #757575;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.step-status-icon {
|
|
38
|
+
height: 1.6rem;
|
|
39
|
+
margin-left: 0.4rem;
|
|
40
|
+
width: 1.6rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.step-selected {
|
|
44
|
+
background-color: var(--vf-color-background-alt);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.step-optional-content {
|
|
48
|
+
font-size: 12px;
|
|
49
|
+
max-width: 10rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.stepper-horizontal {
|
|
53
|
+
display: flex;
|
|
54
|
+
|
|
55
|
+
.p-inline-list__item {
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.step {
|
|
60
|
+
border-top: 0.2rem solid var(--vf-color-border-default);
|
|
61
|
+
display: flex;
|
|
62
|
+
height: 100%;
|
|
63
|
+
padding: 0.4rem $spv--medium;
|
|
64
|
+
width: fit-content;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.step-status-icon {
|
|
68
|
+
margin-left: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.step-number {
|
|
72
|
+
margin-left: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.step-content {
|
|
76
|
+
max-width: 10rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.progress-line {
|
|
80
|
+
border-top: 0.2rem solid black;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:first-child .step {
|
|
84
|
+
padding-left: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.stepper-vertical {
|
|
89
|
+
.p-list__item {
|
|
90
|
+
padding-bottom: 0;
|
|
91
|
+
padding-top: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.step {
|
|
95
|
+
border-left: 0.2rem solid var(--vf-color-border-default);
|
|
96
|
+
display: flex;
|
|
97
|
+
padding: $spv--medium 0;
|
|
98
|
+
padding-right: 0.5rem;
|
|
99
|
+
width: fit-content;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.progress-line {
|
|
103
|
+
border-left: 0.2rem solid black;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:first-child .step {
|
|
107
|
+
padding-top: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:last-child .step {
|
|
111
|
+
padding-bottom: 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Step.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Step = _interopRequireDefault(require("./Step"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StepProps } from "./Step";
|
|
3
|
+
export type Props = {
|
|
4
|
+
/**
|
|
5
|
+
* Optional value that defines the orientation of the stepper. Can either be "horizontal" or "vertical". If not specified, it defaults to "vertical".
|
|
6
|
+
*/
|
|
7
|
+
variant?: "horizontal" | "vertical";
|
|
8
|
+
/**
|
|
9
|
+
* A list of steps.
|
|
10
|
+
*/
|
|
11
|
+
steps: React.ReactElement<StepProps>[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* This is a stepper component that is used to guide users through a series of sequential steps, providing a clear start and end point. It helps users understand their current position in the process and anticipate upcoming actions. The stepper component should accept a list of Step components for the steps.
|
|
15
|
+
*/
|
|
16
|
+
declare const Stepper: ({ variant, steps }: Props) => JSX.Element;
|
|
17
|
+
export default Stepper;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _List = _interopRequireDefault(require("../List"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
/**
|
|
13
|
+
* This is a stepper component that is used to guide users through a series of sequential steps, providing a clear start and end point. It helps users understand their current position in the process and anticipate upcoming actions. The stepper component should accept a list of Step components for the steps.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
const Stepper = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
variant = "vertical",
|
|
19
|
+
steps
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
22
|
+
items: steps,
|
|
23
|
+
inline: variant === "horizontal",
|
|
24
|
+
className: (0, _classnames.default)({
|
|
25
|
+
"stepper-horizontal": variant === "horizontal",
|
|
26
|
+
"stepper-vertical": variant === "vertical"
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Stepper.propTypes = {
|
|
31
|
+
variant: _propTypes.default.oneOf(["horizontal", "vertical"]),
|
|
32
|
+
steps: _propTypes.default.arrayOf(_propTypes.default.element).isRequired
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = Stepper;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Step", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Step.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "default", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Stepper.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _Stepper = _interopRequireDefault(require("./Stepper"));
|
|
19
|
+
var _Step = _interopRequireDefault(require("./Step"));
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/dist/index.d.ts
CHANGED
|
@@ -49,10 +49,12 @@ export { default as SideNavigation } from "./components/SideNavigation";
|
|
|
49
49
|
export { default as SideNavigationItem } from "./components/SideNavigation/SideNavigationItem";
|
|
50
50
|
export { default as SideNavigationLink } from "./components/SideNavigation/SideNavigationLink";
|
|
51
51
|
export { default as SideNavigationText } from "./components/SideNavigation/SideNavigationText";
|
|
52
|
+
export { default as SkipLink } from "./components/SkipLink";
|
|
52
53
|
export { default as Slider } from "./components/Slider";
|
|
53
54
|
export { default as Switch } from "./components/Switch";
|
|
54
55
|
export { default as Spinner } from "./components/Spinner";
|
|
55
56
|
export { default as StatusLabel, StatusLabelAppearance, } from "./components/StatusLabel";
|
|
57
|
+
export { default as Stepper, Step } from "./components/Stepper";
|
|
56
58
|
export { default as Strip } from "./components/Strip";
|
|
57
59
|
export { default as SummaryButton } from "./components/SummaryButton";
|
|
58
60
|
export { default as Table } from "./components/Table";
|
|
@@ -112,9 +114,11 @@ export type { SideNavigationProps } from "./components/SideNavigation";
|
|
|
112
114
|
export type { SideNavigationItemProps } from "./components/SideNavigation/SideNavigationItem";
|
|
113
115
|
export type { SideNavigationLinkProps } from "./components/SideNavigation/SideNavigationLink";
|
|
114
116
|
export type { SideNavigationTextProps } from "./components/SideNavigation/SideNavigationText";
|
|
117
|
+
export type { SkipLinkProps } from "./components/SkipLink";
|
|
115
118
|
export type { SliderProps } from "./components/Slider";
|
|
116
119
|
export type { SpinnerProps } from "./components/Spinner";
|
|
117
120
|
export type { StatusLabelProps } from "./components/StatusLabel";
|
|
121
|
+
export type { StepperProps, StepProps } from "./components/Stepper";
|
|
118
122
|
export type { StripProps } from "./components/Strip";
|
|
119
123
|
export type { SummaryButtonProps } from "./components/SummaryButton";
|
|
120
124
|
export type { TableProps } from "./components/Table";
|
package/dist/index.js
CHANGED
|
@@ -64,11 +64,14 @@ var _exportNames = {
|
|
|
64
64
|
SideNavigationItem: true,
|
|
65
65
|
SideNavigationLink: true,
|
|
66
66
|
SideNavigationText: true,
|
|
67
|
+
SkipLink: true,
|
|
67
68
|
Slider: true,
|
|
68
69
|
Switch: true,
|
|
69
70
|
Spinner: true,
|
|
70
71
|
StatusLabel: true,
|
|
71
72
|
StatusLabelAppearance: true,
|
|
73
|
+
Stepper: true,
|
|
74
|
+
Step: true,
|
|
72
75
|
Strip: true,
|
|
73
76
|
SummaryButton: true,
|
|
74
77
|
Table: true,
|
|
@@ -423,6 +426,12 @@ Object.defineProperty(exports, "SideNavigationText", {
|
|
|
423
426
|
return _SideNavigationText.default;
|
|
424
427
|
}
|
|
425
428
|
});
|
|
429
|
+
Object.defineProperty(exports, "SkipLink", {
|
|
430
|
+
enumerable: true,
|
|
431
|
+
get: function () {
|
|
432
|
+
return _SkipLink.default;
|
|
433
|
+
}
|
|
434
|
+
});
|
|
426
435
|
Object.defineProperty(exports, "Slider", {
|
|
427
436
|
enumerable: true,
|
|
428
437
|
get: function () {
|
|
@@ -447,6 +456,18 @@ Object.defineProperty(exports, "StatusLabelAppearance", {
|
|
|
447
456
|
return _StatusLabel.StatusLabelAppearance;
|
|
448
457
|
}
|
|
449
458
|
});
|
|
459
|
+
Object.defineProperty(exports, "Step", {
|
|
460
|
+
enumerable: true,
|
|
461
|
+
get: function () {
|
|
462
|
+
return _Stepper.Step;
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
Object.defineProperty(exports, "Stepper", {
|
|
466
|
+
enumerable: true,
|
|
467
|
+
get: function () {
|
|
468
|
+
return _Stepper.default;
|
|
469
|
+
}
|
|
470
|
+
});
|
|
450
471
|
Object.defineProperty(exports, "Strip", {
|
|
451
472
|
enumerable: true,
|
|
452
473
|
get: function () {
|
|
@@ -683,10 +704,12 @@ var _SideNavigation = _interopRequireDefault(require("./components/SideNavigatio
|
|
|
683
704
|
var _SideNavigationItem = _interopRequireDefault(require("./components/SideNavigation/SideNavigationItem"));
|
|
684
705
|
var _SideNavigationLink = _interopRequireDefault(require("./components/SideNavigation/SideNavigationLink"));
|
|
685
706
|
var _SideNavigationText = _interopRequireDefault(require("./components/SideNavigation/SideNavigationText"));
|
|
707
|
+
var _SkipLink = _interopRequireDefault(require("./components/SkipLink"));
|
|
686
708
|
var _Slider = _interopRequireDefault(require("./components/Slider"));
|
|
687
709
|
var _Switch = _interopRequireDefault(require("./components/Switch"));
|
|
688
710
|
var _Spinner = _interopRequireDefault(require("./components/Spinner"));
|
|
689
711
|
var _StatusLabel = _interopRequireWildcard(require("./components/StatusLabel"));
|
|
712
|
+
var _Stepper = _interopRequireWildcard(require("./components/Stepper"));
|
|
690
713
|
var _Strip = _interopRequireDefault(require("./components/Strip"));
|
|
691
714
|
var _SummaryButton = _interopRequireDefault(require("./components/SummaryButton"));
|
|
692
715
|
var _Table = _interopRequireDefault(require("./components/Table"));
|