@plurix/ecom-components 1.2.0-loyalty.0 → 1.2.1-commerce.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.
Files changed (196) hide show
  1. package/README.md +76 -76
  2. package/package.json +70 -70
  3. package/dist/assets/svgs/ArrowIcon.d.ts +0 -9
  4. package/dist/assets/svgs/ArrowIcon.js +0 -38
  5. package/dist/assets/svgs/CartEmptyCoupon.d.ts +0 -1
  6. package/dist/assets/svgs/CartEmptyCoupon.js +0 -937
  7. package/dist/assets/svgs/CloseIcon.d.ts +0 -7
  8. package/dist/assets/svgs/CloseIcon.js +0 -41
  9. package/dist/assets/svgs/CouponIcon.d.ts +0 -4
  10. package/dist/assets/svgs/CouponIcon.js +0 -22
  11. package/dist/assets/svgs/DeliveryExpressIcon.d.ts +0 -1
  12. package/dist/assets/svgs/DeliveryExpressIcon.js +0 -21
  13. package/dist/assets/svgs/DeliveryIcon.d.ts +0 -1
  14. package/dist/assets/svgs/DeliveryIcon.js +0 -21
  15. package/dist/assets/svgs/DiscountIcon.d.ts +0 -1
  16. package/dist/assets/svgs/DiscountIcon.js +0 -37
  17. package/dist/assets/svgs/ErrorIcon.d.ts +0 -5
  18. package/dist/assets/svgs/ErrorIcon.js +0 -29
  19. package/dist/assets/svgs/FacebookIcon.d.ts +0 -1
  20. package/dist/assets/svgs/FacebookIcon.js +0 -22
  21. package/dist/assets/svgs/GlassIcon.d.ts +0 -1
  22. package/dist/assets/svgs/GlassIcon.js +0 -23
  23. package/dist/assets/svgs/InfoIcon.d.ts +0 -6
  24. package/dist/assets/svgs/InfoIcon.js +0 -47
  25. package/dist/assets/svgs/InstagramIcon.d.ts +0 -1
  26. package/dist/assets/svgs/InstagramIcon.js +0 -49
  27. package/dist/assets/svgs/NoCouponIcon.d.ts +0 -6
  28. package/dist/assets/svgs/NoCouponIcon.js +0 -676
  29. package/dist/assets/svgs/ShoppingBagsIcon.d.ts +0 -1
  30. package/dist/assets/svgs/ShoppingBagsIcon.js +0 -30
  31. package/dist/assets/svgs/ShoppingIcon.d.ts +0 -1
  32. package/dist/assets/svgs/ShoppingIcon.js +0 -21
  33. package/dist/assets/svgs/SuccessIcon.d.ts +0 -6
  34. package/dist/assets/svgs/SuccessIcon.js +0 -38
  35. package/dist/assets/svgs/WarningIcon.d.ts +0 -1
  36. package/dist/assets/svgs/WarningIcon.js +0 -25
  37. package/dist/constants/index.d.ts +0 -1
  38. package/dist/constants/index.js +0 -4
  39. package/dist/main.d.ts +0 -8
  40. package/dist/main.js +0 -16
  41. package/dist/packages/Carousel/Carousel.d.ts +0 -26
  42. package/dist/packages/Carousel/Carousel.js +0 -131
  43. package/dist/packages/Carousel/components/Arrows.d.ts +0 -8
  44. package/dist/packages/Carousel/components/Arrows.js +0 -43
  45. package/dist/packages/Carousel/components/Bullets.d.ts +0 -7
  46. package/dist/packages/Carousel/components/Bullets.js +0 -5
  47. package/dist/packages/Carousel/utils/defaultProps.d.ts +0 -19
  48. package/dist/packages/Carousel/utils/defaultProps.js +0 -22
  49. package/dist/packages/CartClubAlert/CartClubAlert.d.ts +0 -8
  50. package/dist/packages/CartClubAlert/CartClubAlert.js +0 -22
  51. package/dist/packages/Coupons/Coupons.d.ts +0 -14
  52. package/dist/packages/Coupons/Coupons.js +0 -100
  53. package/dist/packages/Coupons/api/addCoupon.d.ts +0 -3
  54. package/dist/packages/Coupons/api/addCoupon.js +0 -14
  55. package/dist/packages/Coupons/api/getCoupons.d.ts +0 -3
  56. package/dist/packages/Coupons/api/getCoupons.js +0 -15
  57. package/dist/packages/Coupons/api/removeCoupon.d.ts +0 -3
  58. package/dist/packages/Coupons/api/removeCoupon.js +0 -13
  59. package/dist/packages/Coupons/components/Alert.d.ts +0 -6
  60. package/dist/packages/Coupons/components/Alert.js +0 -13
  61. package/dist/packages/Coupons/components/Breadcrumb.d.ts +0 -6
  62. package/dist/packages/Coupons/components/Breadcrumb.js +0 -33
  63. package/dist/packages/Coupons/components/CouponCard.d.ts +0 -25
  64. package/dist/packages/Coupons/components/CouponCard.js +0 -132
  65. package/dist/packages/Coupons/components/Modal.d.ts +0 -8
  66. package/dist/packages/Coupons/components/Modal.js +0 -34
  67. package/dist/packages/Coupons/components/ModalFooter.d.ts +0 -9
  68. package/dist/packages/Coupons/components/ModalFooter.js +0 -25
  69. package/dist/packages/Coupons/components/ModalHeader.d.ts +0 -6
  70. package/dist/packages/Coupons/components/ModalHeader.js +0 -25
  71. package/dist/packages/Coupons/components/NoCoupons.d.ts +0 -1
  72. package/dist/packages/Coupons/components/NoCoupons.js +0 -10
  73. package/dist/packages/Coupons/types/CouponType.d.ts +0 -8
  74. package/dist/packages/Coupons/types/CouponType.js +0 -1
  75. package/dist/packages/Coupons/types/SetOrderFormCouponResponse.d.ts +0 -10
  76. package/dist/packages/Coupons/types/SetOrderFormCouponResponse.js +0 -1
  77. package/dist/packages/Coupons/types/Views.d.ts +0 -1
  78. package/dist/packages/Coupons/types/Views.js +0 -1
  79. package/dist/packages/Coupons/views/CouponsView.d.ts +0 -13
  80. package/dist/packages/Coupons/views/CouponsView.js +0 -122
  81. package/dist/packages/Coupons/views/EmptyCartView.d.ts +0 -6
  82. package/dist/packages/Coupons/views/EmptyCartView.js +0 -36
  83. package/dist/packages/Coupons/views/LoadingView.d.ts +0 -7
  84. package/dist/packages/Coupons/views/LoadingView.js +0 -39
  85. package/dist/packages/Coupons/views/OverwriteView.d.ts +0 -14
  86. package/dist/packages/Coupons/views/OverwriteView.js +0 -58
  87. package/dist/packages/Coupons/views/RulesView.d.ts +0 -13
  88. package/dist/packages/Coupons/views/RulesView.js +0 -49
  89. package/dist/packages/Coupons/views/index.d.ts +0 -5
  90. package/dist/packages/Coupons/views/index.js +0 -12
  91. package/dist/packages/Modal/Modal.d.ts +0 -15
  92. package/dist/packages/Modal/Modal.js +0 -60
  93. package/dist/packages/Onboarding/Onboarding.d.ts +0 -10
  94. package/dist/packages/Onboarding/Onboarding.js +0 -47
  95. package/dist/packages/Onboarding/components/Bullets.d.ts +0 -5
  96. package/dist/packages/Onboarding/components/Bullets.js +0 -10
  97. package/dist/packages/Onboarding/components/Content.d.ts +0 -9
  98. package/dist/packages/Onboarding/components/Content.js +0 -30
  99. package/dist/packages/Onboarding/components/Footer.d.ts +0 -9
  100. package/dist/packages/Onboarding/components/Footer.js +0 -15
  101. package/dist/packages/Onboarding/components/Header.d.ts +0 -6
  102. package/dist/packages/Onboarding/components/Header.js +0 -15
  103. package/dist/packages/Onboarding/components/SocialMedia.d.ts +0 -10
  104. package/dist/packages/Onboarding/components/SocialMedia.js +0 -36
  105. package/dist/packages/Onboarding/constants/tips.d.ts +0 -11
  106. package/dist/packages/Onboarding/constants/tips.js +0 -36
  107. package/dist/packages/Onboarding/tips/Tip1.d.ts +0 -1
  108. package/dist/packages/Onboarding/tips/Tip1.js +0 -2130
  109. package/dist/packages/Onboarding/tips/Tip2.d.ts +0 -1
  110. package/dist/packages/Onboarding/tips/Tip2.js +0 -350
  111. package/dist/packages/Onboarding/tips/Tip3.d.ts +0 -1
  112. package/dist/packages/Onboarding/tips/Tip3.js +0 -361
  113. package/dist/packages/Onboarding/tips/Tip4.d.ts +0 -1
  114. package/dist/packages/Onboarding/tips/Tip4.js +0 -593
  115. package/dist/packages/Onboarding/tips/Tip5.d.ts +0 -1
  116. package/dist/packages/Onboarding/tips/Tip5.js +0 -1571
  117. package/dist/packages/Regionalization/Regionalization.d.ts +0 -3
  118. package/dist/packages/Regionalization/Regionalization.js +0 -93
  119. package/dist/packages/Regionalization/components/Delivery.d.ts +0 -24
  120. package/dist/packages/Regionalization/components/Delivery.js +0 -48
  121. package/dist/packages/Regionalization/components/DeliveryExpress.d.ts +0 -9
  122. package/dist/packages/Regionalization/components/DeliveryExpress.js +0 -25
  123. package/dist/packages/Regionalization/components/InfoPrices.d.ts +0 -9
  124. package/dist/packages/Regionalization/components/InfoPrices.js +0 -15
  125. package/dist/packages/Regionalization/components/Navigation.d.ts +0 -6
  126. package/dist/packages/Regionalization/components/Navigation.js +0 -59
  127. package/dist/packages/Regionalization/components/NormalDelivery.d.ts +0 -7
  128. package/dist/packages/Regionalization/components/NormalDelivery.js +0 -23
  129. package/dist/packages/Regionalization/components/PickupPoint.d.ts +0 -7
  130. package/dist/packages/Regionalization/components/PickupPoint.js +0 -32
  131. package/dist/packages/Regionalization/components/Price.d.ts +0 -7
  132. package/dist/packages/Regionalization/components/Price.js +0 -10
  133. package/dist/packages/Regionalization/components/SetViewButton.d.ts +0 -11
  134. package/dist/packages/Regionalization/components/SetViewButton.js +0 -24
  135. package/dist/packages/Regionalization/components/Title.d.ts +0 -8
  136. package/dist/packages/Regionalization/components/Title.js +0 -21
  137. package/dist/packages/Regionalization/context/RegionalizationContext.d.ts +0 -4
  138. package/dist/packages/Regionalization/context/RegionalizationContext.js +0 -113
  139. package/dist/packages/Regionalization/types/Address.d.ts +0 -13
  140. package/dist/packages/Regionalization/types/Address.js +0 -1
  141. package/dist/packages/Regionalization/types/ContextProps.d.ts +0 -29
  142. package/dist/packages/Regionalization/types/ContextProps.js +0 -1
  143. package/dist/packages/Regionalization/types/PikcupPointType.d.ts +0 -22
  144. package/dist/packages/Regionalization/types/PikcupPointType.js +0 -1
  145. package/dist/packages/Regionalization/types/PricesAndHours.d.ts +0 -13
  146. package/dist/packages/Regionalization/types/PricesAndHours.js +0 -1
  147. package/dist/packages/Regionalization/types/RegionalizationProps.d.ts +0 -87
  148. package/dist/packages/Regionalization/types/RegionalizationProps.js +0 -1
  149. package/dist/packages/Regionalization/types/index.d.ts +0 -5
  150. package/dist/packages/Regionalization/types/index.js +0 -1
  151. package/dist/packages/Regionalization/utils/deliverySetData.d.ts +0 -3
  152. package/dist/packages/Regionalization/utils/deliverySetData.js +0 -13
  153. package/dist/packages/Regionalization/utils/formatPrice.d.ts +0 -1
  154. package/dist/packages/Regionalization/utils/formatPrice.js +0 -8
  155. package/dist/packages/Regionalization/utils/localStorage.d.ts +0 -9
  156. package/dist/packages/Regionalization/utils/localStorage.js +0 -23
  157. package/dist/packages/Regionalization/utils/pickupSetData.d.ts +0 -3
  158. package/dist/packages/Regionalization/utils/pickupSetData.js +0 -11
  159. package/dist/packages/Regionalization/utils/postalCode.d.ts +0 -3
  160. package/dist/packages/Regionalization/utils/postalCode.js +0 -9
  161. package/dist/packages/Regionalization/views/AllStoresScreen.d.ts +0 -1
  162. package/dist/packages/Regionalization/views/AllStoresScreen.js +0 -73
  163. package/dist/packages/Regionalization/views/ConfirmScreen.d.ts +0 -1
  164. package/dist/packages/Regionalization/views/ConfirmScreen.js +0 -60
  165. package/dist/packages/Regionalization/views/InitialView.d.ts +0 -1
  166. package/dist/packages/Regionalization/views/InitialView.js +0 -49
  167. package/dist/packages/Regionalization/views/MoreInfosScreen.d.ts +0 -1
  168. package/dist/packages/Regionalization/views/MoreInfosScreen.js +0 -42
  169. package/dist/packages/Regionalization/views/PickupPointInfoScreen.d.ts +0 -1
  170. package/dist/packages/Regionalization/views/PickupPointInfoScreen.js +0 -42
  171. package/dist/packages/Regionalization/views/PostalCodeInputScreen.d.ts +0 -1
  172. package/dist/packages/Regionalization/views/PostalCodeInputScreen.js +0 -87
  173. package/dist/packages/Regionalization/views/ViewsContainer.d.ts +0 -1
  174. package/dist/packages/Regionalization/views/ViewsContainer.js +0 -22
  175. package/dist/packages/Tour/Tour.d.ts +0 -10
  176. package/dist/packages/Tour/Tour.js +0 -68
  177. package/dist/packages/Tour/components/TooltipFooter.d.ts +0 -11
  178. package/dist/packages/Tour/components/TooltipFooter.js +0 -14
  179. package/dist/packages/Tour/components/TooltipHeader.d.ts +0 -8
  180. package/dist/packages/Tour/components/TooltipHeader.js +0 -13
  181. package/dist/packages/Tour/components/TourOverlay.d.ts +0 -7
  182. package/dist/packages/Tour/components/TourOverlay.js +0 -12
  183. package/dist/packages/Tour/components/TourTooltip.d.ts +0 -17
  184. package/dist/packages/Tour/components/TourTooltip.js +0 -42
  185. package/dist/packages/Tour/types/TourStep.d.ts +0 -4
  186. package/dist/packages/Tour/types/TourStep.js +0 -1
  187. package/dist/styles/carousel.global.css +0 -1
  188. package/dist/styles/cart-club-alert.global.css +0 -1
  189. package/dist/styles/coupons.global.css +0 -1
  190. package/dist/styles/modal.global.css +0 -1
  191. package/dist/styles/onboarding.global.css +0 -1
  192. package/dist/styles/regionalization.global.css +0 -1
  193. package/dist/styles/tour.global.css +0 -1
  194. package/dist/types/FixedLengthArray.d.ts +0 -7
  195. package/dist/types/FixedLengthArray.js +0 -1
  196. package/dist/vite-env.d.js +0 -1
