@citygross/components_v2 0.2.0 → 0.2.2

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.
@@ -1,7 +1,7 @@
1
- import { Icons } from '@citygross/icons_v2';
2
1
  import React from 'react';
3
- import { boxArrowContainer } from './BoxArrow.css.vanilla.js';
4
2
  import { palette } from '@citygross/design-tokens_v2';
3
+ import { Icons } from '@citygross/icons_v2';
4
+ import { boxArrowContainer } from './BoxArrow.css.vanilla.js';
5
5
 
6
6
  const BoxArrow = ({
7
7
  arrowPlacement,
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { Skeleton } from '../Skeleton/Skeleton.js';
3
2
  import { formatPrice } from '@citygross/utils';
3
+ import { BodyText } from '../../typography/BodyText/BodyText.js';
4
4
  import { H3 } from '../../typography/H3/H3.js';
5
+ import { Skeleton } from '../Skeleton/Skeleton.js';
5
6
  import { cartitemsummary, cancelledWrapper, amountText, itemInformationContainer } from './CartItemSummary.css.vanilla.js';
6
- import { BodyText } from '../../typography/BodyText/BodyText.js';
7
7
 
8
8
  const CartItemSummary = ({
9
9
  product,
@@ -1,9 +1,9 @@
1
- import { formatPrice } from '@citygross/utils';
2
1
  import React from 'react';
3
- import { H3 } from '../../typography/H3/H3.js';
2
+ import { formatPrice } from '@citygross/utils';
4
3
  import { BodyText } from '../../typography/BodyText/BodyText.js';
5
- import { cartPaymentContainer, cartSummaryTitle, cartSummaryHeader, cartLine, amountWrapper, cartSummaryFooter } from './CartSummary.css.vanilla.js';
4
+ import { H3 } from '../../typography/H3/H3.js';
6
5
  import { Divider } from '../Divider/Divider.js';
6
+ import { cartPaymentContainer, cartSummaryTitle, cartSummaryHeader, cartLine, amountWrapper, cartSummaryFooter } from './CartSummary.css.vanilla.js';
7
7
 
8
8
  const calculateSummaryLine = (items) => {
9
9
  const sumOfItems = items?.reduce(
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { emptyBoxContainer, emptyBox } from './EmptyBox.css.vanilla.js';
3
2
  import { H3 } from '../../typography/H3/H3.js';
3
+ import { emptyBoxContainer, emptyBox } from './EmptyBox.css.vanilla.js';
4
4
 
5
5
  const EmptyBox = ({ title, description, icon }) => {
6
6
  return /* @__PURE__ */ React.createElement("div", { className: emptyBoxContainer }, /* @__PURE__ */ React.createElement("div", { className: emptyBox }, icon), /* @__PURE__ */ React.createElement(H3, { fontWeight: "semiBold" }, title), description);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { formControlWrapper, formControlElementWrapper } from './FormControl.css.vanilla.js';
3
2
  import { H3 } from '../../typography/H3/H3.js';
3
+ import { formControlWrapper, formControlElementWrapper } from './FormControl.css.vanilla.js';
4
4
 
5
5
  var TScreenWidth = /* @__PURE__ */ ((TScreenWidth2) => {
6
6
  TScreenWidth2["1/2"] = "calc(50% - 12px)";
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
+ import { Icons } from '@citygross/icons_v2';
2
3
  import { Button } from '../Button/Button.js';
3
4
  import { EButtonVariant } from '../Button/Button.types.js';
4
- import { Icons } from '@citygross/icons_v2';
5
5
  import { wrapper, headerWrapper, headerContainer, mobileLogo, desktopLogo, headerButtonContainer, menuIconContainer } from './Header.css.vanilla.js';
6
6
 
7
7
  const Header = ({
@@ -1,5 +1,5 @@
1
- import { TFontSizeKeys } from '@citygross/design-tokens_v2';
2
1
  import React, { InputHTMLAttributes } from 'react';
2
+ import { TFontSizeKeys } from '@citygross/design-tokens_v2';
3
3
 
4
4
  declare type TInput = InputHTMLAttributes<HTMLInputElement> & {
5
5
  icon?: JSX.Element;
@@ -1,5 +1,5 @@
1
- import { inputWrapper, input, iconWrapper } from './Input.css.vanilla.js';
2
1
  import React, { useState } from 'react';
2
+ import { inputWrapper, input, iconWrapper } from './Input.css.vanilla.js';
3
3
 
4
4
  function Input({
5
5
  icon,
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import FallbackIcon from './assets/fallback_grocery.js';
3
- import { listItemContainer, listLeft, listImageContainer, listImage, itemInformationContainer, listRight } from './ListItem.css.vanilla.js';
4
2
  import { BodyText } from '../../typography/BodyText/BodyText.js';
5
3
  import { Skeleton } from '../Skeleton/Skeleton.js';
4
+ import FallbackIcon from './assets/fallback_grocery.js';
5
+ import { listItemContainer, listLeft, listImageContainer, listImage, itemInformationContainer, listRight } from './ListItem.css.vanilla.js';
6
6
 
7
7
  var EListItemAlignment = /* @__PURE__ */ ((EListItemAlignment2) => {
8
8
  EListItemAlignment2["CENTER"] = "center";
@@ -1,10 +1,10 @@
1
1
  import React, { forwardRef, Fragment } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
3
  import { Icons } from '@citygross/icons_v2';
4
+ import { BodyText } from '../../typography/BodyText/BodyText.js';
5
+ import { H2 } from '../../typography/H2/H2.js';
4
6
  import { Spacer } from '../Spacer/Spacer.js';
5
7
  import { modalOverlay, modalContainer, modalHeaderContainer, modalHeader, closeButtonWrapper, childrenWrapper, footerWrapper } from './Modal.css.vanilla.js';
6
- import { H2 } from '../../typography/H2/H2.js';
7
- import { BodyText } from '../../typography/BodyText/BodyText.js';
8
8
 
9
9
  const Modal = forwardRef(
10
10
  ({
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import Skeleton from 'react-loading-skeleton';
3
- import { mobileOrderLine, mobileOrderLineLabel, mobileOrderLineValue } from './OrderTableMobile.css.vanilla.js';
4
3
  import { BodyText } from '../../typography/BodyText/BodyText.js';
4
+ import { mobileOrderLine, mobileOrderLineLabel, mobileOrderLineValue } from './OrderTableMobile.css.vanilla.js';
5
5
 
6
6
  const MobileOrderLine = ({
7
7
  deliveryString,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { Icons } from '@citygross/icons_v2';
3
2
  import { palette } from '@citygross/design-tokens_v2';
3
+ import { Icons } from '@citygross/icons_v2';
4
4
  import { BodyText } from '../../typography/BodyText/BodyText.js';
5
5
  import { Button } from '../Button/Button.js';
6
6
  import { EButtonVariant } from '../Button/Button.types.js';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useDetectDevice } from '@citygross/utils';
3
+ import { BodyText } from '../../typography/BodyText/BodyText.js';
4
+ import { H3 } from '../../typography/H3/H3.js';
3
5
  import { Dot } from '../Dot/Dot.js';
4
6
  import { baseTimeLine, timeLineH3, baseTimeLineList, baseTimeLineItem } from './TimeLine.css.vanilla.js';
5
- import { H3 } from '../../typography/H3/H3.js';
6
- import { BodyText } from '../../typography/BodyText/BodyText.js';
7
7
 
8
8
  function Timeline({
9
9
  items,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components_v2",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -63,11 +63,11 @@
63
63
  "react-dom": "^18.3.1"
64
64
  },
65
65
  "dependencies": {
66
- "@citygross/design-tokens_v2": "^0.0.7",
67
- "@citygross/icons_v2": "^0.0.6",
68
- "@citygross/react-use-bg-wizard": "^0.0.13",
66
+ "@citygross/design-tokens_v2": "^0.0.8",
67
+ "@citygross/icons_v2": "^0.0.7",
68
+ "@citygross/react-use-bg-wizard": "^0.0.14",
69
69
  "@citygross/typography": "^0.0.89",
70
- "@citygross/utils": "^0.0.45",
70
+ "@citygross/utils": "^0.0.47",
71
71
  "@vanilla-extract/css": "^1.14.1",
72
72
  "@vanilla-extract/css-utils": "^0.1.3",
73
73
  "@vanilla-extract/recipes": "^0.5.1",
@@ -77,5 +77,5 @@
77
77
  "react-slick": "^0.30.1",
78
78
  "slick-carousel": "^1.8.1"
79
79
  },
80
- "gitHead": "ecd543856000c212abd467bd67c602cd72e819c7"
80
+ "gitHead": "d518d03e9a2303db91c7a32178307644657f20fe"
81
81
  }