@widergy/energy-ui 3.121.2 → 3.122.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/CHANGELOG.md +14 -0
- package/dist/components/UTAvatar/constants.js +44 -1
- package/dist/components/UTAvatar/index.js +31 -8
- package/dist/components/UTAvatar/stories/UTAvatar.mdx +13 -0
- package/dist/components/UTAvatar/stories/UTAvatar.stories.js +38 -0
- package/dist/components/UTAvatar/stories/UTAvatarColors.stories.js +91 -0
- package/dist/components/UTAvatar/stories/UTAvatarShapes.stories.js +51 -0
- package/dist/components/UTAvatar/stories/UTAvatarSizes.stories.js +106 -0
- package/dist/components/UTAvatar/stories/UTAvatarTypes.stories.js +51 -0
- package/dist/components/UTAvatar/stories/storiesConstants.js +155 -0
- package/dist/components/UTAvatar/styles.module.scss +24 -0
- package/dist/components/UTBodyPlaceholder/UTBodyPlaceholder.mdx +11 -0
- package/dist/components/UTBodyPlaceholder/UTBodyPlaceholder.stories.js +76 -0
- package/dist/components/UTBodyPlaceholder/constants.js +14 -0
- package/dist/components/UTBodyPlaceholder/index.js +45 -0
- package/dist/components/UTBodyPlaceholder/styles.module.scss +34 -0
- package/dist/components/UTButton/constants.js +8 -5
- package/dist/components/UTButton/stories/UTButton.mdx +13 -0
- package/dist/components/UTButton/stories/UTButton.stories.js +38 -0
- package/dist/components/UTButton/stories/UTButtonAdornments.stories.js +52 -0
- package/dist/components/UTButton/stories/UTButtonColorThemes.stories.js +52 -0
- package/dist/components/UTButton/stories/UTButtonSizes.stories.js +40 -0
- package/dist/components/UTButton/stories/UTButtonStates.stories.js +34 -0
- package/dist/components/UTButton/stories/UTButtonVariants.stories.js +61 -0
- package/dist/components/UTButton/stories/storiesConstants.js +220 -0
- package/dist/components/UTButton/theme.js +15 -14
- package/dist/components/UTButton/utils.js +2 -2
- package/dist/components/UTDataElement/UTDataElement.stories.js +2 -1
- package/dist/components/UTDataElement/theme.js +2 -1
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/CollapsedPanelContent/constants.js +11 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/CollapsedPanelContent/index.js +34 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/CollapsedPanelContent/layout.js +46 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryEmpty/index.js +36 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryEmpty/layout.js +50 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryHeader/constants.js +8 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryHeader/index.js +55 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryHeader/layout.js +78 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/constants.js +21 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/index.js +80 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/components/ExpandedPanelContentCategoryItem/layout.js +132 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/constants.js +7 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/index.js +62 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/layout.js +78 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentCategory/utils.js +23 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/constants.js +16 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/index.js +75 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentHeader/layout.js +136 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentPopper/constants.js +11 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentPopper/index.js +40 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/components/ExpandedPanelContentPopper/layout.js +55 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/index.js +37 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/components/ExpandedPanelContent/layout.js +44 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/index.js +57 -0
- package/dist/components/UTFilterGrouping/components/GroupingPanel/layout.js +64 -0
- package/dist/components/UTFilterGrouping/constants.js +10 -0
- package/dist/components/UTFilterGrouping/context.js +9 -0
- package/dist/components/UTFilterGrouping/index.js +187 -0
- package/dist/components/UTFilterGrouping/layout.js +43 -0
- package/dist/components/UTFilterGrouping/stories/UTFilterGrouping.mdx +13 -0
- package/dist/components/UTFilterGrouping/stories/UTFilterGrouping.stories.js +315 -0
- package/dist/components/UTFilterGrouping/stories/constants.json +282 -0
- package/dist/components/UTFilterGrouping/stories/fixtures.js +162 -0
- package/dist/components/UTFilterGrouping/stories/props.schema.json +163 -0
- package/dist/components/UTFilterGrouping/stories/styles.module.scss +19 -0
- package/dist/components/UTFilterGrouping/stories/tests.js +250 -0
- package/dist/components/UTFilterGrouping/stories/utils.js +178 -0
- package/dist/components/UTFilterGrouping/styles.module.scss +251 -0
- package/dist/components/UTFilterGrouping/theme.js +55 -0
- package/dist/components/UTFilterGrouping/types.js +51 -0
- package/dist/components/UTFilterGrouping/utils.js +27 -0
- package/dist/components/UTGraph/UTGraph.stories.js +1 -1
- package/dist/components/UTHeader/index.js +1 -1
- package/dist/components/UTIcon/UTIcon.mdx +17 -0
- package/dist/components/UTIcon/UTIcon.stories.js +2 -1
- package/dist/components/UTIcon/index.js +2 -19
- package/dist/components/UTKpi/UTKpi.stories.js +2 -1
- package/dist/components/UTLabel/UTLabel.stories.js +2 -1
- package/dist/components/UTLabel/constants.js +1 -1
- package/dist/components/UTPanel/UTPanel.stories.js +2 -1
- package/dist/components/UTRadioGroup/UTRadioGroup.stories.js +2 -1
- package/dist/components/UTSearchField/index.js +8 -2
- package/dist/components/UTSearchField/stories/UTSearchField.mdx +11 -0
- package/dist/components/UTSearchField/stories/UTSearchField.stories.js +250 -0
- package/dist/components/UTSignature/UTSignature.stories.js +2 -1
- package/dist/components/UTStatus/UTStatus.stories.js +2 -1
- package/dist/components/UTSwitch/versions/V1/theme.js +5 -4
- package/dist/components/UTTable/UTTable.stories.js +2 -1
- package/dist/components/UTTable/components/HeaderCell/styles.module.scss +0 -1
- package/dist/constants/Palette.js +1 -0
- package/dist/constants/testIds.js +53 -1
- package/dist/types/iconTypes.js +25 -0
- package/package.json +8 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Playground = void 0;
|
|
7
|
+
var _utils = require("stories/utils");
|
|
8
|
+
var _constants = require("./constants");
|
|
9
|
+
var _ = _interopRequireDefault(require("."));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var _default = exports.default = {
|
|
12
|
+
args: {
|
|
13
|
+
size: 'large',
|
|
14
|
+
subtitle: undefined,
|
|
15
|
+
title: undefined
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
classNames: {
|
|
19
|
+
description: 'Clases personalizadas.',
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: {
|
|
22
|
+
summary: 'undefined'
|
|
23
|
+
},
|
|
24
|
+
type: {
|
|
25
|
+
summary: (0, _utils.joinArgTypes)(['icon', 'bodyPlaceholderTextContainer', 'bodyPlaceholderText', 'bodyPlaceholder'])
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
size: {
|
|
30
|
+
control: 'radio',
|
|
31
|
+
description: 'Tamaño del placeholder.',
|
|
32
|
+
options: ['large', 'small'],
|
|
33
|
+
table: {
|
|
34
|
+
defaultValue: {
|
|
35
|
+
summary: 'large'
|
|
36
|
+
},
|
|
37
|
+
type: {
|
|
38
|
+
summary: (0, _utils.joinArgTypes)(['large', 'small'])
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
subtitle: {
|
|
43
|
+
description: 'Subtítulo del placeholder.',
|
|
44
|
+
type: 'string',
|
|
45
|
+
table: {
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: _constants.DEFAULT_TEXTS.subtitle
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
title: {
|
|
52
|
+
description: 'Título del placeholder.',
|
|
53
|
+
type: 'string',
|
|
54
|
+
table: {
|
|
55
|
+
defaultValue: {
|
|
56
|
+
summary: _constants.DEFAULT_TEXTS.title
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
component: _.default,
|
|
62
|
+
parameters: {
|
|
63
|
+
controls: {
|
|
64
|
+
exclude: ['classNames']
|
|
65
|
+
},
|
|
66
|
+
docs: {
|
|
67
|
+
description: {
|
|
68
|
+
component: 'Placeholder para el body de componentes que wrappean varios tipos de contenido.'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
title: 'Energy-UI/UTBodyPlaceholder'
|
|
73
|
+
};
|
|
74
|
+
const Playground = exports.Playground = {
|
|
75
|
+
name: 'Playground'
|
|
76
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SIZES = exports.DEFAULT_TEXTS = void 0;
|
|
7
|
+
const SIZES = exports.SIZES = {
|
|
8
|
+
L: 'large',
|
|
9
|
+
S: 'small'
|
|
10
|
+
};
|
|
11
|
+
const DEFAULT_TEXTS = exports.DEFAULT_TEXTS = {
|
|
12
|
+
subtitle: 'Reemplazar por otro componente',
|
|
13
|
+
title: 'Body content'
|
|
14
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _propTypes = require("prop-types");
|
|
9
|
+
var _UTIcon = _interopRequireDefault(require("../UTIcon"));
|
|
10
|
+
var _UTLabel = _interopRequireDefault(require("../UTLabel"));
|
|
11
|
+
var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
12
|
+
var _constants = require("./constants");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const UTBodyPlaceholder = _ref => {
|
|
15
|
+
var _classNames$bodyPlace, _classNames$icon, _classNames$bodyPlace2, _classNames$bodyPlace3, _classNames$bodyPlace4;
|
|
16
|
+
let {
|
|
17
|
+
classNames = {},
|
|
18
|
+
size = _constants.SIZES.L,
|
|
19
|
+
subtitle = _constants.DEFAULT_TEXTS.subtitle,
|
|
20
|
+
title = _constants.DEFAULT_TEXTS.title
|
|
21
|
+
} = _ref;
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
className: "".concat(_stylesModule.default.bodyPlaceholder, " ").concat(_stylesModule.default.bodyPlaceholderWidth, " ").concat((_classNames$bodyPlace = classNames.bodyPlaceholder) !== null && _classNames$bodyPlace !== void 0 ? _classNames$bodyPlace : '')
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement(_UTIcon.default, {
|
|
25
|
+
className: "".concat(_stylesModule.default.icon, " ").concat((_classNames$icon = classNames.icon) !== null && _classNames$icon !== void 0 ? _classNames$icon : ''),
|
|
26
|
+
name: "IconReplace",
|
|
27
|
+
size: 40
|
|
28
|
+
}), size === _constants.SIZES.L && /*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
+
className: "".concat(_stylesModule.default.bodyPlaceholderTextContainer, " ").concat((_classNames$bodyPlace2 = classNames.bodyPlaceholderTextContainer) !== null && _classNames$bodyPlace2 !== void 0 ? _classNames$bodyPlace2 : '')
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
31
|
+
className: "".concat(_stylesModule.default.bodyPlaceholderText, " ").concat((_classNames$bodyPlace3 = classNames.bodyPlaceholderText) !== null && _classNames$bodyPlace3 !== void 0 ? _classNames$bodyPlace3 : ''),
|
|
32
|
+
weight: "medium",
|
|
33
|
+
variant: "subtitle1"
|
|
34
|
+
}, title), /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
35
|
+
className: "".concat(_stylesModule.default.bodyPlaceholderText, " ").concat((_classNames$bodyPlace4 = classNames.bodyPlaceholderText) !== null && _classNames$bodyPlace4 !== void 0 ? _classNames$bodyPlace4 : ''),
|
|
36
|
+
variant: "small"
|
|
37
|
+
}, subtitle)));
|
|
38
|
+
};
|
|
39
|
+
UTBodyPlaceholder.propTypes = {
|
|
40
|
+
classNames: (0, _propTypes.objectOf)(_propTypes.string),
|
|
41
|
+
size: _propTypes.string,
|
|
42
|
+
subtitle: _propTypes.string,
|
|
43
|
+
title: _propTypes.string
|
|
44
|
+
};
|
|
45
|
+
var _default = exports.default = UTBodyPlaceholder;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.bodyPlaceholder {
|
|
2
|
+
align-items: center;
|
|
3
|
+
background-color: #7B61FF1A;
|
|
4
|
+
border: 1px dashed #7B61FF;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
flex-grow: 1;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
grid-gap: 20px;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
padding: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.bodyPlaceholderWidth {
|
|
17
|
+
width: fit-content;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.icon {
|
|
21
|
+
stroke: #7B61FF;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.bodyPlaceholderTextContainer {
|
|
25
|
+
align-items: center;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
grid-gap: 16px;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.bodyPlaceholderText {
|
|
33
|
+
color: #7B61FF !important;
|
|
34
|
+
}
|
|
@@ -32,14 +32,17 @@ const DEFAULT_PROPS = exports.DEFAULT_PROPS = {
|
|
|
32
32
|
};
|
|
33
33
|
const COLORS_MAPPER = exports.COLORS_MAPPER = {
|
|
34
34
|
error: _Palette.COLOR_THEMES.error,
|
|
35
|
+
gray: _Palette.COLOR_THEMES.gray,
|
|
35
36
|
negative: _Palette.COLOR_THEMES.negative,
|
|
36
37
|
primary: _Palette.COLOR_THEMES.accent,
|
|
37
38
|
secondary: _Palette.COLOR_THEMES.neutral,
|
|
38
|
-
success: _Palette.COLOR_THEMES.success
|
|
39
|
+
success: _Palette.COLOR_THEMES.success,
|
|
40
|
+
light: _Palette.COLOR_THEMES.light
|
|
39
41
|
};
|
|
40
42
|
const SHADOW_MAPPER = exports.SHADOW_MAPPER = {
|
|
41
|
-
[COLORS_MAPPER.error]: '
|
|
42
|
-
[COLORS_MAPPER.negative]: '
|
|
43
|
-
[COLORS_MAPPER.primary]: '
|
|
44
|
-
[COLORS_MAPPER.secondary]: 'grayscale'
|
|
43
|
+
[COLORS_MAPPER.error]: 'semanticError',
|
|
44
|
+
[COLORS_MAPPER.negative]: 'actionNeutral',
|
|
45
|
+
[COLORS_MAPPER.primary]: 'actionAccent',
|
|
46
|
+
[COLORS_MAPPER.secondary]: 'grayscale',
|
|
47
|
+
[COLORS_MAPPER.gray]: 'grayscale'
|
|
45
48
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ArgTypes, Canvas, Description, Meta, Title } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
import * as UTButtonStories from './UTButton.stories.js';
|
|
4
|
+
|
|
5
|
+
<Meta of={UTButtonStories} />
|
|
6
|
+
|
|
7
|
+
<Title>UTButton</Title>
|
|
8
|
+
|
|
9
|
+
<Description of={UTButtonStories} />
|
|
10
|
+
|
|
11
|
+
<Canvas of={UTButtonStories.Playground} withToolbar />
|
|
12
|
+
|
|
13
|
+
<ArgTypes exclude={['classes']} />
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Playground = void 0;
|
|
7
|
+
var _ = _interopRequireDefault(require(".."));
|
|
8
|
+
var _storiesConstants = require("./storiesConstants");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'Energy-UI/UTButton',
|
|
12
|
+
component: _.default,
|
|
13
|
+
args: {
|
|
14
|
+
children: undefined,
|
|
15
|
+
classNames: undefined,
|
|
16
|
+
count: undefined,
|
|
17
|
+
Icon: undefined,
|
|
18
|
+
onClick: undefined,
|
|
19
|
+
..._storiesConstants.COMMON_ARGS
|
|
20
|
+
},
|
|
21
|
+
argTypes: {
|
|
22
|
+
..._storiesConstants.COMMON_ARG_TYPES
|
|
23
|
+
},
|
|
24
|
+
parameters: {
|
|
25
|
+
..._storiesConstants.COMMON_PARAMETERS,
|
|
26
|
+
options: {
|
|
27
|
+
storySort: {
|
|
28
|
+
method: 'alphabetical'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const Playground = exports.Playground = {
|
|
34
|
+
args: {
|
|
35
|
+
children: 'Button'
|
|
36
|
+
},
|
|
37
|
+
name: 'Playground'
|
|
38
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.IconPlacementRight = exports.IconPlacementLeft = exports.IconOnly = exports.CountOnly = exports.CountAndIcon = void 0;
|
|
7
|
+
var _ = _interopRequireDefault(require(".."));
|
|
8
|
+
var _storiesConstants = require("./storiesConstants");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'Energy-UI/UTButton/Adornments',
|
|
12
|
+
component: _.default,
|
|
13
|
+
args: {
|
|
14
|
+
..._storiesConstants.COMMON_ARGS
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
..._storiesConstants.COMMON_ARG_TYPES
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
..._storiesConstants.COMMON_PARAMETERS
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const IconPlacementLeft = exports.IconPlacementLeft = {
|
|
24
|
+
args: {
|
|
25
|
+
children: 'Icon Placement Left',
|
|
26
|
+
Icon: 'IconArrowLeft',
|
|
27
|
+
iconPlacement: 'left'
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const IconPlacementRight = exports.IconPlacementRight = {
|
|
31
|
+
args: {
|
|
32
|
+
children: 'Icon Placement Right',
|
|
33
|
+
Icon: 'IconArrowRight',
|
|
34
|
+
iconPlacement: 'right'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const IconOnly = exports.IconOnly = {
|
|
38
|
+
args: {
|
|
39
|
+
Icon: 'IconSearch'
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const CountAndIcon = exports.CountAndIcon = {
|
|
43
|
+
args: {
|
|
44
|
+
count: 7,
|
|
45
|
+
Icon: 'IconBell'
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const CountOnly = exports.CountOnly = {
|
|
49
|
+
args: {
|
|
50
|
+
count: 5
|
|
51
|
+
}
|
|
52
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Success = exports.Secondary = exports.Negative = exports.Gray = exports.Error = void 0;
|
|
7
|
+
var _ = _interopRequireDefault(require(".."));
|
|
8
|
+
var _storiesConstants = require("./storiesConstants");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'Energy-UI/UTButton/Color Themes',
|
|
12
|
+
component: _.default,
|
|
13
|
+
args: {
|
|
14
|
+
..._storiesConstants.COMMON_ARGS
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
..._storiesConstants.COMMON_ARG_TYPES
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
..._storiesConstants.COMMON_PARAMETERS
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const Error = exports.Error = {
|
|
24
|
+
args: {
|
|
25
|
+
children: 'Error Color Theme',
|
|
26
|
+
colorTheme: 'error'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const Gray = exports.Gray = {
|
|
30
|
+
args: {
|
|
31
|
+
children: 'Gray Color Theme',
|
|
32
|
+
colorTheme: 'gray'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const Negative = exports.Negative = {
|
|
36
|
+
args: {
|
|
37
|
+
children: 'Negative Color Theme',
|
|
38
|
+
colorTheme: 'negative'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const Secondary = exports.Secondary = {
|
|
42
|
+
args: {
|
|
43
|
+
children: 'Secondary Color Theme',
|
|
44
|
+
colorTheme: 'secondary'
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const Success = exports.Success = {
|
|
48
|
+
args: {
|
|
49
|
+
children: 'Success Color Theme',
|
|
50
|
+
colorTheme: 'success'
|
|
51
|
+
}
|
|
52
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Small = exports.Medium = exports.Large = void 0;
|
|
7
|
+
var _ = _interopRequireDefault(require(".."));
|
|
8
|
+
var _storiesConstants = require("./storiesConstants");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'Energy-UI/UTButton/Sizes',
|
|
12
|
+
component: _.default,
|
|
13
|
+
args: {
|
|
14
|
+
..._storiesConstants.COMMON_ARGS
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
..._storiesConstants.COMMON_ARG_TYPES
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
..._storiesConstants.COMMON_PARAMETERS
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const Small = exports.Small = {
|
|
24
|
+
args: {
|
|
25
|
+
children: 'Small Size',
|
|
26
|
+
size: 'small'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const Medium = exports.Medium = {
|
|
30
|
+
args: {
|
|
31
|
+
children: 'Medium Size',
|
|
32
|
+
size: 'medium'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const Large = exports.Large = {
|
|
36
|
+
args: {
|
|
37
|
+
children: 'Large Size',
|
|
38
|
+
size: 'large'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Loading = exports.Disabled = void 0;
|
|
7
|
+
var _ = _interopRequireDefault(require(".."));
|
|
8
|
+
var _storiesConstants = require("./storiesConstants");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'Energy-UI/UTButton/States',
|
|
12
|
+
component: _.default,
|
|
13
|
+
args: {
|
|
14
|
+
..._storiesConstants.COMMON_ARGS
|
|
15
|
+
},
|
|
16
|
+
argTypes: {
|
|
17
|
+
..._storiesConstants.COMMON_ARG_TYPES
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
..._storiesConstants.COMMON_PARAMETERS
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const Disabled = exports.Disabled = {
|
|
24
|
+
args: {
|
|
25
|
+
children: 'Disabled',
|
|
26
|
+
disabled: true
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const Loading = exports.Loading = {
|
|
30
|
+
args: {
|
|
31
|
+
children: 'Loading',
|
|
32
|
+
loading: true
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Text = exports.Shadow = exports.Semitransparent = exports.Outlined = exports.Filled = void 0;
|
|
7
|
+
var _ = _interopRequireDefault(require(".."));
|
|
8
|
+
var _storiesConstants = require("./storiesConstants");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const COMMON_PROPS = {
|
|
11
|
+
count: 3,
|
|
12
|
+
Icon: 'IconPencil'
|
|
13
|
+
};
|
|
14
|
+
var _default = exports.default = {
|
|
15
|
+
title: 'Energy-UI/UTButton/Variants',
|
|
16
|
+
component: _.default,
|
|
17
|
+
args: {
|
|
18
|
+
..._storiesConstants.COMMON_ARGS
|
|
19
|
+
},
|
|
20
|
+
argTypes: {
|
|
21
|
+
..._storiesConstants.COMMON_ARG_TYPES
|
|
22
|
+
},
|
|
23
|
+
parameters: {
|
|
24
|
+
..._storiesConstants.COMMON_PARAMETERS
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const Filled = exports.Filled = {
|
|
28
|
+
args: {
|
|
29
|
+
...COMMON_PROPS,
|
|
30
|
+
children: 'Filled Variant',
|
|
31
|
+
variant: 'filled'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const Semitransparent = exports.Semitransparent = {
|
|
35
|
+
args: {
|
|
36
|
+
...COMMON_PROPS,
|
|
37
|
+
children: 'Semitransparent Variant',
|
|
38
|
+
variant: 'semitransparent'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const Outlined = exports.Outlined = {
|
|
42
|
+
args: {
|
|
43
|
+
...COMMON_PROPS,
|
|
44
|
+
children: 'Outlined Variant',
|
|
45
|
+
variant: 'outlined'
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const Shadow = exports.Shadow = {
|
|
49
|
+
args: {
|
|
50
|
+
...COMMON_PROPS,
|
|
51
|
+
children: 'Shadow Variant',
|
|
52
|
+
variant: 'shadow'
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const Text = exports.Text = {
|
|
56
|
+
args: {
|
|
57
|
+
...COMMON_PROPS,
|
|
58
|
+
children: 'Text Variant',
|
|
59
|
+
variant: 'text'
|
|
60
|
+
}
|
|
61
|
+
};
|