kupos-ui-components-lib 9.7.0 → 9.7.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.
Files changed (26) hide show
  1. package/dist/KuposUIComponent.d.ts +3 -0
  2. package/dist/assets/images/anims/service_list/users_anim.json +1 -0
  3. package/dist/components/ServiceItem/ServiceItemDesktop.d.ts +1 -1
  4. package/dist/components/ServiceItem/ServiceItemDesktop.js +10 -2
  5. package/dist/components/ServiceItem/ServiceItemMobile.d.ts +1 -1
  6. package/dist/components/ServiceItem/ServiceItemMobile.js +16 -7
  7. package/dist/components/ServiceItem/mobileTypes.d.ts +27 -0
  8. package/dist/components/ServiceItem/types.d.ts +10 -0
  9. package/dist/styles.css +62 -14
  10. package/dist/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.d.ts +18 -0
  11. package/dist/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.js +233 -0
  12. package/dist/ui/FeatureServiceUI/FeatureServiceUi.d.ts +7 -2
  13. package/dist/ui/FeatureServiceUI/FeatureServiceUi.js +109 -92
  14. package/dist/ui/SeatSection/SeatSection.js +1 -1
  15. package/dist/utils/CommonService.js +11 -1
  16. package/package.json +1 -1
  17. package/src/KuposUIComponent.tsx +3 -0
  18. package/src/assets/images/anims/service_list/users_anim.json +1 -0
  19. package/src/components/ServiceItem/ServiceItemDesktop.tsx +23 -1
  20. package/src/components/ServiceItem/ServiceItemMobile.tsx +331 -286
  21. package/src/components/ServiceItem/mobileTypes.ts +22 -0
  22. package/src/components/ServiceItem/types.ts +11 -1
  23. package/src/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.tsx +790 -0
  24. package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +181 -253
  25. package/src/ui/SeatSection/SeatSection.tsx +1 -1
  26. package/src/utils/CommonService.ts +13 -1
