@shopgate/pwa-ui-shared 7.30.3 → 7.31.0-alpha.1

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 (326) hide show
  1. package/ActionButton/index.js +66 -67
  2. package/AddToCartButton/index.js +217 -185
  3. package/Availability/index.js +24 -6
  4. package/Button/index.js +105 -82
  5. package/Button/spec.js +3 -4
  6. package/Card/index.js +26 -7
  7. package/CardList/components/Item/index.js +15 -3
  8. package/CartTotalLine/components/Amount/index.js +13 -4
  9. package/CartTotalLine/components/Hint/index.js +13 -4
  10. package/CartTotalLine/components/Label/index.js +23 -10
  11. package/CartTotalLine/index.js +41 -7
  12. package/Checkbox/index.js +41 -17
  13. package/Chip/index.js +82 -7
  14. package/ContextMenu/components/Item/index.js +38 -20
  15. package/ContextMenu/components/Position/index.js +38 -56
  16. package/ContextMenu/index.js +64 -28
  17. package/Dialog/components/BasicDialog/index.js +1 -0
  18. package/Dialog/components/HtmlContentDialog/spec.js +39 -0
  19. package/Dialog/components/PipelineErrorDialog/index.js +108 -157
  20. package/Dialog/components/PipelineErrorDialog/spec.js +12 -18
  21. package/Dialog/components/TextMessageDialog/index.js +1 -1
  22. package/Dialog/components/VariantSelectModal/index.js +1 -1
  23. package/Dialog/index.js +1 -1
  24. package/DiscountBadge/index.js +48 -15
  25. package/FavoritesButton/index.js +95 -100
  26. package/FavoritesButton/spec.js +5 -2
  27. package/Form/Builder/classes/ActionListener/index.js +1 -0
  28. package/Form/Checkbox/index.js +64 -56
  29. package/Form/InfoField/index.js +18 -6
  30. package/Form/Password/index.js +39 -52
  31. package/Form/RadioGroup/components/Item/index.js +72 -56
  32. package/Form/RadioGroup/index.js +79 -90
  33. package/Form/Select/index.js +108 -130
  34. package/Form/SelectContextChoices/index.js +30 -8
  35. package/Form/TextField/index.js +106 -82
  36. package/Form/TextField/spec.js +4 -3
  37. package/FormElement/components/ErrorText/index.js +32 -14
  38. package/FormElement/components/Label/index.js +56 -6
  39. package/FormElement/components/Placeholder/index.js +44 -11
  40. package/FormElement/components/Underline/index.js +63 -12
  41. package/FormElement/index.js +62 -85
  42. package/Glow/index.js +73 -83
  43. package/IndicatorCircle/index.js +73 -17
  44. package/IndicatorCircle/spec.js +2 -5
  45. package/LoadingIndicator/index.js +34 -12
  46. package/Manufacturer/index.js +21 -10
  47. package/MessageBar/index.js +12 -38
  48. package/NoResults/components/Icon/index.js +30 -14
  49. package/NoResults/index.js +35 -7
  50. package/Placeholder/index.js +34 -23
  51. package/PlaceholderLabel/index.js +17 -3
  52. package/Price/index.js +34 -21
  53. package/PriceInfo/index.js +23 -9
  54. package/PriceStriked/index.js +67 -77
  55. package/ProgressBar/index.js +112 -77
  56. package/RadioButton/index.js +29 -11
  57. package/RatingStars/index.js +122 -137
  58. package/Ripple/components/RippleAnimation/index.js +13 -3
  59. package/Ripple/index.js +158 -212
  60. package/RippleButton/index.js +63 -60
  61. package/RippleButton/spec.js +15 -9
  62. package/ScannerOverlay/components/CameraOverlay/index.js +54 -10
  63. package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/index.js +53 -27
  64. package/ScannerOverlay/components/ScannerBar/index.js +50 -26
  65. package/Sheet/components/Header/components/SearchBar/index.js +54 -10
  66. package/Sheet/components/Header/index.js +96 -76
  67. package/Sheet/index.js +295 -157
  68. package/Sheet/spec.js +8 -6
  69. package/TaxDisclaimer/index.js +17 -4
  70. package/TaxDisclaimer/spec.js +16 -5
  71. package/TextField/components/ErrorText/index.js +35 -14
  72. package/TextField/components/FormElement/index.js +29 -4
  73. package/TextField/components/Hint/index.js +39 -10
  74. package/TextField/components/Label/index.js +43 -6
  75. package/TextField/components/Underline/index.js +64 -13
  76. package/TextField/index.js +157 -171
  77. package/TextField/spec.js +5 -3
  78. package/icons/AccountBoxIcon.d.ts +7 -0
  79. package/icons/AccountBoxIcon.d.ts.map +1 -0
  80. package/icons/AccountBoxIcon.js +1 -4
  81. package/icons/AddMoreIcon.d.ts +7 -0
  82. package/icons/AddMoreIcon.d.ts.map +1 -0
  83. package/icons/AddMoreIcon.js +0 -3
  84. package/icons/ArrowDropIcon.d.ts +7 -0
  85. package/icons/ArrowDropIcon.d.ts.map +1 -0
  86. package/icons/ArrowDropIcon.js +0 -3
  87. package/icons/ArrowIcon.d.ts +10 -0
  88. package/icons/ArrowIcon.d.ts.map +1 -0
  89. package/icons/ArrowIcon.js +2 -11
  90. package/icons/BarcodeScannerIcon.d.ts +7 -0
  91. package/icons/BarcodeScannerIcon.d.ts.map +1 -0
  92. package/icons/BarcodeScannerIcon.js +0 -3
  93. package/icons/BoxIcon.d.ts +7 -0
  94. package/icons/BoxIcon.d.ts.map +1 -0
  95. package/icons/BoxIcon.js +0 -3
  96. package/icons/BrowseIcon.d.ts +7 -0
  97. package/icons/BrowseIcon.d.ts.map +1 -0
  98. package/icons/BrowseIcon.js +1 -3
  99. package/icons/BurgerIcon.d.ts +7 -0
  100. package/icons/BurgerIcon.d.ts.map +1 -0
  101. package/icons/BurgerIcon.js +0 -3
  102. package/icons/CalendarIcon.d.ts +7 -0
  103. package/icons/CalendarIcon.d.ts.map +1 -0
  104. package/icons/CalendarIcon.js +0 -2
  105. package/icons/CartCouponIcon.d.ts +7 -0
  106. package/icons/CartCouponIcon.d.ts.map +1 -0
  107. package/icons/CartCouponIcon.js +0 -2
  108. package/icons/CartIcon.d.ts +7 -0
  109. package/icons/CartIcon.d.ts.map +1 -0
  110. package/icons/CartIcon.js +0 -2
  111. package/icons/CartPlusIcon.d.ts +7 -0
  112. package/icons/CartPlusIcon.d.ts.map +1 -0
  113. package/icons/CartPlusIcon.js +0 -2
  114. package/icons/CheckIcon.d.ts +7 -0
  115. package/icons/CheckIcon.d.ts.map +1 -0
  116. package/icons/CheckIcon.js +0 -2
  117. package/icons/CheckedIcon.d.ts +7 -0
  118. package/icons/CheckedIcon.d.ts.map +1 -0
  119. package/icons/CheckedIcon.js +0 -3
  120. package/icons/ChevronIcon.d.ts +7 -0
  121. package/icons/ChevronIcon.d.ts.map +1 -0
  122. package/icons/ChevronIcon.js +0 -2
  123. package/icons/CreditCardIcon.d.ts +7 -0
  124. package/icons/CreditCardIcon.d.ts.map +1 -0
  125. package/icons/CreditCardIcon.js +0 -2
  126. package/icons/CrossIcon.d.ts +7 -0
  127. package/icons/CrossIcon.d.ts.map +1 -0
  128. package/icons/CrossIcon.js +0 -2
  129. package/icons/DescriptionIcon.d.ts +7 -0
  130. package/icons/DescriptionIcon.d.ts.map +1 -0
  131. package/icons/DescriptionIcon.js +0 -2
  132. package/icons/FilterIcon.d.ts +7 -0
  133. package/icons/FilterIcon.d.ts.map +1 -0
  134. package/icons/FilterIcon.js +0 -2
  135. package/icons/FlashDisabledIcon.d.ts +7 -0
  136. package/icons/FlashDisabledIcon.d.ts.map +1 -0
  137. package/icons/FlashDisabledIcon.js +0 -2
  138. package/icons/FlashEnabledIcon.d.ts +7 -0
  139. package/icons/FlashEnabledIcon.d.ts.map +1 -0
  140. package/icons/FlashEnabledIcon.js +0 -2
  141. package/icons/GridIcon.d.ts +7 -0
  142. package/icons/GridIcon.d.ts.map +1 -0
  143. package/icons/GridIcon.js +1 -3
  144. package/icons/HeartIcon.d.ts +7 -0
  145. package/icons/HeartIcon.d.ts.map +1 -0
  146. package/icons/HeartIcon.js +0 -2
  147. package/icons/HeartOutlineIcon.d.ts +7 -0
  148. package/icons/HeartOutlineIcon.d.ts.map +1 -0
  149. package/icons/HeartOutlineIcon.js +1 -3
  150. package/icons/HeartPlusIcon.d.ts +7 -0
  151. package/icons/HeartPlusIcon.d.ts.map +1 -0
  152. package/icons/HeartPlusIcon.js +1 -3
  153. package/icons/HeartPlusOutlineIcon.d.ts +7 -0
  154. package/icons/HeartPlusOutlineIcon.d.ts.map +1 -0
  155. package/icons/HeartPlusOutlineIcon.js +1 -3
  156. package/icons/HomeIcon.d.ts +7 -0
  157. package/icons/HomeIcon.d.ts.map +1 -0
  158. package/icons/HomeIcon.js +0 -2
  159. package/icons/InfoIcon.d.ts +7 -0
  160. package/icons/InfoIcon.d.ts.map +1 -0
  161. package/icons/InfoIcon.js +0 -2
  162. package/icons/InfoOutlineIcon.d.ts +7 -0
  163. package/icons/InfoOutlineIcon.d.ts.map +1 -0
  164. package/icons/InfoOutlineIcon.js +0 -2
  165. package/icons/ListIcon.d.ts +7 -0
  166. package/icons/ListIcon.d.ts.map +1 -0
  167. package/icons/ListIcon.js +0 -2
  168. package/icons/LocalShippingIcon.d.ts +7 -0
  169. package/icons/LocalShippingIcon.d.ts.map +1 -0
  170. package/icons/LocalShippingIcon.js +0 -2
  171. package/icons/LocationIcon.d.ts +7 -0
  172. package/icons/LocationIcon.d.ts.map +1 -0
  173. package/icons/LocationIcon.js +1 -4
  174. package/icons/LocatorIcon.d.ts +7 -0
  175. package/icons/LocatorIcon.d.ts.map +1 -0
  176. package/icons/LocatorIcon.js +1 -3
  177. package/icons/LockIcon.d.ts +9 -0
  178. package/icons/LockIcon.d.ts.map +1 -0
  179. package/icons/LockIcon.js +1 -2
  180. package/icons/LogoutIcon.d.ts +7 -0
  181. package/icons/LogoutIcon.d.ts.map +1 -0
  182. package/icons/LogoutIcon.js +0 -2
  183. package/icons/MagnifierIcon.d.ts +7 -0
  184. package/icons/MagnifierIcon.d.ts.map +1 -0
  185. package/icons/MagnifierIcon.js +0 -2
  186. package/icons/MapMarkerIcon.d.ts +7 -0
  187. package/icons/MapMarkerIcon.d.ts.map +1 -0
  188. package/icons/MapMarkerIcon.js +1 -3
  189. package/icons/MoreIcon.d.ts +7 -0
  190. package/icons/MoreIcon.d.ts.map +1 -0
  191. package/icons/MoreIcon.js +1 -3
  192. package/icons/MoreVertIcon.d.ts +7 -0
  193. package/icons/MoreVertIcon.d.ts.map +1 -0
  194. package/icons/MoreVertIcon.js +1 -3
  195. package/icons/NotificationIcon.d.ts +7 -0
  196. package/icons/NotificationIcon.d.ts.map +1 -0
  197. package/icons/NotificationIcon.js +1 -3
  198. package/icons/PersonIcon.d.ts +9 -0
  199. package/icons/PersonIcon.d.ts.map +1 -0
  200. package/icons/PersonIcon.js +0 -3
  201. package/icons/PhoneIcon.d.ts +7 -0
  202. package/icons/PhoneIcon.d.ts.map +1 -0
  203. package/icons/PhoneIcon.js +1 -4
  204. package/icons/PlaceholderIcon.d.ts +7 -0
  205. package/icons/PlaceholderIcon.d.ts.map +1 -0
  206. package/icons/PlaceholderIcon.js +0 -2
  207. package/icons/RadioCheckedIcon.d.ts +10 -0
  208. package/icons/RadioCheckedIcon.d.ts.map +1 -0
  209. package/icons/RadioCheckedIcon.js +0 -2
  210. package/icons/RadioUncheckedIcon.d.ts +10 -0
  211. package/icons/RadioUncheckedIcon.d.ts.map +1 -0
  212. package/icons/RadioUncheckedIcon.js +0 -2
  213. package/icons/SecurityIcon.d.ts +7 -0
  214. package/icons/SecurityIcon.d.ts.map +1 -0
  215. package/icons/SecurityIcon.js +0 -2
  216. package/icons/ShippingMethodIcon.d.ts +7 -0
  217. package/icons/ShippingMethodIcon.d.ts.map +1 -0
  218. package/icons/ShippingMethodIcon.js +0 -2
  219. package/icons/ShoppingCartIcon.d.ts +7 -0
  220. package/icons/ShoppingCartIcon.d.ts.map +1 -0
  221. package/icons/ShoppingCartIcon.js +0 -2
  222. package/icons/SortIcon.d.ts +7 -0
  223. package/icons/SortIcon.d.ts.map +1 -0
  224. package/icons/SortIcon.js +0 -2
  225. package/icons/StarHalfIcon.d.ts +7 -0
  226. package/icons/StarHalfIcon.d.ts.map +1 -0
  227. package/icons/StarHalfIcon.js +0 -9
  228. package/icons/StarIcon.d.ts +7 -0
  229. package/icons/StarIcon.d.ts.map +1 -0
  230. package/icons/StarIcon.js +0 -9
  231. package/icons/StarOutlineIcon.d.ts +7 -0
  232. package/icons/StarOutlineIcon.d.ts.map +1 -0
  233. package/icons/StarOutlineIcon.js +0 -2
  234. package/icons/StopIcon.d.ts +7 -0
  235. package/icons/StopIcon.d.ts.map +1 -0
  236. package/icons/StopIcon.js +0 -2
  237. package/icons/TickIcon.d.ts +7 -0
  238. package/icons/TickIcon.d.ts.map +1 -0
  239. package/icons/TickIcon.js +0 -2
  240. package/icons/TimeIcon.d.ts +7 -0
  241. package/icons/TimeIcon.d.ts.map +1 -0
  242. package/icons/TimeIcon.js +0 -2
  243. package/icons/TrashIcon.d.ts +7 -0
  244. package/icons/TrashIcon.d.ts.map +1 -0
  245. package/icons/TrashIcon.js +0 -3
  246. package/icons/TrashOutlineIcon.d.ts +8 -0
  247. package/icons/TrashOutlineIcon.d.ts.map +1 -0
  248. package/icons/TrashOutlineIcon.js +0 -2
  249. package/icons/UncheckedIcon.d.ts +7 -0
  250. package/icons/UncheckedIcon.d.ts.map +1 -0
  251. package/icons/UncheckedIcon.js +0 -2
  252. package/icons/ViewListIcon.d.ts +7 -0
  253. package/icons/ViewListIcon.d.ts.map +1 -0
  254. package/icons/ViewListIcon.js +0 -2
  255. package/icons/VisibilityIcon.d.ts +8 -0
  256. package/icons/VisibilityIcon.d.ts.map +1 -0
  257. package/icons/VisibilityIcon.js +2 -4
  258. package/icons/VisibilityOffIcon.d.ts +8 -0
  259. package/icons/VisibilityOffIcon.d.ts.map +1 -0
  260. package/icons/VisibilityOffIcon.js +2 -4
  261. package/icons/WarningIcon.d.ts +7 -0
  262. package/icons/WarningIcon.d.ts.map +1 -0
  263. package/icons/WarningIcon.js +1 -3
  264. package/package.json +5 -5
  265. package/tsconfig.build.json +16 -0
  266. package/tsconfig.json +3 -0
  267. package/ActionButton/style.js +0 -22
  268. package/AddToCartButton/style.js +0 -148
  269. package/Availability/style.js +0 -19
  270. package/Button/style.js +0 -155
  271. package/Card/style.js +0 -11
  272. package/CardList/components/Item/style.js +0 -7
  273. package/CartTotalLine/components/Amount/style.js +0 -8
  274. package/CartTotalLine/components/Hint/style.js +0 -12
  275. package/CartTotalLine/components/Label/style.js +0 -17
  276. package/CartTotalLine/style.js +0 -31
  277. package/Checkbox/style.js +0 -18
  278. package/Chip/style.js +0 -78
  279. package/ContextMenu/components/Item/style.js +0 -34
  280. package/ContextMenu/components/Position/style.js +0 -11
  281. package/ContextMenu/style.js +0 -45
  282. package/DiscountBadge/style.js +0 -36
  283. package/FavoritesButton/style.js +0 -26
  284. package/Form/Checkbox/style.js +0 -25
  285. package/Form/InfoField/style.js +0 -11
  286. package/Form/Password/style.js +0 -11
  287. package/Form/RadioGroup/components/Item/style.js +0 -32
  288. package/Form/RadioGroup/style.js +0 -20
  289. package/Form/Select/style.js +0 -27
  290. package/Form/SelectContextChoices/style.js +0 -23
  291. package/Form/TextField/style.js +0 -70
  292. package/FormElement/components/ErrorText/style.js +0 -13
  293. package/FormElement/components/Label/style.js +0 -89
  294. package/FormElement/components/Placeholder/style.js +0 -56
  295. package/FormElement/components/Underline/style.js +0 -60
  296. package/FormElement/style.js +0 -14
  297. package/Glow/style.js +0 -18
  298. package/IndicatorCircle/style.js +0 -65
  299. package/LoadingIndicator/style.js +0 -20
  300. package/Manufacturer/style.js +0 -5
  301. package/MessageBar/spec.js +0 -80
  302. package/MessageBar/style.js +0 -38
  303. package/NoResults/components/Icon/style.js +0 -17
  304. package/NoResults/style.js +0 -31
  305. package/Placeholder/style.js +0 -11
  306. package/PlaceholderLabel/style.js +0 -12
  307. package/Price/style.js +0 -22
  308. package/PriceInfo/style.js +0 -5
  309. package/PriceStriked/style.js +0 -36
  310. package/ProgressBar/style.js +0 -85
  311. package/RadioButton/style.js +0 -21
  312. package/RatingStars/style.js +0 -53
  313. package/Ripple/style.js +0 -18
  314. package/ScannerOverlay/components/CameraOverlay/style.js +0 -40
  315. package/ScannerOverlay/components/ScannerBar/components/FlashlightButton/style.js +0 -28
  316. package/ScannerOverlay/components/ScannerBar/style.js +0 -20
  317. package/Sheet/components/Header/components/SearchBar/style.js +0 -47
  318. package/Sheet/components/Header/style.js +0 -50
  319. package/Sheet/style.js +0 -143
  320. package/TaxDisclaimer/style.js +0 -9
  321. package/TextField/components/ErrorText/style.js +0 -27
  322. package/TextField/components/FormElement/style.js +0 -34
  323. package/TextField/components/Hint/style.js +0 -46
  324. package/TextField/components/Label/style.js +0 -80
  325. package/TextField/components/Underline/style.js +0 -60
  326. package/TextField/style.js +0 -35
