@evergis/uilib-gl 1.0.110 → 1.0.111

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.
@@ -9,5 +9,5 @@ interface IProps extends PropsWithChildren {
9
9
  export declare class ThemeSwitcher extends Component<IProps> {
10
10
  render(): import("react").JSX.Element;
11
11
  }
12
- export declare const ThemeSwitcherDecorator: (story: any) => import("react").JSX.Element;
12
+ export declare const ThemeSwitcherDecorator: (story: any, context: any) => import("react").JSX.Element;
13
13
  export {};
@@ -1,7 +1,7 @@
1
1
  import { memo, Children, cloneElement, Component, isValidElement, useRef, useEffect, useState, useMemo, useCallback, useLayoutEffect, Fragment } from 'react';
2
2
  import styled, { ThemeProvider as ThemeProvider$1, css, useTheme as useTheme$1, keyframes, createGlobalStyle } from 'styled-components';
3
3
  import merge from 'deepmerge';
4
- import { rgb, hsl, hsla, opacify, ellipsis, rem, normalize } from 'polished';
4
+ import { rgb, hsl, hsla, opacify, ellipsis, transparentize, rem, normalize } from 'polished';
5
5
  import ReactDOM__default, { createPortal } from 'react-dom';
6
6
  import tippy from 'tippy.js';
7
7
  import format from 'date-fns/format';
@@ -13120,34 +13120,24 @@ const CardLoaderShining = styled.div`
13120
13120
  position: absolute;
13121
13121
  top: 0;
13122
13122
  left: 0;
13123
- background-color: #333;
13124
13123
  width: 100%;
13125
13124
  animation-duration: 0.6s;
13126
13125
  animation-iteration-count: infinite;
13127
13126
  animation-name: loader-animate;
13128
13127
  animation-timing-function: linear;
13129
- background: -webkit-linear-gradient(
13130
- left,
13131
- rgba(255, 255, 255, 0) 0%,
13132
- rgba(255, 255, 255, 0.6) 30%,
13133
- rgba(255, 255, 255, 0) 81%
13134
- );
13135
- background: -o-linear-gradient(
13136
- left,
13137
- rgba(255, 255, 255, 0) 0%,
13138
- rgba(255, 255, 255, 0.6) 30%,
13139
- rgba(255, 255, 255, 0) 81%
13140
- );
13141
- background: linear-gradient(
13128
+ background: ${_ref3 => {
13129
+ let {
13130
+ theme: {
13131
+ palette
13132
+ }
13133
+ } = _ref3;
13134
+ return `linear-gradient(
13142
13135
  to right,
13143
- rgba(255, 255, 255, 0) 0%,
13144
- rgba(255, 255, 255, 0.6) 30%,
13145
- rgba(255, 255, 255, 0) 81%
13146
- );
13147
- filter: progid:DXImageTransform.Microsoft.gradient(
13148
- startColorstr='#00ffffff',
13149
- endColorstr='#00ffffff',
13150
- GradientType=1);
13136
+ ${transparentize(1, palette.background)} 0%,
13137
+ ${transparentize(0.4, palette.background)} 30%,
13138
+ ${transparentize(1, palette.background)} 81%
13139
+ )`;
13140
+ }};
13151
13141
 
13152
13142
  @keyframes loader-animate {
13153
13143
  0% {
@@ -13161,46 +13151,47 @@ const CardLoaderShining = styled.div`
13161
13151
  const CardLoaderContainer = styled.div`
13162
13152
  position: relative;
13163
13153
  display: flex;
13164
- width: ${_ref3 => {
13154
+ width: ${_ref4 => {
13165
13155
  let {
13166
13156
  width
13167
- } = _ref3;
13157
+ } = _ref4;
13168
13158
  return setWidth(width);
13169
13159
  }};
13160
+ overflow: hidden;
13170
13161
 
13171
13162
  ${CardLoaderPreview} {
13172
- height: ${_ref4 => {
13163
+ height: ${_ref5 => {
13173
13164
  let {
13174
13165
  height
13175
- } = _ref4;
13166
+ } = _ref5;
13176
13167
  return setHeight(height);
13177
13168
  }};
13178
- width: ${_ref5 => {
13169
+ width: ${_ref6 => {
13179
13170
  let {
13180
13171
  height
13181
- } = _ref5;
13172
+ } = _ref6;
13182
13173
  return setHeight(height);
13183
13174
  }};
13184
- min-height: ${_ref6 => {
13175
+ min-height: ${_ref7 => {
13185
13176
  let {
13186
13177
  height
13187
- } = _ref6;
13178
+ } = _ref7;
13188
13179
  return setHeight(height);
13189
13180
  }};
13190
- min-width: ${_ref7 => {
13181
+ min-width: ${_ref8 => {
13191
13182
  let {
13192
13183
  height
13193
- } = _ref7;
13184
+ } = _ref8;
13194
13185
  return setHeight(height);
13195
13186
  }};
13196
13187
  }
13197
13188
 
13198
13189
  ${CardLoaderShining},
13199
13190
  ${CardLoaderBars} {
13200
- height: ${_ref8 => {
13191
+ height: ${_ref9 => {
13201
13192
  let {
13202
13193
  height
13203
- } = _ref8;
13194
+ } = _ref9;
13204
13195
  return setHeight(height);
13205
13196
  }};
13206
13197
  }
@@ -13210,29 +13201,29 @@ const CardLoaderContainer = styled.div`
13210
13201
  }
13211
13202
 
13212
13203
  ${CardLoaderBars} {
13213
- padding-top: calc(${_ref9 => {
13204
+ padding-top: calc(${_ref10 => {
13214
13205
  let {
13215
13206
  height
13216
- } = _ref9;
13207
+ } = _ref10;
13217
13208
  return setHeight(height);
13218
13209
  }} / 6);
13219
13210
  box-sizing: border-box;
13220
13211
 
13221
13212
  ${CardLoaderBar} {
13222
13213
  &:first-child {
13223
- height: calc(${_ref10 => {
13214
+ height: calc(${_ref11 => {
13224
13215
  let {
13225
13216
  height
13226
- } = _ref10;
13217
+ } = _ref11;
13227
13218
  return setHeight(height);
13228
13219
  }} / 4);
13229
13220
  }
13230
13221
 
13231
13222
  &:not(:first-child) {
13232
- height: calc(${_ref11 => {
13223
+ height: calc(${_ref12 => {
13233
13224
  let {
13234
13225
  height
13235
- } = _ref11;
13226
+ } = _ref12;
13236
13227
  return setHeight(height);
13237
13228
  }} / 6);
13238
13229
  }
@@ -25292,6 +25283,26 @@ const InjectGlobalStyles = function (_temp) {
25292
25283
  }) : null;
25293
25284
  };
25294
25285
 
25286
+ const ThemeBodyBackground = createGlobalStyle`
25287
+ html, body {
25288
+ background-color: ${_ref => {
25289
+ let {
25290
+ theme: {
25291
+ palette
25292
+ }
25293
+ } = _ref;
25294
+ return palette.background;
25295
+ }};
25296
+ color: ${_ref2 => {
25297
+ let {
25298
+ theme: {
25299
+ palette
25300
+ }
25301
+ } = _ref2;
25302
+ return palette.textPrimary;
25303
+ }};
25304
+ }
25305
+ `;
25295
25306
  var Themes;
25296
25307
 
25297
25308
  (function (Themes) {