@janiscommerce/ui-web 0.20.0 → 0.22.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 +16 -0
- package/dist/index.umd.js +64 -64
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.22.0] - 2024-09-25
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- minor version of react and react dom in peer dependencies
|
|
15
|
+
|
|
16
|
+
## [0.21.0] - 2024-09-24
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- export palette colors
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- viewPalette to palette name
|
|
25
|
+
|
|
10
26
|
## [0.20.0] - 2024-08-27
|
|
11
27
|
|
|
12
28
|
### Added
|
package/dist/index.umd.js
CHANGED
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
549
|
|
|
550
|
-
var
|
|
550
|
+
var palette = {
|
|
551
551
|
black: '#2F2F2F',
|
|
552
552
|
blackHover: '#585858',
|
|
553
553
|
blackPressed: '#16232D',
|
|
@@ -576,7 +576,6 @@
|
|
|
576
576
|
lightGrey: '#E8EAF6',
|
|
577
577
|
lightGreyHover: '#F4F5FB',
|
|
578
578
|
lightGreyPressed: '#D0D3E3',
|
|
579
|
-
lightGreySelected: '#E4ECFA',
|
|
580
579
|
lightTurquoise: '#BBE9D6',
|
|
581
580
|
magenta: '#ED14A4',
|
|
582
581
|
orange: '#FF8D10',
|
|
@@ -613,7 +612,7 @@
|
|
|
613
612
|
*/
|
|
614
613
|
|
|
615
614
|
var getColor = function getColor(color) {
|
|
616
|
-
return
|
|
615
|
+
return palette[color] || color;
|
|
617
616
|
};
|
|
618
617
|
|
|
619
618
|
var timingFunctions$1 = {
|
|
@@ -657,7 +656,7 @@
|
|
|
657
656
|
return width;
|
|
658
657
|
}, function (_ref4) {
|
|
659
658
|
var backgroundColor = _ref4.backgroundColor;
|
|
660
|
-
return backgroundColor ||
|
|
659
|
+
return backgroundColor || palette.lightGrey;
|
|
661
660
|
})
|
|
662
661
|
};
|
|
663
662
|
|
|
@@ -727,7 +726,7 @@
|
|
|
727
726
|
return styled$g.css(["transition:", ";", ";"], transition, transitionProperty);
|
|
728
727
|
},
|
|
729
728
|
scrollbar: function scrollbar(thumbColor, shadowColor) {
|
|
730
|
-
return styled$g.css(["&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px ", ";}&::-webkit-scrollbar-thumb{height:5px;width:4px;border-radius:50px;background-color:", ";}"], shadowColor ||
|
|
729
|
+
return styled$g.css(["&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{box-shadow:inset 0 0 6px ", ";}&::-webkit-scrollbar-thumb{height:5px;width:4px;border-radius:50px;background-color:", ";}"], shadowColor || palette.white, thumbColor);
|
|
731
730
|
}
|
|
732
731
|
};
|
|
733
732
|
|
|
@@ -744,7 +743,7 @@
|
|
|
744
743
|
}, function (_ref3) {
|
|
745
744
|
var rounded = _ref3.rounded;
|
|
746
745
|
return rounded ? '50%' : '3px';
|
|
747
|
-
},
|
|
746
|
+
}, palette.white, function (_ref4) {
|
|
748
747
|
var color = _ref4.color;
|
|
749
748
|
return color;
|
|
750
749
|
}, mixins.flexCenter)
|
|
@@ -866,7 +865,7 @@
|
|
|
866
865
|
size: 'small',
|
|
867
866
|
url: '',
|
|
868
867
|
rounded: true,
|
|
869
|
-
mainColor:
|
|
868
|
+
mainColor: palette.grey
|
|
870
869
|
};
|
|
871
870
|
|
|
872
871
|
var _templateObject$4;
|
|
@@ -876,7 +875,7 @@
|
|
|
876
875
|
componentId: "sc-jf3e5i-0"
|
|
877
876
|
})(["fill:", ";", " ", ";"], function (props) {
|
|
878
877
|
return getColor(props.color);
|
|
879
|
-
}, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])),
|
|
878
|
+
}, mediaBreaks.onlyPrint(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n\t\t\tfill: ", ";\n\t\t"])), palette.darkGrey), function (props) {
|
|
880
879
|
return props.styles;
|
|
881
880
|
}),
|
|
882
881
|
Path: styled__default["default"].path.withConfig({
|
|
@@ -894,7 +893,7 @@
|
|
|
894
893
|
Item: styled__default["default"].div.withConfig({
|
|
895
894
|
displayName: "styles__Item",
|
|
896
895
|
componentId: "sc-jf3e5i-3"
|
|
897
|
-
})(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles.Svg, mixins.transition('fill'),
|
|
896
|
+
})(["padding:5px;border:1px dashed #ccc;cursor:default;display:grid;justify-items:center;justify-content:center;grid-row-gap:5px;", ";& ", "{", ";}&:hover{color:", ";}&:hover ", "{fill:", ";}"], mixins.transition('color'), styles.Svg, mixins.transition('fill'), palette.blue, styles.Svg, palette.blue),
|
|
898
897
|
SearchInput: styled__default["default"].input.withConfig({
|
|
899
898
|
displayName: "styles__SearchInput",
|
|
900
899
|
componentId: "sc-jf3e5i-4"
|
|
@@ -2285,7 +2284,7 @@
|
|
|
2285
2284
|
return !props.onlyIcon ? '0 12px' : '0';
|
|
2286
2285
|
}, function (props) {
|
|
2287
2286
|
return props.clickable ? 'pointer' : 'default';
|
|
2288
|
-
},
|
|
2287
|
+
}, palette.black, function (props) {
|
|
2289
2288
|
return !props.onlyIcon ? '32px' : '36px';
|
|
2290
2289
|
}, function (props) {
|
|
2291
2290
|
return props.onlyIcon && '36px';
|
|
@@ -2298,10 +2297,10 @@
|
|
|
2298
2297
|
}, function (props) {
|
|
2299
2298
|
switch (props.variant) {
|
|
2300
2299
|
case 'outlined':
|
|
2301
|
-
return styled$g.css(["border:1px solid ", ";color:", ";&:hover{background-color:", ";}&:hover .chip-icon,&:hover .delete-button{fill:", ";}&:active{border-color:", ";color:", ";background-color:transparent;}&:active .chip-icon,&:active .delete-button{fill:", ";}"], props.selected ?
|
|
2300
|
+
return styled$g.css(["border:1px solid ", ";color:", ";&:hover{background-color:", ";}&:hover .chip-icon,&:hover .delete-button{fill:", ";}&:active{border-color:", ";color:", ";background-color:transparent;}&:active .chip-icon,&:active .delete-button{fill:", ";}"], props.selected ? palette.blue : '#EAEBED', props.selected ? palette.blue : palette.black, palette.lightGreyHover, props.selected ? palette.blue : palette.black, palette.blue, palette.blue, palette.blue);
|
|
2302
2301
|
|
|
2303
2302
|
case 'contained':
|
|
2304
|
-
return styled$g.css(["background-color:", ";color:", ";.chip-icon{fill:", ";}.delete-button{fill:", ";}&:hover{background-color:", ";}&:hover .delete-button{fill:", ";}&:active{background-color:", ";color:", ";}&:active .chip-icon,&:active .delete-button{fill:", ";}&:disabled{fill:", ";color:", ";}"], props.selected ?
|
|
2303
|
+
return styled$g.css(["background-color:", ";color:", ";.chip-icon{fill:", ";}.delete-button{fill:", ";}&:hover{background-color:", ";}&:hover .delete-button{fill:", ";}&:active{background-color:", ";color:", ";}&:active .chip-icon,&:active .delete-button{fill:", ";}&:disabled{fill:", ";color:", ";}"], props.selected ? palette.blue : palette.lightGreyHover, props.selected ? palette.white : palette.black, props.selected ? palette.white : palette.black, props.selected ? palette.white : palette.darkGrey, props.selected ? palette.blueHover : palette.lightGrey, props.selected ? palette.white : palette.black, palette.blue, palette.white, palette.white, palette.grey, palette.grey);
|
|
2305
2304
|
|
|
2306
2305
|
case 'status':
|
|
2307
2306
|
return styled$g.css(["background-color:", ";color:", ";font-weight:700;border:none;height:24px;padding:0 17px;line-height:28px;max-width:170px;"], getColor(props.color || 'grey'), getColor(props.sizeColor || 'white'));
|
|
@@ -2317,7 +2316,7 @@
|
|
|
2317
2316
|
return props.backgroundColor && "background-color: ".concat(getColor(props.backgroundColor), ";");
|
|
2318
2317
|
}, function (props) {
|
|
2319
2318
|
return props.textColor && "color: ".concat(getColor(props.textColor), ";");
|
|
2320
|
-
}, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])),
|
|
2319
|
+
}, mediaBreaks.onlyPrint(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.darkGrey)),
|
|
2321
2320
|
iconPathStyles: styled$g.css(["", ";"], mixins.transition('fill')),
|
|
2322
2321
|
DeleteButton: styled__default["default"].button.withConfig({
|
|
2323
2322
|
displayName: "styles__DeleteButton",
|
|
@@ -2397,13 +2396,13 @@
|
|
|
2397
2396
|
})(["pointer-events:none;", " background:", ";", " & div{display:flex;& div,img,span{&:not(:first-child){margin-left:-4px;}}span:first-of-type{margin-left:0px;}}"], function (_ref) {
|
|
2398
2397
|
var showFull = _ref.showFull,
|
|
2399
2398
|
backgroundColor = _ref.backgroundColor;
|
|
2400
|
-
return showFull ? styled$g.css(["height:45px;padding-left:9px;padding-right:9px;max-width:inherit;&:hover,&:active{background:", ";}"], backgroundColor ||
|
|
2399
|
+
return showFull ? styled$g.css(["height:45px;padding-left:9px;padding-right:9px;max-width:inherit;&:hover,&:active{background:", ";}"], backgroundColor || palette.white) : styled$g.css(["height:33px;padding-left:5px;padding-right:5px;cursor:pointer;"]);
|
|
2401
2400
|
}, function (_ref2) {
|
|
2402
2401
|
var backgroundColor = _ref2.backgroundColor;
|
|
2403
|
-
return backgroundColor ||
|
|
2402
|
+
return backgroundColor || palette.white;
|
|
2404
2403
|
}, function (_ref3) {
|
|
2405
2404
|
var inactive = _ref3.inactive;
|
|
2406
|
-
return inactive && "\n &:hover {\n background: ".concat(
|
|
2405
|
+
return inactive && "\n &:hover {\n background: ".concat(palette.white, ";\n }\n &:active {\n border-color: #EAEBED;\n }\n ");
|
|
2407
2406
|
})
|
|
2408
2407
|
};
|
|
2409
2408
|
|
|
@@ -2454,7 +2453,7 @@
|
|
|
2454
2453
|
};
|
|
2455
2454
|
|
|
2456
2455
|
AvatarGroup.defaultProps = {
|
|
2457
|
-
badgeColor:
|
|
2456
|
+
badgeColor: palette.blue,
|
|
2458
2457
|
users: [],
|
|
2459
2458
|
usersToDisplay: 5,
|
|
2460
2459
|
showFull: false
|
|
@@ -2487,22 +2486,22 @@
|
|
|
2487
2486
|
PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.shape({})]);
|
|
2488
2487
|
|
|
2489
2488
|
var validColors = ['black', 'blue', 'darkGrey', 'fizzGreen', 'green', 'grey', 'lightBlue', 'lightGrey', 'orange', 'red', 'statusRed', 'white', 'yellow'];
|
|
2490
|
-
var white =
|
|
2491
|
-
grey =
|
|
2492
|
-
lightGreyHover =
|
|
2493
|
-
lightGrey =
|
|
2494
|
-
blue =
|
|
2495
|
-
blueHover =
|
|
2496
|
-
bluePressed =
|
|
2489
|
+
var white = palette.white,
|
|
2490
|
+
grey = palette.grey,
|
|
2491
|
+
lightGreyHover = palette.lightGreyHover,
|
|
2492
|
+
lightGrey = palette.lightGrey,
|
|
2493
|
+
blue = palette.blue,
|
|
2494
|
+
blueHover = palette.blueHover,
|
|
2495
|
+
bluePressed = palette.bluePressed;
|
|
2497
2496
|
|
|
2498
2497
|
var isValidColor = function isValidColor(color) {
|
|
2499
2498
|
return validColors.includes(color);
|
|
2500
2499
|
};
|
|
2501
2500
|
var getHoverColor = function getHoverColor(color) {
|
|
2502
|
-
return isValidColor(color) ?
|
|
2501
|
+
return isValidColor(color) ? palette["".concat(color, "Hover")] : blueHover;
|
|
2503
2502
|
};
|
|
2504
2503
|
var getPressedColor = function getPressedColor(color) {
|
|
2505
|
-
return isValidColor(color) ?
|
|
2504
|
+
return isValidColor(color) ? palette["".concat(color, "Pressed")] : bluePressed;
|
|
2506
2505
|
};
|
|
2507
2506
|
|
|
2508
2507
|
var commonStyles = function commonStyles(iconColor, fontColor, color) {
|
|
@@ -2549,10 +2548,10 @@
|
|
|
2549
2548
|
}, function (_ref5) {
|
|
2550
2549
|
var disabled = _ref5.disabled;
|
|
2551
2550
|
return disabled ? 'default' : 'pointer';
|
|
2552
|
-
}, mixins.transition('background-color', '250ms'), timingFunctions$1.standard,
|
|
2551
|
+
}, mixins.transition('background-color', '250ms'), timingFunctions$1.standard, palette.transparentWhite, function (_ref6) {
|
|
2553
2552
|
var hasText = _ref6.hasText;
|
|
2554
2553
|
return hasText && '8px';
|
|
2555
|
-
},
|
|
2554
|
+
}, palette.white, mixins.transition('fill', '250ms'), getButtonStyles, function (_ref7) {
|
|
2556
2555
|
var iconColor = _ref7.iconColor;
|
|
2557
2556
|
return getColor(iconColor);
|
|
2558
2557
|
}, function (_ref8) {
|
|
@@ -2682,7 +2681,7 @@
|
|
|
2682
2681
|
componentId: "sc-zbd85t-1"
|
|
2683
2682
|
})(["display:block;width:16px;height:16px;background-color:", ";border:1px solid ", ";border-radius:50%;"], function (props) {
|
|
2684
2683
|
return props.color;
|
|
2685
|
-
},
|
|
2684
|
+
}, palette.grey),
|
|
2686
2685
|
Label: styled__default["default"].span.withConfig({
|
|
2687
2686
|
displayName: "styles__Label",
|
|
2688
2687
|
componentId: "sc-zbd85t-2"
|
|
@@ -2712,28 +2711,28 @@
|
|
|
2712
2711
|
|
|
2713
2712
|
switch (true) {
|
|
2714
2713
|
case disabled && checked:
|
|
2715
|
-
return
|
|
2714
|
+
return palette.blueDisabled;
|
|
2716
2715
|
|
|
2717
2716
|
case disabled:
|
|
2718
|
-
return
|
|
2717
|
+
return palette.grey;
|
|
2719
2718
|
|
|
2720
2719
|
case checked:
|
|
2721
|
-
return
|
|
2720
|
+
return palette.blue;
|
|
2722
2721
|
|
|
2723
2722
|
default:
|
|
2724
|
-
return
|
|
2723
|
+
return palette.darkGrey;
|
|
2725
2724
|
}
|
|
2726
2725
|
};
|
|
2727
2726
|
var Ball = styled__default["default"].div.withConfig({
|
|
2728
2727
|
displayName: "styles__Ball",
|
|
2729
2728
|
componentId: "sc-rtzdt3-0"
|
|
2730
|
-
})(["width:16px;height:16px;border-radius:50%;position:absolute;top:4px;left:4px;background-color:", ";transition:all ", " 0.2s;", ""],
|
|
2729
|
+
})(["width:16px;height:16px;border-radius:50%;position:absolute;top:4px;left:4px;background-color:", ";transition:all ", " 0.2s;", ""], palette.white, timingFunctions$1.standard, function (props) {
|
|
2731
2730
|
return props.checked && "\n\t\t\tleft: 100%;\n\t\t\tmargin-left: -20px;\n\t\t";
|
|
2732
2731
|
});
|
|
2733
2732
|
var iconCheckStyles = styled$g.css(["position:absolute;fill:", ";", ""], function (props) {
|
|
2734
2733
|
return statusColor(props);
|
|
2735
2734
|
}, onlyPrint(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n\t\tfill: ", " !important;\n\t"])), function (props) {
|
|
2736
|
-
return props.checked ?
|
|
2735
|
+
return props.checked ? palette.black : palette.darkGrey;
|
|
2737
2736
|
}));
|
|
2738
2737
|
var styled$7 = {
|
|
2739
2738
|
OuterContainer: styled__default["default"].div.withConfig({
|
|
@@ -2741,10 +2740,10 @@
|
|
|
2741
2740
|
componentId: "sc-rtzdt3-1"
|
|
2742
2741
|
})(["display:flex;width:44px;align-items:center;pointer-events:", ";align-self:center;position:relative;", " &:active ", "{box-shadow:0px 0px 0px 10px ", ";", " svg{fill:", ";}}"], function (props) {
|
|
2743
2742
|
return props.disabled ? 'none' : 'auto';
|
|
2744
|
-
}, onlyDesktop(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t&:hover ", " {\n\t\t\t\tbox-shadow: 0px 0px 0px 10px ", ";\n\t\t\t}\n\t\t"])), Ball,
|
|
2743
|
+
}, onlyDesktop(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t&:hover ", " {\n\t\t\t\tbox-shadow: 0px 0px 0px 10px ", ";\n\t\t\t}\n\t\t"])), Ball, palette.lightGreyHover), Ball, palette.lightGrey,
|
|
2745
2744
|
/* sc-selector */
|
|
2746
2745
|
iconCheckStyles, function (props) {
|
|
2747
|
-
return props.checked ?
|
|
2746
|
+
return props.checked ? palette.blue : palette.darkGrey;
|
|
2748
2747
|
}),
|
|
2749
2748
|
Input: styled__default["default"].input.withConfig({
|
|
2750
2749
|
displayName: "styles__Input",
|
|
@@ -2756,7 +2755,7 @@
|
|
|
2756
2755
|
componentId: "sc-rtzdt3-3"
|
|
2757
2756
|
})(["width:44px;height:24px;background-color:", ";border-radius:50px;position:relative;", ""], function (props) {
|
|
2758
2757
|
return statusColor(props);
|
|
2759
|
-
}, onlyPrint(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])),
|
|
2758
|
+
}, onlyPrint(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\tborder: 1px solid ", ";\n\t\t"])), palette.darkGrey)),
|
|
2760
2759
|
iconCheckStyles: iconCheckStyles
|
|
2761
2760
|
};
|
|
2762
2761
|
|
|
@@ -2845,19 +2844,19 @@
|
|
|
2845
2844
|
|
|
2846
2845
|
switch (true) {
|
|
2847
2846
|
case disabled:
|
|
2848
|
-
return
|
|
2847
|
+
return palette.grey;
|
|
2849
2848
|
|
|
2850
2849
|
case error:
|
|
2851
|
-
return
|
|
2850
|
+
return palette.statusRed;
|
|
2852
2851
|
|
|
2853
2852
|
case isFocused:
|
|
2854
|
-
return
|
|
2853
|
+
return palette.blue;
|
|
2855
2854
|
|
|
2856
2855
|
case isFloating:
|
|
2857
|
-
return
|
|
2856
|
+
return palette.darkGrey;
|
|
2858
2857
|
|
|
2859
2858
|
default:
|
|
2860
|
-
return
|
|
2859
|
+
return palette.darkGreyPressed;
|
|
2861
2860
|
}
|
|
2862
2861
|
};
|
|
2863
2862
|
|
|
@@ -2868,16 +2867,16 @@
|
|
|
2868
2867
|
|
|
2869
2868
|
switch (true) {
|
|
2870
2869
|
case disabled:
|
|
2871
|
-
return
|
|
2870
|
+
return palette.grey;
|
|
2872
2871
|
|
|
2873
2872
|
case error:
|
|
2874
|
-
return
|
|
2873
|
+
return palette.statusRed;
|
|
2875
2874
|
|
|
2876
2875
|
case isFocused:
|
|
2877
|
-
return
|
|
2876
|
+
return palette.blue;
|
|
2878
2877
|
|
|
2879
2878
|
default:
|
|
2880
|
-
return
|
|
2879
|
+
return palette.black;
|
|
2881
2880
|
}
|
|
2882
2881
|
};
|
|
2883
2882
|
|
|
@@ -2908,26 +2907,26 @@
|
|
|
2908
2907
|
componentId: "sc-1fhkfhs-2"
|
|
2909
2908
|
})(["@keyframes onAutoFill{}", " height:34px;border:none;font-size:", ";font-weight:400;color:", ";transition:color 0.2s ", ";cursor:pointer;width:100%;border-bottom:1px solid ", ";border-radius:0;", " ", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}&:-webkit-autofill{animation-name:onAutoFill;}::-webkit-inner-spin-button{appearance:none;}", ""], function (props) {
|
|
2910
2909
|
return !props.noMinWidth && 'min-width: 100px;';
|
|
2911
|
-
}, fontSize$1,
|
|
2910
|
+
}, fontSize$1, palette.black, timingFunctions.standard, palette.grey, function (_ref3) {
|
|
2912
2911
|
var error = _ref3.error;
|
|
2913
|
-
return error && "border-bottom-color: ".concat(
|
|
2912
|
+
return error && "border-bottom-color: ".concat(palette.statusRed, ";");
|
|
2914
2913
|
}, function (_ref4) {
|
|
2915
2914
|
var hasIcon = _ref4.hasIcon;
|
|
2916
2915
|
return hasIcon && "padding-left: 32px;";
|
|
2917
2916
|
}, mixins.placeholder(styled$g.css(["font-weight:400;color:", ";"], function (_ref5) {
|
|
2918
2917
|
var error = _ref5.error;
|
|
2919
|
-
return error ?
|
|
2918
|
+
return error ? palette.statusRed : palette.darkGreyPressed;
|
|
2920
2919
|
})), function (props) {
|
|
2921
2920
|
return hoverAndFocusColor(props);
|
|
2922
2921
|
}, function (props) {
|
|
2923
2922
|
return hoverAndFocusColor(props);
|
|
2924
2923
|
}, function (props) {
|
|
2925
2924
|
return hoverAndFocusColor(props);
|
|
2926
|
-
},
|
|
2925
|
+
}, palette.white, palette.grey, palette.grey, mediaBreaks.onlyPrint(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n\t\t\tborder-bottom: none;\n\t\t"])))),
|
|
2927
2926
|
ErrorMessage: styled__default["default"].span.withConfig({
|
|
2928
2927
|
displayName: "styles__ErrorMessage",
|
|
2929
2928
|
componentId: "sc-1fhkfhs-3"
|
|
2930
|
-
})(["color:", ";font-size:12px;line-height:14px;transform:translateY(-6px);word-break:break-word;"],
|
|
2929
|
+
})(["color:", ";font-size:12px;line-height:14px;transform:translateY(-6px);word-break:break-word;"], palette.statusRed),
|
|
2931
2930
|
InputIcon: styled__default["default"](Icon).withConfig({
|
|
2932
2931
|
displayName: "styles__InputIcon",
|
|
2933
2932
|
componentId: "sc-1fhkfhs-4"
|
|
@@ -3105,19 +3104,19 @@
|
|
|
3105
3104
|
|
|
3106
3105
|
switch (true) {
|
|
3107
3106
|
case disabled:
|
|
3108
|
-
return
|
|
3107
|
+
return palette.grey;
|
|
3109
3108
|
|
|
3110
3109
|
case error:
|
|
3111
|
-
return
|
|
3110
|
+
return palette.statusRed;
|
|
3112
3111
|
|
|
3113
3112
|
case isFocused:
|
|
3114
|
-
return
|
|
3113
|
+
return palette.blue;
|
|
3115
3114
|
|
|
3116
3115
|
case isFloating:
|
|
3117
|
-
return
|
|
3116
|
+
return palette.darkGrey;
|
|
3118
3117
|
|
|
3119
3118
|
default:
|
|
3120
|
-
return
|
|
3119
|
+
return palette.darkGreyPressed;
|
|
3121
3120
|
}
|
|
3122
3121
|
};
|
|
3123
3122
|
|
|
@@ -3131,12 +3130,12 @@
|
|
|
3131
3130
|
Textarea: styled__default["default"].textarea.withConfig({
|
|
3132
3131
|
displayName: "styles__Textarea",
|
|
3133
3132
|
componentId: "sc-wtau65-1"
|
|
3134
|
-
})(["border:none;border-bottom:1px solid ", ";border-radius:0;height:23px;max-height:350px;padding:0 9px 4px 0;resize:none;font-size:", ";font-weight:400;color:", ";", ";width:", ";", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}", " ", ""],
|
|
3133
|
+
})(["border:none;border-bottom:1px solid ", ";border-radius:0;height:23px;max-height:350px;padding:0 9px 4px 0;resize:none;font-size:", ";font-weight:400;color:", ";", ";width:", ";", " ", " &:hover{border-color:", ";}&:focus{border-color:", ";caret-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";border-color:", ";cursor:default;}", " ", ""], palette.grey, fontSize, palette.black, mixins.transition('color,border-color', '0.2s'), function (props) {
|
|
3135
3134
|
return props.fullWidth ? '100%' : 'auto';
|
|
3136
3135
|
}, mixins.placeholder(styled$g.css(["opacity:1;color:", ";"], function (props) {
|
|
3137
3136
|
return placeholderColor(props);
|
|
3138
|
-
})), mixins.scrollbar(
|
|
3139
|
-
return props.error && "\n\t\t\t&, &:hover, &:focus {\n\t\t\t\tborder-color: ".concat(
|
|
3137
|
+
})), mixins.scrollbar(palette.grey, palette.base), palette.black, palette.blue, palette.blue, palette.white, palette.grey, palette.grey, function (props) {
|
|
3138
|
+
return props.error && "\n\t\t\t&, &:hover, &:focus {\n\t\t\t\tborder-color: ".concat(palette.statusRed, "\n\t\t\t}\n\t\t");
|
|
3140
3139
|
}, mediaBreaks.onlyPrint(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\tmin-height: initial;\n\t\t\theight: auto !important;\n\t\t\tborder-bottom: none;\n\t\t"])))),
|
|
3141
3140
|
FloatingLabel: styled__default["default"].div.withConfig({
|
|
3142
3141
|
displayName: "styles__FloatingLabel",
|
|
@@ -3152,7 +3151,7 @@
|
|
|
3152
3151
|
ErrorMessage: styled__default["default"].span.withConfig({
|
|
3153
3152
|
displayName: "styles__ErrorMessage",
|
|
3154
3153
|
componentId: "sc-wtau65-3"
|
|
3155
|
-
})(["color:", ";font-size:12px;line-height:14px;display:block;word-break:break-word;"],
|
|
3154
|
+
})(["color:", ";font-size:12px;line-height:14px;display:block;word-break:break-word;"], palette.statusRed)
|
|
3156
3155
|
};
|
|
3157
3156
|
|
|
3158
3157
|
var _excluded$2 = ["label", "error", "disabled", "placeholder", "autoComplete", "errorMessage", "hasFloatingLabel", "isTranslateActive", "value", "defaultValue"];
|
|
@@ -3370,7 +3369,7 @@
|
|
|
3370
3369
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
3371
3370
|
name: errorImage,
|
|
3372
3371
|
size: (width || height) * 0.35 || 20,
|
|
3373
|
-
color:
|
|
3372
|
+
color: palette.lightGreyPressed
|
|
3374
3373
|
})) : /*#__PURE__*/React__default["default"].createElement(styled$4.Image, {
|
|
3375
3374
|
src: url,
|
|
3376
3375
|
alt: altText || url,
|
|
@@ -3384,7 +3383,7 @@
|
|
|
3384
3383
|
};
|
|
3385
3384
|
|
|
3386
3385
|
Image.defaultProps = {
|
|
3387
|
-
background:
|
|
3386
|
+
background: palette.lightGreyHover
|
|
3388
3387
|
};
|
|
3389
3388
|
|
|
3390
3389
|
var __defProp = Object.defineProperty;
|
|
@@ -4175,7 +4174,7 @@
|
|
|
4175
4174
|
ClickableWrapper: styled__default["default"].div.withConfig({
|
|
4176
4175
|
displayName: "styles__ClickableWrapper",
|
|
4177
4176
|
componentId: "sc-lreg3c-0"
|
|
4178
|
-
})(["display:flex;align-items:center;border:none;cursor:pointer;&:before{content:'';z-index:1;display:inline-block;border:1px solid ", ";background-color:", ";border-radius:48%;width:14px;height:14px;margin:7px 4px;position:absolute;margin-bottom:", "px;}"],
|
|
4177
|
+
})(["display:flex;align-items:center;border:none;cursor:pointer;&:before{content:'';z-index:1;display:inline-block;border:1px solid ", ";background-color:", ";border-radius:48%;width:14px;height:14px;margin:7px 4px;position:absolute;margin-bottom:", "px;}"], palette.grey, function (props) {
|
|
4179
4178
|
return getColor(props.color);
|
|
4180
4179
|
}, function (props) {
|
|
4181
4180
|
return props.error ? '25' : '7';
|
|
@@ -4938,6 +4937,7 @@
|
|
|
4938
4937
|
exports.Skeleton = Skeleton;
|
|
4939
4938
|
exports.Switch = Switch;
|
|
4940
4939
|
exports.Textarea = Textarea;
|
|
4940
|
+
exports.palette = palette;
|
|
4941
4941
|
|
|
4942
4942
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4943
4943
|
|