@trafilea/afrodita-components 5.0.0-beta.134 → 5.0.0-beta.136
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/build/index.d.ts +4 -0
- package/build/index.esm.js +2 -2
- package/build/index.js +2 -2
- package/build/theme/revel.theme.d.ts +3 -0
- package/build/theme/revel.theme.js +29 -1
- package/build/theme/shapermint.theme.d.ts +3 -0
- package/build/theme/shapermint.theme.js +28 -0
- package/build/theme/truekind.theme.d.ts +3 -0
- package/build/theme/truekind.theme.js +28 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { StyledComponent } from '@emotion/styled';
|
|
|
7
7
|
export { default as styled } from '@emotion/styled';
|
|
8
8
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
9
9
|
import * as _emotion_react from '@emotion/react';
|
|
10
|
+
import { ComponentSize as ComponentSize$1 } from 'src/types/enums';
|
|
10
11
|
|
|
11
12
|
declare enum CardSectionType {
|
|
12
13
|
Header = 0,
|
|
@@ -1388,6 +1389,7 @@ declare type ThemeComponent = {
|
|
|
1388
1389
|
radio: {
|
|
1389
1390
|
borderColor: string;
|
|
1390
1391
|
background: string;
|
|
1392
|
+
textSize: ComponentSize$1.Small | ComponentSize$1.Medium | ComponentSize$1.Large;
|
|
1391
1393
|
size: {
|
|
1392
1394
|
small: {
|
|
1393
1395
|
borderWidth: string;
|
|
@@ -1416,6 +1418,7 @@ declare type ThemeComponent = {
|
|
|
1416
1418
|
};
|
|
1417
1419
|
};
|
|
1418
1420
|
label: {
|
|
1421
|
+
color: string;
|
|
1419
1422
|
fontSize: {
|
|
1420
1423
|
small: string;
|
|
1421
1424
|
medium: string;
|
|
@@ -2174,6 +2177,7 @@ declare type TextLinkProps = {
|
|
|
2174
2177
|
};
|
|
2175
2178
|
declare type TextLabelProps = {
|
|
2176
2179
|
variant: 'label';
|
|
2180
|
+
color?: string;
|
|
2177
2181
|
weight?: 'regular' | 'demi';
|
|
2178
2182
|
size?: 'regular' | 'small';
|
|
2179
2183
|
underline?: never;
|
package/build/index.esm.js
CHANGED
|
@@ -4775,7 +4775,7 @@ var TAGS = {
|
|
|
4775
4775
|
link: newStyled.a(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n cursor: pointer;\n color: inherit;\n text-decoration: ", ";\n "], ["\n cursor: pointer;\n color: inherit;\n text-decoration: ", ";\n "])), function (props) { return (props.underline ? 'underline' : 'none'); }),
|
|
4776
4776
|
button: newStyled.span(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "]))),
|
|
4777
4777
|
pricing: newStyled.span(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: inline-block;\n font-weight: ", ";\n text-decoration: ", ";\n "], ["\n display: inline-block;\n font-weight: ", ";\n text-decoration: ", ";\n "])), function (props) { return (props.original ? 'normal' : 'bold'); }, function (props) { return (props.original ? 'line-through' : 'bold'); }),
|
|
4778
|
-
label: newStyled.label(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""]))),
|
|
4778
|
+
label: newStyled.label(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), function (props) { return props.color && "color:".concat(props.color, ";"); }),
|
|
4779
4779
|
tag: newStyled.span(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: inline-block;\n text-transform: ", ";\n "], ["\n display: inline-block;\n text-transform: ", ";\n "])), function (props) { return (props.allCaps ? 'uppercase' : ''); }),
|
|
4780
4780
|
};
|
|
4781
4781
|
var Text$6 = function (_a) {
|
|
@@ -11811,7 +11811,7 @@ var RadioInput = function (_a) {
|
|
|
11811
11811
|
var value = event.currentTarget.value;
|
|
11812
11812
|
onChange({ value: value, label: label });
|
|
11813
11813
|
};
|
|
11814
|
-
return (jsxs$1(Wrapper$4, { children: [jsxs$1(Container$D, __assign$1({ theme: theme, size: size, "data-testid": "container" }, { children: [jsx$1(Input$2, { id: "".concat(name, "-").concat(id), type: "radio", name: name, value: value, checked: checked, onChange: function (e) { return (disabled ? null : handleChange(e, label)); }, disabled: disabled }, void 0), jsx$1(CustomRadio, { size: size, isChecked: checked, disabled: disabled, theme: theme, "data-testid": "custom-radio" }, void 0)] }), void 0), jsx$1(Label$3, __assign$1({ htmlFor: "".concat(name, "-").concat(id), "data-testid": "label", variant: "regular", size:
|
|
11814
|
+
return (jsxs$1(Wrapper$4, { children: [jsxs$1(Container$D, __assign$1({ theme: theme, size: size, "data-testid": "container" }, { children: [jsx$1(Input$2, { id: "".concat(name, "-").concat(id), type: "radio", name: name, value: value, checked: checked, onChange: function (e) { return (disabled ? null : handleChange(e, label)); }, disabled: disabled }, void 0), jsx$1(CustomRadio, { size: size, isChecked: checked, disabled: disabled, theme: theme, "data-testid": "custom-radio" }, void 0)] }), void 0), jsx$1(Label$3, __assign$1({ htmlFor: "".concat(name, "-").concat(id), "data-testid": "label", variant: "regular", size: theme.component.radio.textSize, disabled: disabled }, { children: label }), void 0)] }, void 0));
|
|
11815
11815
|
};
|
|
11816
11816
|
var templateObject_1$X, templateObject_2$E;
|
|
11817
11817
|
|
package/build/index.js
CHANGED
|
@@ -4801,7 +4801,7 @@ var TAGS = {
|
|
|
4801
4801
|
link: newStyled.a(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n cursor: pointer;\n color: inherit;\n text-decoration: ", ";\n "], ["\n cursor: pointer;\n color: inherit;\n text-decoration: ", ";\n "])), function (props) { return (props.underline ? 'underline' : 'none'); }),
|
|
4802
4802
|
button: newStyled.span(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "]))),
|
|
4803
4803
|
pricing: newStyled.span(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: inline-block;\n font-weight: ", ";\n text-decoration: ", ";\n "], ["\n display: inline-block;\n font-weight: ", ";\n text-decoration: ", ";\n "])), function (props) { return (props.original ? 'normal' : 'bold'); }, function (props) { return (props.original ? 'line-through' : 'bold'); }),
|
|
4804
|
-
label: newStyled.label(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""]))),
|
|
4804
|
+
label: newStyled.label(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), function (props) { return props.color && "color:".concat(props.color, ";"); }),
|
|
4805
4805
|
tag: newStyled.span(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: inline-block;\n text-transform: ", ";\n "], ["\n display: inline-block;\n text-transform: ", ";\n "])), function (props) { return (props.allCaps ? 'uppercase' : ''); }),
|
|
4806
4806
|
};
|
|
4807
4807
|
var Text$6 = function (_a) {
|
|
@@ -11837,7 +11837,7 @@ var RadioInput = function (_a) {
|
|
|
11837
11837
|
var value = event.currentTarget.value;
|
|
11838
11838
|
onChange({ value: value, label: label });
|
|
11839
11839
|
};
|
|
11840
|
-
return (jsxRuntime.jsxs(Wrapper$4, { children: [jsxRuntime.jsxs(Container$D, __assign$1({ theme: theme, size: size, "data-testid": "container" }, { children: [jsxRuntime.jsx(Input$2, { id: "".concat(name, "-").concat(id), type: "radio", name: name, value: value, checked: checked, onChange: function (e) { return (disabled ? null : handleChange(e, label)); }, disabled: disabled }, void 0), jsxRuntime.jsx(CustomRadio, { size: size, isChecked: checked, disabled: disabled, theme: theme, "data-testid": "custom-radio" }, void 0)] }), void 0), jsxRuntime.jsx(Label$3, __assign$1({ htmlFor: "".concat(name, "-").concat(id), "data-testid": "label", variant: "regular", size:
|
|
11840
|
+
return (jsxRuntime.jsxs(Wrapper$4, { children: [jsxRuntime.jsxs(Container$D, __assign$1({ theme: theme, size: size, "data-testid": "container" }, { children: [jsxRuntime.jsx(Input$2, { id: "".concat(name, "-").concat(id), type: "radio", name: name, value: value, checked: checked, onChange: function (e) { return (disabled ? null : handleChange(e, label)); }, disabled: disabled }, void 0), jsxRuntime.jsx(CustomRadio, { size: size, isChecked: checked, disabled: disabled, theme: theme, "data-testid": "custom-radio" }, void 0)] }), void 0), jsxRuntime.jsx(Label$3, __assign$1({ htmlFor: "".concat(name, "-").concat(id), "data-testid": "label", variant: "regular", size: theme.component.radio.textSize, disabled: disabled }, { children: label }), void 0)] }, void 0));
|
|
11841
11841
|
};
|
|
11842
11842
|
var templateObject_1$X, templateObject_2$E;
|
|
11843
11843
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { ComponentSize } from 'src/types/enums';
|
|
2
3
|
|
|
3
4
|
declare type Theme = {
|
|
4
5
|
name: string;
|
|
@@ -239,6 +240,7 @@ declare type ThemeComponent = {
|
|
|
239
240
|
radio: {
|
|
240
241
|
borderColor: string;
|
|
241
242
|
background: string;
|
|
243
|
+
textSize: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
242
244
|
size: {
|
|
243
245
|
small: {
|
|
244
246
|
borderWidth: string;
|
|
@@ -267,6 +269,7 @@ declare type ThemeComponent = {
|
|
|
267
269
|
};
|
|
268
270
|
};
|
|
269
271
|
label: {
|
|
272
|
+
color: string;
|
|
270
273
|
fontSize: {
|
|
271
274
|
small: string;
|
|
272
275
|
medium: string;
|
|
@@ -26,6 +26,32 @@ var __assign = function() {
|
|
|
26
26
|
return __assign.apply(this, arguments);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
var CardSectionType;
|
|
30
|
+
(function (CardSectionType) {
|
|
31
|
+
CardSectionType[CardSectionType["Header"] = 0] = "Header";
|
|
32
|
+
CardSectionType[CardSectionType["Footer"] = 1] = "Footer";
|
|
33
|
+
})(CardSectionType || (CardSectionType = {}));
|
|
34
|
+
var ComponentSize;
|
|
35
|
+
(function (ComponentSize) {
|
|
36
|
+
ComponentSize["Large"] = "large";
|
|
37
|
+
ComponentSize["Medium"] = "medium";
|
|
38
|
+
ComponentSize["Small"] = "small";
|
|
39
|
+
ComponentSize["XSmall"] = "xsmall";
|
|
40
|
+
})(ComponentSize || (ComponentSize = {}));
|
|
41
|
+
var ComponentPosition;
|
|
42
|
+
(function (ComponentPosition) {
|
|
43
|
+
ComponentPosition[ComponentPosition["Top"] = 0] = "Top";
|
|
44
|
+
ComponentPosition[ComponentPosition["Bottom"] = 1] = "Bottom";
|
|
45
|
+
ComponentPosition[ComponentPosition["Left"] = 2] = "Left";
|
|
46
|
+
ComponentPosition[ComponentPosition["Right"] = 3] = "Right";
|
|
47
|
+
})(ComponentPosition || (ComponentPosition = {}));
|
|
48
|
+
var InputValidationType;
|
|
49
|
+
(function (InputValidationType) {
|
|
50
|
+
InputValidationType[InputValidationType["Error"] = 0] = "Error";
|
|
51
|
+
InputValidationType[InputValidationType["Valid"] = 1] = "Valid";
|
|
52
|
+
InputValidationType[InputValidationType["Empty"] = 2] = "Empty";
|
|
53
|
+
})(InputValidationType || (InputValidationType = {}));
|
|
54
|
+
|
|
29
55
|
var revel = {
|
|
30
56
|
name: 'Revel',
|
|
31
57
|
fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
|
|
@@ -343,6 +369,7 @@ var revel = {
|
|
|
343
369
|
radio: {
|
|
344
370
|
borderColor: '--colors-shades-700-color',
|
|
345
371
|
background: '--colors-shades-white-color',
|
|
372
|
+
textSize: ComponentSize.Small,
|
|
346
373
|
size: {
|
|
347
374
|
large: {
|
|
348
375
|
borderWidth: '0.094rem',
|
|
@@ -371,6 +398,7 @@ var revel = {
|
|
|
371
398
|
},
|
|
372
399
|
},
|
|
373
400
|
label: {
|
|
401
|
+
color: '--colors-shades-400-color',
|
|
374
402
|
fontSize: {
|
|
375
403
|
small: '0.75rem',
|
|
376
404
|
medium: '0.75rem',
|
|
@@ -631,7 +659,7 @@ var revel = {
|
|
|
631
659
|
},
|
|
632
660
|
heading6: {
|
|
633
661
|
fontSize: 18,
|
|
634
|
-
lineHeight: '
|
|
662
|
+
lineHeight: '22px',
|
|
635
663
|
},
|
|
636
664
|
'body-regular': {
|
|
637
665
|
fontSize: 16,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { ComponentSize } from 'src/types/enums';
|
|
2
3
|
|
|
3
4
|
declare type Theme = {
|
|
4
5
|
name: string;
|
|
@@ -239,6 +240,7 @@ declare type ThemeComponent = {
|
|
|
239
240
|
radio: {
|
|
240
241
|
borderColor: string;
|
|
241
242
|
background: string;
|
|
243
|
+
textSize: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
242
244
|
size: {
|
|
243
245
|
small: {
|
|
244
246
|
borderWidth: string;
|
|
@@ -267,6 +269,7 @@ declare type ThemeComponent = {
|
|
|
267
269
|
};
|
|
268
270
|
};
|
|
269
271
|
label: {
|
|
272
|
+
color: string;
|
|
270
273
|
fontSize: {
|
|
271
274
|
small: string;
|
|
272
275
|
medium: string;
|
|
@@ -26,6 +26,32 @@ var __assign = function() {
|
|
|
26
26
|
return __assign.apply(this, arguments);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
var CardSectionType;
|
|
30
|
+
(function (CardSectionType) {
|
|
31
|
+
CardSectionType[CardSectionType["Header"] = 0] = "Header";
|
|
32
|
+
CardSectionType[CardSectionType["Footer"] = 1] = "Footer";
|
|
33
|
+
})(CardSectionType || (CardSectionType = {}));
|
|
34
|
+
var ComponentSize;
|
|
35
|
+
(function (ComponentSize) {
|
|
36
|
+
ComponentSize["Large"] = "large";
|
|
37
|
+
ComponentSize["Medium"] = "medium";
|
|
38
|
+
ComponentSize["Small"] = "small";
|
|
39
|
+
ComponentSize["XSmall"] = "xsmall";
|
|
40
|
+
})(ComponentSize || (ComponentSize = {}));
|
|
41
|
+
var ComponentPosition;
|
|
42
|
+
(function (ComponentPosition) {
|
|
43
|
+
ComponentPosition[ComponentPosition["Top"] = 0] = "Top";
|
|
44
|
+
ComponentPosition[ComponentPosition["Bottom"] = 1] = "Bottom";
|
|
45
|
+
ComponentPosition[ComponentPosition["Left"] = 2] = "Left";
|
|
46
|
+
ComponentPosition[ComponentPosition["Right"] = 3] = "Right";
|
|
47
|
+
})(ComponentPosition || (ComponentPosition = {}));
|
|
48
|
+
var InputValidationType;
|
|
49
|
+
(function (InputValidationType) {
|
|
50
|
+
InputValidationType[InputValidationType["Error"] = 0] = "Error";
|
|
51
|
+
InputValidationType[InputValidationType["Valid"] = 1] = "Valid";
|
|
52
|
+
InputValidationType[InputValidationType["Empty"] = 2] = "Empty";
|
|
53
|
+
})(InputValidationType || (InputValidationType = {}));
|
|
54
|
+
|
|
29
55
|
var shapermint = {
|
|
30
56
|
name: 'Shapermint',
|
|
31
57
|
fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
|
|
@@ -343,6 +369,7 @@ var shapermint = {
|
|
|
343
369
|
radio: {
|
|
344
370
|
borderColor: '--colors-shades-700-color',
|
|
345
371
|
background: '--colors-shades-white-color',
|
|
372
|
+
textSize: ComponentSize.Medium,
|
|
346
373
|
size: {
|
|
347
374
|
large: {
|
|
348
375
|
borderWidth: '0.094rem',
|
|
@@ -371,6 +398,7 @@ var shapermint = {
|
|
|
371
398
|
},
|
|
372
399
|
},
|
|
373
400
|
label: {
|
|
401
|
+
color: '--colors-pallete-secondary-color',
|
|
374
402
|
fontSize: {
|
|
375
403
|
small: '0.75rem',
|
|
376
404
|
medium: '0.75rem',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { ComponentSize } from 'src/types/enums';
|
|
2
3
|
|
|
3
4
|
declare type Theme = {
|
|
4
5
|
name: string;
|
|
@@ -239,6 +240,7 @@ declare type ThemeComponent = {
|
|
|
239
240
|
radio: {
|
|
240
241
|
borderColor: string;
|
|
241
242
|
background: string;
|
|
243
|
+
textSize: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
242
244
|
size: {
|
|
243
245
|
small: {
|
|
244
246
|
borderWidth: string;
|
|
@@ -267,6 +269,7 @@ declare type ThemeComponent = {
|
|
|
267
269
|
};
|
|
268
270
|
};
|
|
269
271
|
label: {
|
|
272
|
+
color: string;
|
|
270
273
|
fontSize: {
|
|
271
274
|
small: string;
|
|
272
275
|
medium: string;
|
|
@@ -26,6 +26,32 @@ var __assign = function() {
|
|
|
26
26
|
return __assign.apply(this, arguments);
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
var CardSectionType;
|
|
30
|
+
(function (CardSectionType) {
|
|
31
|
+
CardSectionType[CardSectionType["Header"] = 0] = "Header";
|
|
32
|
+
CardSectionType[CardSectionType["Footer"] = 1] = "Footer";
|
|
33
|
+
})(CardSectionType || (CardSectionType = {}));
|
|
34
|
+
var ComponentSize;
|
|
35
|
+
(function (ComponentSize) {
|
|
36
|
+
ComponentSize["Large"] = "large";
|
|
37
|
+
ComponentSize["Medium"] = "medium";
|
|
38
|
+
ComponentSize["Small"] = "small";
|
|
39
|
+
ComponentSize["XSmall"] = "xsmall";
|
|
40
|
+
})(ComponentSize || (ComponentSize = {}));
|
|
41
|
+
var ComponentPosition;
|
|
42
|
+
(function (ComponentPosition) {
|
|
43
|
+
ComponentPosition[ComponentPosition["Top"] = 0] = "Top";
|
|
44
|
+
ComponentPosition[ComponentPosition["Bottom"] = 1] = "Bottom";
|
|
45
|
+
ComponentPosition[ComponentPosition["Left"] = 2] = "Left";
|
|
46
|
+
ComponentPosition[ComponentPosition["Right"] = 3] = "Right";
|
|
47
|
+
})(ComponentPosition || (ComponentPosition = {}));
|
|
48
|
+
var InputValidationType;
|
|
49
|
+
(function (InputValidationType) {
|
|
50
|
+
InputValidationType[InputValidationType["Error"] = 0] = "Error";
|
|
51
|
+
InputValidationType[InputValidationType["Valid"] = 1] = "Valid";
|
|
52
|
+
InputValidationType[InputValidationType["Empty"] = 2] = "Empty";
|
|
53
|
+
})(InputValidationType || (InputValidationType = {}));
|
|
54
|
+
|
|
29
55
|
var truekind = {
|
|
30
56
|
name: 'Truekind',
|
|
31
57
|
fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
|
|
@@ -416,6 +442,7 @@ var truekind = {
|
|
|
416
442
|
radio: {
|
|
417
443
|
borderColor: '#686872',
|
|
418
444
|
background: '#FFFFFF',
|
|
445
|
+
textSize: ComponentSize.Medium,
|
|
419
446
|
size: {
|
|
420
447
|
large: {
|
|
421
448
|
borderWidth: '0.094rem',
|
|
@@ -444,6 +471,7 @@ var truekind = {
|
|
|
444
471
|
},
|
|
445
472
|
},
|
|
446
473
|
label: {
|
|
474
|
+
color: '--colors-pallete-secondary-color',
|
|
447
475
|
fontSize: {
|
|
448
476
|
small: '0.625rem',
|
|
449
477
|
medium: '0.75rem',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Trafilea's Design System",
|
|
4
4
|
"author": "Trafilea",
|
|
5
5
|
"repository": "https://github.com/trafilea/afrodita-components",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
6
|
+
"version": "5.0.0-beta.136",
|
|
7
7
|
"private": false,
|
|
8
8
|
"main": "build/index.js",
|
|
9
9
|
"style": "build/index.css",
|