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