glints-aries 4.0.172 → 4.0.173
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/Tag/Tag.d.ts +5 -0
- package/es/@next/Tag/Tag.js +16 -0
- package/es/@next/Tag/Tag.stories.d.ts +4 -0
- package/es/@next/Tag/Tag.stories.js +17 -0
- package/es/@next/Tag/TagStyle.d.ts +2 -0
- package/es/@next/Tag/TagStyle.js +9 -0
- package/es/@next/Tag/index.d.ts +1 -0
- package/es/@next/Tag/index.js +1 -0
- package/es/@next/index.d.ts +9 -8
- package/es/@next/index.js +9 -9
- package/lib/@next/Tag/Tag.d.ts +5 -0
- package/lib/@next/Tag/Tag.js +22 -0
- package/lib/@next/Tag/Tag.stories.d.ts +4 -0
- package/lib/@next/Tag/Tag.stories.js +24 -0
- package/lib/@next/Tag/TagStyle.d.ts +2 -0
- package/lib/@next/Tag/TagStyle.js +15 -0
- package/lib/@next/Tag/index.d.ts +1 -0
- package/lib/@next/Tag/index.js +9 -0
- package/lib/@next/index.d.ts +9 -8
- package/lib/@next/index.js +19 -17
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
2
|
+
var _excluded = ["children"];
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Typography } from '../Typography';
|
|
5
|
+
import { Neutral } from '../utilities/colors';
|
|
6
|
+
import { TagStyle } from './TagStyle';
|
|
7
|
+
export var Tag = function Tag(_ref) {
|
|
8
|
+
var children = _ref.children,
|
|
9
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
|
+
var content = typeof children === 'string' ? /*#__PURE__*/React.createElement(Typography, {
|
|
11
|
+
variant: "caption",
|
|
12
|
+
color: Neutral.B18,
|
|
13
|
+
as: 'span'
|
|
14
|
+
}, children) : children;
|
|
15
|
+
return /*#__PURE__*/React.createElement(TagStyle, props, content);
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseContainer } from '../../Layout/GlintsContainer/GlintsContainer';
|
|
3
|
+
import { Tag } from './Tag';
|
|
4
|
+
Tag.displayName = 'Tag';
|
|
5
|
+
var defaultText = 'Basic Tag';
|
|
6
|
+
export default {
|
|
7
|
+
title: '@next/Tag',
|
|
8
|
+
component: Tag,
|
|
9
|
+
decorators: [function (Story) {
|
|
10
|
+
return /*#__PURE__*/React.createElement(BaseContainer, null, Story());
|
|
11
|
+
}]
|
|
12
|
+
};
|
|
13
|
+
var Template = function Template(args) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(Tag, args, defaultText);
|
|
15
|
+
};
|
|
16
|
+
export var Interactive = Template.bind({});
|
|
17
|
+
Interactive.args = {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Breakpoints } from '..';
|
|
3
|
+
import { borderRadius4 } from '../utilities/borderRadius';
|
|
4
|
+
import { Blue } from '../utilities/colors';
|
|
5
|
+
import { space4, space8 } from '../utilities/spacing';
|
|
6
|
+
export var TagStyle = styled.div.withConfig({
|
|
7
|
+
displayName: "TagStyle",
|
|
8
|
+
componentId: "sc-r1wv7a-0"
|
|
9
|
+
})(["background-color:", ";width:fit-content;padding:", " ", ";border-radius:", ";@media (max-width:", "){font-size:12px;}"], Blue.S08, space4, space8, borderRadius4, Breakpoints.large);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
package/es/@next/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { Badge } from './Badge';
|
|
2
|
-
export { Button, DestructiveButton, OutlineButton, OutlineMonochromeButton, PrimaryButton, } from './Button';
|
|
3
|
-
export { ButtonGroup } from './ButtonGroup';
|
|
4
|
-
export { Icon } from './Icon';
|
|
5
|
-
export { Tab, TabProps, Tabs, TabsProps } from './Tabs';
|
|
6
|
-
export { Typography } from './Typography';
|
|
7
|
-
export { Avatar } from './Avatar';
|
|
8
|
-
export { Popover } from './Popover';
|
|
9
1
|
import * as BorderRadius from './utilities/borderRadius';
|
|
10
2
|
import * as Breakpoints from './utilities/breakpoints';
|
|
11
3
|
import * as Colors from './utilities/colors';
|
|
12
4
|
import * as DropShadow from './utilities/dropShadow';
|
|
13
5
|
import * as Fonts from './utilities/fonts';
|
|
14
6
|
import * as Spacing from './utilities/spacing';
|
|
7
|
+
export { Avatar } from './Avatar';
|
|
8
|
+
export { Badge } from './Badge';
|
|
9
|
+
export { Button, DestructiveButton, OutlineButton, OutlineMonochromeButton, PrimaryButton, } from './Button';
|
|
10
|
+
export { ButtonGroup } from './ButtonGroup';
|
|
11
|
+
export { Icon } from './Icon';
|
|
12
|
+
export { Popover } from './Popover';
|
|
13
|
+
export { Tab, TabProps, Tabs, TabsProps } from './Tabs';
|
|
14
|
+
export { Tag } from './Tag';
|
|
15
|
+
export { Typography } from './Typography';
|
|
15
16
|
export { Breakpoints, BorderRadius, Colors, DropShadow, Fonts, Spacing };
|
package/es/@next/index.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
export { Badge } from './Badge';
|
|
2
|
-
export { Button, DestructiveButton, OutlineButton, OutlineMonochromeButton, PrimaryButton } from './Button';
|
|
3
|
-
export { ButtonGroup } from './ButtonGroup';
|
|
4
|
-
export { Icon } from './Icon';
|
|
5
|
-
export { Tab, TabProps, Tabs, TabsProps } from './Tabs';
|
|
6
|
-
export { Typography } from './Typography';
|
|
7
|
-
export { Avatar } from './Avatar';
|
|
8
|
-
export { Popover } from './Popover';
|
|
9
|
-
|
|
10
1
|
// Utilities
|
|
11
2
|
import * as BorderRadius from './utilities/borderRadius';
|
|
12
3
|
import * as Breakpoints from './utilities/breakpoints';
|
|
@@ -14,4 +5,13 @@ import * as Colors from './utilities/colors';
|
|
|
14
5
|
import * as DropShadow from './utilities/dropShadow';
|
|
15
6
|
import * as Fonts from './utilities/fonts';
|
|
16
7
|
import * as Spacing from './utilities/spacing';
|
|
8
|
+
export { Avatar } from './Avatar';
|
|
9
|
+
export { Badge } from './Badge';
|
|
10
|
+
export { Button, DestructiveButton, OutlineButton, OutlineMonochromeButton, PrimaryButton } from './Button';
|
|
11
|
+
export { ButtonGroup } from './ButtonGroup';
|
|
12
|
+
export { Icon } from './Icon';
|
|
13
|
+
export { Popover } from './Popover';
|
|
14
|
+
export { Tab, TabProps, Tabs, TabsProps } from './Tabs';
|
|
15
|
+
export { Tag } from './Tag';
|
|
16
|
+
export { Typography } from './Typography';
|
|
17
17
|
export { Breakpoints, BorderRadius, Colors, DropShadow, Fonts, Spacing };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.Tag = void 0;
|
|
6
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Typography = require("../Typography");
|
|
9
|
+
var _colors = require("../utilities/colors");
|
|
10
|
+
var _TagStyle = require("./TagStyle");
|
|
11
|
+
var _excluded = ["children"];
|
|
12
|
+
var Tag = function Tag(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
15
|
+
var content = typeof children === 'string' ? /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
16
|
+
variant: "caption",
|
|
17
|
+
color: _colors.Neutral.B18,
|
|
18
|
+
as: 'span'
|
|
19
|
+
}, children) : children;
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement(_TagStyle.TagStyle, props, content);
|
|
21
|
+
};
|
|
22
|
+
exports.Tag = Tag;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = exports.Interactive = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _GlintsContainer = require("../../Layout/GlintsContainer/GlintsContainer");
|
|
8
|
+
var _Tag = require("./Tag");
|
|
9
|
+
_Tag.Tag.displayName = 'Tag';
|
|
10
|
+
var defaultText = 'Basic Tag';
|
|
11
|
+
var _default = {
|
|
12
|
+
title: '@next/Tag',
|
|
13
|
+
component: _Tag.Tag,
|
|
14
|
+
decorators: [function (Story) {
|
|
15
|
+
return /*#__PURE__*/_react["default"].createElement(_GlintsContainer.BaseContainer, null, Story());
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
exports["default"] = _default;
|
|
19
|
+
var Template = function Template(args) {
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement(_Tag.Tag, args, defaultText);
|
|
21
|
+
};
|
|
22
|
+
var Interactive = Template.bind({});
|
|
23
|
+
exports.Interactive = Interactive;
|
|
24
|
+
Interactive.args = {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.TagStyle = void 0;
|
|
6
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
+
var _ = require("..");
|
|
8
|
+
var _borderRadius = require("../utilities/borderRadius");
|
|
9
|
+
var _colors = require("../utilities/colors");
|
|
10
|
+
var _spacing = require("../utilities/spacing");
|
|
11
|
+
var TagStyle = _styledComponents["default"].div.withConfig({
|
|
12
|
+
displayName: "TagStyle",
|
|
13
|
+
componentId: "sc-r1wv7a-0"
|
|
14
|
+
})(["background-color:", ";width:fit-content;padding:", " ", ";border-radius:", ";@media (max-width:", "){font-size:12px;}"], _colors.Blue.S08, _spacing.space4, _spacing.space8, _borderRadius.borderRadius4, _.Breakpoints.large);
|
|
15
|
+
exports.TagStyle = TagStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tag';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _Tag = require("./Tag");
|
|
5
|
+
Object.keys(_Tag).forEach(function (key) {
|
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
|
7
|
+
if (key in exports && exports[key] === _Tag[key]) return;
|
|
8
|
+
exports[key] = _Tag[key];
|
|
9
|
+
});
|
package/lib/@next/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { Badge } from './Badge';
|
|
2
|
-
export { Button, DestructiveButton, OutlineButton, OutlineMonochromeButton, PrimaryButton, } from './Button';
|
|
3
|
-
export { ButtonGroup } from './ButtonGroup';
|
|
4
|
-
export { Icon } from './Icon';
|
|
5
|
-
export { Tab, TabProps, Tabs, TabsProps } from './Tabs';
|
|
6
|
-
export { Typography } from './Typography';
|
|
7
|
-
export { Avatar } from './Avatar';
|
|
8
|
-
export { Popover } from './Popover';
|
|
9
1
|
import * as BorderRadius from './utilities/borderRadius';
|
|
10
2
|
import * as Breakpoints from './utilities/breakpoints';
|
|
11
3
|
import * as Colors from './utilities/colors';
|
|
12
4
|
import * as DropShadow from './utilities/dropShadow';
|
|
13
5
|
import * as Fonts from './utilities/fonts';
|
|
14
6
|
import * as Spacing from './utilities/spacing';
|
|
7
|
+
export { Avatar } from './Avatar';
|
|
8
|
+
export { Badge } from './Badge';
|
|
9
|
+
export { Button, DestructiveButton, OutlineButton, OutlineMonochromeButton, PrimaryButton, } from './Button';
|
|
10
|
+
export { ButtonGroup } from './ButtonGroup';
|
|
11
|
+
export { Icon } from './Icon';
|
|
12
|
+
export { Popover } from './Popover';
|
|
13
|
+
export { Tab, TabProps, Tabs, TabsProps } from './Tabs';
|
|
14
|
+
export { Tag } from './Tag';
|
|
15
|
+
export { Typography } from './Typography';
|
|
15
16
|
export { Breakpoints, BorderRadius, Colors, DropShadow, Fonts, Spacing };
|
package/lib/@next/index.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.Typography = exports.TabsProps = exports.Tabs = exports.TabProps = exports.Tab = exports.Spacing = exports.PrimaryButton = exports.Popover = exports.OutlineMonochromeButton = exports.OutlineButton = exports.Icon = exports.Fonts = exports.DropShadow = exports.DestructiveButton = exports.Colors = exports.ButtonGroup = exports.Button = exports.Breakpoints = exports.BorderRadius = exports.Badge = exports.Avatar = void 0;
|
|
4
|
+
exports.Typography = exports.Tag = exports.TabsProps = exports.Tabs = exports.TabProps = exports.Tab = exports.Spacing = exports.PrimaryButton = exports.Popover = exports.OutlineMonochromeButton = exports.OutlineButton = exports.Icon = exports.Fonts = exports.DropShadow = exports.DestructiveButton = exports.Colors = exports.ButtonGroup = exports.Button = exports.Breakpoints = exports.BorderRadius = exports.Badge = exports.Avatar = void 0;
|
|
5
|
+
var BorderRadius = _interopRequireWildcard(require("./utilities/borderRadius"));
|
|
6
|
+
exports.BorderRadius = BorderRadius;
|
|
7
|
+
var Breakpoints = _interopRequireWildcard(require("./utilities/breakpoints"));
|
|
8
|
+
exports.Breakpoints = Breakpoints;
|
|
9
|
+
var Colors = _interopRequireWildcard(require("./utilities/colors"));
|
|
10
|
+
exports.Colors = Colors;
|
|
11
|
+
var DropShadow = _interopRequireWildcard(require("./utilities/dropShadow"));
|
|
12
|
+
exports.DropShadow = DropShadow;
|
|
13
|
+
var Fonts = _interopRequireWildcard(require("./utilities/fonts"));
|
|
14
|
+
exports.Fonts = Fonts;
|
|
15
|
+
var Spacing = _interopRequireWildcard(require("./utilities/spacing"));
|
|
16
|
+
exports.Spacing = Spacing;
|
|
17
|
+
var _Avatar = require("./Avatar");
|
|
18
|
+
exports.Avatar = _Avatar.Avatar;
|
|
5
19
|
var _Badge = require("./Badge");
|
|
6
20
|
exports.Badge = _Badge.Badge;
|
|
7
21
|
var _Button = require("./Button");
|
|
@@ -14,28 +28,16 @@ var _ButtonGroup = require("./ButtonGroup");
|
|
|
14
28
|
exports.ButtonGroup = _ButtonGroup.ButtonGroup;
|
|
15
29
|
var _Icon = require("./Icon");
|
|
16
30
|
exports.Icon = _Icon.Icon;
|
|
31
|
+
var _Popover = require("./Popover");
|
|
32
|
+
exports.Popover = _Popover.Popover;
|
|
17
33
|
var _Tabs = require("./Tabs");
|
|
18
34
|
exports.Tab = _Tabs.Tab;
|
|
19
35
|
exports.TabProps = _Tabs.TabProps;
|
|
20
36
|
exports.Tabs = _Tabs.Tabs;
|
|
21
37
|
exports.TabsProps = _Tabs.TabsProps;
|
|
38
|
+
var _Tag = require("./Tag");
|
|
39
|
+
exports.Tag = _Tag.Tag;
|
|
22
40
|
var _Typography = require("./Typography");
|
|
23
41
|
exports.Typography = _Typography.Typography;
|
|
24
|
-
var _Avatar = require("./Avatar");
|
|
25
|
-
exports.Avatar = _Avatar.Avatar;
|
|
26
|
-
var _Popover = require("./Popover");
|
|
27
|
-
exports.Popover = _Popover.Popover;
|
|
28
|
-
var BorderRadius = _interopRequireWildcard(require("./utilities/borderRadius"));
|
|
29
|
-
exports.BorderRadius = BorderRadius;
|
|
30
|
-
var Breakpoints = _interopRequireWildcard(require("./utilities/breakpoints"));
|
|
31
|
-
exports.Breakpoints = Breakpoints;
|
|
32
|
-
var Colors = _interopRequireWildcard(require("./utilities/colors"));
|
|
33
|
-
exports.Colors = Colors;
|
|
34
|
-
var DropShadow = _interopRequireWildcard(require("./utilities/dropShadow"));
|
|
35
|
-
exports.DropShadow = DropShadow;
|
|
36
|
-
var Fonts = _interopRequireWildcard(require("./utilities/fonts"));
|
|
37
|
-
exports.Fonts = Fonts;
|
|
38
|
-
var Spacing = _interopRequireWildcard(require("./utilities/spacing"));
|
|
39
|
-
exports.Spacing = Spacing;
|
|
40
42
|
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); }
|
|
41
43
|
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; }
|