glints-aries 4.0.202 → 4.0.204
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/Card/Card.d.ts +2 -2
- package/es/@next/Card/Card.js +1 -1
- package/es/@next/Card/Card.stories.d.ts +1 -0
- package/es/@next/Card/CardStyle.d.ts +1 -0
- package/es/@next/Card/CardStyle.js +6 -2
- package/es/@next/InlineError/InlineError.d.ts +5 -0
- package/es/@next/InlineError/InlineError.js +19 -0
- package/es/@next/InlineError/InlineError.stories.d.ts +5 -0
- package/es/@next/InlineError/InlineErrorStyle.d.ts +3 -0
- package/es/@next/InlineError/InlineErrorStyle.js +12 -0
- package/es/@next/InlineError/index.d.ts +1 -0
- package/es/@next/InlineError/index.js +1 -0
- package/es/@next/Link/LinkStyle.js +1 -1
- package/es/@next/Spinner/Spinner.d.ts +6 -2
- package/es/@next/Spinner/Spinner.js +17 -8
- package/es/@next/Spinner/Spinner.stories.d.ts +5 -0
- package/es/@next/Spinner/SpinnerStyle.d.ts +3 -0
- package/es/@next/Spinner/SpinnerStyle.js +11 -0
- package/es/@next/Switch/Switch.d.ts +1 -0
- package/es/@next/Switch/Switch.js +18 -4
- package/es/@next/Switch/Switch.stories.d.ts +2 -1
- package/es/@next/Switch/SwitchStyle.js +2 -2
- package/es/@next/index.d.ts +1 -0
- package/es/@next/index.js +2 -1
- package/lib/@next/Card/Card.d.ts +2 -2
- package/lib/@next/Card/Card.js +1 -1
- package/lib/@next/Card/Card.stories.d.ts +1 -0
- package/lib/@next/Card/CardStyle.d.ts +1 -0
- package/lib/@next/Card/CardStyle.js +8 -3
- package/lib/@next/InlineError/InlineError.d.ts +5 -0
- package/lib/@next/InlineError/InlineError.js +25 -0
- package/lib/@next/InlineError/InlineError.stories.d.ts +5 -0
- package/lib/@next/InlineError/InlineErrorStyle.d.ts +3 -0
- package/lib/@next/InlineError/InlineErrorStyle.js +19 -0
- package/lib/@next/InlineError/index.d.ts +1 -0
- package/lib/@next/InlineError/index.js +9 -0
- package/lib/@next/Link/LinkStyle.js +1 -1
- package/lib/@next/Spinner/Spinner.d.ts +6 -2
- package/lib/@next/Spinner/Spinner.js +18 -9
- package/lib/@next/Spinner/Spinner.stories.d.ts +5 -0
- package/lib/@next/Spinner/SpinnerStyle.d.ts +3 -0
- package/lib/@next/Spinner/SpinnerStyle.js +18 -0
- package/lib/@next/Switch/Switch.d.ts +1 -0
- package/lib/@next/Switch/Switch.js +18 -4
- package/lib/@next/Switch/Switch.stories.d.ts +2 -1
- package/lib/@next/Switch/SwitchStyle.js +2 -2
- package/lib/@next/index.d.ts +1 -0
- package/lib/@next/index.js +4 -1
- package/package.json +3 -2
package/es/@next/Card/Card.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentAction } from '../../types/componentAction';
|
|
3
3
|
export declare type CardProps = {
|
|
4
|
-
heading?:
|
|
5
|
-
subheading?:
|
|
4
|
+
heading?: React.ReactNode;
|
|
5
|
+
subheading?: React.ReactNode;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
primaryAction?: ComponentAction;
|
|
8
8
|
secondaryAction?: ComponentAction;
|
package/es/@next/Card/Card.js
CHANGED
|
@@ -14,7 +14,7 @@ var CardComponent = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
|
|
|
14
14
|
children = _ref.children;
|
|
15
15
|
var headingMarkup = /*#__PURE__*/React.createElement(Typography, {
|
|
16
16
|
as: "div",
|
|
17
|
-
variant: "
|
|
17
|
+
variant: "subtitle1"
|
|
18
18
|
}, heading);
|
|
19
19
|
var subHeadingMarkup = /*#__PURE__*/React.createElement(Typography, {
|
|
20
20
|
as: "div",
|
|
@@ -5,3 +5,4 @@ export declare const StyledCardHeaderSectionHalf: import("styled-components").St
|
|
|
5
5
|
export declare const StyledCardContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const StyledCardSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
export declare const StyledCardActionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const StyledCustomHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -6,7 +6,7 @@ import { space12, space16, space24, space4 } from '../utilities/spacing';
|
|
|
6
6
|
export var StyledCardContainer = styled.div.withConfig({
|
|
7
7
|
displayName: "CardStyle__StyledCardContainer",
|
|
8
8
|
componentId: "sc-tpku8j-0"
|
|
9
|
-
})(["border-radius:", ";box-shadow:0px 0px 5px rgba(
|
|
9
|
+
})(["border-radius:", ";box-shadow:0px 0px 5px 0px rgba(71,71,71,0.1),0px 1px 2px 0px rgba(71,71,71,0.2);color:", ";"], borderRadius8, Neutral.B18);
|
|
10
10
|
export var StyledCardHeaderWrapper = styled.div.withConfig({
|
|
11
11
|
displayName: "CardStyle__StyledCardHeaderWrapper",
|
|
12
12
|
componentId: "sc-tpku8j-1"
|
|
@@ -30,4 +30,8 @@ export var StyledCardSection = styled.div.withConfig({
|
|
|
30
30
|
export var StyledCardActionWrapper = styled.div.withConfig({
|
|
31
31
|
displayName: "CardStyle__StyledCardActionWrapper",
|
|
32
32
|
componentId: "sc-tpku8j-6"
|
|
33
|
-
})(["display:flex;padding:20px ", " ", ";flex-direction:column-reverse;align-items:flex-end;border-top:solid 1px ", ";&[data-align='left']{flex-direction:column;align-items:flex-start;}@media (max-width:", "){padding:10px ", " ", ";}"], space24, space24, Neutral.B85, Breakpoints.large, space16, space12);
|
|
33
|
+
})(["display:flex;padding:20px ", " ", ";flex-direction:column-reverse;align-items:flex-end;border-top:solid 1px ", ";&[data-align='left']{flex-direction:column;align-items:flex-start;}@media (max-width:", "){padding:10px ", " ", ";}"], space24, space24, Neutral.B85, Breakpoints.large, space16, space12);
|
|
34
|
+
export var StyledCustomHeader = styled.div.withConfig({
|
|
35
|
+
displayName: "CardStyle__StyledCustomHeader",
|
|
36
|
+
componentId: "sc-tpku8j-7"
|
|
37
|
+
})(["& > *{margin:0;}"]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
2
|
+
var _excluded = ["text"];
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyledText, StyledWrapper } from './InlineErrorStyle';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { Red } from '../utilities/colors';
|
|
7
|
+
export var InlineError = function InlineError(_ref) {
|
|
8
|
+
var text = _ref.text,
|
|
9
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
|
+
var error = !!text;
|
|
11
|
+
return error ? /*#__PURE__*/React.createElement(StyledWrapper, props, /*#__PURE__*/React.createElement(Icon, {
|
|
12
|
+
name: "ri-error-warning-fill",
|
|
13
|
+
fill: Red.B93,
|
|
14
|
+
width: 20,
|
|
15
|
+
height: 20
|
|
16
|
+
}), /*#__PURE__*/React.createElement(StyledText, {
|
|
17
|
+
variant: "subtitle2"
|
|
18
|
+
}, text)) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
19
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledText: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../Typography").TypographyProps) => JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { space4 } from '../utilities/spacing';
|
|
3
|
+
import { Typography } from '../Typography';
|
|
4
|
+
import { Red } from '../utilities/colors';
|
|
5
|
+
export var StyledWrapper = styled.div.withConfig({
|
|
6
|
+
displayName: "InlineErrorStyle__StyledWrapper",
|
|
7
|
+
componentId: "sc-gvg32i-0"
|
|
8
|
+
})(["display:flex;align-items:center;gap:", ";"], space4);
|
|
9
|
+
export var StyledText = styled(Typography).withConfig({
|
|
10
|
+
displayName: "InlineErrorStyle__StyledText",
|
|
11
|
+
componentId: "sc-gvg32i-1"
|
|
12
|
+
})(["margin:0;color:", ";"], Red.B93);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InlineError';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InlineError';
|
|
@@ -4,4 +4,4 @@ import { space2 } from '../utilities/spacing';
|
|
|
4
4
|
export var StyledLink = styled.a.withConfig({
|
|
5
5
|
displayName: "LinkStyle__StyledLink",
|
|
6
6
|
componentId: "sc-usx229-0"
|
|
7
|
-
})(["display:flex;align-items:center;color:", ";&[data-underline='false']{text-decoration:none;}&[data-monochrome='true']{color:", ";&:hover,&:active{color:", ";}}&:hover{color:rgba(0,86,140,0.9);svg{fill:rgba(0,86,140,0.9);}}&:active{color:", ";svg{fill:", ";}}svg{fill:", ";margin-left:", ";padding-bottom:", ";height:18px;}"], Blue.S99, Neutral.B18, Neutral.B00, Blue.S100, Blue.S100, Blue.S99, space2, space2);
|
|
7
|
+
})(["display:flex;align-items:center;color:", ";&[data-underline='false']{text-decoration:none;}&[data-monochrome='true']{color:", ";&:hover,&:active{color:", ";svg{fill:", ";}}svg{fill:", ";}}&:hover{color:rgba(0,86,140,0.9);svg{fill:rgba(0,86,140,0.9);}}&:active{color:", ";svg{fill:", ";}}svg{fill:", ";margin-left:", ";padding-bottom:", ";height:18px;}"], Blue.S99, Neutral.B18, Neutral.B00, Neutral.B00, Neutral.B18, Blue.S100, Blue.S100, Blue.S99, space2, space2);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
|
-
export declare type
|
|
4
|
-
export declare
|
|
3
|
+
export declare type Size = 'small' | 'large';
|
|
4
|
+
export declare type SpinnerProps = Omit<IconProps, 'name'> & {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: Size;
|
|
7
|
+
};
|
|
8
|
+
export declare const Spinner: ({ label, size, ...props }: SpinnerProps) => JSX.Element;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["label", "size"];
|
|
4
|
+
var _iconSizeMapping, _labelVariantMapping;
|
|
2
5
|
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
6
|
import { Icon } from '../Icon';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { Label, StyledWrapper } from './SpinnerStyle';
|
|
8
|
+
var iconSizeMapping = (_iconSizeMapping = {}, _iconSizeMapping['small'] = '18px', _iconSizeMapping['large'] = '48px', _iconSizeMapping);
|
|
9
|
+
var labelVariantMapping = (_labelVariantMapping = {}, _labelVariantMapping['small'] = 'body1', _labelVariantMapping['large'] = 'subtitle1', _labelVariantMapping);
|
|
10
|
+
export var Spinner = function Spinner(_ref) {
|
|
11
|
+
var label = _ref.label,
|
|
12
|
+
size = _ref.size,
|
|
13
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
14
|
return /*#__PURE__*/React.createElement(StyledWrapper, {
|
|
11
15
|
className: "spinner-container"
|
|
12
16
|
}, /*#__PURE__*/React.createElement(Icon, _extends({
|
|
13
|
-
name: "ri-loader"
|
|
14
|
-
|
|
17
|
+
name: "ri-loader",
|
|
18
|
+
height: iconSizeMapping[size],
|
|
19
|
+
width: iconSizeMapping[size]
|
|
20
|
+
}, props)), label && /*#__PURE__*/React.createElement(Label, {
|
|
21
|
+
variant: labelVariantMapping[size],
|
|
22
|
+
"data-size": size
|
|
23
|
+
}, label));
|
|
15
24
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Label: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../Typography").TypographyProps) => JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Typography } from '../Typography';
|
|
3
|
+
import { space16, space4 } from '../utilities/spacing';
|
|
4
|
+
export var StyledWrapper = styled.div.withConfig({
|
|
5
|
+
displayName: "SpinnerStyle__StyledWrapper",
|
|
6
|
+
componentId: "sc-1rqoa36-0"
|
|
7
|
+
})(["display:flex;flex-direction:column;justify-content:center;align-items:center;@keyframes p-keyframes-spin{to{transform:rotate(1turn);}}svg{animation:p-keyframes-spin 800ms linear infinite;}"]);
|
|
8
|
+
export var Label = styled(Typography).withConfig({
|
|
9
|
+
displayName: "SpinnerStyle__Label",
|
|
10
|
+
componentId: "sc-1rqoa36-1"
|
|
11
|
+
})(["margin-bottom:0;&[data-size='large']{margin-top:", ";}&[data-size='small']{margin-top:", ";}"], space16, space4);
|
|
@@ -4,5 +4,6 @@ export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
onChange: () => void;
|
|
6
6
|
value: string;
|
|
7
|
+
withIcon?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["checked", "disabled", "onChange", "value"];
|
|
3
|
+
var _excluded = ["checked", "disabled", "onChange", "value", "withIcon"];
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
import { Neutral } from '../utilities/colors';
|
|
5
7
|
import { InputStyle, LabelStyle, SwitchStyle } from './SwitchStyle';
|
|
6
8
|
export var Switch = /*#__PURE__*/React.forwardRef(function Switch(_ref, ref) {
|
|
7
9
|
var checked = _ref.checked,
|
|
8
10
|
disabled = _ref.disabled,
|
|
9
11
|
onChange = _ref.onChange,
|
|
10
12
|
value = _ref.value,
|
|
13
|
+
withIcon = _ref.withIcon,
|
|
11
14
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
|
+
var IconRender = function IconRender() {
|
|
16
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
|
|
17
|
+
name: "ri-check",
|
|
18
|
+
fill: disabled ? Neutral.B85 : Neutral.B100
|
|
19
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
20
|
+
name: "ri-close",
|
|
21
|
+
fill: disabled ? Neutral.B85 : Neutral.B100
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
12
24
|
return /*#__PURE__*/React.createElement(LabelStyle, null, /*#__PURE__*/React.createElement(InputStyle, _extends({
|
|
13
25
|
value: value
|
|
14
26
|
}, otherProps, {
|
|
@@ -16,8 +28,10 @@ export var Switch = /*#__PURE__*/React.forwardRef(function Switch(_ref, ref) {
|
|
|
16
28
|
defaultChecked: checked,
|
|
17
29
|
type: "checkbox",
|
|
18
30
|
onChange: onChange,
|
|
19
|
-
ref: ref
|
|
31
|
+
ref: ref,
|
|
32
|
+
"data-with-icon": withIcon
|
|
20
33
|
})), /*#__PURE__*/React.createElement(SwitchStyle, {
|
|
21
|
-
"data-disabled": disabled
|
|
22
|
-
|
|
34
|
+
"data-disabled": disabled,
|
|
35
|
+
"data-with-icon": withIcon
|
|
36
|
+
}, withIcon && /*#__PURE__*/React.createElement(IconRender, null)));
|
|
23
37
|
});
|
|
@@ -4,11 +4,11 @@ import { Blue, Neutral } from '../utilities/colors';
|
|
|
4
4
|
export var SwitchStyle = styled.div.withConfig({
|
|
5
5
|
displayName: "SwitchStyle",
|
|
6
6
|
componentId: "sc-7dlucf-0"
|
|
7
|
-
})(["position:relative;width:", ";height:", ";background-color:", ";&[data-disabled='true']{background-color:", ";}border-radius:", ";padding:0;transition:300ms all;@media (max-width:", "){width:38px;height:22px;}&:before{transition:100ms all;content:'';position:absolute;width:16px;height:16px;border-radius:16px;top:50%;left:4px;background:", ";transform:translate(0,-50%);@media (max-width:", "){width:14px;height:14px;}}"], Spacing.space40, Spacing.space24, Neutral.B40, Neutral.B95, Spacing.space24, Breakpoints.large, Neutral.B100, Breakpoints.large);
|
|
7
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;width:", ";&[data-with-icon]{width:48px;}&[data-with-icon] svg{height:16px;}height:", ";background-color:", ";&[data-disabled='true']{background-color:", ";cursor:not-allowed;}border-radius:", ";padding:0;padding-left:8px;padding-right:8px;transition:300ms all;@media (max-width:", "){width:38px;&[data-with-icon]{width:44px;}&[data-with-icon] svg{height:14px;}height:22px;}&:before{transition:100ms all;content:'';position:absolute;width:16px;height:16px;border-radius:16px;top:50%;left:4px;background:", ";box-shadow:0px 1px 3px rgba(0,0,0,0.1);transform:translate(0,-50%);@media (max-width:", "){width:14px;height:14px;}}"], Spacing.space40, Spacing.space24, Neutral.B40, Neutral.B95, Spacing.space24, Breakpoints.large, Neutral.B100, Breakpoints.large);
|
|
8
8
|
export var InputStyle = styled.input.withConfig({
|
|
9
9
|
displayName: "SwitchStyle__InputStyle",
|
|
10
10
|
componentId: "sc-7dlucf-1"
|
|
11
|
-
})(["opacity:0;position:absolute;&:checked + ", "{background-color:", ";&[data-disabled='true']{background-color:", ";}&:before{transform:translate(16px,-50%);}}"], SwitchStyle, Blue.S99, Neutral.B95);
|
|
11
|
+
})(["opacity:0;position:absolute;&:checked + ", "{background-color:", ";&[data-disabled='true']{background-color:", ";}&:before{transform:translate(16px,-50%);}&[data-with-icon]{&:before{transform:translate(24px,-50%);}}}& + ", " svg:nth-child(1){visibility:hidden;}& + ", " svg:nth-child(2){visibility:visible;}&:checked + ", " svg:nth-child(1){visibility:visible;}&:checked + ", " svg:nth-child(2){visibility:hidden;}"], SwitchStyle, Blue.S99, Neutral.B95, SwitchStyle, SwitchStyle, SwitchStyle, SwitchStyle);
|
|
12
12
|
export var LabelStyle = styled.label.withConfig({
|
|
13
13
|
displayName: "SwitchStyle__LabelStyle",
|
|
14
14
|
componentId: "sc-7dlucf-2"
|
package/es/@next/index.d.ts
CHANGED
|
@@ -32,3 +32,4 @@ export { Tooltip, TooltipPosition, TooltipProps } from './Tooltip';
|
|
|
32
32
|
export { Typography, TypographyProps } from './Typography';
|
|
33
33
|
export { Breakpoints, BorderRadius, Colors, DropShadow, Fonts, Spacing };
|
|
34
34
|
export { Switch } from './Switch';
|
|
35
|
+
export { InlineError, InlineErrorProps } from './InlineError';
|
package/es/@next/index.js
CHANGED
|
@@ -32,4 +32,5 @@ export { TextInput, TextInputProps } from './TextInput';
|
|
|
32
32
|
export { Tooltip, TooltipPosition, TooltipProps } from './Tooltip';
|
|
33
33
|
export { Typography, TypographyProps } from './Typography';
|
|
34
34
|
export { Breakpoints, BorderRadius, Colors, DropShadow, Fonts, Spacing };
|
|
35
|
-
export { Switch } from './Switch';
|
|
35
|
+
export { Switch } from './Switch';
|
|
36
|
+
export { InlineError, InlineErrorProps } from './InlineError';
|
package/lib/@next/Card/Card.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentAction } from '../../types/componentAction';
|
|
3
3
|
export declare type CardProps = {
|
|
4
|
-
heading?:
|
|
5
|
-
subheading?:
|
|
4
|
+
heading?: React.ReactNode;
|
|
5
|
+
subheading?: React.ReactNode;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
primaryAction?: ComponentAction;
|
|
8
8
|
secondaryAction?: ComponentAction;
|
package/lib/@next/Card/Card.js
CHANGED
|
@@ -19,7 +19,7 @@ var CardComponent = /*#__PURE__*/_react["default"].forwardRef(function Card(_ref
|
|
|
19
19
|
children = _ref.children;
|
|
20
20
|
var headingMarkup = /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
21
21
|
as: "div",
|
|
22
|
-
variant: "
|
|
22
|
+
variant: "subtitle1"
|
|
23
23
|
}, heading);
|
|
24
24
|
var subHeadingMarkup = /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
25
25
|
as: "div",
|
|
@@ -5,3 +5,4 @@ export declare const StyledCardHeaderSectionHalf: import("styled-components").St
|
|
|
5
5
|
export declare const StyledCardContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const StyledCardSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
export declare const StyledCardActionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const StyledCustomHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
exports.__esModule = true;
|
|
5
|
-
exports.StyledCardSection = exports.StyledCardHeaderWrapper = exports.StyledCardHeaderSectionHalf = exports.StyledCardHeaderSection = exports.StyledCardContentWrapper = exports.StyledCardContainer = exports.StyledCardActionWrapper = void 0;
|
|
5
|
+
exports.StyledCustomHeader = exports.StyledCardSection = exports.StyledCardHeaderWrapper = exports.StyledCardHeaderSectionHalf = exports.StyledCardHeaderSection = exports.StyledCardContentWrapper = exports.StyledCardContainer = exports.StyledCardActionWrapper = void 0;
|
|
6
6
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
7
|
var Breakpoints = _interopRequireWildcard(require("../utilities/breakpoints"));
|
|
8
8
|
var _borderRadius = require("../utilities/borderRadius");
|
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
var StyledCardContainer = _styledComponents["default"].div.withConfig({
|
|
14
14
|
displayName: "CardStyle__StyledCardContainer",
|
|
15
15
|
componentId: "sc-tpku8j-0"
|
|
16
|
-
})(["border-radius:", ";box-shadow:0px 0px 5px rgba(
|
|
16
|
+
})(["border-radius:", ";box-shadow:0px 0px 5px 0px rgba(71,71,71,0.1),0px 1px 2px 0px rgba(71,71,71,0.2);color:", ";"], _borderRadius.borderRadius8, _colors.Neutral.B18);
|
|
17
17
|
exports.StyledCardContainer = StyledCardContainer;
|
|
18
18
|
var StyledCardHeaderWrapper = _styledComponents["default"].div.withConfig({
|
|
19
19
|
displayName: "CardStyle__StyledCardHeaderWrapper",
|
|
@@ -44,4 +44,9 @@ var StyledCardActionWrapper = _styledComponents["default"].div.withConfig({
|
|
|
44
44
|
displayName: "CardStyle__StyledCardActionWrapper",
|
|
45
45
|
componentId: "sc-tpku8j-6"
|
|
46
46
|
})(["display:flex;padding:20px ", " ", ";flex-direction:column-reverse;align-items:flex-end;border-top:solid 1px ", ";&[data-align='left']{flex-direction:column;align-items:flex-start;}@media (max-width:", "){padding:10px ", " ", ";}"], _spacing.space24, _spacing.space24, _colors.Neutral.B85, Breakpoints.large, _spacing.space16, _spacing.space12);
|
|
47
|
-
exports.StyledCardActionWrapper = StyledCardActionWrapper;
|
|
47
|
+
exports.StyledCardActionWrapper = StyledCardActionWrapper;
|
|
48
|
+
var StyledCustomHeader = _styledComponents["default"].div.withConfig({
|
|
49
|
+
displayName: "CardStyle__StyledCustomHeader",
|
|
50
|
+
componentId: "sc-tpku8j-7"
|
|
51
|
+
})(["& > *{margin:0;}"]);
|
|
52
|
+
exports.StyledCustomHeader = StyledCustomHeader;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.InlineError = void 0;
|
|
6
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _InlineErrorStyle = require("./InlineErrorStyle");
|
|
9
|
+
var _Icon = require("../Icon");
|
|
10
|
+
var _colors = require("../utilities/colors");
|
|
11
|
+
var _excluded = ["text"];
|
|
12
|
+
var InlineError = function InlineError(_ref) {
|
|
13
|
+
var text = _ref.text,
|
|
14
|
+
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
15
|
+
var error = !!text;
|
|
16
|
+
return error ? /*#__PURE__*/_react["default"].createElement(_InlineErrorStyle.StyledWrapper, props, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
17
|
+
name: "ri-error-warning-fill",
|
|
18
|
+
fill: _colors.Red.B93,
|
|
19
|
+
width: 20,
|
|
20
|
+
height: 20
|
|
21
|
+
}), /*#__PURE__*/_react["default"].createElement(_InlineErrorStyle.StyledText, {
|
|
22
|
+
variant: "subtitle2"
|
|
23
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
|
|
24
|
+
};
|
|
25
|
+
exports.InlineError = InlineError;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledText: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../Typography").TypographyProps) => JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.StyledWrapper = exports.StyledText = void 0;
|
|
6
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
+
var _spacing = require("../utilities/spacing");
|
|
8
|
+
var _Typography = require("../Typography");
|
|
9
|
+
var _colors = require("../utilities/colors");
|
|
10
|
+
var StyledWrapper = _styledComponents["default"].div.withConfig({
|
|
11
|
+
displayName: "InlineErrorStyle__StyledWrapper",
|
|
12
|
+
componentId: "sc-gvg32i-0"
|
|
13
|
+
})(["display:flex;align-items:center;gap:", ";"], _spacing.space4);
|
|
14
|
+
exports.StyledWrapper = StyledWrapper;
|
|
15
|
+
var StyledText = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
|
|
16
|
+
displayName: "InlineErrorStyle__StyledText",
|
|
17
|
+
componentId: "sc-gvg32i-1"
|
|
18
|
+
})(["margin:0;color:", ";"], _colors.Red.B93);
|
|
19
|
+
exports.StyledText = StyledText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InlineError';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _InlineError = require("./InlineError");
|
|
5
|
+
Object.keys(_InlineError).forEach(function (key) {
|
|
6
|
+
if (key === "default" || key === "__esModule") return;
|
|
7
|
+
if (key in exports && exports[key] === _InlineError[key]) return;
|
|
8
|
+
exports[key] = _InlineError[key];
|
|
9
|
+
});
|
|
@@ -9,5 +9,5 @@ var _spacing = require("../utilities/spacing");
|
|
|
9
9
|
var StyledLink = _styledComponents["default"].a.withConfig({
|
|
10
10
|
displayName: "LinkStyle__StyledLink",
|
|
11
11
|
componentId: "sc-usx229-0"
|
|
12
|
-
})(["display:flex;align-items:center;color:", ";&[data-underline='false']{text-decoration:none;}&[data-monochrome='true']{color:", ";&:hover,&:active{color:", ";}}&:hover{color:rgba(0,86,140,0.9);svg{fill:rgba(0,86,140,0.9);}}&:active{color:", ";svg{fill:", ";}}svg{fill:", ";margin-left:", ";padding-bottom:", ";height:18px;}"], _colors.Blue.S99, _colors.Neutral.B18, _colors.Neutral.B00, _colors.Blue.S100, _colors.Blue.S100, _colors.Blue.S99, _spacing.space2, _spacing.space2);
|
|
12
|
+
})(["display:flex;align-items:center;color:", ";&[data-underline='false']{text-decoration:none;}&[data-monochrome='true']{color:", ";&:hover,&:active{color:", ";svg{fill:", ";}}svg{fill:", ";}}&:hover{color:rgba(0,86,140,0.9);svg{fill:rgba(0,86,140,0.9);}}&:active{color:", ";svg{fill:", ";}}svg{fill:", ";margin-left:", ";padding-bottom:", ";height:18px;}"], _colors.Blue.S99, _colors.Neutral.B18, _colors.Neutral.B00, _colors.Neutral.B00, _colors.Neutral.B18, _colors.Blue.S100, _colors.Blue.S100, _colors.Blue.S99, _spacing.space2, _spacing.space2);
|
|
13
13
|
exports.StyledLink = StyledLink;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
|
-
export declare type
|
|
4
|
-
export declare
|
|
3
|
+
export declare type Size = 'small' | 'large';
|
|
4
|
+
export declare type SpinnerProps = Omit<IconProps, 'name'> & {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: Size;
|
|
7
|
+
};
|
|
8
|
+
export declare const Spinner: ({ label, size, ...props }: SpinnerProps) => JSX.Element;
|
|
@@ -4,18 +4,27 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.Spinner = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _Icon = require("../Icon");
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
10
|
+
var _SpinnerStyle = require("./SpinnerStyle");
|
|
11
|
+
var _excluded = ["label", "size"];
|
|
12
|
+
var _iconSizeMapping, _labelVariantMapping;
|
|
13
|
+
var iconSizeMapping = (_iconSizeMapping = {}, _iconSizeMapping['small'] = '18px', _iconSizeMapping['large'] = '48px', _iconSizeMapping);
|
|
14
|
+
var labelVariantMapping = (_labelVariantMapping = {}, _labelVariantMapping['small'] = 'body1', _labelVariantMapping['large'] = 'subtitle1', _labelVariantMapping);
|
|
15
|
+
var Spinner = function Spinner(_ref) {
|
|
16
|
+
var label = _ref.label,
|
|
17
|
+
size = _ref.size,
|
|
18
|
+
props = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement(_SpinnerStyle.StyledWrapper, {
|
|
16
20
|
className: "spinner-container"
|
|
17
21
|
}, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, (0, _extends2["default"])({
|
|
18
|
-
name: "ri-loader"
|
|
19
|
-
|
|
22
|
+
name: "ri-loader",
|
|
23
|
+
height: iconSizeMapping[size],
|
|
24
|
+
width: iconSizeMapping[size]
|
|
25
|
+
}, props)), label && /*#__PURE__*/_react["default"].createElement(_SpinnerStyle.Label, {
|
|
26
|
+
variant: labelVariantMapping[size],
|
|
27
|
+
"data-size": size
|
|
28
|
+
}, label));
|
|
20
29
|
};
|
|
21
30
|
exports.Spinner = Spinner;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Label: import("styled-components").StyledComponent<({ as, children, variant, style, ...props }: import("../Typography").TypographyProps) => JSX.Element, any, {}, never>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.StyledWrapper = exports.Label = void 0;
|
|
6
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
+
var _Typography = require("../Typography");
|
|
8
|
+
var _spacing = require("../utilities/spacing");
|
|
9
|
+
var StyledWrapper = _styledComponents["default"].div.withConfig({
|
|
10
|
+
displayName: "SpinnerStyle__StyledWrapper",
|
|
11
|
+
componentId: "sc-1rqoa36-0"
|
|
12
|
+
})(["display:flex;flex-direction:column;justify-content:center;align-items:center;@keyframes p-keyframes-spin{to{transform:rotate(1turn);}}svg{animation:p-keyframes-spin 800ms linear infinite;}"]);
|
|
13
|
+
exports.StyledWrapper = StyledWrapper;
|
|
14
|
+
var Label = (0, _styledComponents["default"])(_Typography.Typography).withConfig({
|
|
15
|
+
displayName: "SpinnerStyle__Label",
|
|
16
|
+
componentId: "sc-1rqoa36-1"
|
|
17
|
+
})(["margin-bottom:0;&[data-size='large']{margin-top:", ";}&[data-size='small']{margin-top:", ";}"], _spacing.space16, _spacing.space4);
|
|
18
|
+
exports.Label = Label;
|
|
@@ -4,5 +4,6 @@ export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
onChange: () => void;
|
|
6
6
|
value: string;
|
|
7
|
+
withIcon?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -6,14 +6,26 @@ exports.Switch = void 0;
|
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _Icon = require("../Icon");
|
|
10
|
+
var _colors = require("../utilities/colors");
|
|
9
11
|
var _SwitchStyle = require("./SwitchStyle");
|
|
10
|
-
var _excluded = ["checked", "disabled", "onChange", "value"];
|
|
12
|
+
var _excluded = ["checked", "disabled", "onChange", "value", "withIcon"];
|
|
11
13
|
var Switch = /*#__PURE__*/_react["default"].forwardRef(function Switch(_ref, ref) {
|
|
12
14
|
var checked = _ref.checked,
|
|
13
15
|
disabled = _ref.disabled,
|
|
14
16
|
onChange = _ref.onChange,
|
|
15
17
|
value = _ref.value,
|
|
18
|
+
withIcon = _ref.withIcon,
|
|
16
19
|
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
20
|
+
var IconRender = function IconRender() {
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
22
|
+
name: "ri-check",
|
|
23
|
+
fill: disabled ? _colors.Neutral.B85 : _colors.Neutral.B100
|
|
24
|
+
}), /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
25
|
+
name: "ri-close",
|
|
26
|
+
fill: disabled ? _colors.Neutral.B85 : _colors.Neutral.B100
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
17
29
|
return /*#__PURE__*/_react["default"].createElement(_SwitchStyle.LabelStyle, null, /*#__PURE__*/_react["default"].createElement(_SwitchStyle.InputStyle, (0, _extends2["default"])({
|
|
18
30
|
value: value
|
|
19
31
|
}, otherProps, {
|
|
@@ -21,9 +33,11 @@ var Switch = /*#__PURE__*/_react["default"].forwardRef(function Switch(_ref, ref
|
|
|
21
33
|
defaultChecked: checked,
|
|
22
34
|
type: "checkbox",
|
|
23
35
|
onChange: onChange,
|
|
24
|
-
ref: ref
|
|
36
|
+
ref: ref,
|
|
37
|
+
"data-with-icon": withIcon
|
|
25
38
|
})), /*#__PURE__*/_react["default"].createElement(_SwitchStyle.SwitchStyle, {
|
|
26
|
-
"data-disabled": disabled
|
|
27
|
-
|
|
39
|
+
"data-disabled": disabled,
|
|
40
|
+
"data-with-icon": withIcon
|
|
41
|
+
}, withIcon && /*#__PURE__*/_react["default"].createElement(IconRender, null)));
|
|
28
42
|
});
|
|
29
43
|
exports.Switch = Switch;
|
|
@@ -9,12 +9,12 @@ var _colors = require("../utilities/colors");
|
|
|
9
9
|
var SwitchStyle = _styledComponents["default"].div.withConfig({
|
|
10
10
|
displayName: "SwitchStyle",
|
|
11
11
|
componentId: "sc-7dlucf-0"
|
|
12
|
-
})(["position:relative;width:", ";height:", ";background-color:", ";&[data-disabled='true']{background-color:", ";}border-radius:", ";padding:0;transition:300ms all;@media (max-width:", "){width:38px;height:22px;}&:before{transition:100ms all;content:'';position:absolute;width:16px;height:16px;border-radius:16px;top:50%;left:4px;background:", ";transform:translate(0,-50%);@media (max-width:", "){width:14px;height:14px;}}"], _.Spacing.space40, _.Spacing.space24, _colors.Neutral.B40, _colors.Neutral.B95, _.Spacing.space24, _.Breakpoints.large, _colors.Neutral.B100, _.Breakpoints.large);
|
|
12
|
+
})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;width:", ";&[data-with-icon]{width:48px;}&[data-with-icon] svg{height:16px;}height:", ";background-color:", ";&[data-disabled='true']{background-color:", ";cursor:not-allowed;}border-radius:", ";padding:0;padding-left:8px;padding-right:8px;transition:300ms all;@media (max-width:", "){width:38px;&[data-with-icon]{width:44px;}&[data-with-icon] svg{height:14px;}height:22px;}&:before{transition:100ms all;content:'';position:absolute;width:16px;height:16px;border-radius:16px;top:50%;left:4px;background:", ";box-shadow:0px 1px 3px rgba(0,0,0,0.1);transform:translate(0,-50%);@media (max-width:", "){width:14px;height:14px;}}"], _.Spacing.space40, _.Spacing.space24, _colors.Neutral.B40, _colors.Neutral.B95, _.Spacing.space24, _.Breakpoints.large, _colors.Neutral.B100, _.Breakpoints.large);
|
|
13
13
|
exports.SwitchStyle = SwitchStyle;
|
|
14
14
|
var InputStyle = _styledComponents["default"].input.withConfig({
|
|
15
15
|
displayName: "SwitchStyle__InputStyle",
|
|
16
16
|
componentId: "sc-7dlucf-1"
|
|
17
|
-
})(["opacity:0;position:absolute;&:checked + ", "{background-color:", ";&[data-disabled='true']{background-color:", ";}&:before{transform:translate(16px,-50%);}}"], SwitchStyle, _colors.Blue.S99, _colors.Neutral.B95);
|
|
17
|
+
})(["opacity:0;position:absolute;&:checked + ", "{background-color:", ";&[data-disabled='true']{background-color:", ";}&:before{transform:translate(16px,-50%);}&[data-with-icon]{&:before{transform:translate(24px,-50%);}}}& + ", " svg:nth-child(1){visibility:hidden;}& + ", " svg:nth-child(2){visibility:visible;}&:checked + ", " svg:nth-child(1){visibility:visible;}&:checked + ", " svg:nth-child(2){visibility:hidden;}"], SwitchStyle, _colors.Blue.S99, _colors.Neutral.B95, SwitchStyle, SwitchStyle, SwitchStyle, SwitchStyle);
|
|
18
18
|
exports.InputStyle = InputStyle;
|
|
19
19
|
var LabelStyle = _styledComponents["default"].label.withConfig({
|
|
20
20
|
displayName: "SwitchStyle__LabelStyle",
|
package/lib/@next/index.d.ts
CHANGED
|
@@ -32,3 +32,4 @@ export { Tooltip, TooltipPosition, TooltipProps } from './Tooltip';
|
|
|
32
32
|
export { Typography, TypographyProps } from './Typography';
|
|
33
33
|
export { Breakpoints, BorderRadius, Colors, DropShadow, Fonts, Spacing };
|
|
34
34
|
export { Switch } from './Switch';
|
|
35
|
+
export { InlineError, InlineErrorProps } from './InlineError';
|
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.LinkProps = exports.Link = 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.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;
|
|
5
5
|
var BorderRadius = _interopRequireWildcard(require("./utilities/borderRadius"));
|
|
6
6
|
exports.BorderRadius = BorderRadius;
|
|
7
7
|
var Breakpoints = _interopRequireWildcard(require("./utilities/breakpoints"));
|
|
@@ -113,5 +113,8 @@ exports.Typography = _Typography.Typography;
|
|
|
113
113
|
exports.TypographyProps = _Typography.TypographyProps;
|
|
114
114
|
var _Switch = require("./Switch");
|
|
115
115
|
exports.Switch = _Switch.Switch;
|
|
116
|
+
var _InlineError = require("./InlineError");
|
|
117
|
+
exports.InlineError = _InlineError.InlineError;
|
|
118
|
+
exports.InlineErrorProps = _InlineError.InlineErrorProps;
|
|
116
119
|
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); }
|
|
117
120
|
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; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glints-aries",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.204",
|
|
4
4
|
"description": "Glints ui-kit for frontend",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"storybook:build": "rm -rf .out && npm run storybook:build:assets && npm run build:icon && npm run build:next:icon && build-storybook -o .out -s dist/public",
|
|
28
28
|
"storybook:build:test": "rm -rf storybook-static && npm run storybook:build:assets && npm run build:icon && npm run build:next:icon && build-storybook -o storybook-static -s dist/public",
|
|
29
29
|
"storybook:build:assets": "webpack",
|
|
30
|
-
"prepare": "husky install"
|
|
30
|
+
"prepare": "husky install",
|
|
31
|
+
"check-definition-files": "node checkDefinitionFiles.js"
|
|
31
32
|
},
|
|
32
33
|
"author": "Glints",
|
|
33
34
|
"license": "MIT",
|