@citygross/components_v2 0.0.42 → 0.0.43

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.
@@ -13,14 +13,14 @@ function AlertBox({
13
13
  padding = "sm",
14
14
  children
15
15
  }) {
16
- return /* @__PURE__ */ React.createElement("div", null, withArrow && /* @__PURE__ */ React.createElement(
16
+ return /* @__PURE__ */ React.createElement("div", null, withArrow ? /* @__PURE__ */ React.createElement(
17
17
  BoxArrow,
18
18
  {
19
19
  arrowPlacement,
20
20
  arrowSpacing,
21
21
  background
22
22
  }
23
- ), /* @__PURE__ */ React.createElement(
23
+ ) : null, /* @__PURE__ */ React.createElement(
24
24
  "div",
25
25
  {
26
26
  className: alertBox({
@@ -30,7 +30,7 @@ function AlertBox({
30
30
  padding
31
31
  })
32
32
  },
33
- icon && /* @__PURE__ */ React.createElement("div", { className: iconContainer({ minWidth: `${iconMinWidth}` }) }, icon),
33
+ icon ? /* @__PURE__ */ React.createElement("div", { className: iconContainer({ minWidth: `${iconMinWidth}` }) }, icon) : null,
34
34
  children
35
35
  ));
36
36
  }
@@ -1,9 +1,9 @@
1
- import { THardSpacingKeys } from '@citygross/design-tokens_v2';
1
+ import { THardSpacingKeys, TPaletteKeys } from '@citygross/design-tokens_v2';
2
2
 
3
3
  declare type TBoxArrow = {
4
4
  arrowPlacement?: 'left' | 'right';
5
5
  arrowSpacing?: THardSpacingKeys;
6
- background?: string;
6
+ background?: TPaletteKeys;
7
7
  };
8
8
  declare const BoxArrow: ({ arrowPlacement, arrowSpacing, background }: TBoxArrow) => JSX.Element;
9
9
 
@@ -6,7 +6,7 @@ import { palette } from '@citygross/design-tokens_v2';
6
6
  const BoxArrow = ({
7
7
  arrowPlacement,
8
8
  arrowSpacing,
9
- background
9
+ background = "black"
10
10
  }) => {
11
11
  return /* @__PURE__ */ React.createElement(
12
12
  "div",
@@ -1,7 +1,7 @@
1
1
  declare type TTextDecoration = 'underline' | 'lineThrough';
2
2
  declare type TTextAlign = 'center' | 'left' | 'right';
3
3
  declare type TBodyTextSizeKeys = 'tiny' | 'extraSmall' | 'small' | 'default';
4
- declare const fontFamily: Record<"display" | "code" | "primary", string>;
4
+ declare const fontFamily: Record<"display" | "primary" | "code", string>;
5
5
  declare const fontSize: Record<"xs" | "code" | "s1" | "s2" | "s3" | "s4" | "m1" | "m2" | "l1", string>;
6
6
  declare const fontWeight: Record<"bold" | "medium" | "regular" | "semiBold", string>;
7
7
  declare const lineHeight: Record<"xs" | "s1" | "s2" | "m1" | "m2" | "l1" | "m3", string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components_v2",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -79,5 +79,5 @@
79
79
  "react-slick": "^0.30.1",
80
80
  "slick-carousel": "^1.8.1"
81
81
  },
82
- "gitHead": "eac7f79c2dc1ecb58cf56e7b2ab7135446405409"
82
+ "gitHead": "0755593007d1a56815d6965fdc8e9aefb1a443eb"
83
83
  }