@aaravpos/appointment-booking-plugin 7.0.0 → 7.0.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.
@@ -1,2 +1,2 @@
1
1
  import { MainLayoutProps } from '../../../types';
2
- export default function MainLayout({ children, sidebar, renderButton, }: MainLayoutProps): import("react").JSX.Element;
2
+ export default function MainLayout({ children, sidebar, renderButton, isConfirm, handleSidebarOpen, isSidebarOpen }: MainLayoutProps): import("react").JSX.Element;
@@ -12,6 +12,7 @@ interface OrderSidebarProps {
12
12
  checkingConsent?: boolean;
13
13
  loading?: boolean;
14
14
  isBookingDisabled?: boolean;
15
+ handleSidebarOpen?: () => void;
15
16
  }
16
- export default function OrderSidebar({ buttonText, onButtonClick, showTaxesOnlyIfTime, showTip, tipPct, onTipChange, consentRequired, consentCompleted, totalConsents, checkingConsent, loading, isBookingDisabled, }: OrderSidebarProps): JSX.Element;
17
+ export default function OrderSidebar({ buttonText, onButtonClick, showTaxesOnlyIfTime, showTip, tipPct, onTipChange, consentRequired, consentCompleted, totalConsents, checkingConsent, loading, isBookingDisabled, handleSidebarOpen, }: OrderSidebarProps): JSX.Element;
17
18
  export {};
package/dist/styles.css CHANGED
@@ -954,7 +954,7 @@
954
954
  transition: all 0.2s ease;
955
955
  border-radius: 6px;
956
956
  position: absolute;
957
- bottom: 15px;
957
+ bottom: 25px;
958
958
  z-index: 50;
959
959
  display: flex;
960
960
  align-items: center;
@@ -1096,7 +1096,7 @@
1096
1096
  transition: all 0.2s ease;
1097
1097
  border-radius: 24px;
1098
1098
  position: absolute;
1099
- bottom: 15px;
1099
+ bottom: 8px;
1100
1100
  z-index: 50;
1101
1101
  display: flex;
1102
1102
  align-items: center;
@@ -1776,7 +1776,7 @@
1776
1776
  }
1777
1777
  .aaravpos-staff-grid {
1778
1778
  display: grid;
1779
- grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
1779
+ grid-template-columns: repeat(2, 1fr);
1780
1780
  gap: 12px;
1781
1781
  }
1782
1782
  .aaravpos-display-flex {
@@ -3583,7 +3583,7 @@
3583
3583
  cursor: pointer;
3584
3584
  text-transform: uppercase;
3585
3585
  letter-spacing: 0.5px;
3586
- font-size: 16px;
3586
+ font-size: 12px;
3587
3587
  transition: all 0.2s ease;
3588
3588
  }
3589
3589
  .aaravpos-book-btn:hover {
@@ -3895,7 +3895,7 @@
3895
3895
  display: none;
3896
3896
  }
3897
3897
  .aaravpos-btn {
3898
- display: block;
3898
+ display: flex;
3899
3899
  }
3900
3900
  }
3901
3901
  @media (min-width: 1024px) {
@@ -3954,6 +3954,9 @@
3954
3954
  flex-direction: column;
3955
3955
  gap: 20px;
3956
3956
  }
3957
+ .aaravpos-btn {
3958
+ display: flex;
3959
+ }
3957
3960
  }
3958
3961
  @media (min-width: 1280px) {
3959
3962
  .aaravpos-title {
@@ -4267,6 +4270,20 @@
4267
4270
  cursor: pointer;
4268
4271
  user-select: none;
4269
4272
  }
4273
+ .booking-pro-card-header {
4274
+ display: flex;
4275
+ align-items: center;
4276
+ gap: 16px;
4277
+ width: 100%;
4278
+ }
4279
+ @media (max-width: 1024px) {
4280
+ .booking-pro-card {
4281
+ padding: 12px 8px;
4282
+ }
4283
+ .booking-pro-card-header {
4284
+ gap: 8px;
4285
+ }
4286
+ }
4270
4287
  .booking-pro-card:hover {
4271
4288
  border-color: rgba(0, 0, 0, 0.2);
4272
4289
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
@@ -4303,6 +4320,17 @@
4303
4320
  border: 1px solid rgba(0, 0, 0, 0.1);
4304
4321
  flex-shrink: 0;
4305
4322
  }
4323
+ @media (max-width: 1024px) {
4324
+ .booking-pro-avatar-circle {
4325
+ width: 36px;
4326
+ height: 36px;
4327
+ font-size: 12px;
4328
+ }
4329
+ .booking-pro-avatar-img {
4330
+ width: 36px;
4331
+ height: 36px;
4332
+ }
4333
+ }
4306
4334
  .booking-pro-info {
4307
4335
  flex: 1;
4308
4336
  min-width: 0;
@@ -4853,3 +4881,256 @@
4853
4881
  transform: rotate(360deg);
4854
4882
  }
4855
4883
  }
