@aaravpos/appointment-barber-booking 1.0.2 → 1.0.3
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.
- package/dist/components/common/MainLayout.d.ts +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.js +6 -6
- package/dist/styles.css +8 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3191,24 +3191,24 @@ function en() {
|
|
|
3191
3191
|
})]
|
|
3192
3192
|
}) });
|
|
3193
3193
|
}
|
|
3194
|
-
function tn({ children: e, sidebar: t, renderButton: r, isConfirm: n = !1,
|
|
3195
|
-
const { selectedServices: o, selectedProfessional: s } = re((
|
|
3194
|
+
function tn({ children: e, sidebar: t, renderButton: r, isConfirm: n = !1, isSidebarOpen: a = !1, handleSidebarOpen: i }) {
|
|
3195
|
+
const { selectedServices: o, selectedProfessional: s } = re((l) => l.barber.service), d = o?.length > 0 || !!s?.id;
|
|
3196
3196
|
return /* @__PURE__ */ b("div", {
|
|
3197
3197
|
className: "aaravpos-main-layout",
|
|
3198
3198
|
children: [/* @__PURE__ */ b("div", {
|
|
3199
|
-
className:
|
|
3199
|
+
className: "aaravpos-layout-wrapper",
|
|
3200
3200
|
children: [/* @__PURE__ */ b("main", {
|
|
3201
3201
|
className: "aaravpos-main-content",
|
|
3202
3202
|
children: [e, n ? /* @__PURE__ */ u("button", {
|
|
3203
|
-
onClick: a,
|
|
3204
3203
|
className: "aaravpos-btn",
|
|
3204
|
+
onClick: i,
|
|
3205
3205
|
children: /* @__PURE__ */ u("span", { children: "View Order" })
|
|
3206
3206
|
}) : r]
|
|
3207
3207
|
}), /* @__PURE__ */ u("aside", {
|
|
3208
|
-
className: `aaravpos-barber-sidebar ${
|
|
3208
|
+
className: `aaravpos-barber-sidebar ${d ? "open" : ""}`,
|
|
3209
3209
|
children: t
|
|
3210
3210
|
})]
|
|
3211
|
-
}),
|
|
3211
|
+
}), a && /* @__PURE__ */ u("div", {
|
|
3212
3212
|
className: "aaravpos-barber-sidebar-mobile",
|
|
3213
3213
|
children: /* @__PURE__ */ u("div", {
|
|
3214
3214
|
className: "aaravpos-barber-sidebar-mobile-content",
|
package/dist/styles.css
CHANGED
|
@@ -961,29 +961,21 @@
|
|
|
961
961
|
border-radius: 8px;
|
|
962
962
|
display: flex;
|
|
963
963
|
}
|
|
964
|
-
.aaravpos-barber-sidebar.
|
|
964
|
+
.aaravpos-barber-sidebar.open {
|
|
965
965
|
transform: translateX(0);
|
|
966
966
|
}
|
|
967
|
-
.aaravpos-barber-sidebar.hide {
|
|
968
|
-
transform: translateX(100%);
|
|
969
|
-
}
|
|
970
967
|
.aaravpos-barber-sidebar-mobile {
|
|
971
968
|
position: fixed;
|
|
972
|
-
z-index: 999;
|
|
973
969
|
inset: 0;
|
|
974
|
-
|
|
975
|
-
background: #
|
|
976
|
-
border-radius: 16px 16px 0 0;
|
|
970
|
+
z-index: 9999;
|
|
971
|
+
background: #fff;
|
|
977
972
|
display: flex;
|
|
978
973
|
flex-direction: column;
|
|
979
|
-
animation: aaravposFadeIn 0.25s ease;
|
|
980
974
|
}
|
|
981
975
|
.aaravpos-barber-sidebar-mobile-content {
|
|
982
976
|
flex: 1;
|
|
983
|
-
position: fixed;
|
|
984
|
-
inset: 0;
|
|
985
|
-
padding: 16px;
|
|
986
977
|
overflow-y: auto;
|
|
978
|
+
padding: 16px;
|
|
987
979
|
}
|
|
988
980
|
.aaravpos-outlet-divider {
|
|
989
981
|
width: 56px;
|
|
@@ -3629,7 +3621,7 @@
|
|
|
3629
3621
|
.aaravpos-sidebar-close-btn {
|
|
3630
3622
|
display: none;
|
|
3631
3623
|
}
|
|
3632
|
-
.aaravpos-layout-wrapper
|
|
3624
|
+
.aaravpos-layout-wrapper {
|
|
3633
3625
|
grid-template-columns: minmax(0, 1fr) 360px;
|
|
3634
3626
|
}
|
|
3635
3627
|
}
|
|
@@ -3690,6 +3682,9 @@
|
|
|
3690
3682
|
flex-direction: column;
|
|
3691
3683
|
margin-bottom: 10px;
|
|
3692
3684
|
}
|
|
3685
|
+
.aaravpos-barber-sidebar {
|
|
3686
|
+
display: none;
|
|
3687
|
+
}
|
|
3693
3688
|
.arravpos-booking-grid {
|
|
3694
3689
|
flex-direction: column;
|
|
3695
3690
|
gap: 20px;
|
package/package.json
CHANGED