package/icons/StarIcon.js CHANGED
@@ -1,22 +1,13 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import Icon from '@shopgate/pwa-common/components/Icon';
4
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
5
4
 
6
5
  /**
7
6
  * The star icon component
8
- * @param {Object} props The icon component properties.
9
- * @returns {JSX}
10
7
  */
11
8
  import { jsx as _jsx } from "react/jsx-runtime";
12
9
  const Star = props => /*#__PURE__*/_jsx(Icon, {
13
10
  content: themeConfig.icons.star,
14
11
  ...props
15
12
  });
16
- Star.defaultProps = {
17
- className: '',
18
- color: null,
19
- viewBox: '0 0 24 24',
20
- size: 'inherit'
21
- };
22
13
  export default Star;
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The star-outline icon component.
4
+ */
5
+ declare const StarOutline: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default StarOutline;
7
+ //# sourceMappingURL=StarOutlineIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StarOutlineIcon.d.ts","sourceRoot":"","sources":["../../icons/StarOutlineIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE/D,eAAe,WAAW,CAAC"}
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
6
  * The star-outline icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
9
7
  */
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  const StarOutline = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The stop icon component.
4
+ */
5
+ declare const StopIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default StopIcon;
7
+ //# sourceMappingURL=StopIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StopIcon.d.ts","sourceRoot":"","sources":["../../icons/StopIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAExD,eAAe,QAAQ,CAAC"}
package/icons/StopIcon.js CHANGED
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
6
  * The stop icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