4884
+ @keyframes bookingSliderFadeIn {
4885
+ from {
4886
+ opacity: 0;
4887
+ }
4888
+ to {
4889
+ opacity: 1;
4890
+ }
4891
+ }
4892
+ @keyframes bookingSliderSlideUp {
4893
+ from {
4894
+ transform: translateY(100%);
4895
+ }
4896
+ to {
4897
+ transform: translateY(0);
4898
+ }
4899
+ }
4900
+ .booking-slider-backdrop {
4901
+ position: fixed;
4902
+ top: 0;
4903
+ right: 0;
4904
+ bottom: 0;
4905
+ left: 0;
4906
+ background-color: rgba(0, 0, 0, 0.5);
4907
+ z-index: 998;
4908
+ animation: bookingSliderFadeIn 0.2s ease-out forwards;
4909
+ }
4910
+ .booking-slider-sheet {
4911
+ position: fixed;
4912
+ bottom: 0;
4913
+ left: 0;
4914
+ right: 0;
4915
+ background-color: #ffffff;
4916
+ border-top-left-radius: 16px;
4917
+ border-top-right-radius: 16px;
4918
+ z-index: 999;
4919
+ max-height: 85vh;
4920
+ display: flex;
4921
+ flex-direction: column;
4922
+ box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
4923
+ border-top: 1px solid #f3f4f6;
4924
+ padding-bottom: env(safe-area-inset-bottom, 16px);
4925
+ animation: bookingSliderSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
4926
+ }
4927
+ @media (min-width: 1024px) {
4928
+ .booking-slider-backdrop, .booking-slider-sheet {
4929
+ display: none !important;
4930
+ }
4931
+ }
4932
+ .booking-slider-drag-handle-container {
4933
+ display: flex;
4934
+ justify-content: center;
4935
+ padding: 12px 0;
4936
+ }
4937
+ .booking-slider-drag-handle {
4938
+ width: 48px;
4939
+ height: 4px;
4940
+ background-color: #e5e7eb;
4941
+ border-radius: 9999px;
4942
+ }
4943
+ .booking-slider-header {
4944
+ padding: 0 16px 12px 16px;
4945
+ border-bottom: 1px solid #f3f4f6;
4946
+ display: flex;
4947
+ align-items: center;
4948
+ justify-content: space-between;
4949
+ }
4950
+ .booking-slider-header-text {
4951
+ text-align: left;
4952
+ }
4953
+ .booking-slider-title {
4954
+ font-family: var(--font-heading);
4955
+ font-size: 20px;
4956
+ text-transform: uppercase;
4957
+ letter-spacing: 0.05em;
4958
+ margin: 0;
4959
+ color: #111827;
4960
+ }
4961
+ .booking-slider-subtitle {
4962
+ font-size: 12px;
4963
+ color: rgba(0, 0, 0, 0.5);
4964
+ margin: 4px 0 0 0;
4965
+ }
4966
+ .booking-slider-close-btn {
4967
+ padding: 6px;
4968
+ border-radius: 9999px;
4969
+ transition: all 0.2s ease;
4970
+ border: none;
4971
+ background: transparent;
4972
+ cursor: pointer;
4973
+ display: flex;
4974
+ align-items: center;
4975
+ justify-content: center;
4976
+ color: #4b5563;
4977
+ }
4978
+ .booking-slider-close-btn:hover {
4979
+ background-color: #f3f4f6;
4980
+ color: #111827;
4981
+ }
4982
+ .booking-slider-list {
4983
+ flex: 1;
4984
+ overflow-y: auto;
4985
+ padding: 12px 16px;
4986
+ max-height: 50vh;
4987
+ display: flex;
4988
+ flex-direction: column;
4989
+ gap: 12px;
4990
+ }
4991
+ .booking-slider-item {
4992
+ display: flex;
4993
+ align-items: center;
4994
+ justify-content: space-between;
4995
+ border: 1px solid rgba(0, 0, 0, 0.15);
4996
+ border-radius: 8px;
4997
+ padding: 14px;
4998
+ transition: all 0.2s ease;
4999
+ background-color: #ffffff;
5000
+ cursor: pointer;
5001
+ }
5002
+ .booking-slider-item:hover {
5003
+ border-color: rgba(0, 0, 0, 0.25);
5004
+ background-color: #fcfcfc;
5005
+ }
5006
+ .booking-slider-item.active {
5007
+ border: 2px solid var(--btn-bg);
5008
+ background-color: rgba(215, 38, 61, 0.05);
5009
+ padding: 13px;
5010
+ }
5011
+ .booking-slider-item-content {
5012
+ flex: 1;
5013
+ min-width: 0;
5014
+ padding-right: 12px;
5015
+ text-align: left;
5016
+ }
5017
+ .booking-slider-item-name {
5018
+ font-weight: 700;
5019
+ font-size: 14px;
5020
+ white-space: nowrap;
5021
+ overflow: hidden;
5022
+ text-overflow: ellipsis;
5023
+ text-transform: uppercase;
5024
+ margin: 0 0 2px 0;
5025
+ color: #111827;
5026
+ }
5027
+ .booking-slider-item-desc {
5028
+ font-size: 11px;
5029
+ font-weight: 600;
5030
+ color: rgba(0, 0, 0, 0.4);
5031
+ white-space: nowrap;
5032
+ overflow: hidden;
5033
+ text-overflow: ellipsis;
5034
+ text-transform: uppercase;
5035
+ margin: 0 0 6px 0;
5036
+ }
5037
+ .booking-slider-item-meta {
5038
+ display: flex;
5039
+ align-items: center;
5040
+ gap: 12px;
5041
+ font-size: 12px;
5042
+ color: rgba(0, 0, 0, 0.6);
5043
+ }
5044
+ .booking-slider-item-price {
5045
+ font-family: var(--font-mono);
5046
+ font-weight: 600;
5047
+ display: flex;
5048
+ align-items: center;
5049
+ }
5050
+ .booking-slider-item-checkbox-wrapper {
5051
+ flex-shrink: 0;
5052
+ display: flex;
5053
+ align-items: center;
5054
+ }
5055
+ .booking-slider-checkbox {
5056
+ width: 20px;
5057
+ height: 20px;
5058
+ accent-color: var(--btn-bg);
5059
+ border-radius: 4px;
5060
+ cursor: pointer;
5061
+ }
5062
+ .booking-slider-empty-text {
5063
+ font-size: 14px;
5064
+ color: rgba(0, 0, 0, 0.4);
5065
+ text-align: center;
5066
+ padding: 32px 0;
5067
+ margin: 0;
5068
+ }
5069
+ .booking-slider-footer {
5070
+ padding: 16px;
5071
+ border-top: 1px solid #f3f4f6;
5072
+ background-color: #f9fafb;
5073
+ display: flex;
5074
+ gap: 12px;
5075
+ }
5076
+ .booking-slider-continue-btn {
5077
+ flex: 1;
5078
+ background-color: var(--btn-bg);
5079
+ color: #ffffff;
5080
+ padding: 12px;
5081
+ border-radius: 9999px;
5082
+ font-weight: 700;
5083
+ text-transform: uppercase;
5084
+ font-size: 12px;
5085
+ letter-spacing: 0.05em;
5086
+ cursor: pointer;
5087
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
5088
+ text-align: center;
5089
+ border: none;
5090
+ transition: background-color 0.2s ease, transform 0.1s ease;
5091
+ }
5092
+ .booking-slider-continue-btn:hover {
5093
+ background-color: var(--btn-bg-hover, #1f2937);
5094
+ }
5095
+ .booking-slider-continue-btn:active {
5096
+ transform: scale(0.98);
5097
+ }
5098
+ .aaravpos-mobile-action-wrapper {
5099
+ position: fixed;
5100
+ bottom: 20px;
5101
+ left: 0;
5102
+ right: 0;
5103
+ display: flex;
5104
+ align-items: center;
5105
+ justify-content: center;
5106
+ z-index: 50;
5107
+ padding: 0 16px;
5108
+ }
5109
+ @media (min-width: 768px) {
5110
+ .aaravpos-mobile-action-wrapper {
5111
+ display: none !important;
5112
+ }
5113
+ }
5114
+ .aaravpos-cta-btn {
5115
+ padding: 12px 34px;
5116
+ font-size: 14px;
5117
+ position: relative;
5118
+ border-radius: 9999px;
5119
+ border: none;
5120
+ background-color: var(--btn-bg);
5121
+ color: #ffffff;
5122
+ font-family: var(--font-body);
5123
+ font-weight: 700;
5124
+ letter-spacing: 1.5px;
5125
+ text-transform: uppercase;
5126
+ cursor: pointer;
5127
+ transition: all 0.2s ease;
5128
+ }
5129
+ .aaravpos-cta-btn:hover {
5130
+ background-color: var(--btn-bg-hover);
5131
+ color: var(--btn-text-hover, #ffffff);
5132
+ }
5133
+ .aaravpos-cta-btn:disabled {
5134
+ background-color: #cccccc;
5135
+ cursor: not-allowed;
5136
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaravpos/appointment-booking-plugin",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "A React component library built with Tailwind CSS v4 and TypeScript",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.33.0",