@canonical/react-components 0.57.0 → 0.59.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/AppAside/AppAside.d.ts +33 -0
- package/dist/components/ApplicationLayout/AppAside/AppAside.js +33 -0
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.d.ts +13 -0
- package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +116 -0
- package/dist/components/ApplicationLayout/AppAside/index.d.ts +2 -0
- package/dist/components/ApplicationLayout/AppAside/index.js +13 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.d.ts +14 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.js +25 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.d.ts +14 -0
- package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +45 -0
- package/dist/components/ApplicationLayout/AppMain/index.d.ts +2 -0
- package/dist/components/ApplicationLayout/AppMain/index.js +13 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.d.ts +26 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.js +35 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.d.ts +12 -0
- package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +104 -0
- package/dist/components/ApplicationLayout/AppNavigation/index.d.ts +2 -0
- package/dist/components/ApplicationLayout/AppNavigation/index.js +13 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.d.ts +18 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +28 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.d.ts +15 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +52 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/index.d.ts +2 -0
- package/dist/components/ApplicationLayout/AppNavigationBar/index.js +13 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.d.ts +14 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.js +25 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.d.ts +13 -0
- package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +41 -0
- package/dist/components/ApplicationLayout/AppStatus/index.d.ts +2 -0
- package/dist/components/ApplicationLayout/AppStatus/index.js +13 -0
- package/dist/components/ApplicationLayout/Application/Application.d.ts +15 -0
- package/dist/components/ApplicationLayout/Application/Application.js +26 -0
- package/dist/components/ApplicationLayout/Application/Application.stories.d.ts +6 -0
- package/dist/components/ApplicationLayout/Application/Application.stories.js +16 -0
- package/dist/components/ApplicationLayout/Application/index.d.ts +2 -0
- package/dist/components/ApplicationLayout/Application/index.js +13 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.d.ts +89 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.js +118 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.d.ts +19 -0
- package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +218 -0
- package/dist/components/ApplicationLayout/index.d.ts +7 -0
- package/dist/components/ApplicationLayout/index.js +55 -0
- package/dist/components/SideNavigation/SideNavigation.d.ts +50 -0
- package/dist/components/SideNavigation/SideNavigation.js +90 -0
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +14 -0
- package/dist/components/SideNavigation/SideNavigation.stories.js +62 -0
- package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.d.ts +27 -0
- package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +31 -0
- package/dist/components/SideNavigation/SideNavigationBase/index.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationBase/index.js +13 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.d.ts +20 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +33 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.d.ts +22 -0
- package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +68 -0
- package/dist/components/SideNavigation/SideNavigationItem/index.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationItem/index.js +13 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.d.ts +13 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +27 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.d.ts +7 -0
- package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +32 -0
- package/dist/components/SideNavigation/SideNavigationLink/index.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationLink/index.js +13 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.d.ts +7 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.js +24 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.d.ts +6 -0
- package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +25 -0
- package/dist/components/SideNavigation/SideNavigationText/index.d.ts +1 -0
- package/dist/components/SideNavigation/SideNavigationText/index.js +13 -0
- package/dist/components/SideNavigation/index.d.ts +5 -0
- package/dist/components/SideNavigation/index.js +34 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +88 -0
- package/package.json +5 -2
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Text = exports.Links = exports.Default = exports.CustomContent = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _SideNavigation = _interopRequireDefault(require("../SideNavigation"));
|
|
9
|
+
var _SideNavigationItem = _interopRequireDefault(require("./SideNavigationItem"));
|
|
10
|
+
var _SideNavigationText = _interopRequireDefault(require("../SideNavigationText"));
|
|
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
|
+
const meta = {
|
|
14
|
+
component: _SideNavigationItem.default,
|
|
15
|
+
render: args => /*#__PURE__*/_react.default.createElement(_SideNavigation.default, {
|
|
16
|
+
dark: false,
|
|
17
|
+
items: [{
|
|
18
|
+
items: [/*#__PURE__*/_react.default.createElement(_SideNavigationItem.default, _extends({}, args, {
|
|
19
|
+
dark: false
|
|
20
|
+
}))]
|
|
21
|
+
}]
|
|
22
|
+
}),
|
|
23
|
+
tags: ["autodocs"]
|
|
24
|
+
};
|
|
25
|
+
var _default = exports.default = meta;
|
|
26
|
+
const Default = exports.Default = {
|
|
27
|
+
args: {
|
|
28
|
+
icon: "drag",
|
|
29
|
+
label: "Models",
|
|
30
|
+
href: "/models"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The navigation item can appear as a link and accept the props from [`SideNavigationLink`](/docs/components-sidenavigation-sidenavigationlink--docs).
|
|
36
|
+
*/
|
|
37
|
+
const Links = exports.Links = {
|
|
38
|
+
args: {
|
|
39
|
+
icon: "drag",
|
|
40
|
+
label: "Models",
|
|
41
|
+
href: "/models"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* By providing the `nonInteractive` prop the navigation item will appear as a
|
|
47
|
+
* text entry and accept the props from
|
|
48
|
+
* [`SideNavigationText`](/docs/components-sidenavigation-sidenavigationtext--docs).
|
|
49
|
+
*/
|
|
50
|
+
const Text = exports.Text = {
|
|
51
|
+
args: {
|
|
52
|
+
icon: "drag",
|
|
53
|
+
label: "Models",
|
|
54
|
+
nonInteractive: true
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The navigation item can display custom content by providing the `children` prop.
|
|
60
|
+
* In this case, any other attributes provided to the object will be given to
|
|
61
|
+
* the list item.
|
|
62
|
+
*/
|
|
63
|
+
const CustomContent = exports.CustomContent = {
|
|
64
|
+
args: {
|
|
65
|
+
className: "custom-class",
|
|
66
|
+
children: /*#__PURE__*/_react.default.createElement(_SideNavigationText.default, null, "This item has been given a custom class")
|
|
67
|
+
}
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type Props as SideNavigationItemProps, } from "./SideNavigationItem";
|
|
@@ -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 _SideNavigationItem.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SideNavigationItem = _interopRequireDefault(require("./SideNavigationItem"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { HTMLProps } from "react";
|
|
3
|
+
import type { SideNavigationBaseProps } from "../SideNavigationBase";
|
|
4
|
+
export type LinkDefaultElement = HTMLProps<HTMLAnchorElement>;
|
|
5
|
+
export type Props<L = LinkDefaultElement> = Omit<SideNavigationBaseProps<L>, "component"> & {
|
|
6
|
+
/**
|
|
7
|
+
* The component or element to use for the link element e.g. `a` or `NavLink`.
|
|
8
|
+
* @default a
|
|
9
|
+
*/
|
|
10
|
+
component?: SideNavigationBaseProps<L>["component"];
|
|
11
|
+
};
|
|
12
|
+
declare const SideNavigationLink: <L = LinkDefaultElement>({ component, ...props }: Props<L>) => React.JSX.Element;
|
|
13
|
+
export default SideNavigationLink;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
var _SideNavigationBase = _interopRequireDefault(require("../SideNavigationBase"));
|
|
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
|
+
const SideNavigationLink = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
component,
|
|
15
|
+
...props
|
|
16
|
+
} = _ref;
|
|
17
|
+
let className = null;
|
|
18
|
+
if ("className" in props && typeof props.className === "string") {
|
|
19
|
+
className = props.className;
|
|
20
|
+
delete props.className;
|
|
21
|
+
}
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_SideNavigationBase.default, _extends({
|
|
23
|
+
className: (0, _classnames.default)("p-side-navigation__link", className),
|
|
24
|
+
component: component !== null && component !== void 0 ? component : "a"
|
|
25
|
+
}, props));
|
|
26
|
+
};
|
|
27
|
+
var _default = exports.default = SideNavigationLink;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import SideNavigationLink from "./SideNavigationLink";
|
|
3
|
+
declare const meta: Meta<typeof SideNavigationLink>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SideNavigationLink>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CustomComponent: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = exports.CustomComponent = void 0;
|
|
7
|
+
var _Badge = _interopRequireDefault(require("../../Badge"));
|
|
8
|
+
var _SideNavigationLink = _interopRequireDefault(require("./SideNavigationLink"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const meta = {
|
|
12
|
+
component: _SideNavigationLink.default,
|
|
13
|
+
tags: ["autodocs"]
|
|
14
|
+
};
|
|
15
|
+
var _default = exports.default = meta;
|
|
16
|
+
const Default = exports.Default = {
|
|
17
|
+
args: {
|
|
18
|
+
icon: "drag",
|
|
19
|
+
label: "Models",
|
|
20
|
+
status: /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
21
|
+
value: 9,
|
|
22
|
+
isNegative: true
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const CustomComponent = exports.CustomComponent = {
|
|
27
|
+
args: {
|
|
28
|
+
component: props => /*#__PURE__*/_react.default.createElement("button", props),
|
|
29
|
+
icon: "drag",
|
|
30
|
+
label: "Models"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type LinkDefaultElement as SideNavigationLinkDefaultElement, type Props as SideNavigationLinkProps, } from "./SideNavigationLink";
|
|
@@ -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 _SideNavigationLink.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SideNavigationLink = _interopRequireDefault(require("./SideNavigationLink"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { HTMLProps } from "react";
|
|
3
|
+
import type { SideNavigationBaseProps } from "../SideNavigationBase";
|
|
4
|
+
export type TextDefaultElement = HTMLProps<HTMLSpanElement>;
|
|
5
|
+
export type Props = Omit<SideNavigationBaseProps<TextDefaultElement>, "component" | "label">;
|
|
6
|
+
declare const SideNavigationText: ({ children, className, ...props }: Props) => React.JSX.Element;
|
|
7
|
+
export default SideNavigationText;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
var _SideNavigationBase = _interopRequireDefault(require("../SideNavigationBase"));
|
|
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
|
+
const SideNavigationText = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
} = _ref;
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_SideNavigationBase.default, _extends({
|
|
19
|
+
className: (0, _classnames.default)("p-side-navigation__text", className),
|
|
20
|
+
component: "span",
|
|
21
|
+
label: children
|
|
22
|
+
}, props));
|
|
23
|
+
};
|
|
24
|
+
var _default = exports.default = SideNavigationText;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import SideNavigationText from "./SideNavigationText";
|
|
3
|
+
declare const meta: Meta<typeof SideNavigationText>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SideNavigationText>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Badge = _interopRequireDefault(require("../../Badge"));
|
|
9
|
+
var _SideNavigationText = _interopRequireDefault(require("./SideNavigationText"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const meta = {
|
|
12
|
+
component: _SideNavigationText.default,
|
|
13
|
+
tags: ["autodocs"]
|
|
14
|
+
};
|
|
15
|
+
var _default = exports.default = meta;
|
|
16
|
+
const Default = exports.Default = {
|
|
17
|
+
args: {
|
|
18
|
+
icon: "drag",
|
|
19
|
+
children: "Models",
|
|
20
|
+
status: /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
21
|
+
value: 9,
|
|
22
|
+
isNegative: true
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type Props as SideNavigationTextProps, } from "./SideNavigationText";
|
|
@@ -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 _SideNavigationText.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _SideNavigationText = _interopRequireDefault(require("./SideNavigationText"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from "./SideNavigation";
|
|
2
|
+
export type { Props as SideNavigationProps } from "./SideNavigation";
|
|
3
|
+
export { default as SideNavigationItem } from "./SideNavigationItem";
|
|
4
|
+
export { default as SideNavigationText } from "./SideNavigationText";
|
|
5
|
+
export { default as SideNavigationLink, type SideNavigationLinkDefaultElement, } from "./SideNavigationLink";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "SideNavigationItem", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _SideNavigationItem.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SideNavigationLink", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _SideNavigationLink.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "SideNavigationText", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _SideNavigationText.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "default", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _SideNavigation.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _SideNavigation = _interopRequireDefault(require("./SideNavigation"));
|
|
31
|
+
var _SideNavigationItem = _interopRequireDefault(require("./SideNavigationItem"));
|
|
32
|
+
var _SideNavigationText = _interopRequireDefault(require("./SideNavigationText"));
|
|
33
|
+
var _SideNavigationLink = _interopRequireDefault(require("./SideNavigationLink"));
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export { default as Accordion } from "./components/Accordion";
|
|
2
2
|
export { default as ActionButton } from "./components/ActionButton";
|
|
3
3
|
export { default as ArticlePagination } from "./components/ArticlePagination";
|
|
4
|
+
export { default as ApplicationLayout } from "./components/ApplicationLayout";
|
|
5
|
+
export { default as AppAside } from "./components/ApplicationLayout/AppAside";
|
|
6
|
+
export { default as Application } from "./components/ApplicationLayout/Application";
|
|
7
|
+
export { default as AppMain } from "./components/ApplicationLayout/AppMain";
|
|
8
|
+
export { default as AppNavigation } from "./components/ApplicationLayout/AppNavigation";
|
|
9
|
+
export { default as AppNavigationBar } from "./components/ApplicationLayout/AppNavigationBar";
|
|
10
|
+
export { default as AppStatus } from "./components/ApplicationLayout/AppStatus";
|
|
4
11
|
export { default as Badge } from "./components/Badge";
|
|
5
12
|
export { default as Button, ButtonAppearance } from "./components/Button";
|
|
6
13
|
export { default as Card } from "./components/Card";
|
|
@@ -38,6 +45,10 @@ export { default as Row } from "./components/Row";
|
|
|
38
45
|
export { default as SearchAndFilter } from "./components/SearchAndFilter";
|
|
39
46
|
export { default as SearchBox } from "./components/SearchBox";
|
|
40
47
|
export { default as Select } from "./components/Select";
|
|
48
|
+
export { default as SideNavigation } from "./components/SideNavigation";
|
|
49
|
+
export { default as SideNavigationItem } from "./components/SideNavigation/SideNavigationItem";
|
|
50
|
+
export { default as SideNavigationLink } from "./components/SideNavigation/SideNavigationLink";
|
|
51
|
+
export { default as SideNavigationText } from "./components/SideNavigation/SideNavigationText";
|
|
41
52
|
export { default as Slider } from "./components/Slider";
|
|
42
53
|
export { default as Switch } from "./components/Switch";
|
|
43
54
|
export { default as Spinner } from "./components/Spinner";
|
|
@@ -55,6 +66,13 @@ export { default as TablePagination } from "./components/TablePagination";
|
|
|
55
66
|
export type { AccordionProps } from "./components/Accordion";
|
|
56
67
|
export type { ActionButtonProps } from "./components/ActionButton";
|
|
57
68
|
export type { ArticlePaginationProps } from "./components/ArticlePagination";
|
|
69
|
+
export type { ApplicationLayoutProps } from "./components/ApplicationLayout";
|
|
70
|
+
export type { AppAsideProps } from "./components/ApplicationLayout/AppAside";
|
|
71
|
+
export type { ApplicationProps } from "./components/ApplicationLayout/Application";
|
|
72
|
+
export type { AppMainProps } from "./components/ApplicationLayout/AppMain";
|
|
73
|
+
export type { AppNavigationProps } from "./components/ApplicationLayout/AppNavigation";
|
|
74
|
+
export type { AppNavigationBarProps } from "./components/ApplicationLayout/AppNavigationBar";
|
|
75
|
+
export type { AppStatusProps } from "./components/ApplicationLayout/AppStatus";
|
|
58
76
|
export type { BadgeProps } from "./components/Badge";
|
|
59
77
|
export type { ButtonProps } from "./components/Button";
|
|
60
78
|
export type { CardProps } from "./components/Card";
|
|
@@ -89,6 +107,10 @@ export type { RowProps } from "./components/Row";
|
|
|
89
107
|
export type { SearchAndFilterProps } from "./components/SearchAndFilter";
|
|
90
108
|
export type { SearchBoxProps } from "./components/SearchBox";
|
|
91
109
|
export type { SelectProps } from "./components/Select";
|
|
110
|
+
export type { SideNavigationProps } from "./components/SideNavigation";
|
|
111
|
+
export type { SideNavigationItemProps } from "./components/SideNavigation/SideNavigationItem";
|
|
112
|
+
export type { SideNavigationLinkProps } from "./components/SideNavigation/SideNavigationLink";
|
|
113
|
+
export type { SideNavigationTextProps } from "./components/SideNavigation/SideNavigationText";
|
|
92
114
|
export type { SliderProps } from "./components/Slider";
|
|
93
115
|
export type { SpinnerProps } from "./components/Spinner";
|
|
94
116
|
export type { StatusLabelProps } from "./components/StatusLabel";
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,13 @@ var _exportNames = {
|
|
|
7
7
|
Accordion: true,
|
|
8
8
|
ActionButton: true,
|
|
9
9
|
ArticlePagination: true,
|
|
10
|
+
ApplicationLayout: true,
|
|
11
|
+
AppAside: true,
|
|
12
|
+
Application: true,
|
|
13
|
+
AppMain: true,
|
|
14
|
+
AppNavigation: true,
|
|
15
|
+
AppNavigationBar: true,
|
|
16
|
+
AppStatus: true,
|
|
10
17
|
Badge: true,
|
|
11
18
|
Button: true,
|
|
12
19
|
ButtonAppearance: true,
|
|
@@ -53,6 +60,10 @@ var _exportNames = {
|
|
|
53
60
|
SearchAndFilter: true,
|
|
54
61
|
SearchBox: true,
|
|
55
62
|
Select: true,
|
|
63
|
+
SideNavigation: true,
|
|
64
|
+
SideNavigationItem: true,
|
|
65
|
+
SideNavigationLink: true,
|
|
66
|
+
SideNavigationText: true,
|
|
56
67
|
Slider: true,
|
|
57
68
|
Switch: true,
|
|
58
69
|
Spinner: true,
|
|
@@ -93,6 +104,48 @@ Object.defineProperty(exports, "ActionButton", {
|
|
|
93
104
|
return _ActionButton.default;
|
|
94
105
|
}
|
|
95
106
|
});
|
|
107
|
+
Object.defineProperty(exports, "AppAside", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () {
|
|
110
|
+
return _AppAside.default;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "AppMain", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () {
|
|
116
|
+
return _AppMain.default;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "AppNavigation", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () {
|
|
122
|
+
return _AppNavigation.default;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "AppNavigationBar", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () {
|
|
128
|
+
return _AppNavigationBar.default;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "AppStatus", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return _AppStatus.default;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "Application", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () {
|
|
140
|
+
return _Application.default;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "ApplicationLayout", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () {
|
|
146
|
+
return _ApplicationLayout.default;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
96
149
|
Object.defineProperty(exports, "ArticlePagination", {
|
|
97
150
|
enumerable: true,
|
|
98
151
|
get: function () {
|
|
@@ -345,6 +398,30 @@ Object.defineProperty(exports, "Select", {
|
|
|
345
398
|
return _Select.default;
|
|
346
399
|
}
|
|
347
400
|
});
|
|
401
|
+
Object.defineProperty(exports, "SideNavigation", {
|
|
402
|
+
enumerable: true,
|
|
403
|
+
get: function () {
|
|
404
|
+
return _SideNavigation.default;
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
Object.defineProperty(exports, "SideNavigationItem", {
|
|
408
|
+
enumerable: true,
|
|
409
|
+
get: function () {
|
|
410
|
+
return _SideNavigationItem.default;
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
Object.defineProperty(exports, "SideNavigationLink", {
|
|
414
|
+
enumerable: true,
|
|
415
|
+
get: function () {
|
|
416
|
+
return _SideNavigationLink.default;
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
Object.defineProperty(exports, "SideNavigationText", {
|
|
420
|
+
enumerable: true,
|
|
421
|
+
get: function () {
|
|
422
|
+
return _SideNavigationText.default;
|
|
423
|
+
}
|
|
424
|
+
});
|
|
348
425
|
Object.defineProperty(exports, "Slider", {
|
|
349
426
|
enumerable: true,
|
|
350
427
|
get: function () {
|
|
@@ -540,6 +617,13 @@ Object.defineProperty(exports, "useWindowFitment", {
|
|
|
540
617
|
var _Accordion = _interopRequireDefault(require("./components/Accordion"));
|
|
541
618
|
var _ActionButton = _interopRequireDefault(require("./components/ActionButton"));
|
|
542
619
|
var _ArticlePagination = _interopRequireDefault(require("./components/ArticlePagination"));
|
|
620
|
+
var _ApplicationLayout = _interopRequireDefault(require("./components/ApplicationLayout"));
|
|
621
|
+
var _AppAside = _interopRequireDefault(require("./components/ApplicationLayout/AppAside"));
|
|
622
|
+
var _Application = _interopRequireDefault(require("./components/ApplicationLayout/Application"));
|
|
623
|
+
var _AppMain = _interopRequireDefault(require("./components/ApplicationLayout/AppMain"));
|
|
624
|
+
var _AppNavigation = _interopRequireDefault(require("./components/ApplicationLayout/AppNavigation"));
|
|
625
|
+
var _AppNavigationBar = _interopRequireDefault(require("./components/ApplicationLayout/AppNavigationBar"));
|
|
626
|
+
var _AppStatus = _interopRequireDefault(require("./components/ApplicationLayout/AppStatus"));
|
|
543
627
|
var _Badge = _interopRequireDefault(require("./components/Badge"));
|
|
544
628
|
var _Button = _interopRequireWildcard(require("./components/Button"));
|
|
545
629
|
var _Card = _interopRequireDefault(require("./components/Card"));
|
|
@@ -588,6 +672,10 @@ var _Row = _interopRequireDefault(require("./components/Row"));
|
|
|
588
672
|
var _SearchAndFilter = _interopRequireDefault(require("./components/SearchAndFilter"));
|
|
589
673
|
var _SearchBox = _interopRequireDefault(require("./components/SearchBox"));
|
|
590
674
|
var _Select = _interopRequireDefault(require("./components/Select"));
|
|
675
|
+
var _SideNavigation = _interopRequireDefault(require("./components/SideNavigation"));
|
|
676
|
+
var _SideNavigationItem = _interopRequireDefault(require("./components/SideNavigation/SideNavigationItem"));
|
|
677
|
+
var _SideNavigationLink = _interopRequireDefault(require("./components/SideNavigation/SideNavigationLink"));
|
|
678
|
+
var _SideNavigationText = _interopRequireDefault(require("./components/SideNavigation/SideNavigationText"));
|
|
591
679
|
var _Slider = _interopRequireDefault(require("./components/Slider"));
|
|
592
680
|
var _Switch = _interopRequireDefault(require("./components/Switch"));
|
|
593
681
|
var _Spinner = _interopRequireDefault(require("./components/Spinner"));
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
|
-
"author":
|
|
6
|
+
"author": {
|
|
7
|
+
"email": "webteam@canonical.com",
|
|
8
|
+
"name": "Canonical Webteam"
|
|
9
|
+
},
|
|
7
10
|
"license": "LGPL-3.0",
|
|
8
11
|
"files": [
|
|
9
12
|
"dist/**/*.js",
|