package/README.md CHANGED
@@ -1,76 +1,76 @@
1
- # @plurix/ecom-components
2
-
3
- ## Dependencies
4
-
5
- Use `yarn` to install all dependencies and prepare `husky` (used to run scripts in git steps).
6
-
7
- ## Folder Structure
8
-
9
- - `lib`: files that will be compiled and published in the `@plurix/ecom-components` package
10
- - `src`: local development
11
-
12
- ## How to Create a New Component in the Package
13
-
14
- - Create a new folder in `lib/packages`, with your component name. Example: `MyComponent`;
15
- - Create a `.tsx` file inside this new folder and export a component from there. Example:
16
-
17
- ```tsx
18
- // lib/packages/MyComponent/MyComponent.tsx
19
-
20
- export const MyComponent = () => {
21
- return <h1>My Component</h1>
22
- }
23
- ```
24
-
25
- - Export the new component in `lib/main.ts`. Example:
26
-
27
- ```tsx
28
- // lib/main.ts
29
-
30
- export { MyComponent } from './packages/MyComponent/MyComponent'
31
- ```
32
-
33
- - Create a new file called `<component-name>Example.tsx` in `src/examples` and import your component. Example:
34
-
35
- ```tsx
36
- // src/examples/MyComponentExample.tsx
37
-
38
- import { MyComponent } from '../../lib/main'
39
-
40
- export const MyComponentExample = () => {
41
- return (
42
- <div className="my-component-example-container">
43
- <MyComponent />
44
- </div>
45
- )
46
- }
47
- ```
48
-
49
- - Export the new example component in `src/index.ts`. Example:
50
-
51
- ```tsx
52
- // src/examples/index.ts
53
-
54
- export { MyComponentExample } from './MyComponentExample'
55
- ```
56
-
57
- - Run `yarn dev`;
58
- - Open the localhost link in the terminal;
59
- - Choose your component in the sidebar. Now, you can develop your component and test it with `fast refresh`.
60
-
61
- OBS: If you need to use `css` in your components, create them as `<component-name>.global.css` and import them in your Lib Component. Then, you are able to use that in `VTEX IO` and `VTEX Faststore`.
62
-
63
- ![Imgur](https://imgur.com/NMMASrC.jpg)
64
-
65
- ## Publishing
66
-
67
- - After finishing your component changes, upgrade the package version in `package.json` and create an entry in `CHANGELOG.md`.
68
- - Commit and push your changes to the remote repository. It will run the husky scripts: commitlint, prettier, lint, tests, and build.
69
- - After all scripts pass successfully, run `npm publish` in your terminal.
70
- - Copy the published version from your terminal and install it in another repository.
71
- - You can import the new component by using:
72
-
73
- ```tsx
74
- import { MyComponent } from '@plurix/ecom-components'
75
- import '@plurix/ecom-components/dist/styles/my-component.global.css' // If you are using css
76
- ```
1
+ # @plurix/ecom-components
2
+
3
+ ## Dependencies
4
+
5
+ Use `yarn` to install all dependencies and prepare `husky` (used to run scripts in git steps).
6
+
7
+ ## Folder Structure
8
+
9
+ - `lib`: files that will be compiled and published in the `@plurix/ecom-components` package
10
+ - `src`: local development
11
+
12
+ ## How to Create a New Component in the Package
13
+
14
+ - Create a new folder in `lib/packages`, with your component name. Example: `MyComponent`;
15
+ - Create a `.tsx` file inside this new folder and export a component from there. Example:
16
+
17
+ ```tsx
18
+ // lib/packages/MyComponent/MyComponent.tsx
19
+
20
+ export const MyComponent = () => {
21
+ return <h1>My Component</h1>
22
+ }
23
+ ```
24
+
25
+ - Export the new component in `lib/main.ts`. Example:
26
+
27
+ ```tsx
28
+ // lib/main.ts
29
+
30
+ export { MyComponent } from './packages/MyComponent/MyComponent'
31
+ ```
32
+
33
+ - Create a new file called `<component-name>Example.tsx` in `src/examples` and import your component. Example:
34
+
35
+ ```tsx
36
+ // src/examples/MyComponentExample.tsx
37
+
38
+ import { MyComponent } from '../../lib/main'
39
+
40
+ export const MyComponentExample = () => {
41
+ return (
42
+ <div className="my-component-example-container">
43
+ <MyComponent />
44
+ </div>
45
+ )
46
+ }
47
+ ```
48
+
49
+ - Export the new example component in `src/index.ts`. Example:
50
+
51
+ ```tsx
52
+ // src/examples/index.ts
53
+
54
+ export { MyComponentExample } from './MyComponentExample'
55
+ ```
56
+
57
+ - Run `yarn dev`;
58
+ - Open the localhost link in the terminal;
59
+ - Choose your component in the sidebar. Now, you can develop your component and test it with `fast refresh`.
60
+
61
+ OBS: If you need to use `css` in your components, create them as `<component-name>.global.css` and import them in your Lib Component. Then, you are able to use that in `VTEX IO` and `VTEX Faststore`.
62
+
63
+ ![Imgur](https://imgur.com/NMMASrC.jpg)
64
+
65
+ ## Publishing
66
+
67
+ - After finishing your component changes, upgrade the package version in `package.json` and create an entry in `CHANGELOG.md`.
68
+ - Commit and push your changes to the remote repository. It will run the husky scripts: commitlint, prettier, lint, tests, and build.
69
+ - After all scripts pass successfully, run `npm publish` in your terminal.
70
+ - Copy the published version from your terminal and install it in another repository.
71
+ - You can import the new component by using:
72
+
73
+ ```tsx
74
+ import { MyComponent } from '@plurix/ecom-components'
75
+ import '@plurix/ecom-components/dist/styles/my-component.global.css' // If you are using css
76
+ ```
package/package.json CHANGED
@@ -1,70 +1,70 @@
1
- {
2
- "name": "@plurix/ecom-components",
3
- "author": "Plurix",
4
- "private": false,
5
- "version": "1.2.0-loyalty.0",
6
- "type": "module",
7
- "main": "dist/main.js",
8
- "types": "dist/main.d.ts",
9
- "files": [
10
- "dist"
11
- ],
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/plurix-ecommerce/ecom-components"
15
- },
16
- "sideEffects": [
17
- "**/*.css"
18
- ],
19
- "scripts": {
20
- "dev": "vite",
21
- "build": "tsc --p ./tsconfig-build.json && vite build",
22
- "format": "prettier --write .",
23
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
24
- "prepare": "husky install",
25
- "preview": "vite preview",
26
- "test": "jest"
27
- },
28
- "peerDependencies": {
29
- "react": "^18.2.0",
30
- "react-dom": "^18.2.0"
31
- },
32
- "devDependencies": {
33
- "@babel/preset-env": "^7.24.5",
34
- "@babel/preset-react": "^7.24.1",
35
- "@commitlint/cli": "^17.4.2",
36
- "@commitlint/config-conventional": "^17.4.2",
37
- "@jest/globals": "^29.7.0",
38
- "@testing-library/jest-dom": "^6.4.5",
39
- "@testing-library/react": "^15.0.7",
40
- "@types/jest": "^29.5.12",
41
- "@types/node": "^20.11.30",
42
- "@types/react": "^18.2.71",
43
- "@types/react-dom": "^18.2.22",
44
- "@typescript-eslint/eslint-plugin": "^6.21.0",
45
- "@typescript-eslint/parser": "^6.21.0",
46
- "@vitejs/plugin-react": "^4.2.1",
47
- "eslint": "^8.57.0",
48
- "eslint-plugin-react-hooks": "^4.6.0",
49
- "eslint-plugin-react-refresh": "^0.4.6",
50
- "glob": "^10.3.10",
51
- "husky": "^9.0.11",
52
- "identity-obj-proxy": "^3.0.0",
53
- "jest": "^29.7.0",
54
- "jest-environment-jsdom": "^29.7.0",
55
- "jest-svg-transformer": "^1.0.0",
56
- "prettier": "^2.2.1",
57
- "react": "^18.2.0",
58
- "react-dom": "^18.2.0",
59
- "rollup-plugin-delete": "^2.0.0",
60
- "ts-jest": "^29.1.2",
61
- "typescript": "^5.4.3",
62
- "vite": "^4.5.3",
63
- "vite-plugin-dts": "^3.7.3",
64
- "vite-plugin-lib-inject-css": "^2.0.1"
65
- },
66
- "dependencies": {
67
- "@acctglobal/skeleton": "^1.0.0",
68
- "axios": "^1.5.1"
69
- }
70
- }
1
+ {
2
+ "name": "@plurix/ecom-components",
3
+ "author": "Plurix",
4
+ "private": false,
5
+ "version": "1.2.1-commerce.0",
6
+ "type": "module",
7
+ "main": "dist/main.js",
8
+ "types": "dist/main.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/plurix-ecommerce/ecom-components"
15
+ },
16
+ "sideEffects": [
17
+ "**/*.css"
18
+ ],
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "build": "tsc --p ./tsconfig-build.json && vite build",
22
+ "format": "prettier --write .",
23
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
24
+ "prepare": "husky install",
25
+ "preview": "vite preview",
26
+ "test": "jest"
27
+ },
28
+ "peerDependencies": {
29
+ "react": "^18.2.0",
30
+ "react-dom": "^18.2.0"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/preset-env": "^7.24.5",
34
+ "@babel/preset-react": "^7.24.1",
35
+ "@commitlint/cli": "^17.4.2",
36
+ "@commitlint/config-conventional": "^17.4.2",
37
+ "@jest/globals": "^29.7.0",
38
+ "@testing-library/jest-dom": "^6.4.5",
39
+ "@testing-library/react": "^15.0.7",
40
+ "@types/jest": "^29.5.12",
41
+ "@types/node": "^20.11.30",
42
+ "@types/react": "^18.2.71",
43
+ "@types/react-dom": "^18.2.22",
44
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
45
+ "@typescript-eslint/parser": "^6.21.0",
46
+ "@vitejs/plugin-react": "^4.2.1",
47
+ "eslint": "^8.57.0",
48
+ "eslint-plugin-react-hooks": "^4.6.0",
49
+ "eslint-plugin-react-refresh": "^0.4.6",
50
+ "glob": "^10.3.10",
51
+ "husky": "^9.0.11",
52
+ "identity-obj-proxy": "^3.0.0",
53
+ "jest": "^29.7.0",
54
+ "jest-environment-jsdom": "^29.7.0",
55
+ "jest-svg-transformer": "^1.0.0",
56
+ "prettier": "^2.2.1",
57
+ "react": "^18.2.0",
58
+ "react-dom": "^18.2.0",
59
+ "rollup-plugin-delete": "^2.0.0",
60
+ "ts-jest": "^29.1.2",
61
+ "typescript": "^5.4.3",
62
+ "vite": "^4.5.3",
63
+ "vite-plugin-dts": "^3.7.3",
64
+ "vite-plugin-lib-inject-css": "^2.0.1"
65
+ },
66
+ "dependencies": {
67
+ "@acctglobal/skeleton": "^1.0.0",
68
+ "axios": "^1.7.4"
69
+ }
70
+ }
@@ -1,9 +0,0 @@
1
- interface ArrowIconProps {
2
- width?: number;
3
- height?: number;
4
- color?: string;
5
- rotate?: Rotate;
6
- }
7
- type Rotate = 'Up' | 'Right' | 'Down' | 'Left';
8
- export declare const ArrowIcon: ({ width, height, color, rotate }: ArrowIconProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,38 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- const i = {
3
- Up: 90,
4
- Right: 180,
5
- Down: 270,
6
- Left: 0
7
- }, a = ({
8
- width: r = 16,
9
- height: t = 16,
10
- color: e = "var(--color-grayScale)",
11
- rotate: n = "Right"
12
- }) => /* @__PURE__ */ o(
13
- "svg",
14
- {
15
- style: {
16
- transform: `rotate(${i[n]}deg)`
17
- },
18
- width: r,
19
- height: t,
20
- viewBox: "0 0 16 16",
21
- fill: "none",
22
- xmlns: "http://www.w3.org/2000/svg",
23
- "data-testid": "arrow-icon",
24
- children: /* @__PURE__ */ o(
25
- "path",
26
- {
27
- d: "M9 4L5 8L9 12",
28
- stroke: e,
29
- strokeWidth: "1.5",
30
- strokeLinecap: "round",
31
- strokeLinejoin: "round"
32
- }
33
- )
34
- }
35
- );
36
- export {
37
- a as ArrowIcon
38
- };
@@ -1 +0,0 @@
1
- export declare const CartEmptyCoupon: () => import("react/jsx-runtime").JSX.Element;