@trafilea/afrodita-components 6.36.19 → 6.36.21

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 CHANGED
@@ -1525,6 +1525,7 @@ declare type ThemeColors = {
1525
1525
  900: ThemeBasicPallete;
1526
1526
  950: ThemeBasicPallete;
1527
1527
  990: ThemeBasicPallete;
1528
+ 1000?: ThemeBasicPallete;
1528
1529
  };
1529
1530
  semantic: {
1530
1531
  positive: ThemeColorPallete;
@@ -2019,6 +2020,7 @@ declare type ThemeComponent = {
2019
2020
  padding?: string;
2020
2021
  borderRadius?: string;
2021
2022
  maxWidth?: string;
2023
+ color?: string;
2022
2024
  onMobile: {
2023
2025
  position?: string;
2024
2026
  maxWidth?: string;
@@ -2315,6 +2317,8 @@ interface CheckboxProps {
2315
2317
  disabled?: boolean;
2316
2318
  onChange: (checked: boolean) => void;
2317
2319
  size?: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
2320
+ sizeLabel?: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
2321
+ colorLabel?: string;
2318
2322
  text: string;
2319
2323
  checked?: boolean;
2320
2324
  blockUncheck?: boolean;
@@ -5569,7 +5569,7 @@ var Input$5 = newStyled.input(templateObject_2$1q || (templateObject_2$1q = __ma
5569
5569
  return (disabled ? 'not-allowed' : 'pointer');
5570
5570
  });
5571
5571
  var Checkbox = function (_a) {
5572
- var _b = _a.disabled, disabled = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.size, size = _c === void 0 ? ComponentSize.Medium : _c, text = _a.text, _d = _a.checked, checked = _d === void 0 ? false : _d, id = _a.id, variant = _a.variant, blockUncheck = _a.blockUncheck, backgroundColor = _a.backgroundColor;
5572
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.size, size = _c === void 0 ? ComponentSize.Medium : _c, _d = _a.sizeLabel, sizeLabel = _d === void 0 ? ComponentSize.Medium : _d, colorLabel = _a.colorLabel, text = _a.text, _e = _a.checked, checked = _e === void 0 ? false : _e, id = _a.id, variant = _a.variant, blockUncheck = _a.blockUncheck, backgroundColor = _a.backgroundColor;
5573
5573
  var theme = useTheme();
5574
5574
  var handleChange = function (e) {
5575
5575
  if (disabled || (e.target.checked === false && blockUncheck)) {
@@ -5578,7 +5578,7 @@ var Checkbox = function (_a) {
5578
5578
  }
5579
5579
  onChange(e.target.checked);
5580
5580
  };
5581
- return (jsxs$1(Container$1g, { children: [jsx$1(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsx$1(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && jsx$1(Icon.Actions.Check, { fill: "#fff" }, void 0) }), void 0), jsx$1(Label$6, __assign$1({ "data-testid": "checkbox-text", size: size, variant: checked ? 'demi' : 'regular', htmlFor: id, disabled: disabled }, { children: text }), void 0)] }, void 0));
5581
+ return (jsxs$1(Container$1g, { children: [jsx$1(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsx$1(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && jsx$1(Icon.Actions.Check, { fill: "#fff" }, void 0) }), void 0), jsx$1(Label$6, __assign$1({ "data-testid": "checkbox-text", size: sizeLabel, style: { color: colorLabel ? colorLabel : theme.colors.shades['700'].color }, variant: checked ? 'demi' : 'regular', htmlFor: id, disabled: disabled }, { children: text }), void 0)] }, void 0));
5582
5582
  };
5583
5583
  var templateObject_1$1X, templateObject_2$1q;
5584
5584
 
@@ -19254,7 +19254,7 @@ var TextButton = function (_a) {
19254
19254
  var templateObject_1$E;
19255
19255
 
19256
19256
  var Container$q = newStyled.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.88rem;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.88rem;\n"])));
19257
- var P = newStyled.p(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
19257
+ var P = newStyled.p(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n margin: 0 0 0 10px;\n"], ["\n margin: 0 0 0 10px;\n"])));
19258
19258
  var PercentageSpan = newStyled.span(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n font-weight: 700;\n text-decoration-line: underline;\n cursor: pointer;\n"], ["\n font-weight: 700;\n text-decoration-line: underline;\n cursor: pointer;\n"])));
19259
19259
  var SizeFitGuide = function (_a) {
19260
19260
  var title = _a.title, fitPercentage = _a.fitPercentage, onClick = _a.onClick, onClickFitPercentage = _a.onClickFitPercentage, _b = _a.hideIcon, hideIcon = _b === void 0 ? false : _b;
package/build/index.js CHANGED
@@ -5595,7 +5595,7 @@ var Input$5 = newStyled.input(templateObject_2$1q || (templateObject_2$1q = __ma
5595
5595
  return (disabled ? 'not-allowed' : 'pointer');
5596
5596
  });
5597
5597
  var Checkbox = function (_a) {
5598
- var _b = _a.disabled, disabled = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.size, size = _c === void 0 ? exports.ComponentSize.Medium : _c, text = _a.text, _d = _a.checked, checked = _d === void 0 ? false : _d, id = _a.id, variant = _a.variant, blockUncheck = _a.blockUncheck, backgroundColor = _a.backgroundColor;
5598
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.size, size = _c === void 0 ? exports.ComponentSize.Medium : _c, _d = _a.sizeLabel, sizeLabel = _d === void 0 ? exports.ComponentSize.Medium : _d, colorLabel = _a.colorLabel, text = _a.text, _e = _a.checked, checked = _e === void 0 ? false : _e, id = _a.id, variant = _a.variant, blockUncheck = _a.blockUncheck, backgroundColor = _a.backgroundColor;
5599
5599
  var theme = useTheme();
5600
5600
  var handleChange = function (e) {
5601
5601
  if (disabled || (e.target.checked === false && blockUncheck)) {
@@ -5604,7 +5604,7 @@ var Checkbox = function (_a) {
5604
5604
  }
5605
5605
  onChange(e.target.checked);
5606
5606
  };
5607
- return (jsxRuntime.jsxs(Container$1g, { children: [jsxRuntime.jsx(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsxRuntime.jsx(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && jsxRuntime.jsx(Icon.Actions.Check, { fill: "#fff" }, void 0) }), void 0), jsxRuntime.jsx(Label$6, __assign$1({ "data-testid": "checkbox-text", size: size, variant: checked ? 'demi' : 'regular', htmlFor: id, disabled: disabled }, { children: text }), void 0)] }, void 0));
5607
+ return (jsxRuntime.jsxs(Container$1g, { children: [jsxRuntime.jsx(Input$5, { type: "checkbox", checked: checked, disabled: disabled, onChange: handleChange, id: id }, void 0), jsxRuntime.jsx(CustomCheckbox, __assign$1({ theme: theme, size: size, disabled: disabled, isChecked: checked, "data-testid": "checkbox", variant: variant, backgroundColor: backgroundColor, text: text }, { children: checked && jsxRuntime.jsx(Icon.Actions.Check, { fill: "#fff" }, void 0) }), void 0), jsxRuntime.jsx(Label$6, __assign$1({ "data-testid": "checkbox-text", size: sizeLabel, style: { color: colorLabel ? colorLabel : theme.colors.shades['700'].color }, variant: checked ? 'demi' : 'regular', htmlFor: id, disabled: disabled }, { children: text }), void 0)] }, void 0));
5608
5608
  };
5609
5609
  var templateObject_1$1X, templateObject_2$1q;
5610
5610
 
@@ -19280,7 +19280,7 @@ var TextButton = function (_a) {
19280
19280
  var templateObject_1$E;
19281
19281
 
19282
19282
  var Container$q = newStyled.div(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.88rem;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.88rem;\n"])));
19283
- var P = newStyled.p(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
19283
+ var P = newStyled.p(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n margin: 0 0 0 10px;\n"], ["\n margin: 0 0 0 10px;\n"])));
19284
19284
  var PercentageSpan = newStyled.span(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n font-weight: 700;\n text-decoration-line: underline;\n cursor: pointer;\n"], ["\n font-weight: 700;\n text-decoration-line: underline;\n cursor: pointer;\n"])));
19285
19285
  var SizeFitGuide = function (_a) {
19286
19286
  var title = _a.title, fitPercentage = _a.fitPercentage, onClick = _a.onClick, onClickFitPercentage = _a.onClickFitPercentage, _b = _a.hideIcon, hideIcon = _b === void 0 ? false : _b;
@@ -83,6 +83,7 @@ declare type ThemeColors = {
83
83
  900: ThemeBasicPallete;
84
84
  950: ThemeBasicPallete;
85
85
  990: ThemeBasicPallete;
86
+ 1000?: ThemeBasicPallete;
86
87
  };
87
88
  semantic: {
88
89
  positive: ThemeColorPallete;
@@ -577,6 +578,7 @@ declare type ThemeComponent = {
577
578
  padding?: string;
578
579
  borderRadius?: string;
579
580
  maxWidth?: string;
581
+ color?: string;
580
582
  onMobile: {
581
583
  position?: string;
582
584
  maxWidth?: string;
@@ -83,6 +83,7 @@ declare type ThemeColors = {
83
83
  900: ThemeBasicPallete;
84
84
  950: ThemeBasicPallete;
85
85
  990: ThemeBasicPallete;
86
+ 1000?: ThemeBasicPallete;
86
87
  };
87
88
  semantic: {
88
89
  positive: ThemeColorPallete;
@@ -577,6 +578,7 @@ declare type ThemeComponent = {
577
578
  padding?: string;
578
579
  borderRadius?: string;
579
580
  maxWidth?: string;
581
+ color?: string;
580
582
  onMobile: {
581
583
  position?: string;
582
584
  maxWidth?: string;
@@ -83,6 +83,7 @@ declare type ThemeColors = {
83
83
  900: ThemeBasicPallete;
84
84
  950: ThemeBasicPallete;
85
85
  990: ThemeBasicPallete;
86
+ 1000?: ThemeBasicPallete;
86
87
  };
87
88
  semantic: {
88
89
  positive: ThemeColorPallete;
@@ -577,6 +578,7 @@ declare type ThemeComponent = {
577
578
  padding?: string;
578
579
  borderRadius?: string;
579
580
  maxWidth?: string;
581
+ color?: string;
580
582
  onMobile: {
581
583
  position?: string;
582
584
  maxWidth?: string;
@@ -209,6 +209,7 @@ var thebodcon = {
209
209
  900: { color: '#191919', contrast: '--colors-shades-white-color' },
210
210
  950: { color: '#141414', contrast: '--colors-shades-white-color' },
211
211
  990: { color: '#0b0b0b', contrast: '--colors-shades-white-color' },
212
+ 1000: { color: '#287379', contrast: '--colors-shades-white-color' },
212
213
  },
213
214
  semantic: {
214
215
  positive: { color: '#2f806a', contrast: '--colors-shades-white-color' },
@@ -634,7 +635,7 @@ var thebodcon = {
634
635
  total: {
635
636
  basicTotal: {
636
637
  amount: {
637
- color: '--colors-shades-550-color',
638
+ color: '--colors-pallete-primary-20-color',
638
639
  fontSize: '24px',
639
640
  },
640
641
  currency: {
@@ -662,20 +663,21 @@ var thebodcon = {
662
663
  priceLabel: {
663
664
  price: {
664
665
  size: ComponentSize.Small,
665
- originalPriceColor: '--colors-shades-300-color',
666
+ originalPriceColor: '--colors-shades-400-color',
666
667
  actualPriceColor: '--colors-semantic-urgent-color',
667
668
  },
668
669
  },
669
670
  subtitle: {
670
671
  fontSize: '14px',
671
672
  lineHeight: '22px',
672
- color: '--colors-pallete-secondary-color',
673
+ color: '--colors-shades-700-color',
673
674
  fontWeight: '400',
674
675
  },
675
676
  },
676
677
  orderSummary: {
677
678
  headingTextAlign: 'left',
678
679
  maxWidth: '428px',
680
+ color: '--colors-shades-700-color',
679
681
  onMobile: {
680
682
  maxWidth: '100%',
681
683
  padding: '15px',
@@ -83,6 +83,7 @@ declare type ThemeColors = {
83
83
  900: ThemeBasicPallete;
84
84
  950: ThemeBasicPallete;
85
85
  990: ThemeBasicPallete;
86
+ 1000?: ThemeBasicPallete;
86
87
  };
87
88
  semantic: {
88
89
  positive: ThemeColorPallete;
@@ -577,6 +578,7 @@ declare type ThemeComponent = {
577
578
  padding?: string;
578
579
  borderRadius?: string;
579
580
  maxWidth?: string;
581
+ color?: string;
580
582
  onMobile: {
581
583
  position?: string;
582
584
  maxWidth?: string;
@@ -83,6 +83,7 @@ declare type ThemeColors = {
83
83
  900: ThemeBasicPallete;
84
84
  950: ThemeBasicPallete;
85
85
  990: ThemeBasicPallete;
86
+ 1000?: ThemeBasicPallete;
86
87
  };
87
88
  semantic: {
88
89
  positive: ThemeColorPallete;
@@ -577,6 +578,7 @@ declare type ThemeComponent = {
577
578
  padding?: string;
578
579
  borderRadius?: string;
579
580
  maxWidth?: string;
581
+ color?: string;
580
582
  onMobile: {
581
583
  position?: string;
582
584
  maxWidth?: string;
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": "6.36.19",
6
+ "version": "6.36.21",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",