glints-aries 4.0.212 → 4.0.214
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/es/@next/ActionList/ActionItem.d.ts +3 -0
- package/es/@next/ActionList/ActionItem.js +28 -0
- package/es/@next/ActionList/ActionList.d.ts +16 -0
- package/es/@next/ActionList/ActionList.js +37 -0
- package/es/@next/ActionList/ActionList.stories.d.ts +7 -0
- package/es/@next/ActionList/ActionListStyle.d.ts +5 -0
- package/es/@next/ActionList/ActionListStyle.js +25 -0
- package/es/@next/ActionList/index.d.ts +1 -0
- package/es/@next/ActionList/index.js +1 -0
- package/es/@next/Switch/Switch.js +1 -1
- package/es/@next/index.d.ts +1 -0
- package/es/@next/index.js +1 -0
- package/lib/@next/ActionList/ActionItem.d.ts +3 -0
- package/lib/@next/ActionList/ActionItem.js +34 -0
- package/lib/@next/ActionList/ActionList.d.ts +16 -0
- package/lib/@next/ActionList/ActionList.js +43 -0
- package/lib/@next/ActionList/ActionList.stories.d.ts +7 -0
- package/lib/@next/ActionList/ActionListStyle.d.ts +5 -0
- package/lib/@next/ActionList/ActionListStyle.js +37 -0
- package/lib/@next/ActionList/index.d.ts +1 -0
- package/lib/@next/ActionList/index.js +9 -0
- package/lib/@next/Switch/Switch.js +1 -1
- package/lib/@next/index.d.ts +1 -0
- package/lib/@next/index.js +6 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Typography } from '../Typography';
|
|
3
|
+
import { Neutral } from '../utilities/colors';
|
|
4
|
+
import { StyledActionListItem, StyledActionListItemDescription, StyledActionListItemWrapper } from './ActionListStyle';
|
|
5
|
+
export var ActionItem = function ActionItem(_ref) {
|
|
6
|
+
var content = _ref.content,
|
|
7
|
+
description = _ref.description,
|
|
8
|
+
icon = _ref.icon,
|
|
9
|
+
action = _ref.action;
|
|
10
|
+
var hasDescription = !!description;
|
|
11
|
+
return /*#__PURE__*/React.createElement(StyledActionListItemWrapper, {
|
|
12
|
+
tabIndex: 0,
|
|
13
|
+
role: "button",
|
|
14
|
+
onMouseUp: function onMouseUp(e) {
|
|
15
|
+
return e.currentTarget.blur();
|
|
16
|
+
},
|
|
17
|
+
onClick: function onClick() {
|
|
18
|
+
return action == null ? void 0 : action();
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement(StyledActionListItem, null, icon, /*#__PURE__*/React.createElement(Typography, {
|
|
21
|
+
as: "div",
|
|
22
|
+
variant: "body1"
|
|
23
|
+
}, content)), hasDescription && /*#__PURE__*/React.createElement(StyledActionListItemDescription, null, /*#__PURE__*/React.createElement(Typography, {
|
|
24
|
+
as: "div",
|
|
25
|
+
variant: "body1",
|
|
26
|
+
color: Neutral.B40
|
|
27
|
+
}, description)));
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type Item = {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
icon?: React.ReactElement<React.SVGProps<SVGSVGElement>>;
|
|
6
|
+
action?: (...args: any) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare type Section = {
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
items?: Item[];
|
|
11
|
+
};
|
|
12
|
+
export declare type ActionListProps = {
|
|
13
|
+
items?: Item[];
|
|
14
|
+
sections?: Section[];
|
|
15
|
+
};
|
|
16
|
+
export declare const ActionList: ({ items, sections }: ActionListProps) => JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Typography } from '../Typography';
|
|
4
|
+
import { ActionItem } from './ActionItem';
|
|
5
|
+
import { StyledActionListContainer, StyledActionListSection } from './ActionListStyle';
|
|
6
|
+
export var ActionList = function ActionList(_ref) {
|
|
7
|
+
var items = _ref.items,
|
|
8
|
+
sections = _ref.sections;
|
|
9
|
+
var renderActionItems = function renderActionItems(actionItems) {
|
|
10
|
+
if (actionItems === void 0) {
|
|
11
|
+
actionItems = [];
|
|
12
|
+
}
|
|
13
|
+
return actionItems.map(function (item, index) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(ActionItem, _extends({
|
|
15
|
+
key: item.content.toString() + "-" + index
|
|
16
|
+
}, item));
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var renderSectionedItems = function renderSectionedItems() {
|
|
20
|
+
return (sections || []).map(function (section, index) {
|
|
21
|
+
var title = section.title;
|
|
22
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
23
|
+
key: title + "-" + index
|
|
24
|
+
}, /*#__PURE__*/React.createElement(StyledActionListSection, {
|
|
25
|
+
key: title + "-" + index
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
27
|
+
as: "div",
|
|
28
|
+
variant: "subtitle2"
|
|
29
|
+
}, title)), renderActionItems(section.items || []));
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var renderItems = function renderItems() {
|
|
33
|
+
return /*#__PURE__*/React.createElement("li", null, renderActionItems(items || []));
|
|
34
|
+
};
|
|
35
|
+
var contentMarkup = sections ? renderSectionedItems() : renderItems();
|
|
36
|
+
return /*#__PURE__*/React.createElement(StyledActionListContainer, null, contentMarkup);
|
|
37
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Interactive: any;
|
|
5
|
+
export declare const WithIcons: any;
|
|
6
|
+
export declare const WithDescriptions: any;
|
|
7
|
+
export declare const WithSections: any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StyledActionListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledActionListSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledActionListItemWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledActionListItem: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledActionListItemDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { borderRadius4 } from '../utilities/borderRadius';
|
|
3
|
+
import { Blue, Neutral } from '../utilities/colors';
|
|
4
|
+
import { space12, space16, space8 } from '../utilities/spacing';
|
|
5
|
+
import * as Breakpoints from '../utilities/breakpoints';
|
|
6
|
+
export var StyledActionListContainer = styled.div.withConfig({
|
|
7
|
+
displayName: "ActionListStyle__StyledActionListContainer",
|
|
8
|
+
componentId: "sc-2x4nd5-0"
|
|
9
|
+
})(["padding:", " 0;background:", ";color:", ";li{list-style-type:none;padding:0;margin:0;}"], space8, Neutral.B100, Neutral.B18);
|
|
10
|
+
export var StyledActionListSection = styled.div.withConfig({
|
|
11
|
+
displayName: "ActionListStyle__StyledActionListSection",
|
|
12
|
+
componentId: "sc-2x4nd5-1"
|
|
13
|
+
})(["padding:", " ", " ", ";color:", ";text-transform:uppercase;"], space12, space16, space8, Neutral.B40);
|
|
14
|
+
export var StyledActionListItemWrapper = styled.div.withConfig({
|
|
15
|
+
displayName: "ActionListStyle__StyledActionListItemWrapper",
|
|
16
|
+
componentId: "sc-2x4nd5-2"
|
|
17
|
+
})(["margin:0 ", ";cursor:pointer;&:hover{background:", ";border-radius:", ";}&:active{background:", ";border-radius:", ";}&&&{&:active{border:0;}}&:focus{outline:none;border:2px solid ", ";border-radius:", ";}"], space8, Neutral.B99, borderRadius4, Neutral.B95, borderRadius4, Blue.S54, borderRadius4);
|
|
18
|
+
export var StyledActionListItem = styled.div.withConfig({
|
|
19
|
+
displayName: "ActionListStyle__StyledActionListItem",
|
|
20
|
+
componentId: "sc-2x4nd5-3"
|
|
21
|
+
})(["display:flex;gap:", ";padding:", ";align-items:center;svg{height:24px;width:24px;fill:", ";}@media (max-width:", "){svg{height:20px;width:20px;}}"], space8, space8, Neutral.B40, Breakpoints.large);
|
|
22
|
+
export var StyledActionListItemDescription = styled.div.withConfig({
|
|
23
|
+
displayName: "ActionListStyle__StyledActionListItemDescription",
|
|
24
|
+
componentId: "sc-2x4nd5-4"
|
|
25
|
+
})(["padding:0 ", " ", ";margin-top:calc(", " * -1);align-items:center;"], space8, space8, space8);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionList';
|
package/es/@next/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as Colors from './utilities/colors';
|
|
|
4
4
|
import * as DropShadow from './utilities/dropShadow';
|
|
5
5
|
import * as Fonts from './utilities/fonts';
|
|
6
6
|
import * as Spacing from './utilities/spacing';
|
|
7
|
+
export { ActionList, ActionListProps, Item as ActionListItem, Section as ActionListSection, } from './ActionList';
|
|
7
8
|
export { Alert, AlertContext, AlertContextProps, AlertProps, AlertProvider, AlertWithProvider, useAlert, } from './Alert';
|
|
8
9
|
export { Avatar, AvatarProps } from './Avatar';
|
|
9
10
|
export { Badge, BadgeProps } from './Badge';
|
package/es/@next/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import * as Colors from './utilities/colors';
|
|
|
5
5
|
import * as DropShadow from './utilities/dropShadow';
|
|
6
6
|
import * as Fonts from './utilities/fonts';
|
|
7
7
|
import * as Spacing from './utilities/spacing';
|
|
8
|
+
export { ActionList, ActionListProps, Item as ActionListItem, Section as ActionListSection } from './ActionList';
|
|
8
9
|
export { Alert, AlertContext, AlertContextProps, AlertProps, AlertProvider, AlertWithProvider, useAlert } from './Alert';
|
|
9
10
|
export { Avatar, AvatarProps } from './Avatar';
|
|
10
11
|
export { Badge, BadgeProps } from './Badge';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.ActionItem = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _Typography = require("../Typography");
|
|
8
|
+
var _colors = require("../utilities/colors");
|
|
9
|
+
var _ActionListStyle = require("./ActionListStyle");
|
|
10
|
+
var ActionItem = function ActionItem(_ref) {
|
|
11
|
+
var content = _ref.content,
|
|
12
|
+
description = _ref.description,
|
|
13
|
+
icon = _ref.icon,
|
|
14
|
+
action = _ref.action;
|
|
15
|
+
var hasDescription = !!description;
|
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListItemWrapper, {
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
role: "button",
|
|
19
|
+
onMouseUp: function onMouseUp(e) {
|
|
20
|
+
return e.currentTarget.blur();
|
|
21
|
+
},
|
|
22
|
+
onClick: function onClick() {
|
|
23
|
+
return action == null ? void 0 : action();
|
|
24
|
+
}
|
|
25
|
+
}, /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListItem, null, icon, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
26
|
+
as: "div",
|
|
27
|
+
variant: "body1"
|
|
28
|
+
}, content)), hasDescription && /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListItemDescription, null, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
29
|
+
as: "div",
|
|
30
|
+
variant: "body1",
|
|
31
|
+
color: _colors.Neutral.B40
|
|
32
|
+
}, description)));
|
|
33
|
+
};
|
|
34
|
+
exports.ActionItem = ActionItem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type Item = {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
icon?: React.ReactElement<React.SVGProps<SVGSVGElement>>;
|
|
6
|
+
action?: (...args: any) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare type Section = {
|
|
9
|
+
title: React.ReactNode;
|
|
10
|
+
items?: Item[];
|
|
11
|
+
};
|
|
12
|
+
export declare type ActionListProps = {
|
|
13
|
+
items?: Item[];
|
|
14
|
+
sections?: Section[];
|
|
15
|
+
};
|
|
16
|
+
export declare const ActionList: ({ items, sections }: ActionListProps) => JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.ActionList = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Typography = require("../Typography");
|
|
9
|
+
var _ActionItem = require("./ActionItem");
|
|
10
|
+
var _ActionListStyle = require("./ActionListStyle");
|
|
11
|
+
var ActionList = function ActionList(_ref) {
|
|
12
|
+
var items = _ref.items,
|
|
13
|
+
sections = _ref.sections;
|
|
14
|
+
var renderActionItems = function renderActionItems(actionItems) {
|
|
15
|
+
if (actionItems === void 0) {
|
|
16
|
+
actionItems = [];
|
|
17
|
+
}
|
|
18
|
+
return actionItems.map(function (item, index) {
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement(_ActionItem.ActionItem, (0, _extends2["default"])({
|
|
20
|
+
key: item.content.toString() + "-" + index
|
|
21
|
+
}, item));
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var renderSectionedItems = function renderSectionedItems() {
|
|
25
|
+
return (sections || []).map(function (section, index) {
|
|
26
|
+
var title = section.title;
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
28
|
+
key: title + "-" + index
|
|
29
|
+
}, /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListSection, {
|
|
30
|
+
key: title + "-" + index
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
32
|
+
as: "div",
|
|
33
|
+
variant: "subtitle2"
|
|
34
|
+
}, title)), renderActionItems(section.items || []));
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var renderItems = function renderItems() {
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement("li", null, renderActionItems(items || []));
|
|
39
|
+
};
|
|
40
|
+
var contentMarkup = sections ? renderSectionedItems() : renderItems();
|
|
41
|
+
return /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListContainer, null, contentMarkup);
|
|
42
|
+
};
|
|
43
|
+
exports.ActionList = ActionList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Interactive: any;
|
|
5
|
+
export declare const WithIcons: any;
|
|
6
|
+
export declare const WithDescriptions: any;
|
|
7
|
+
export declare const WithSections: any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const StyledActionListContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledActionListSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledActionListItemWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledActionListItem: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledActionListItemDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.StyledActionListSection = exports.StyledActionListItemWrapper = exports.StyledActionListItemDescription = exports.StyledActionListItem = exports.StyledActionListContainer = void 0;
|
|
6
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
+
var _borderRadius = require("../utilities/borderRadius");
|
|
8
|
+
var _colors = require("../utilities/colors");
|
|
9
|
+
var _spacing = require("../utilities/spacing");
|
|
10
|
+
var Breakpoints = _interopRequireWildcard(require("../utilities/breakpoints"));
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
var StyledActionListContainer = _styledComponents["default"].div.withConfig({
|
|
14
|
+
displayName: "ActionListStyle__StyledActionListContainer",
|
|
15
|
+
componentId: "sc-2x4nd5-0"
|
|
16
|
+
})(["padding:", " 0;background:", ";color:", ";li{list-style-type:none;padding:0;margin:0;}"], _spacing.space8, _colors.Neutral.B100, _colors.Neutral.B18);
|
|
17
|
+
exports.StyledActionListContainer = StyledActionListContainer;
|
|
18
|
+
var StyledActionListSection = _styledComponents["default"].div.withConfig({
|
|
19
|
+
displayName: "ActionListStyle__StyledActionListSection",
|
|
20
|
+
componentId: "sc-2x4nd5-1"
|
|
21
|
+
})(["padding:", " ", " ", ";color:", ";text-transform:uppercase;"], _spacing.space12, _spacing.space16, _spacing.space8, _colors.Neutral.B40);
|
|
22
|
+
exports.StyledActionListSection = StyledActionListSection;
|
|
23
|
+
var StyledActionListItemWrapper = _styledComponents["default"].div.withConfig({
|
|
24
|
+
displayName: "ActionListStyle__StyledActionListItemWrapper",
|
|
25
|
+
componentId: "sc-2x4nd5-2"
|
|
26
|
+
})(["margin:0 ", ";cursor:pointer;&:hover{background:", ";border-radius:", ";}&:active{background:", ";border-radius:", ";}&&&{&:active{border:0;}}&:focus{outline:none;border:2px solid ", ";border-radius:", ";}"], _spacing.space8, _colors.Neutral.B99, _borderRadius.borderRadius4, _colors.Neutral.B95, _borderRadius.borderRadius4, _colors.Blue.S54, _borderRadius.borderRadius4);
|
|
27
|
+
exports.StyledActionListItemWrapper = StyledActionListItemWrapper;
|
|
28
|
+
var StyledActionListItem = _styledComponents["default"].div.withConfig({
|
|
29
|
+
displayName: "ActionListStyle__StyledActionListItem",
|
|
30
|
+
componentId: "sc-2x4nd5-3"
|
|
31
|
+
})(["display:flex;gap:", ";padding:", ";align-items:center;svg{height:24px;width:24px;fill:", ";}@media (max-width:", "){svg{height:20px;width:20px;}}"], _spacing.space8, _spacing.space8, _colors.Neutral.B40, Breakpoints.large);
|
|
32
|
+
exports.StyledActionListItem = StyledActionListItem;
|
|
33
|
+
var StyledActionListItemDescription = _styledComponents["default"].div.withConfig({
|
|
34
|
+
displayName: "ActionListStyle__StyledActionListItemDescription",
|
|
35
|
+
componentId: "sc-2x4nd5-4"
|
|
36
|
+
})(["padding:0 ", " ", ";margin-top:calc(", " * -1);align-items:center;"], _spacing.space8, _spacing.space8, _spacing.space8);
|
|
37
|
+
exports.StyledActionListItemDescription = StyledActionListItemDescription;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ActionList';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _ActionList = require("./ActionList");
|
|
5
|
+
Object.keys(_ActionList).forEach(function (key) {
|
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
|
7
|
+
if (key in exports && exports[key] === _ActionList[key]) return;
|
|
8
|
+
exports[key] = _ActionList[key];
|
|
9
|
+
});
|
package/lib/@next/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as Colors from './utilities/colors';
|
|
|
4
4
|
import * as DropShadow from './utilities/dropShadow';
|
|
5
5
|
import * as Fonts from './utilities/fonts';
|
|
6
6
|
import * as Spacing from './utilities/spacing';
|
|
7
|
+
export { ActionList, ActionListProps, Item as ActionListItem, Section as ActionListSection, } from './ActionList';
|
|
7
8
|
export { Alert, AlertContext, AlertContextProps, AlertProps, AlertProvider, AlertWithProvider, useAlert, } from './Alert';
|
|
8
9
|
export { Avatar, AvatarProps } from './Avatar';
|
|
9
10
|
export { Badge, BadgeProps } from './Badge';
|
package/lib/@next/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.useModal = exports.useIndexResourceState = exports.useAlert = exports.TypographyProps = exports.Typography = exports.TooltipProps = exports.TooltipPosition = exports.Tooltip = exports.TextInputProps = exports.TextInput = exports.TagProps = exports.Tag = exports.TabsProps = exports.Tabs = exports.TableRowProps = exports.TableHeaderProps = exports.TableCellProps = exports.TabProps = exports.TabModel = exports.Tab = exports.Switch = exports.SpinnerProps = exports.Spinner = exports.Spacing = exports.SimplePagination = exports.RadioButtonProps = exports.RadioButton = exports.PrimaryButton = exports.PopoverProps = exports.Popover = exports.PaginationProps = exports.Pagination = exports.OutlineMonochromeButton = exports.OutlineButton = exports.NumberInputProps = exports.NumberInput = exports.ModalProvider = exports.ModalProps = exports.ModalContext = exports.Modal = exports.MenuProps = exports.Menu = exports.LinkProps = exports.Link = exports.InlineErrorProps = exports.InlineError = exports.IndexTableProps = exports.IndexTable = exports.IconProps = exports.Icon = exports.Fonts = exports.EmptyState = exports.DropShadow = exports.Divider = exports.DestructiveButton = exports.DataTableProps = exports.DataTable = exports.CurrencyInputProps = exports.CurrencyInput = exports.Colors = exports.CheckboxProps = exports.Checkbox = exports.CardProps = exports.Card = exports.ButtonProps = exports.ButtonGroupProps = exports.ButtonGroup = exports.Button = exports.Breakpoints = exports.BorderRadius = exports.BannerProps = exports.Banner = exports.BadgeProps = exports.Badge = exports.AvatarProps = exports.Avatar = exports.AlertWithProvider = exports.AlertProvider = exports.AlertProps = exports.AlertContextProps = exports.AlertContext = exports.Alert = void 0;
|
|
4
|
+
exports.useModal = exports.useIndexResourceState = exports.useAlert = exports.TypographyProps = exports.Typography = exports.TooltipProps = exports.TooltipPosition = exports.Tooltip = exports.TextInputProps = exports.TextInput = exports.TagProps = exports.Tag = exports.TabsProps = exports.Tabs = exports.TableRowProps = exports.TableHeaderProps = exports.TableCellProps = exports.TabProps = exports.TabModel = exports.Tab = exports.Switch = exports.SpinnerProps = exports.Spinner = exports.Spacing = exports.SimplePagination = exports.RadioButtonProps = exports.RadioButton = exports.PrimaryButton = exports.PopoverProps = exports.Popover = exports.PaginationProps = exports.Pagination = exports.OutlineMonochromeButton = exports.OutlineButton = exports.NumberInputProps = exports.NumberInput = exports.ModalProvider = exports.ModalProps = exports.ModalContext = exports.Modal = exports.MenuProps = exports.Menu = exports.LinkProps = exports.Link = exports.InlineErrorProps = exports.InlineError = exports.IndexTableProps = exports.IndexTable = exports.IconProps = exports.Icon = exports.Fonts = exports.EmptyState = exports.DropShadow = exports.Divider = exports.DestructiveButton = exports.DataTableProps = exports.DataTable = exports.CurrencyInputProps = exports.CurrencyInput = exports.Colors = exports.CheckboxProps = exports.Checkbox = exports.CardProps = exports.Card = exports.ButtonProps = exports.ButtonGroupProps = exports.ButtonGroup = exports.Button = exports.Breakpoints = exports.BorderRadius = exports.BannerProps = exports.Banner = exports.BadgeProps = exports.Badge = exports.AvatarProps = exports.Avatar = exports.AlertWithProvider = exports.AlertProvider = exports.AlertProps = exports.AlertContextProps = exports.AlertContext = exports.Alert = exports.ActionListSection = exports.ActionListProps = exports.ActionListItem = exports.ActionList = void 0;
|
|
5
5
|
var BorderRadius = _interopRequireWildcard(require("./utilities/borderRadius"));
|
|
6
6
|
exports.BorderRadius = BorderRadius;
|
|
7
7
|
var Breakpoints = _interopRequireWildcard(require("./utilities/breakpoints"));
|
|
@@ -14,6 +14,11 @@ var Fonts = _interopRequireWildcard(require("./utilities/fonts"));
|
|
|
14
14
|
exports.Fonts = Fonts;
|
|
15
15
|
var Spacing = _interopRequireWildcard(require("./utilities/spacing"));
|
|
16
16
|
exports.Spacing = Spacing;
|
|
17
|
+
var _ActionList = require("./ActionList");
|
|
18
|
+
exports.ActionList = _ActionList.ActionList;
|
|
19
|
+
exports.ActionListProps = _ActionList.ActionListProps;
|
|
20
|
+
exports.ActionListItem = _ActionList.Item;
|
|
21
|
+
exports.ActionListSection = _ActionList.Section;
|
|
17
22
|
var _Alert = require("./Alert");
|
|
18
23
|
exports.Alert = _Alert.Alert;
|
|
19
24
|
exports.AlertContext = _Alert.AlertContext;
|