@licklist/design 0.78.5-dev.49 → 0.78.5-dev.50
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/index.js +11 -1
- package/dist/v2/components/ActionMenu/ActionMenu.d.ts +13 -0
- package/dist/v2/components/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/dist/v2/components/ActionMenu/ActionMenu.js +100 -0
- package/dist/v2/components/ActionMenu/ActionMenu.scss.js +6 -0
- package/dist/v2/components/ActionMenu/index.d.ts +2 -0
- package/dist/v2/components/ActionMenu/index.d.ts.map +1 -0
- package/dist/v2/components/Alert/Alert.scss.js +1 -1
- package/dist/v2/components/Badge/Badge.d.ts +10 -0
- package/dist/v2/components/Badge/Badge.d.ts.map +1 -0
- package/dist/v2/components/Badge/Badge.js +19 -0
- package/dist/v2/components/Badge/Badge.scss.js +6 -0
- package/dist/v2/components/Badge/index.d.ts +2 -0
- package/dist/v2/components/Badge/index.d.ts.map +1 -0
- package/dist/v2/components/Checkbox/Checkbox.scss.js +1 -1
- package/dist/v2/components/Customer/CustomerCreate/CustomerCreate.d.ts +11 -0
- package/dist/v2/components/Customer/CustomerCreate/CustomerCreate.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerCreate/CustomerCreate.js +32 -0
- package/dist/v2/components/Customer/CustomerCreate/index.d.ts +2 -0
- package/dist/v2/components/Customer/CustomerCreate/index.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerDetail/CustomerDetail.d.ts +35 -0
- package/dist/v2/components/Customer/CustomerDetail/CustomerDetail.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerDetail/CustomerDetail.js +235 -0
- package/dist/v2/components/Customer/CustomerDetail/CustomerDetail.scss.js +6 -0
- package/dist/v2/components/Customer/CustomerDetail/index.d.ts +2 -0
- package/dist/v2/components/Customer/CustomerDetail/index.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerEdit/CustomerEdit.d.ts +11 -0
- package/dist/v2/components/Customer/CustomerEdit/CustomerEdit.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerEdit/CustomerEdit.js +32 -0
- package/dist/v2/components/Customer/CustomerEdit/index.d.ts +2 -0
- package/dist/v2/components/Customer/CustomerEdit/index.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerForm/CustomerForm.d.ts +22 -0
- package/dist/v2/components/Customer/CustomerForm/CustomerForm.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomerForm/CustomerForm.js +535 -0
- package/dist/v2/components/Customer/CustomerForm/index.d.ts +2 -0
- package/dist/v2/components/Customer/CustomerForm/index.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomersList.d.ts +37 -0
- package/dist/v2/components/Customer/CustomersList.d.ts.map +1 -0
- package/dist/v2/components/Customer/CustomersList.js +204 -0
- package/dist/v2/components/Customer/CustomersList.scss.js +6 -0
- package/dist/v2/components/Customer/index.d.ts +6 -0
- package/dist/v2/components/Customer/index.d.ts.map +1 -0
- package/dist/v2/components/FormField/FormField.scss.js +1 -1
- package/dist/v2/components/Modal/DeleteModal.d.ts +15 -0
- package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -0
- package/dist/v2/components/Modal/DeleteModal.js +147 -0
- package/dist/v2/components/Modal/DeleteModal.scss.js +6 -0
- package/dist/v2/components/Modal/index.d.ts +3 -0
- package/dist/v2/components/Modal/index.d.ts.map +1 -0
- package/dist/v2/components/NewInput/NewInput.d.ts +2 -0
- package/dist/v2/components/NewInput/NewInput.d.ts.map +1 -1
- package/dist/v2/components/NewInput/NewInput.js +29 -12
- package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts +1 -0
- package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts.map +1 -1
- package/dist/v2/components/NewPageHeader/NewPageHeader.js +15 -9
- package/dist/v2/components/NewPageHeader/NewPageHeader.scss.js +1 -1
- package/dist/v2/components/NewTable/NewTable.d.ts +20 -0
- package/dist/v2/components/NewTable/NewTable.d.ts.map +1 -0
- package/dist/v2/components/NewTable/NewTable.js +57 -0
- package/dist/v2/components/NewTable/NewTable.scss.js +6 -0
- package/dist/v2/components/NewTable/index.d.ts +2 -0
- package/dist/v2/components/NewTable/index.d.ts.map +1 -0
- package/dist/v2/components/Pagination/Pagination.d.ts +13 -0
- package/dist/v2/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/v2/components/Pagination/Pagination.js +79 -0
- package/dist/v2/components/Pagination/Pagination.scss.js +6 -0
- package/dist/v2/components/Pagination/index.d.ts +2 -0
- package/dist/v2/components/Pagination/index.d.ts.map +1 -0
- package/dist/v2/components/QuickFilter/QuickFilter.d.ts +14 -0
- package/dist/v2/components/QuickFilter/QuickFilter.d.ts.map +1 -0
- package/dist/v2/components/QuickFilter/QuickFilter.js +67 -0
- package/dist/v2/components/QuickFilter/QuickFilter.scss.js +6 -0
- package/dist/v2/components/QuickFilter/index.d.ts +2 -0
- package/dist/v2/components/QuickFilter/index.d.ts.map +1 -0
- package/dist/v2/components/Select/Select.d.ts +7 -4
- package/dist/v2/components/Select/Select.d.ts.map +1 -1
- package/dist/v2/components/Select/Select.js +53 -24
- package/dist/v2/components/Select/Select.scss.js +1 -1
- package/dist/v2/components/WYSIWYGEditor/WYSIWYGEditor.scss.js +1 -1
- package/dist/v2/components/index.d.ts +18 -0
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/icons/index.d.ts +21 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +155 -4
- package/dist/v2/navigation/DashboardLayout/ProviderSidebar.d.ts.map +1 -1
- package/dist/v2/navigation/DashboardLayout/ProviderSidebar.js +4 -8
- package/dist/v2/styles/common.scss +7 -0
- package/dist/v2/styles/form/NewInput.scss +45 -21
- package/dist/v2/styles/form/NewInput.scss.js +1 -1
- package/dist/v2/styles/index.scss +1 -0
- package/package.json +3 -3
- package/src/v2/components/ActionMenu/ActionMenu.scss +78 -0
- package/src/v2/components/ActionMenu/ActionMenu.tsx +64 -0
- package/src/v2/components/ActionMenu/index.ts +1 -0
- package/src/v2/components/Badge/Badge.scss +69 -0
- package/src/v2/components/Badge/Badge.tsx +23 -0
- package/src/v2/components/Badge/index.ts +1 -0
- package/src/v2/components/Customer/CustomerCreate/CustomerCreate.tsx +36 -0
- package/src/v2/components/Customer/CustomerCreate/index.ts +1 -0
- package/src/v2/components/Customer/CustomerDetail/CustomerDetail.scss +315 -0
- package/src/v2/components/Customer/CustomerDetail/CustomerDetail.tsx +161 -0
- package/src/v2/components/Customer/CustomerDetail/index.ts +1 -0
- package/src/v2/components/Customer/CustomerEdit/CustomerEdit.tsx +37 -0
- package/src/v2/components/Customer/CustomerEdit/index.ts +1 -0
- package/src/v2/components/Customer/CustomerForm/CustomerForm.tsx +434 -0
- package/src/v2/components/Customer/CustomerForm/index.ts +1 -0
- package/src/v2/components/Customer/CustomersList.scss +586 -0
- package/src/v2/components/Customer/CustomersList.tsx +193 -0
- package/src/v2/components/Customer/index.ts +5 -0
- package/src/v2/components/Modal/DeleteModal.scss +254 -0
- package/src/v2/components/Modal/DeleteModal.tsx +100 -0
- package/src/v2/components/Modal/index.ts +3 -0
- package/src/v2/components/NewInput/NewInput.stories.tsx +3 -18
- package/src/v2/components/NewInput/NewInput.tsx +23 -12
- package/src/v2/components/NewPageHeader/NewPageHeader.scss +13 -7
- package/src/v2/components/NewPageHeader/NewPageHeader.tsx +14 -9
- package/src/v2/components/NewTable/NewTable.scss +110 -0
- package/src/v2/components/NewTable/NewTable.tsx +85 -0
- package/src/v2/components/NewTable/index.ts +1 -0
- package/src/v2/components/Pagination/Pagination.scss +142 -0
- package/src/v2/components/Pagination/Pagination.tsx +80 -0
- package/src/v2/components/Pagination/index.ts +1 -0
- package/src/v2/components/QuickFilter/QuickFilter.scss +84 -0
- package/src/v2/components/QuickFilter/QuickFilter.tsx +49 -0
- package/src/v2/components/QuickFilter/index.ts +1 -0
- package/src/v2/components/Select/Select.scss +61 -24
- package/src/v2/components/Select/Select.stories.tsx +77 -1
- package/src/v2/components/Select/Select.tsx +63 -34
- package/src/v2/components/index.ts +28 -0
- package/src/v2/icons/index.tsx +79 -2
- package/src/v2/navigation/DashboardLayout/ProviderSidebar.tsx +3 -1
- package/src/v2/navigation/config.tsx +1 -1
- package/src/v2/styles/common.scss +7 -0
- package/src/v2/styles/form/NewInput.scss +45 -21
- package/src/v2/styles/index.scss +1 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { Badge } from '../../Badge/Badge.js';
|
|
4
|
+
import { ArrowLeftIcon, InfoIcon, EditIcon } from '../../../icons/index.js';
|
|
5
|
+
import './CustomerDetail.scss.js';
|
|
6
|
+
|
|
7
|
+
var CustomerDetail = function(param) {
|
|
8
|
+
var onBack = param.onBack, onEdit = param.onEdit, name = param.name, customerId = param.customerId, waiverStatus = param.waiverStatus, _param_waiverStatusVariant = param.waiverStatusVariant, waiverStatusVariant = _param_waiverStatusVariant === void 0 ? 'success' : _param_waiverStatusVariant, _param_waiversEnabled = param.waiversEnabled, waiversEnabled = _param_waiversEnabled === void 0 ? true : _param_waiversEnabled, contactDetails = param.contactDetails, bookingDetails = param.bookingDetails, waiverDetails = param.waiverDetails, minors = param.minors, customerSinceFooter = param.customerSinceFooter;
|
|
9
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
10
|
+
className: "customer-detail",
|
|
11
|
+
children: [
|
|
12
|
+
/*#__PURE__*/ jsxs("div", {
|
|
13
|
+
className: "customer-detail__back",
|
|
14
|
+
onClick: onBack,
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ jsx("span", {
|
|
17
|
+
className: "customer-detail__back-icon",
|
|
18
|
+
children: /*#__PURE__*/ jsx(ArrowLeftIcon, {
|
|
19
|
+
width: 24,
|
|
20
|
+
height: 24
|
|
21
|
+
})
|
|
22
|
+
}),
|
|
23
|
+
" Back to Customers"
|
|
24
|
+
]
|
|
25
|
+
}),
|
|
26
|
+
/*#__PURE__*/ jsxs("div", {
|
|
27
|
+
className: "customer-detail__header",
|
|
28
|
+
children: [
|
|
29
|
+
/*#__PURE__*/ jsx("div", {
|
|
30
|
+
className: "customer-detail__title-row",
|
|
31
|
+
children: /*#__PURE__*/ jsx("h1", {
|
|
32
|
+
className: "customer-detail__name",
|
|
33
|
+
children: name
|
|
34
|
+
})
|
|
35
|
+
}),
|
|
36
|
+
/*#__PURE__*/ jsxs("div", {
|
|
37
|
+
className: "customer-detail__badges-row",
|
|
38
|
+
children: [
|
|
39
|
+
/*#__PURE__*/ jsxs("div", {
|
|
40
|
+
className: "customer-detail__badges",
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsx("span", {
|
|
43
|
+
className: "customer-detail__id-badge",
|
|
44
|
+
children: customerId
|
|
45
|
+
}),
|
|
46
|
+
waiversEnabled && /*#__PURE__*/ jsx(Badge, {
|
|
47
|
+
variant: waiverStatusVariant,
|
|
48
|
+
icon: waiverStatus === 'Expired' || waiverStatus === 'Not Signed' ? /*#__PURE__*/ jsx(InfoIcon, {}) : undefined,
|
|
49
|
+
children: waiverStatus
|
|
50
|
+
})
|
|
51
|
+
]
|
|
52
|
+
}),
|
|
53
|
+
onEdit && /*#__PURE__*/ jsxs("div", {
|
|
54
|
+
className: "customer-detail__edit",
|
|
55
|
+
onClick: onEdit,
|
|
56
|
+
children: [
|
|
57
|
+
/*#__PURE__*/ jsx(EditIcon, {}),
|
|
58
|
+
" Edit"
|
|
59
|
+
]
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
}),
|
|
65
|
+
/*#__PURE__*/ jsxs("div", {
|
|
66
|
+
className: "customer-detail__grid",
|
|
67
|
+
children: [
|
|
68
|
+
/*#__PURE__*/ jsxs("div", {
|
|
69
|
+
className: "customer-detail__card",
|
|
70
|
+
children: [
|
|
71
|
+
/*#__PURE__*/ jsx("h2", {
|
|
72
|
+
className: "customer-detail__card-title",
|
|
73
|
+
children: "Contact Details"
|
|
74
|
+
}),
|
|
75
|
+
/*#__PURE__*/ jsxs("div", {
|
|
76
|
+
className: "customer-detail__info-group",
|
|
77
|
+
children: [
|
|
78
|
+
/*#__PURE__*/ jsx("label", {
|
|
79
|
+
children: "Email"
|
|
80
|
+
}),
|
|
81
|
+
/*#__PURE__*/ jsx("span", {
|
|
82
|
+
children: contactDetails.email
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
}),
|
|
86
|
+
/*#__PURE__*/ jsxs("div", {
|
|
87
|
+
className: "customer-detail__info-group",
|
|
88
|
+
children: [
|
|
89
|
+
/*#__PURE__*/ jsx("label", {
|
|
90
|
+
children: "Phone"
|
|
91
|
+
}),
|
|
92
|
+
/*#__PURE__*/ jsx("span", {
|
|
93
|
+
children: contactDetails.phone || '-'
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
}),
|
|
97
|
+
/*#__PURE__*/ jsxs("div", {
|
|
98
|
+
className: "customer-detail__info-group",
|
|
99
|
+
children: [
|
|
100
|
+
/*#__PURE__*/ jsx("label", {
|
|
101
|
+
children: "Age"
|
|
102
|
+
}),
|
|
103
|
+
/*#__PURE__*/ jsx("span", {
|
|
104
|
+
children: contactDetails.age || '-'
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
}),
|
|
110
|
+
/*#__PURE__*/ jsxs("div", {
|
|
111
|
+
className: "customer-detail__card",
|
|
112
|
+
children: [
|
|
113
|
+
/*#__PURE__*/ jsx("h2", {
|
|
114
|
+
className: "customer-detail__card-title",
|
|
115
|
+
children: "Booking Details"
|
|
116
|
+
}),
|
|
117
|
+
/*#__PURE__*/ jsxs("div", {
|
|
118
|
+
className: "customer-detail__info-group",
|
|
119
|
+
children: [
|
|
120
|
+
/*#__PURE__*/ jsx("label", {
|
|
121
|
+
children: "Next Booking"
|
|
122
|
+
}),
|
|
123
|
+
/*#__PURE__*/ jsx("span", {
|
|
124
|
+
children: bookingDetails.nextBooking
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
}),
|
|
128
|
+
/*#__PURE__*/ jsxs("div", {
|
|
129
|
+
className: "customer-detail__info-group",
|
|
130
|
+
children: [
|
|
131
|
+
/*#__PURE__*/ jsx("label", {
|
|
132
|
+
children: "Customer Since"
|
|
133
|
+
}),
|
|
134
|
+
/*#__PURE__*/ jsx("span", {
|
|
135
|
+
children: bookingDetails.customerSince
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
waiversEnabled && /*#__PURE__*/ jsxs("div", {
|
|
142
|
+
className: "customer-detail__card",
|
|
143
|
+
children: [
|
|
144
|
+
/*#__PURE__*/ jsx("h2", {
|
|
145
|
+
className: "customer-detail__card-title",
|
|
146
|
+
children: "Waiver Details"
|
|
147
|
+
}),
|
|
148
|
+
/*#__PURE__*/ jsxs("div", {
|
|
149
|
+
className: "customer-detail__info-group",
|
|
150
|
+
children: [
|
|
151
|
+
/*#__PURE__*/ jsx("label", {
|
|
152
|
+
children: "Status"
|
|
153
|
+
}),
|
|
154
|
+
/*#__PURE__*/ jsx("span", {
|
|
155
|
+
children: /*#__PURE__*/ jsx(Badge, {
|
|
156
|
+
variant: waiverDetails.statusVariant,
|
|
157
|
+
icon: waiverDetails.status === 'Expired' || waiverDetails.status === 'Not Signed' ? /*#__PURE__*/ jsx(InfoIcon, {}) : undefined,
|
|
158
|
+
children: waiverDetails.status
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
}),
|
|
163
|
+
/*#__PURE__*/ jsxs("div", {
|
|
164
|
+
className: "customer-detail__info-group",
|
|
165
|
+
children: [
|
|
166
|
+
/*#__PURE__*/ jsx("label", {
|
|
167
|
+
children: "Expires"
|
|
168
|
+
}),
|
|
169
|
+
/*#__PURE__*/ jsx("span", {
|
|
170
|
+
children: waiverDetails.expires
|
|
171
|
+
})
|
|
172
|
+
]
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
}),
|
|
178
|
+
waiversEnabled && minors && minors.length > 0 && /*#__PURE__*/ jsxs("div", {
|
|
179
|
+
className: "customer-detail__card customer-detail__card--full",
|
|
180
|
+
children: [
|
|
181
|
+
/*#__PURE__*/ jsx("h2", {
|
|
182
|
+
className: "customer-detail__card-title",
|
|
183
|
+
children: "Minors Signed For"
|
|
184
|
+
}),
|
|
185
|
+
minors.map(function(minor, index) {
|
|
186
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
187
|
+
className: "customer-detail__minor-row",
|
|
188
|
+
children: [
|
|
189
|
+
/*#__PURE__*/ jsxs("div", {
|
|
190
|
+
className: "customer-detail__minor-info",
|
|
191
|
+
children: [
|
|
192
|
+
/*#__PURE__*/ jsx("div", {
|
|
193
|
+
className: "customer-detail__minor-name",
|
|
194
|
+
children: minor.name
|
|
195
|
+
}),
|
|
196
|
+
/*#__PURE__*/ jsx("div", {
|
|
197
|
+
className: "customer-detail__minor-age",
|
|
198
|
+
children: minor.age
|
|
199
|
+
})
|
|
200
|
+
]
|
|
201
|
+
}),
|
|
202
|
+
/*#__PURE__*/ jsxs("div", {
|
|
203
|
+
className: "customer-detail__minor-status-group",
|
|
204
|
+
children: [
|
|
205
|
+
/*#__PURE__*/ jsxs("span", {
|
|
206
|
+
className: "customer-detail__minor-expires",
|
|
207
|
+
children: [
|
|
208
|
+
"Expires: ",
|
|
209
|
+
minor.expires
|
|
210
|
+
]
|
|
211
|
+
}),
|
|
212
|
+
/*#__PURE__*/ jsx(Badge, {
|
|
213
|
+
variant: minor.statusVariant,
|
|
214
|
+
icon: minor.status === 'Expired' || minor.status === 'Not Signed' ? /*#__PURE__*/ jsx(InfoIcon, {}) : undefined,
|
|
215
|
+
children: minor.status
|
|
216
|
+
})
|
|
217
|
+
]
|
|
218
|
+
})
|
|
219
|
+
]
|
|
220
|
+
}, index);
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
}),
|
|
224
|
+
/*#__PURE__*/ jsxs("div", {
|
|
225
|
+
className: "customer-detail__footer",
|
|
226
|
+
children: [
|
|
227
|
+
"Customer since: ",
|
|
228
|
+
customerSinceFooter
|
|
229
|
+
]
|
|
230
|
+
})
|
|
231
|
+
]
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export { CustomerDetail };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import styleInject from '/opt/atlassian/pipelines/agent/build/node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = ".customer-detail{background-color:#fff;font-family:var(--font-family-sans,\"Geist\",sans-serif);min-height:100vh;padding:40px}.customer-detail__back{align-items:center;border:1px solid #0000;border-radius:8px;color:#6200ee;cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:8px;margin-bottom:30px;padding:8px 16px;transition:all .2s ease}.customer-detail__back:hover{background-color:#f3e5ff;border:1px solid #e0c7ff}.customer-detail__header{margin-bottom:40px}.customer-detail__name{color:#121e52;font-size:32px;font-weight:700;margin:0 0 16px}.customer-detail__badges-row{align-items:center;display:flex;justify-content:space-between}.customer-detail__badges{align-items:center;display:flex;gap:12px}.customer-detail__id-badge{background-color:#f4f5f9;border:1px solid #e2e4ed;border-radius:100px;color:#121e52;font-size:12px;font-weight:600;padding:4px 12px}.customer-detail__edit{align-items:center;border:1px solid #0000;border-radius:8px;color:#121e52;cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:8px;padding:8px 16px;transition:all .2s ease}.customer-detail__edit:hover{background-color:#e8eaf0;border:1px solid #d1d5e0}.customer-detail__grid{display:grid;gap:24px;grid-template-columns:1fr 1fr;margin-bottom:24px}.customer-detail__card{background:#fff;border:1px solid #e2e4ed;border-radius:12px;padding:24px}.customer-detail__card--full{grid-column:1/-1}.customer-detail__card-title{color:#121e52;font-size:18px;font-weight:700;margin:0 0 24px}.customer-detail__info-group{display:flex;flex-direction:column;gap:4px;margin-bottom:16px}.customer-detail__info-group:last-child{margin-bottom:0}.customer-detail__info-group label{color:#9399b3;font-size:12px;margin:0}.customer-detail__info-group span{align-items:center;display:inline-flex;font-size:14px;font-weight:500}.customer-detail__minor-row{align-items:center;border-bottom:1px solid #f4f5f9;display:flex;justify-content:space-between;padding:16px 0}.customer-detail__minor-row:last-child{border-bottom:none;padding-bottom:0}.customer-detail__minor-row:first-of-type{padding-top:0}.customer-detail__minor-info{display:flex;flex-direction:column;gap:4px}.customer-detail__minor-name{color:#121e52;font-size:14px;font-weight:600}.customer-detail__minor-age{color:#9399b3;font-size:12px}.customer-detail__minor-status-group{align-items:center;display:flex;gap:16px}.customer-detail__footer,.customer-detail__minor-expires{color:#9399b3;font-size:12px}.customer-detail__footer{margin-top:40px}@media (max-width:768px){.customer-detail{padding:20px 16px}.customer-detail__back{font-size:13px;margin-bottom:20px;padding:6px 12px}.customer-detail__header{margin-bottom:24px}.customer-detail__name{font-size:24px;margin-bottom:12px}.customer-detail__badges-row{align-items:flex-start;flex-direction:column;gap:12px}.customer-detail__badges{flex-wrap:wrap}.customer-detail__id-badge{font-size:11px;padding:3px 10px}.customer-detail__edit{align-self:flex-start;font-size:13px;padding:6px 12px}.customer-detail__grid{gap:16px;grid-template-columns:1fr;margin-bottom:16px}.customer-detail__card{padding:20px}.customer-detail__card--full{grid-column:1}.customer-detail__card-title{font-size:16px;margin-bottom:16px}.customer-detail__info-group{margin-bottom:14px}.customer-detail__info-group label{font-size:11px}.customer-detail__info-group span{font-size:13px}.customer-detail__minor-row{align-items:flex-start;flex-direction:column;gap:12px;padding:12px 0}.customer-detail__minor-name{font-size:13px}.customer-detail__minor-age,.customer-detail__minor-expires{font-size:11px}.customer-detail__minor-status-group{justify-content:space-between;width:100%}.customer-detail__footer{font-size:11px;margin-top:24px}}@media (max-width:480px){.customer-detail{padding:16px 12px}.customer-detail__back{font-size:12px;margin-bottom:16px;padding:4px 8px}.customer-detail__name{font-size:20px}.customer-detail__card{border-radius:8px;padding:16px}.customer-detail__card-title{font-size:15px;margin-bottom:12px}.customer-detail__badges{gap:8px}.customer-detail__minor-row{padding:10px 0}}";
|
|
4
|
+
styleInject(css_248z);
|
|
5
|
+
|
|
6
|
+
export { css_248z as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2/components/Customer/CustomerDetail/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CustomerData } from '../CustomerForm';
|
|
3
|
+
export interface CustomerEditProps {
|
|
4
|
+
onBack: () => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
onSave: (data: CustomerData) => void;
|
|
7
|
+
initialData?: Partial<CustomerData>;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CustomerEdit: React.FC<CustomerEditProps>;
|
|
11
|
+
//# sourceMappingURL=CustomerEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerEdit.d.ts","sourceRoot":"","sources":["../../../../../src/v2/components/Customer/CustomerEdit/CustomerEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAgB,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE5D,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwBpD,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { NewPageHeader } from '../../NewPageHeader/NewPageHeader.js';
|
|
4
|
+
import { CustomerForm } from '../CustomerForm/CustomerForm.js';
|
|
5
|
+
|
|
6
|
+
var CustomerEdit = function(param) {
|
|
7
|
+
var onCancel = param.onCancel, onSave = param.onSave, initialData = param.initialData, isLoading = param.isLoading;
|
|
8
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
9
|
+
className: "tw-bg-white tw-min-h-screen tw-font-sans",
|
|
10
|
+
children: [
|
|
11
|
+
/*#__PURE__*/ jsx("div", {
|
|
12
|
+
className: "tw-max-w-4xl tw-mx-auto tw-w-full",
|
|
13
|
+
children: /*#__PURE__*/ jsx(NewPageHeader, {
|
|
14
|
+
title: "Edit Customer",
|
|
15
|
+
onCancel: onCancel
|
|
16
|
+
})
|
|
17
|
+
}),
|
|
18
|
+
/*#__PURE__*/ jsx("div", {
|
|
19
|
+
className: "tw-max-w-4xl tw-mx-auto tw-w-full tw-bg-white tw-border-2 tw-border-[#e8e9ef] tw-rounded-lg tw-p-4 md:tw-p-8 tw-mt-8",
|
|
20
|
+
children: /*#__PURE__*/ jsx(CustomerForm, {
|
|
21
|
+
onSave: onSave,
|
|
22
|
+
initialData: initialData,
|
|
23
|
+
isLoading: isLoading,
|
|
24
|
+
submitButtonLabel: "Save Changes",
|
|
25
|
+
isEditing: true
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { CustomerEdit };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2/components/Customer/CustomerEdit/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CustomerData {
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
dobDay: string;
|
|
7
|
+
dobMonth: string;
|
|
8
|
+
dobYear: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
optIn: boolean;
|
|
11
|
+
postcode: string;
|
|
12
|
+
gender: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CustomerFormProps {
|
|
15
|
+
onSave: (data: CustomerData) => void;
|
|
16
|
+
initialData?: Partial<CustomerData>;
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
submitButtonLabel?: string;
|
|
19
|
+
isEditing?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const CustomerForm: React.FC<CustomerFormProps>;
|
|
22
|
+
//# sourceMappingURL=CustomerForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomerForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/components/Customer/CustomerForm/CustomerForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAQlD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoZpD,CAAA"}
|