9
7
  */
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  const StopIcon = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The tick icon component.
4
+ */
5
+ declare const Tick: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default Tick;
7
+ //# sourceMappingURL=TickIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TickIcon.d.ts","sourceRoot":"","sources":["../../icons/TickIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAExD,eAAe,IAAI,CAAC"}
package/icons/TickIcon.js CHANGED
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
6
  * The tick icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
9
7
  */
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  const Tick = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The time icon component.
4
+ */
5
+ declare const TimeIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default TimeIcon;
7
+ //# sourceMappingURL=TimeIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeIcon.d.ts","sourceRoot":"","sources":["../../icons/TimeIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAMtE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACe,CAAC;AAEnE,eAAe,QAAQ,CAAC"}
package/icons/TimeIcon.js CHANGED
@@ -8,8 +8,6 @@ const content = '<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 2
8
8
 
9
9
  /**
10
10
  * The time icon component.
11
- * @param {Object} props The component properties.
12
- * @returns {JSX}
13
11
  */
14
12
  const TimeIcon = props => /*#__PURE__*/_jsx(Icon, {
15
13
  content: themeConfig.icons.time || content,
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The trash icon component.
4
+ */
5
+ declare const Trash: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default Trash;
7
+ //# sourceMappingURL=TrashIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrashIcon.d.ts","sourceRoot":"","sources":["../../icons/TrashIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,KAAK,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAEzD,eAAe,KAAK,CAAC"}
@@ -1,11 +1,8 @@
1
- import React from 'react';
2
1
  import Icon from '@shopgate/pwa-common/components/Icon';
3
2
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
3
 
5
4
  /**
6
5
  * The trash icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
9
6
  */
10
7
  import { jsx as _jsx } from "react/jsx-runtime";
11
8
  const Trash = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The trash outline icon component.
4
+ * @link https://fonts.google.com/icons?selected=Material+Icons:delete_outline:&icon.query=trash
5
+ */
6
+ declare const TrashOutline: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
7
+ export default TrashOutline;
8
+ //# sourceMappingURL=TrashOutlineIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrashOutlineIcon.d.ts","sourceRoot":"","sources":["../../icons/TrashOutlineIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAKtE;;;GAGG;AACH,QAAA,MAAM,YAAY,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CAGrD,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -7,8 +7,6 @@ const fallback = '<path d="M0 0h24v24H0V0z" fill="none"/><path d="M6 19c0 1.1.9
7
7
  /**
8
8
  * The trash outline icon component.
9
9
  * @link https://fonts.google.com/icons?selected=Material+Icons:delete_outline:&icon.query=trash
10
- * @param {Object} props The icon component properties.
11
- * @returns {JSX}
12
10
  */
13
11
  const TrashOutline = props => /*#__PURE__*/_jsx(Icon, {
14
12
  content: themeConfig.icons.trashOutline || fallback,
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The unchecked icon component.
4
+ */
5
+ declare const Unchecked: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default Unchecked;
7
+ //# sourceMappingURL=UncheckedIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UncheckedIcon.d.ts","sourceRoot":"","sources":["../../icons/UncheckedIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE7D,eAAe,SAAS,CAAC"}
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
6
  * The unchecked icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
9
7
  */
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  const Unchecked = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The view list icon component.
4
+ */
5
+ declare const ViewList: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default ViewList;
7
+ //# sourceMappingURL=ViewListIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewListIcon.d.ts","sourceRoot":"","sources":["../../icons/ViewListIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACQ,CAAC;AAE5D,eAAe,QAAQ,CAAC"}
@@ -4,8 +4,6 @@ import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
6
  * The view list icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
9
7
  */
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  const ViewList = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The visibility icon component.
4
+ * https://material.io/tools/icons/?icon=visibility&style=baseline
5
+ */
6
+ declare const VisibilityIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
7
+ export default VisibilityIcon;
8
+ //# sourceMappingURL=VisibilityIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisibilityIcon.d.ts","sourceRoot":"","sources":["../../icons/VisibilityIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;;GAGG;AACH,QAAA,MAAM,cAAc,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAE9D,eAAe,cAAc,CAAC"}
@@ -3,10 +3,8 @@ import Icon from '@shopgate/pwa-common/components/Icon';
3
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
- * @link https://material.io/tools/icons/?icon=visibility&style=baseline
7
- *
8
- * @param {Object} props The icon component properties.
9
- * @returns {JSX}
6
+ * The visibility icon component.
7
+ * https://material.io/tools/icons/?icon=visibility&style=baseline
10
8
  */
11
9
  import { jsx as _jsx } from "react/jsx-runtime";
12
10
  const VisibilityIcon = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,8 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The visibility off icon component.
4
+ * https://material.io/tools/icons/?icon=visibility_off&style=baseline
5
+ */
6
+ declare const VisibilityOffIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
7
+ export default VisibilityOffIcon;
8
+ //# sourceMappingURL=VisibilityOffIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisibilityOffIcon.d.ts","sourceRoot":"","sources":["../../icons/VisibilityOffIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAEjE,eAAe,iBAAiB,CAAC"}
@@ -3,10 +3,8 @@ import Icon from '@shopgate/pwa-common/components/Icon';
3
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
- * @link https://material.io/tools/icons/?icon=visibility_off&style=baseline
7
- *
8
- * @param {Object} props The icon component properties.
9
- * @returns {JSX}
6
+ * The visibility off icon component.
7
+ * https://material.io/tools/icons/?icon=visibility_off&style=baseline
10
8
  */
11
9
  import { jsx as _jsx } from "react/jsx-runtime";
12
10
  const VisibilityOffIcon = props => /*#__PURE__*/_jsx(Icon, {
@@ -0,0 +1,7 @@
1
+ import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
+ /**
3
+ * The warning icon component.
4
+ */
5
+ declare const WarningIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ export default WarningIcon;
7
+ //# sourceMappingURL=WarningIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningIcon.d.ts","sourceRoot":"","sources":["../../icons/WarningIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAE3D,eAAe,WAAW,CAAC"}
@@ -3,9 +3,7 @@ import Icon from '@shopgate/pwa-common/components/Icon';
3
3
  import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
4
 
5
5
  /**
6
- * The stop icon component.
7
- * @param {Object} props The icon component properties.
8
- * @returns {JSX}
6
+ * The warning icon component.
9
7
  */
10
8
  import { jsx as _jsx } from "react/jsx-runtime";
11
9
  const WarningIcon = props => /*#__PURE__*/_jsx(Icon, {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-ui-shared",
3
- "version": "7.30.3",
3
+ "version": "7.31.0-alpha.1",
4
4
  "description": "Shopgate's shared UI components.",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
8
- "@shopgate/pwa-ui-ios": "7.30.3",
9
- "@shopgate/pwa-ui-material": "7.30.3"
8
+ "@shopgate/pwa-ui-ios": "7.31.0-alpha.1",
9
+ "@shopgate/pwa-ui-material": "7.31.0-alpha.1"
10
10
  },
11
11
  "devDependencies": {
12
- "@shopgate/pwa-common": "7.30.3",
13
- "@shopgate/pwa-common-commerce": "7.30.3",
12
+ "@shopgate/pwa-common": "7.31.0-alpha.1",
13
+ "@shopgate/pwa-common-commerce": "7.31.0-alpha.1",
14
14
  "classnames": "2.5.1",
15
15
  "react": "^17.0.2"
16
16
  },
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "@shopgate/engage/tsconfig.build.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist",
5
+ "rootDir": "."
6
+ },
7
+ "include": ["**/*.ts", "**/*.tsx"],
8
+ "exclude": [
9
+ "dist",
10
+ "node_modules",
11
+ "**/*.spec.*",
12
+ "**/__tests__/**",
13
+ "**/__snapshots__/**",
14
+ "coverage"
15
+ ]
16
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@shopgate/engage/tsconfig.json",
3
+ }
@@ -1,22 +0,0 @@
1
- import { css } from 'glamor';
2
- import { themeConfig } from '@shopgate/pwa-common/helpers/config';
3
- const halfGapBig = themeConfig.variables.gap.big / 2;
4
- const containerBase = {
5
- textAlign: 'center'
6
- };
7
- const container = css({
8
- ...containerBase,
9
- margin: `${halfGapBig}px 0`
10
- }).toString();
11
- const noGapContainer = css({
12
- ...containerBase
13
- }).toString();
14
- const containerCircle = css({
15
- ...containerBase,
16
- margin: `${halfGapBig + 5}px 0`
17
- }).toString();
18
- export default {
19
- container,
20
- containerCircle,
21
- noGapContainer
22
- };
@@ -1,148 +0,0 @@
1
- import { css } from 'glamor';
2
- import spring from 'css-spring';
3
- import { themeConfig } from '@shopgate/pwa-common/helpers/config';
4
- const options = {
5
- stiffness: 381.47,
6
- damping: 15
7
- };
8
- const buttonSize = 40;
9
- const iconSize = 20;
10
-
11
- /**
12
- * Keyframe animations to create spring animation.
13
- * spring(..) automatically calculates all steps for the keyframe animation.
14
- */
15
- const springFromTopKeyframes = css.keyframes(spring({
16
- transform: 'translate3d(0, 300%, 0)'
17
- }, {
18
- transform: 'translate3d(0, -50%, 0)'
19
- }, options));
20
- const springFromBottomKeyframes = css.keyframes(spring({
21
- transform: 'translate3d(0, -300%, 0)'
22
- }, {
23
- transform: 'translate3d(0, -50%, 0)'
24
- }, options));
25
- const springToTopKeyframes = css.keyframes(spring({
26
- transform: 'translate3d(0, -50%, 0)'
27
- }, {
28
- transform: 'translate3d(0, 300%, 0)'
29
- }, options));
30
- const springToBottomKeyframes = css.keyframes(spring({
31
- transform: 'translate3d(0, -50%, 0)'
32
- }, {
33
- transform: 'translate3d(0, -300%, 0)'
34
- }, options));
35
- const springFromBottom = css({
36
- animation: `${springFromBottomKeyframes} 600ms`
37
- }).toString();
38
- const springFromTop = css({
39
- animation: `${springFromTopKeyframes} 600ms`
40
- }).toString();
41
- const springToTop = css({
42
- animation: `${springToTopKeyframes} 600ms`
43
- }).toString();
44
- const springToBottom = css({
45
- animation: `${springToBottomKeyframes} 600ms`
46
- }).toString();
47
-
48
- /**
49
- * Circular button and container for the icons.
50
- * Default styles.
51
- * @param {number} bSize Size of the button.
52
- * @param {number} iSize Size of the icon.
53
- * @return {string} Class name
54
- */
55
- const buttonWrapperDefault = (bSize, iSize) => ({
56
- transition: 'background 450ms cubic-bezier(0.4, 0.0, 0.2, 1)',
57
- borderRadius: '50%',
58
- width: bSize,
59
- height: bSize,
60
- position: 'relative',
61
- fontSize: iSize,
62
- outline: 0,
63
- paddingLeft: (bSize - iSize) / 2,
64
- paddingRight: (bSize - iSize) / 2,
65
- zIndex: 2,
66
- // Prevents the icons to be visible outside of the circle
67
- overflow: 'hidden',
68
- flexShrink: 0
69
- });
70
- /**
71
- * Circular button and container for the icons.
72
- * @param {number} bSize Size of the button.
73
- * @param {number} iSize Size of the icon.
74
- * @return {string} Class name
75
- */
76
- const buttonWrapper = (bSize, iSize) => css({
77
- ...buttonWrapperDefault(bSize, iSize)
78
- }).toString();
79
-
80
- /**
81
- * Circular button and container for the icons.
82
- * Without shadow.
83
- * @param {number} bSize Size of the button.
84
- * @param {number} iSize Size of the icon.
85
- * @return {string} Class name
86
- */
87
- const buttonWrapperNoShadow = (bSize, iSize) => css({
88
- ...buttonWrapperDefault(bSize, iSize)
89
- }).toString();
90
-
91
- /**
92
- * Styling that is applied to the button when cart icon is shown.
93
- */
94
- const buttonReady = css({
95
- background: `var(--color-button-cta, ${themeConfig.colors.cta})`,
96
- color: `var(--color-button-cta-contrast, ${themeConfig.colors.ctaContrast})`
97
- }).toString();
98
-
99
- /**
100
- * Styling that is applied to the button when checkmark is shown.
101
- */
102
- const buttonSuccess = css({
103
- background: `var(--color-button-cta-contrast, ${themeConfig.colors.ctaContrast})`,
104
- color: `var(--color-button-cta, ${themeConfig.colors.cta})`
105
- }).toString();
106
-
107
- /**
108
- * Styling that is applied to the button when it is disabled.
109
- */
110
- const buttonDisabled = css({
111
- background: themeConfig.colors.shade5,
112
- color: `var(--color-button-cta-contrast, ${themeConfig.colors.ctaContrast})`,
113
- boxShadow: themeConfig.shadows.buttons.disabled
114
- }).toString();
115
-
116
- /**
117
- * Basic icon style that is always applied to all icons.
118
- */
119
- const icon = css({
120
- transition: 'opacity 450ms cubic-bezier(0.4, 0.0, 0.2, 1)',
121
- opacity: 1,
122
- position: 'absolute'
123
- }).toString();
124
-
125
- /**
126
- * Icon style that is applied only to the spinner icon.
127
- */
128
- const spinnerIcon = css({
129
- left: '50%',
130
- top: '50%',
131
- marginTop: -themeConfig.variables.loadingIndicator.size / 2,
132
- marginLeft: -themeConfig.variables.loadingIndicator.size / 2
133
- }).toString();
134
- export default {
135
- buttonWrapper,
136
- buttonWrapperNoShadow,
137
- buttonReady,
138
- buttonSuccess,
139
- buttonDisabled,
140
- buttonSize,
141
- icon,
142
- iconSize,
143
- spinnerIcon,
144
- springFromBottom,
145
- springFromTop,
146
- springToBottom,
147
- springToTop
148
- };
@@ -1,19 +0,0 @@
1
- import { css } from 'glamor';
2
- import { themeConfig } from '@shopgate/pwa-common/helpers/config';
3
- const stateOk = css({
4
- fontSize: '0.875rem',
5
- color: `var(--color-state-ok, ${themeConfig.colors.success})`
6
- }).toString();
7
- const stateWarning = css({
8
- fontSize: '0.875rem',
9
- color: `var(--color-state-warning, ${themeConfig.colors.warning})`
10
- }).toString();
11
- const stateAlert = css({
12
- fontSize: '0.875rem',
13
- color: `var(--color-state-alert, ${themeConfig.colors.error})`
14
- }).toString();
15
- export default {
16
- stateOk,
17
- stateWarning,
18
- stateAlert
19
- };