venice-ui 3.0.6 → 3.0.7

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.
@@ -21,8 +21,12 @@ exports.CheckboxBox = styled_components_1.default.div `
21
21
  align-items: center;
22
22
  justify-content: center;
23
23
  box-sizing: border-box;
24
- height: ${({ theme, config, size }) => config.size[size].height}px;
25
- width: ${({ theme, config, size }) => config.size[size].width}px;
24
+ height: calc(
25
+ ${({ theme, config, size }) => config.size[size].height}px - 2px
26
+ );
27
+ width: calc(
28
+ ${({ theme, config, size }) => config.size[size].width}px - 2px
29
+ );
26
30
  border: 1px solid
27
31
  ${({ theme, config, isActive, isDisabled, isIntermedian }) => isDisabled
28
32
  ? config.color.disabled.boxBorder
@@ -20,9 +20,7 @@ exports.FilterTrigerRoot = styled_components_1.default.div `
20
20
  font-size: ${({ theme, config, size }) => config.size.triger[size].fontSize}px;
21
21
  line-height: ${({ theme, config, size }) => config.size.triger[size].lineHeight}px;
22
22
 
23
- ${({ isActive, config }) => isActive
24
- ? `box-shadow: 0 0 0 ${config.size.triger.common.activeShadowWidth}px ${config.color.activeShadow};`
25
- : ''}
23
+
26
24
 