@@ -0,0 +1 @@
1
+ {"nm":"Main Scene","ddd":0,"h":512,"w":512,"meta":{"g":"@lottiefiles/creator@1.90.1"},"layers":[{"ty":2,"nm":"111","sr":1,"st":0,"op":150,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[54.49996512276783,38.99999128069197]},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[436.62,436.62],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[300,300],"t":58},{"s":[436.62,436.62],"t":112}]},"sk":{"a":0,"k":0},"p":{"a":0,"k":[255.99996512276783,255.99999128069197]},"r":{"a":0,"k":0},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[70],"t":58},{"s":[100],"t":112}]}},"refId":"111_b9bb56d2-8f3c-4772-b1ac-9caf81e5c707","ind":1}],"v":"5.7.0","fr":30,"op":114,"ip":0,"assets":[{"id":"111_b9bb56d2-8f3c-4772-b1ac-9caf81e5c707","e":1,"w":109,"h":78,"p":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAABOCAYAAAAqwJjOAAAACXBIWXMAAAsSAAALEgHS3X78AAAFrUlEQVR4nO2d4XXiOBDHf5u33+MOcAfLVRBfBctVEFJBuAqO6yDpwKlgsxWcqeCggnM6gAp0H8beYGEDNhpZBv/e4wUF0Bj/PdJYGokvxhgCIQJmQAJMgW8N71sBayAD3n0cWGh8CUC0BFgA3zt8dge8FI+tw2MKmj5Fi5GT3UUsm1K8pYO6gqcv0ebISb53XO+mqHvtuN6g6EO0FHhUrH+H9I2Zoo1e8S1aiq5g+zwV9toSIYHQPtmlB+MSn6K9AM++jCEel3C6qYwRz5whYjU12R98Rqy9Rq2+RJsBP3wYsvhAhKiLLGMkcOni+b1GrT5Ei4Ac90HHubwhwck+rrx+V9Tt1fPuPNjQiBLb8Ig0k/tEjuq+R1qQ1FF9Z6Ht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AdzqXHgUSzc1reNpzraVPkarsVwUA2Jnun6g2uU/EmyIqiZZsPneNprq+uoVGXz6ixyefZaXinPO3WBQNpXTIOPe7JsZ3HGju1HBNtFOyTb9SvwHlTsJNxQrim5jFCribXmbhDxw5OtM7T0RTzJk/TSJ2+Bp6pblK2RWf9dp1n/6JOtAXjtn/HSKnu0JrhvpkEGXBf1r1gN48x4u5jP3Yce8v4GL3z9jvWfZztaS9Khq+NB6rNZI7eIowUKzDZFy0hzDmwULFFSpXsTLBGZvZFWyoZvVbszaVzdPo2ENF+eVsp2pQx+OiCPTaZKtm537dVBiIp/n6M7tqwd+XJ0bld2lF4W+lps+b3jpxgbpW1ckTuS1t3hPfzIkPDvuAzbVulaCPdsX8OJVO09R1G0VyR7D3fortTenLHgLeFDYjYKueKtqZ3jP2ZCxKrnCnair4Sxs6nQ8fegCZH77xG/wM8sVe80j/03AAAAABJRU5ErkJggg==","u":""}]}
@@ -27,6 +27,7 @@ import bombAnimation from "../../assets/images/anims/service_list/bomb.json";
27
27
  import dotAnimation from "../../assets/images/anims/service_list/dot_animation.json";
28
28
  import starAnimation from "../../assets/images/anims/service_list/star_anim.json";
29
29
  import femaleAnimation from "../../assets/images/anims/service_list/female_anim.json";
30
+ import usersAnimation from "../../assets/images/anims/service_list/users_anim.json";
30
31
 
31
32
  import RatingBlock from "../../ui/RatingBlock";
32
33
  import DurationBlock from "../../ui/DurationBlock";
@@ -86,6 +87,9 @@ const ANIMATION_MAP: Record<string, Record<string, any>> = {
86
87
  femaaleAnimation: {
87
88
  kupos: femaleAnimation,
88
89
  },
90
+ usersAnimation: {
91
+ kupos: usersAnimation,
92
+ },
89
93
  };
90
94
 
91
95
  function ServiceItemPB({
@@ -123,6 +127,11 @@ function ServiceItemPB({
123
127
  showLoginModal,
124
128
  isLoggedIn,
125
129
  showLoginOption,
130
+ isFeatureDropDownExpand,
131
+ setIsFeatureDropDownExpand,
132
+ ticketQuantity,
133
+ onIncreaseTicketQuantity,
134
+ onDecreaseTicketQuantity,
126
135
  }: ServiceItemProps & { currencySign?: string }): React.ReactElement {
127
136
  const getAnimationIcon = (icon: string) => {
128
137
  const animation = ANIMATION_MAP[icon];
@@ -426,13 +435,26 @@ function ServiceItemPB({
426
435
  <FeatureServiceUi
427
436
  serviceItem={serviceItem}
428
437
  showTopLabel={showTopLabel}
429
- colors={colors}
430
438
  isSoldOut={isSoldOut}
431
439
  getAnimationIcon={getAnimationIcon}
432
440
  cityOrigin={cityOrigin}
433
441
  cityDestination={cityDestination}
434
442
  renderIcon={renderIcon}
435
443
  viewersConfig={viewersConfig}
444
+ isFeatureDropDownExpand={isFeatureDropDownExpand}
445
+ ticketQuantity={ticketQuantity}
446
+ onIncreaseTicketQuantity={onIncreaseTicketQuantity}
447
+ onDecreaseTicketQuantity={onDecreaseTicketQuantity}
448
+ onBookButtonPress={onBookButtonPress}
449
+ onToggleExpand={() =>
450
+ setIsFeatureDropDownExpand &&
451
+ setIsFeatureDropDownExpand(
452
+ isFeatureDropDownExpand === serviceItem.id ||
453
+ isFeatureDropDownExpand === true
454
+ ? null
455
+ : serviceItem.id,
456
+ )
457
+ }
436
458
  />
437
459
  ) : (
438
460
  <div