@aaravpos/appointment-barber-booking 1.0.1 → 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 -16
- 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,32 +961,21 @@
|
|
|
961
961
|
border-radius: 8px;
|
|
962
962
|
display: flex;
|
|
963
963
|
}
|
|
964
|
-
.aaravpos-barber-sidebar
|
|
965
|
-
transform: translateX(0);
|
|
966
|
-
}
|
|
967
|
-
.aaravpos-barber-sidebar .hide {
|
|
968
|
-
transform: translateX(100%);
|
|
969
|
-
}
|
|
970
|
-
.aaravpos-layout-wrapper.with-sidebar .aaravpos-barber-sidebar {
|
|
964
|
+
.aaravpos-barber-sidebar.open {
|
|
971
965
|
transform: translateX(0);
|
|
972
966
|
}
|
|
973
967
|
.aaravpos-barber-sidebar-mobile {
|
|
974
968
|
position: fixed;
|
|
975
|
-
z-index: 999;
|
|
976
969
|
inset: 0;
|
|
977
|
-
|
|
978
|
-
background: #
|
|
979
|
-
border-radius: 16px 16px 0 0;
|
|
970
|
+
z-index: 9999;
|
|
971
|
+
background: #fff;
|
|
980
972
|
display: flex;
|
|
981
973
|
flex-direction: column;
|
|
982
|
-
animation: aaravposFadeIn 0.25s ease;
|
|
983
974
|
}
|
|
984
975
|
.aaravpos-barber-sidebar-mobile-content {
|
|
985
976
|
flex: 1;
|
|
986
|
-
position: fixed;
|
|
987
|
-
inset: 0;
|
|
988
|
-
padding: 16px;
|
|
989
977
|
overflow-y: auto;
|
|
978
|
+
padding: 16px;
|
|
990
979
|
}
|
|
991
980
|
.aaravpos-outlet-divider {
|
|
992
981
|
width: 56px;
|
|
@@ -3632,7 +3621,7 @@
|
|
|
3632
3621
|
.aaravpos-sidebar-close-btn {
|
|
3633
3622
|
display: none;
|
|
3634
3623
|
}
|
|
3635
|
-
.aaravpos-layout-wrapper
|
|
3624
|
+
.aaravpos-layout-wrapper {
|
|
3636
3625
|
grid-template-columns: minmax(0, 1fr) 360px;
|
|
3637
3626
|
}
|
|
3638
3627
|
}
|
|
@@ -3693,6 +3682,9 @@
|
|
|
3693
3682
|
flex-direction: column;
|
|
3694
3683
|
margin-bottom: 10px;
|
|
3695
3684
|
}
|
|
3685
|
+
.aaravpos-barber-sidebar {
|
|
3686
|
+
display: none;
|
|
3687
|
+
}
|
|
3696
3688
|
.arravpos-booking-grid {
|
|
3697
3689
|
flex-direction: column;
|
|
3698
3690
|
gap: 20px;
|
package/package.json
CHANGED