27
25
  &:hover {
28
26
  background: ${({ theme, config }) => config.color.hover.background};
@@ -9,7 +9,7 @@ const react_1 = __importDefault(require("react"));
9
9
  const Tile_styles_1 = require("./Tile.styles");
10
10
  const Header_1 = require("../Header");
11
11
  const styled_components_1 = require("styled-components");
12
- const Tile = ({ theme, themeVariant = 'default', title, children, customHeader, headerDivader, height, size = 'sm', shadow = false, }) => {
12
+ const Tile = ({ theme, themeVariant = 'default', title, children, customHeader, headerDivader, height, size = 'sm', shadow = false, backgroundColor }) => {
13
13
  const resolvedThemeData = (0, config_1.resolveThemeWithComponentsConfig)({
14
14
  theme,
15
15
  themeVariant,
@@ -18,7 +18,7 @@ const Tile = ({ theme, themeVariant = 'default', title, children, customHeader,
18
18
  const { componentsConfig } = resolvedThemeData;
19
19
  const headerConfig = componentsConfig.tile;
20
20
  return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: resolvedTheme },
21
- react_1.default.createElement(Tile_styles_1.TileRoot, { height: height, shadow: shadow, theme: resolvedTheme, config: headerConfig, size: size },
21
+ react_1.default.createElement(Tile_styles_1.TileRoot, { height: height, shadow: shadow, theme: resolvedTheme, config: headerConfig, size: size, backgroundColor: backgroundColor },
22
22
  title && (react_1.default.createElement(Header_1.Header, { title: title, theme: theme, bottomDivader: headerDivader, themeVariant: themeVariant, header: customHeader })),
23
23
  react_1.default.createElement(Tile_styles_1.TileContent, { theme: resolvedTheme, config: headerConfig }, children))));
24
24
  };
@@ -10,7 +10,7 @@ exports.TileRoot = styled_components_1.default.div `
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  width: 100%;
13
- background-color: ${({ config }) => config.color.background};
13
+ background-color: ${({ config, backgroundColor }) => backgroundColor || config.color.background};
14
14
  height: ${(p) => (p.height ? p.height : '100%')};
15
15
  ${(p) => p.shadow && `box-shadow: ${p.config.color.shadow};`}
16
16
  max-width:${({ config, size }) => config.size[size].maxWidth};
@@ -442,7 +442,7 @@ const createComponentsConfig = (theme = 'default') => {
442
442
  sm: {
443
443
  height: exports.measurements.space.xl4,
444
444
  paddingX: exports.measurements.space.sm,
445
- borderRadius: exports.measurements.size.radius.sm,
445
+ radius: exports.measurements.size.radius.sm,
446
446
  fontSize: exports.measurements.font.size.sm,
447
447
  lineHeight: exports.measurements.font.lineHeight.sm,
448
448
  iconSize: 'md',
@@ -15,8 +15,12 @@ export const CheckboxBox = styled.div `
15
15
  align-items: center;
16
16
  justify-content: center;
17
17
  box-sizing: border-box;
18
- height: ${({ theme, config, size }) => config.size[size].height}px;
19
- width: ${({ theme, config, size }) => config.size[size].width}px;
18
+ height: calc(
19
+ ${({ theme, config, size }) => config.size[size].height}px - 2px
20
+ );
21
+ width: calc(
22
+ ${({ theme, config, size }) => config.size[size].width}px - 2px
23
+ );
20
24
  border: 1px solid
21
25
  ${({ theme, config, isActive, isDisabled, isIntermedian }) => isDisabled
22
26
  ? config.color.disabled.boxBorder
@@ -14,9 +14,7 @@ export const FilterTrigerRoot = styled.div `
14
14
  font-size: ${({ theme, config, size }) => config.size.triger[size].fontSize}px;
15
15
  line-height: ${({ theme, config, size }) => config.size.triger[size].lineHeight}px;
16
16
 
17
- ${({ isActive, config }) => isActive
18
- ? `box-shadow: 0 0 0 ${config.size.triger.common.activeShadowWidth}px ${config.color.activeShadow};`
19
- : ''}
17
+
20
18
 
21
19
  &:hover {
22
20
  background: ${({ theme, config }) => config.color.hover.background};
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { TileContent, TileRoot } from './Tile.styles';
4
4
  import { Header } from '../Header';
5
5
  import { ThemeProvider } from 'styled-components';
6
- export const Tile = ({ theme, themeVariant = 'default', title, children, customHeader, headerDivader, height, size = 'sm', shadow = false, }) => {
6
+ export const Tile = ({ theme, themeVariant = 'default', title, children, customHeader, headerDivader, height, size = 'sm', shadow = false, backgroundColor }) => {
7
7
  const resolvedThemeData = resolveThemeWithComponentsConfig({
8
8
  theme,
9
9
  themeVariant,
@@ -12,7 +12,7 @@ export const Tile = ({ theme, themeVariant = 'default', title, children, customH
12
12
  const { componentsConfig } = resolvedThemeData;
13
13
  const headerConfig = componentsConfig.tile;
14
14
  return (React.createElement(ThemeProvider, { theme: resolvedTheme },
15
- React.createElement(TileRoot, { height: height, shadow: shadow, theme: resolvedTheme, config: headerConfig, size: size },
15
+ React.createElement(TileRoot, { height: height, shadow: shadow, theme: resolvedTheme, config: headerConfig, size: size, backgroundColor: backgroundColor },
16
16
  title && (React.createElement(Header, { title: title, theme: theme, bottomDivader: headerDivader, themeVariant: themeVariant, header: customHeader })),
17
17
  React.createElement(TileContent, { theme: resolvedTheme, config: headerConfig }, children))));
18
18
  };
@@ -4,7 +4,7 @@ export const TileRoot = styled.div `
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  width: 100%;
7
- background-color: ${({ config }) => config.color.background};
7
+ background-color: ${({ config, backgroundColor }) => backgroundColor || config.color.background};
8
8
  height: ${(p) => (p.height ? p.height : '100%')};
9
9
  ${(p) => p.shadow && `box-shadow: ${p.config.color.shadow};`}
10
10
  max-width:${({ config, size }) => config.size[size].maxWidth};
@@ -437,7 +437,7 @@ export const createComponentsConfig = (theme = 'default') => {
437
437
  sm: {
438
438
  height: measurements.space.xl4,
439
439
  paddingX: measurements.space.sm,
440
- borderRadius: measurements.size.radius.sm,
440
+ radius: measurements.size.radius.sm,
441
441
  fontSize: measurements.font.size.sm,
442
442
  lineHeight: measurements.font.lineHeight.sm,
443
443
  iconSize: 'md',
@@ -11,6 +11,7 @@ interface ITileProps {
11
11
  height?: string;
12
12
  size?: InputSize;
13
13
  shadow?: boolean;
14
+ backgroundColor?: string;
14
15
  }
15
16
  export declare const Tile: FC<ITileProps>;
16
17
  export {};
@@ -5,6 +5,7 @@ interface ITileRootStyles {
5
5
  theme?: any;
6
6
  config: any;
7
7
  size: InputSize;
8
+ backgroundColor?: string;
8
9
  }
9
10
  export declare const TileRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ITileRootStyles, never>;
10
11
  interface ITileContentProps {
@@ -445,7 +445,7 @@ export declare const createComponentsConfig: (theme?: ThemeName | AppTheme) => {
445
445
  sm: {
446
446
  height: 32;
447
447
  paddingX: 8;
448
- borderRadius: 8;
448
+ radius: 8;
449
449
  fontSize: 13;
450
450
  lineHeight: 18;
451
451
  iconSize: string;
@@ -1766,7 +1766,7 @@ export declare const componentsConfig: {
1766
1766
  sm: {
1767
1767
  height: 32;
1768
1768
  paddingX: 8;
1769
- borderRadius: 8;
1769
+ radius: 8;
1770
1770
  fontSize: 13;
1771
1771
  lineHeight: 18;
1772
1772
  iconSize: string;
@@ -3230,7 +3230,7 @@ export declare const createConfig: (theme?: ThemeName | AppTheme) => {
3230
3230
  sm: {
3231
3231
  height: 32;
3232
3232
  paddingX: 8;
3233
- borderRadius: 8;
3233
+ radius: 8;
3234
3234
  fontSize: 13;
3235
3235
  lineHeight: 18;
3236
3236
  iconSize: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "venice-ui",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "module": "./dist/esm/index.js",