@licklist/design 0.78.7-stage.83 → 0.78.7-stage.85

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 (28) hide show
  1. package/dist/index.js +4 -1
  2. package/dist/v2/components/PeriodCard/PeriodCard.js +351 -0
  3. package/dist/v2/components/PeriodCard/PeriodCard.scss.js +6 -0
  4. package/dist/v2/components/ReorderRow/ReorderRow.js +109 -0
  5. package/dist/v2/components/ReorderRow/ReorderRow.scss.js +6 -0
  6. package/dist/v2/icons/index.js +25 -1
  7. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.js +2 -61
  8. package/dist/v2/pages/DeleteEntity/DeleteEntityPage.js +294 -0
  9. package/dist/v2/pages/DeleteEntity/DeleteEntityPage.scss.js +6 -0
  10. package/dist/v2/pages/Settings/components/SidebarCustomisation.js +2 -0
  11. package/dist/v2/pages/Settings/components/SidebarNavItem.js +2 -0
  12. package/package.json +1 -1
  13. package/src/index.ts +1 -0
  14. package/src/v2/components/PeriodCard/PeriodCard.scss +157 -0
  15. package/src/v2/components/PeriodCard/PeriodCard.stories.tsx +245 -0
  16. package/src/v2/components/PeriodCard/PeriodCard.tsx +350 -0
  17. package/src/v2/components/PeriodCard/index.ts +8 -0
  18. package/src/v2/components/ReorderRow/ReorderRow.scss +68 -0
  19. package/src/v2/components/ReorderRow/ReorderRow.stories.tsx +124 -0
  20. package/src/v2/components/ReorderRow/ReorderRow.tsx +88 -0
  21. package/src/v2/components/ReorderRow/index.ts +2 -0
  22. package/src/v2/components/index.ts +6 -0
  23. package/src/v2/index.ts +9 -0
  24. package/src/v2/navigation/DashboardLayout/ProviderSidebar.tsx +9 -37
  25. package/src/v2/pages/DeleteEntity/DeleteEntityPage.scss +96 -0
  26. package/src/v2/pages/DeleteEntity/DeleteEntityPage.stories.tsx +83 -0
  27. package/src/v2/pages/DeleteEntity/DeleteEntityPage.tsx +120 -0
  28. package/src/v2/pages/DeleteEntity/index.ts +2 -0
package/dist/index.js CHANGED
@@ -218,13 +218,14 @@ export { FlowsIcon, HomeIcon, InventoryIcon, ProviderSidebar } from './v2/naviga
218
218
  export { AdminSidebar } from './v2/navigation/DashboardLayout/AdminSidebar.js';
219
219
  export { TopNavigation } from './v2/navigation/DashboardLayout/TopNavigation.js';
220
220
  export { DashboardFooter } from './v2/navigation/DashboardLayout/DashboardFooter.js';
221
- export { AdminIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, CircleIcon, ClearIcon, ClockIcon, CloseIcon, CompanyIcon, DashboardIcon, DeleteIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, GripVerticalIcon, InfoIcon, LocationIcon, LoyaltyIcon, NoEntryIcon, PadlockIcon, PaymentsIcon, PlusIcon, ProfileIcon, RefreshIcon, ReorderIcon, SearchIcon, SecurityIcon, SendIcon, SettingsPageDashboardIcon, SettingsPageWaiversIcon, TableHeaderArrowDownIcon, TableHeaderArrowUpIcon, UploadIcon, VenueIcon } from './v2/icons/index.js';
221
+ export { AdminIcon, AnalyticsIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, CircleIcon, ClearIcon, ClockIcon, CloseIcon, CompanyIcon, CustomersIcon, DashboardIcon, DeleteIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, GripVerticalIcon, InfoIcon, LocationIcon, LoyaltyIcon, MarketingIcon, NoEntryIcon, PadlockIcon, PaymentsIcon, PlusIcon, ProfileIcon, RefreshIcon, ReorderIcon, ReportsIcon, SearchIcon, SecurityIcon, SendIcon, SettingsIcon, SettingsPageDashboardIcon, SettingsPageWaiversIcon, TableHeaderArrowDownIcon, TableHeaderArrowUpIcon, UploadIcon, VenueIcon, WaiversIcon } from './v2/icons/index.js';
222
222
  export { SettingsPage } from './v2/pages/Settings/SettingsPage.js';
223
223
  export { SettingsTabs } from './v2/pages/Settings/SettingsTabs.js';
224
224
  export { SidebarCustomisation, defaultSidebarItems } from './v2/pages/Settings/components/SidebarCustomisation.js';
225
225
  export { SidebarNavItem } from './v2/pages/Settings/components/SidebarNavItem.js';
226
226
  export { ZonesResourcesPage } from './v2/pages/ZonesResources/ZonesResourcesPage.js';
227
227
  export { SettingsSubPage } from './v2/pages/SettingsSubPage/SettingsSubPage.js';
228
+ export { DeleteEntityPage } from './v2/pages/DeleteEntity/DeleteEntityPage.js';
228
229
  export { IconButton } from './v2/components/IconButton/IconButton.js';
229
230
  export { Badge } from './v2/components/Badge/Badge.js';
230
231
  export { QuickFilter } from './v2/components/QuickFilter/QuickFilter.js';
@@ -255,6 +256,8 @@ export { ZoneContainer } from './v2/components/ZoneCard/ZoneContainer.js';
255
256
  export { ZoneHeader } from './v2/components/ZoneCard/ZoneHeader.js';
256
257
  export { ResourceRow } from './v2/components/ZoneCard/ResourceRow.js';
257
258
  export { AddResourceButton } from './v2/components/ZoneCard/AddResourceButton.js';
259
+ export { PeriodCard, PeriodCardSection, PeriodCardTimeRange } from './v2/components/PeriodCard/PeriodCard.js';
260
+ export { ReorderRow } from './v2/components/ReorderRow/ReorderRow.js';
258
261
  export { default as CountrySelect } from './static/CountrySelect.js';
259
262
  export { default as FormCard } from './static/FormCard.js';
260
263
  export { default as Image } from './static/Image.js';
@@ -0,0 +1,351 @@
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import { NewInput } from '../NewInput/NewInput.js';
4
+ import { Checkbox } from '../Checkbox/Checkbox.js';
5
+ import { IconButton } from '../IconButton/IconButton.js';
6
+ import { ClockIcon } from '../../icons/index.js';
7
+ import './PeriodCard.scss.js';
8
+
9
+ function _array_like_to_array(arr, len) {
10
+ if (len == null || len > arr.length) len = arr.length;
11
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
12
+ return arr2;
13
+ }
14
+ function _array_without_holes(arr) {
15
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
16
+ }
17
+ function _define_property(obj, key, value) {
18
+ if (key in obj) {
19
+ Object.defineProperty(obj, key, {
20
+ value: value,
21
+ enumerable: true,
22
+ configurable: true,
23
+ writable: true
24
+ });
25
+ } else {
26
+ obj[key] = value;
27
+ }
28
+ return obj;
29
+ }
30
+ function _iterable_to_array(iter) {
31
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
32
+ }
33
+ function _non_iterable_spread() {
34
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35
+ }
36
+ function _object_spread(target) {
37
+ for(var i = 1; i < arguments.length; i++){
38
+ var source = arguments[i] != null ? arguments[i] : {};
39
+ var ownKeys = Object.keys(source);
40
+ if (typeof Object.getOwnPropertySymbols === "function") {
41
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
42
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
43
+ }));
44
+ }
45
+ ownKeys.forEach(function(key) {
46
+ _define_property(target, key, source[key]);
47
+ });
48
+ }
49
+ return target;
50
+ }
51
+ function _to_consumable_array(arr) {
52
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
53
+ }
54
+ function _unsupported_iterable_to_array(o, minLen) {
55
+ if (!o) return;
56
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
57
+ var n = Object.prototype.toString.call(o).slice(8, -1);
58
+ if (n === "Object" && o.constructor) n = o.constructor.name;
59
+ if (n === "Map" || n === "Set") return Array.from(n);
60
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
61
+ }
62
+ var DEFAULT_LABELS = {
63
+ badge: 'Period',
64
+ sectionTitle: 'Override',
65
+ minValue: 'Min',
66
+ maxValue: 'Max',
67
+ days: 'Days',
68
+ time: 'Time',
69
+ alignToggle: 'Align with Opening Hours',
70
+ startTime: 'Start Time',
71
+ endTime: 'End Time'
72
+ };
73
+ var DAY_OPTIONS = [
74
+ 'Monday',
75
+ 'Tuesday',
76
+ 'Wednesday',
77
+ 'Thursday',
78
+ 'Friday',
79
+ 'Saturday',
80
+ 'Sunday'
81
+ ];
82
+ var PeriodCard = function(param) {
83
+ var value = param.value, onChange = param.onChange, onDelete = param.onDelete, labelsProp = param.labels, dayLabels = param.dayLabels, title = param.title, _param_hideHeader = param.hideHeader, hideHeader = _param_hideHeader === void 0 ? false : _param_hideHeader, _param_hideCapacity = param.hideCapacity, hideCapacity = _param_hideCapacity === void 0 ? false : _param_hideCapacity, _param_hideDays = param.hideDays, hideDays = _param_hideDays === void 0 ? false : _param_hideDays, _param_hideTime = param.hideTime, hideTime = _param_hideTime === void 0 ? false : _param_hideTime, _param_minOptional = param.minOptional, minOptional = _param_minOptional === void 0 ? true : _param_minOptional, badgeIcon = param.badgeIcon, children = param.children, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className;
84
+ var labels = _object_spread({}, DEFAULT_LABELS, labelsProp);
85
+ var days = dayLabels || DAY_OPTIONS;
86
+ var hasChildren = !!children;
87
+ var updateField = function(updates) {
88
+ if (value && onChange) {
89
+ onChange(_object_spread({}, value, updates));
90
+ }
91
+ };
92
+ var toggleDay = function(day) {
93
+ if (!value) return;
94
+ var current = value.days || [];
95
+ var updated = current.includes(day) ? current.filter(function(d) {
96
+ return d !== day;
97
+ }) : _to_consumable_array(current).concat([
98
+ day
99
+ ]);
100
+ updateField({
101
+ days: updated
102
+ });
103
+ };
104
+ var toggleAlignHours = function(checked) {
105
+ if (checked) {
106
+ updateField({
107
+ is24Hours: true,
108
+ startTime: undefined,
109
+ endTime: undefined
110
+ });
111
+ } else {
112
+ updateField({
113
+ is24Hours: false,
114
+ startTime: '09:00',
115
+ endTime: '17:00'
116
+ });
117
+ }
118
+ };
119
+ var leftDays = days.slice(0, 4);
120
+ var rightDays = days.slice(4);
121
+ var _value_is24Hours;
122
+ return /*#__PURE__*/ jsxs("div", {
123
+ className: "period-card ".concat(className),
124
+ children: [
125
+ title && /*#__PURE__*/ jsxs("div", {
126
+ className: "period-card__title-row",
127
+ children: [
128
+ /*#__PURE__*/ jsx("span", {
129
+ className: "period-card__title",
130
+ children: title
131
+ }),
132
+ onDelete && /*#__PURE__*/ jsx(IconButton, {
133
+ icon: "delete",
134
+ onClick: onDelete
135
+ })
136
+ ]
137
+ }),
138
+ !hideHeader && !title && /*#__PURE__*/ jsxs("div", {
139
+ className: "period-card__header",
140
+ children: [
141
+ /*#__PURE__*/ jsxs("div", {
142
+ className: "period-card__badge-group",
143
+ children: [
144
+ badgeIcon || /*#__PURE__*/ jsx(ClockIcon, {
145
+ width: 20,
146
+ height: 20
147
+ }),
148
+ /*#__PURE__*/ jsx("span", {
149
+ className: "period-card__badge",
150
+ children: labels.badge
151
+ })
152
+ ]
153
+ }),
154
+ onDelete && /*#__PURE__*/ jsx(IconButton, {
155
+ icon: "delete",
156
+ onClick: onDelete
157
+ })
158
+ ]
159
+ }),
160
+ hasChildren ? children : /*#__PURE__*/ jsxs(Fragment, {
161
+ children: [
162
+ !hideCapacity && value && /*#__PURE__*/ jsxs("div", {
163
+ className: "period-card__section",
164
+ children: [
165
+ /*#__PURE__*/ jsx("label", {
166
+ className: "period-card__section-label",
167
+ children: labels.sectionTitle
168
+ }),
169
+ /*#__PURE__*/ jsxs("div", {
170
+ className: "period-card__row",
171
+ children: [
172
+ /*#__PURE__*/ jsx(NewInput, {
173
+ label: labels.minValue,
174
+ optional: minOptional,
175
+ type: "number",
176
+ min: 0,
177
+ value: value.minCapacity === null || value.minCapacity === 0 ? '' : value.minCapacity,
178
+ onChange: function(e) {
179
+ return updateField({
180
+ minCapacity: e.target.value === '' ? null : parseInt(e.target.value, 10) || 0
181
+ });
182
+ }
183
+ }),
184
+ /*#__PURE__*/ jsx(NewInput, {
185
+ label: labels.maxValue,
186
+ type: "number",
187
+ min: 1,
188
+ value: value.maxCapacity === 0 ? '' : value.maxCapacity,
189
+ onChange: function(e) {
190
+ return updateField({
191
+ maxCapacity: e.target.value === '' ? 0 : parseInt(e.target.value, 10) || 0
192
+ });
193
+ }
194
+ })
195
+ ]
196
+ })
197
+ ]
198
+ }),
199
+ !hideDays && value && /*#__PURE__*/ jsxs("div", {
200
+ className: "period-card__section",
201
+ children: [
202
+ /*#__PURE__*/ jsx("label", {
203
+ className: "period-card__section-label",
204
+ children: labels.days
205
+ }),
206
+ /*#__PURE__*/ jsxs("div", {
207
+ className: "period-card__days-grid",
208
+ children: [
209
+ /*#__PURE__*/ jsx("div", {
210
+ className: "period-card__days-col",
211
+ children: leftDays.map(function(day) {
212
+ var _value_days;
213
+ return /*#__PURE__*/ jsx(DayCheckbox, {
214
+ label: day,
215
+ checked: ((_value_days = value.days) === null || _value_days === void 0 ? void 0 : _value_days.includes(day)) || false,
216
+ onChange: function() {
217
+ return toggleDay(day);
218
+ }
219
+ }, day);
220
+ })
221
+ }),
222
+ /*#__PURE__*/ jsx("div", {
223
+ className: "period-card__days-col",
224
+ children: rightDays.map(function(day) {
225
+ var _value_days;
226
+ return /*#__PURE__*/ jsx(DayCheckbox, {
227
+ label: day,
228
+ checked: ((_value_days = value.days) === null || _value_days === void 0 ? void 0 : _value_days.includes(day)) || false,
229
+ onChange: function() {
230
+ return toggleDay(day);
231
+ }
232
+ }, day);
233
+ })
234
+ })
235
+ ]
236
+ })
237
+ ]
238
+ }),
239
+ !hideTime && value && /*#__PURE__*/ jsxs("div", {
240
+ className: "period-card__section",
241
+ children: [
242
+ /*#__PURE__*/ jsx("label", {
243
+ className: "period-card__section-label",
244
+ children: labels.time
245
+ }),
246
+ /*#__PURE__*/ jsx(Checkbox, {
247
+ label: labels.alignToggle,
248
+ checked: (_value_is24Hours = value.is24Hours) !== null && _value_is24Hours !== void 0 ? _value_is24Hours : true,
249
+ onChange: function(e) {
250
+ return toggleAlignHours(e.target.checked);
251
+ }
252
+ }),
253
+ !value.is24Hours && /*#__PURE__*/ jsxs("div", {
254
+ className: "period-card__row period-card__row--time",
255
+ children: [
256
+ /*#__PURE__*/ jsx(NewInput, {
257
+ label: labels.startTime,
258
+ type: "time",
259
+ value: value.startTime || '09:00',
260
+ onChange: function(e) {
261
+ return updateField({
262
+ startTime: e.target.value
263
+ });
264
+ }
265
+ }),
266
+ /*#__PURE__*/ jsx(NewInput, {
267
+ label: labels.endTime,
268
+ type: "time",
269
+ value: value.endTime || '17:00',
270
+ onChange: function(e) {
271
+ return updateField({
272
+ endTime: e.target.value
273
+ });
274
+ }
275
+ })
276
+ ]
277
+ })
278
+ ]
279
+ })
280
+ ]
281
+ })
282
+ ]
283
+ });
284
+ };
285
+ var PeriodCardSection = function(param) {
286
+ var label = param.label, children = param.children, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className;
287
+ return /*#__PURE__*/ jsxs("div", {
288
+ className: "period-card__section ".concat(className),
289
+ children: [
290
+ label && /*#__PURE__*/ jsx("label", {
291
+ className: "period-card__section-label",
292
+ children: label
293
+ }),
294
+ children
295
+ ]
296
+ });
297
+ };
298
+ PeriodCardSection.displayName = 'PeriodCardSection';
299
+ var PeriodCardTimeRange = function(param) {
300
+ var startTime = param.startTime, endTime = param.endTime, onStartTimeChange = param.onStartTimeChange, onEndTimeChange = param.onEndTimeChange, startLabel = param.startLabel, endLabel = param.endLabel, _param_separator = param.separator, separator = _param_separator === void 0 ? 'to' : _param_separator, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className;
301
+ return /*#__PURE__*/ jsxs("div", {
302
+ className: "period-card__time-range ".concat(className),
303
+ children: [
304
+ /*#__PURE__*/ jsx(NewInput, {
305
+ label: startLabel,
306
+ type: "time",
307
+ value: startTime,
308
+ onChange: function(e) {
309
+ return onStartTimeChange(e.target.value);
310
+ }
311
+ }),
312
+ /*#__PURE__*/ jsx("span", {
313
+ className: "period-card__time-separator",
314
+ children: separator
315
+ }),
316
+ /*#__PURE__*/ jsx(NewInput, {
317
+ label: endLabel,
318
+ type: "time",
319
+ value: endTime,
320
+ onChange: function(e) {
321
+ return onEndTimeChange(e.target.value);
322
+ }
323
+ })
324
+ ]
325
+ });
326
+ };
327
+ PeriodCardTimeRange.displayName = 'PeriodCardTimeRange';
328
+ var DayCheckbox = function(param) {
329
+ var label = param.label, checked = param.checked, onChange = param.onChange;
330
+ return /*#__PURE__*/ jsxs("label", {
331
+ className: "day-checkbox",
332
+ children: [
333
+ /*#__PURE__*/ jsx("input", {
334
+ type: "checkbox",
335
+ className: "day-checkbox__input",
336
+ checked: checked,
337
+ onChange: onChange
338
+ }),
339
+ /*#__PURE__*/ jsx("span", {
340
+ className: "day-checkbox__box"
341
+ }),
342
+ /*#__PURE__*/ jsx("span", {
343
+ className: "day-checkbox__label",
344
+ children: label
345
+ })
346
+ ]
347
+ });
348
+ };
349
+ PeriodCard.displayName = 'PeriodCard';
350
+
351
+ export { PeriodCard, PeriodCardSection, PeriodCardTimeRange };
@@ -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 = ".period-card{background:var(--surface-secondary,#f5f6fa);border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px}.period-card__title-row{align-items:center;display:flex;justify-content:space-between}.period-card__title{color:var(--labels-main-label-primary,#121e52);font-family:var(--font-family-sans);font-size:16px;font-weight:600}.period-card__header{align-items:center;display:flex;justify-content:space-between}.period-card__badge-group{align-items:center;color:var(--label-secondary,#6b7a99);display:flex;gap:8px}.period-card__badge{border:1px solid var(--border-primary,#e2e2e2);border-radius:999px;color:var(--label-secondary,#6b7a99);font-family:var(--font-family-sans);font-size:12px;padding:2px 10px}.period-card__section{display:flex;flex-direction:column;gap:8px}.period-card__section-label{color:var(--labels-main-label-primary,#121e52);font-family:var(--font-family-sans);font-size:14px;font-weight:600}.period-card__row{display:grid;gap:16px;grid-template-columns:1fr 1fr}@media (max-width:768px){.period-card__row{gap:12px;grid-template-columns:1fr}}.period-card__row--time{margin-top:8px}.period-card__days-grid{display:grid;gap:8px;grid-template-columns:1fr 1fr}.period-card__days-col{display:flex;flex-direction:column;gap:8px}.period-card__time-range{align-items:end;display:grid;gap:12px;grid-template-columns:1fr auto 1fr}@media (max-width:768px){.period-card__time-range{gap:8px;grid-template-columns:1fr}}.period-card__time-separator{color:var(--label-secondary,#6b7a99);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:14px;padding-bottom:10px}.day-checkbox{align-items:center;cursor:pointer;display:flex;gap:6px;-webkit-user-select:none;user-select:none}.day-checkbox__input{height:0;opacity:0;position:absolute;width:0}.day-checkbox__box{background:var(--surface-primary,#fff);border:1px solid var(--border-primary,#e2e2e2);border-radius:3px;height:16px;min-width:16px;position:relative;transition:all .15s ease;width:16px}.day-checkbox__box:after{border:solid #fff;border-width:0 2px 2px 0;content:\"\";height:9px;left:4.5px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);width:5px}.day-checkbox__input:checked+.day-checkbox__box{background:var(--fill-selected,#14215a);border-color:var(--fill-selected,#14215a)}.day-checkbox__input:checked+.day-checkbox__box:after{opacity:1}.day-checkbox__label{color:var(--label-primary,#121e52);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:14px}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -0,0 +1,109 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import React__default from 'react';
3
+ import { GripVerticalIcon } from '../../icons/index.js';
4
+ import './ReorderRow.scss.js';
5
+
6
+ function _define_property(obj, key, value) {
7
+ if (key in obj) {
8
+ Object.defineProperty(obj, key, {
9
+ value: value,
10
+ enumerable: true,
11
+ configurable: true,
12
+ writable: true
13
+ });
14
+ } else {
15
+ obj[key] = value;
16
+ }
17
+ return obj;
18
+ }
19
+ function _object_spread(target) {
20
+ for(var i = 1; i < arguments.length; i++){
21
+ var source = arguments[i] != null ? arguments[i] : {};
22
+ var ownKeys = Object.keys(source);
23
+ if (typeof Object.getOwnPropertySymbols === "function") {
24
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
25
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
26
+ }));
27
+ }
28
+ ownKeys.forEach(function(key) {
29
+ _define_property(target, key, source[key]);
30
+ });
31
+ }
32
+ return target;
33
+ }
34
+ function ownKeys(object, enumerableOnly) {
35
+ var keys = Object.keys(object);
36
+ if (Object.getOwnPropertySymbols) {
37
+ var symbols = Object.getOwnPropertySymbols(object);
38
+ if (enumerableOnly) {
39
+ symbols = symbols.filter(function(sym) {
40
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
41
+ });
42
+ }
43
+ keys.push.apply(keys, symbols);
44
+ }
45
+ return keys;
46
+ }
47
+ function _object_spread_props(target, source) {
48
+ source = source != null ? source : {};
49
+ if (Object.getOwnPropertyDescriptors) {
50
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
51
+ } else {
52
+ ownKeys(Object(source)).forEach(function(key) {
53
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
54
+ });
55
+ }
56
+ return target;
57
+ }
58
+ var ReorderRow = /*#__PURE__*/ React__default.forwardRef(function(param, ref) {
59
+ var label = param.label, subtitle = param.subtitle, dragHandleProps = param.dragHandleProps, _param_hideDragHandle = param.hideDragHandle, hideDragHandle = _param_hideDragHandle === void 0 ? false : _param_hideDragHandle, leftContent = param.leftContent, rightContent = param.rightContent, onClick = param.onClick, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className, style = param.style;
60
+ var handleKeyDown = onClick ? function(e) {
61
+ if (e.key === 'Enter' || e.key === ' ') {
62
+ e.preventDefault();
63
+ onClick();
64
+ }
65
+ } : undefined;
66
+ return /*#__PURE__*/ jsxs("div", {
67
+ ref: ref,
68
+ style: style,
69
+ className: "reorder-row ".concat(onClick ? 'reorder-row--clickable' : '', " ").concat(className),
70
+ onClick: onClick,
71
+ onKeyDown: handleKeyDown,
72
+ role: onClick ? 'button' : undefined,
73
+ tabIndex: onClick ? 0 : undefined,
74
+ children: [
75
+ !hideDragHandle && /*#__PURE__*/ jsx("div", _object_spread_props(_object_spread({
76
+ className: "reorder-row__drag-handle"
77
+ }, dragHandleProps === null || dragHandleProps === void 0 ? void 0 : dragHandleProps.attributes, dragHandleProps === null || dragHandleProps === void 0 ? void 0 : dragHandleProps.listeners), {
78
+ children: GripVerticalIcon({
79
+ width: 20,
80
+ height: 20
81
+ })
82
+ })),
83
+ leftContent && /*#__PURE__*/ jsx("div", {
84
+ className: "reorder-row__left",
85
+ children: leftContent
86
+ }),
87
+ /*#__PURE__*/ jsxs("div", {
88
+ className: "reorder-row__content",
89
+ children: [
90
+ /*#__PURE__*/ jsx("span", {
91
+ className: "reorder-row__label",
92
+ children: label
93
+ }),
94
+ subtitle && /*#__PURE__*/ jsx("span", {
95
+ className: "reorder-row__subtitle",
96
+ children: subtitle
97
+ })
98
+ ]
99
+ }),
100
+ rightContent && /*#__PURE__*/ jsx("div", {
101
+ className: "reorder-row__right",
102
+ children: rightContent
103
+ })
104
+ ]
105
+ });
106
+ });
107
+ ReorderRow.displayName = 'ReorderRow';
108
+
109
+ export { ReorderRow };
@@ -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 = ".reorder-row{align-items:center;background:var(--surface-secondary,#f5f6fa);border-radius:8px;display:flex;gap:12px;padding:12px 16px}.reorder-row--clickable{cursor:pointer}.reorder-row--clickable:hover{background:var(--surface-secondary-hover,#edeef3)}.reorder-row__drag-handle{align-items:center;color:var(--label-secondary,#6b7a99);cursor:grab;display:flex;flex-shrink:0}.reorder-row__drag-handle:active{cursor:grabbing}.reorder-row__left{align-items:center;display:flex;flex-shrink:0}.reorder-row__content{display:flex;flex:1;flex-direction:column;min-width:0}.reorder-row__label{color:var(--label-primary,#121e52);font-size:14px;font-weight:600;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reorder-row__label,.reorder-row__subtitle{font-family:var(--font-family-sans,\"Geist\",system-ui,sans-serif)}.reorder-row__subtitle{color:var(--label-secondary,#6b7a99);font-size:13px;font-weight:400;line-height:16px;margin-top:2px}.reorder-row__right{align-items:center;display:flex;flex-shrink:0;gap:8px}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -174,6 +174,30 @@ var CustomersIcon = function() {
174
174
  })
175
175
  });
176
176
  };
177
+ var ReportsIcon = function() {
178
+ return /*#__PURE__*/ jsx("svg", {
179
+ width: "24",
180
+ height: "24",
181
+ viewBox: "0 0 24 24",
182
+ fill: "none",
183
+ children: /*#__PURE__*/ jsx("path", {
184
+ d: "M11.25 8.25H12.75V15.75H11.25V8.25ZM14.25 11.25H15.75V15.75H14.25V11.25ZM8.25 12.75H9.75V15.75H8.25V12.75ZM14.25 6H6.75V18H17.25V9H14.25V6ZM5.25 5.24385C5.25 4.83304 5.58562 4.5 5.99888 4.5H15L18.7498 8.25L18.75 18.7444C18.75 19.1617 18.4163 19.5 18.0049 19.5H5.99505C5.58357 19.5 5.25 19.1585 5.25 18.7561V5.24385Z",
185
+ fill: "currentColor"
186
+ })
187
+ });
188
+ };
189
+ var AnalyticsIcon = function() {
190
+ return /*#__PURE__*/ jsx("svg", {
191
+ width: "24",
192
+ height: "24",
193
+ viewBox: "0 0 24 24",
194
+ fill: "none",
195
+ children: /*#__PURE__*/ jsx("path", {
196
+ d: "M6.75 5.25V17.25H18.75V18.75H5.25V5.25H6.75ZM18.2197 7.71967L19.2803 8.78033L15 13.0606L12.75 10.8112L9.53033 14.0303L8.46967 12.9697L12.75 8.68934L15 10.9388L18.2197 7.71967Z",
197
+ fill: "currentColor"
198
+ })
199
+ });
200
+ };
177
201
  var PaymentsIcon = function() {
178
202
  return /*#__PURE__*/ jsx("svg", {
179
203
  xmlns: "http://www.w3.org/2000/svg",
@@ -814,4 +838,4 @@ var SettingsPageWaiversIcon = function() {
814
838
  }));
815
839
  };
816
840
 
817
- export { AdminIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, CircleIcon, ClearIcon, ClockIcon, CloseIcon, CompanyIcon, CustomersIcon, DashboardIcon, DeleteIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, GripVerticalIcon, InfoIcon, LocationIcon, LoyaltyIcon, MarketingIcon, NoEntryIcon, PadlockIcon, PaymentsIcon, PlusIcon, ProfileIcon, RefreshIcon, ReorderIcon, SearchIcon, SecurityIcon, SendIcon, SettingsIcon, SettingsPageDashboardIcon, SettingsPageWaiversIcon, TableHeaderArrowDownIcon, TableHeaderArrowUpIcon, UploadIcon, VenueIcon, WaiversIcon };
841
+ export { AdminIcon, AnalyticsIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, CircleIcon, ClearIcon, ClockIcon, CloseIcon, CompanyIcon, CustomersIcon, DashboardIcon, DeleteIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, GripVerticalIcon, InfoIcon, LocationIcon, LoyaltyIcon, MarketingIcon, NoEntryIcon, PadlockIcon, PaymentsIcon, PlusIcon, ProfileIcon, RefreshIcon, ReorderIcon, ReportsIcon, SearchIcon, SecurityIcon, SendIcon, SettingsIcon, SettingsPageDashboardIcon, SettingsPageWaiversIcon, TableHeaderArrowDownIcon, TableHeaderArrowUpIcon, UploadIcon, VenueIcon, WaiversIcon };
@@ -3,7 +3,8 @@ import 'react';
3
3
  import './ProviderSidebar.scss.js';
4
4
  import { EntityHeader } from '../../components/EntityHeader/EntityHeader.js';
5
5
  import { Tooltip } from '../../components/Tooltip/Tooltip.js';
6
- import { LoyaltyIcon } from '../../icons/index.js';
6
+ import { LoyaltyIcon, CustomersIcon, ReportsIcon, AnalyticsIcon, MarketingIcon, SettingsIcon } from '../../icons/index.js';
7
+ export { WaiversIcon } from '../../icons/index.js';
7
8
 
8
9
  var HomeIcon = function() {
9
10
  return /*#__PURE__*/ jsx("svg", {
@@ -41,66 +42,6 @@ var InventoryIcon = function() {
41
42
  })
42
43
  });
43
44
  };
44
- var CustomersIcon = function() {
45
- return /*#__PURE__*/ jsx("svg", {
46
- width: "24",
47
- height: "24",
48
- viewBox: "0 0 24 24",
49
- fill: "none",
50
- children: /*#__PURE__*/ jsx("path", {
51
- d: "M4.5 19.5C4.5 16.1863 7.18629 13.5 10.5 13.5C13.8137 13.5 16.5 16.1863 16.5 19.5H15C15 17.0147 12.9853 15 10.5 15C8.01472 15 6 17.0147 6 19.5H4.5ZM10.5 12.75C8.01375 12.75 6 10.7362 6 8.25C6 5.76375 8.01375 3.75 10.5 3.75C12.9862 3.75 15 5.76375 15 8.25C15 10.7362 12.9862 12.75 10.5 12.75ZM10.5 11.25C12.1575 11.25 13.5 9.9075 13.5 8.25C13.5 6.5925 12.1575 5.25 10.5 5.25C8.8425 5.25 7.5 6.5925 7.5 8.25C7.5 9.9075 8.8425 11.25 10.5 11.25ZM16.7128 14.0271C18.7983 14.9671 20.25 17.064 20.25 19.5H18.75C18.75 17.673 17.6612 16.1003 16.0971 15.3953L16.7128 14.0271ZM16.1972 5.55991C17.6958 6.17777 18.75 7.65271 18.75 9.375C18.75 11.5276 17.1032 13.2939 15 13.4832V11.9734C16.2725 11.7916 17.25 10.698 17.25 9.375C17.25 8.33951 16.6512 7.44452 15.7808 7.01726L16.1972 5.55991Z",
52
- fill: "currentColor"
53
- })
54
- });
55
- };
56
- var ReportsIcon = function() {
57
- return /*#__PURE__*/ jsx("svg", {
58
- width: "24",
59
- height: "24",
60
- viewBox: "0 0 24 24",
61
- fill: "none",
62
- children: /*#__PURE__*/ jsx("path", {
63
- d: "M11.25 8.25H12.75V15.75H11.25V8.25ZM14.25 11.25H15.75V15.75H14.25V11.25ZM8.25 12.75H9.75V15.75H8.25V12.75ZM14.25 6H6.75V18H17.25V9H14.25V6ZM5.25 5.24385C5.25 4.83304 5.58562 4.5 5.99888 4.5H15L18.7498 8.25L18.75 18.7444C18.75 19.1617 18.4163 19.5 18.0049 19.5H5.99505C5.58357 19.5 5.25 19.1585 5.25 18.7561V5.24385Z",
64
- fill: "currentColor"
65
- })
66
- });
67
- };
68
- var AnalyticsIcon = function() {
69
- return /*#__PURE__*/ jsx("svg", {
70
- width: "24",
71
- height: "24",
72
- viewBox: "0 0 24 24",
73
- fill: "none",
74
- children: /*#__PURE__*/ jsx("path", {
75
- d: "M6.75 5.25V17.25H18.75V18.75H5.25V5.25H6.75ZM18.2197 7.71967L19.2803 8.78033L15 13.0606L12.75 10.8112L9.53033 14.0303L8.46967 12.9697L12.75 8.68934L15 10.9388L18.2197 7.71967Z",
76
- fill: "currentColor"
77
- })
78
- });
79
- };
80
- var MarketingIcon = function() {
81
- return /*#__PURE__*/ jsx("svg", {
82
- width: "24",
83
- height: "24",
84
- viewBox: "0 0 24 24",
85
- fill: "none",
86
- children: /*#__PURE__*/ jsx("path", {
87
- d: "M10.7195 16.3629C10.7195 16.3629 15.9848 15.7286 18.7404 17.3195L19.4649 17.1254C19.865 17.0182 20.1024 16.607 19.9952 16.2069L18.8183 11.8146C19.4001 11.4863 19.7099 10.7953 19.529 10.1201C19.3481 9.44504 18.7343 9.00145 18.0663 9.00807L16.8894 4.61576C16.7822 4.21567 16.3709 3.97822 15.9708 4.08543L15.2464 4.27955C13.6554 7.03522 8.7784 9.11847 8.7784 9.11847L5.88062 9.89492C5.08042 10.1093 4.60555 10.9318 4.81996 11.732L5.98464 16.0787C6.19906 16.8789 7.02156 17.3538 7.82176 17.1394L8.54621 16.9453L10.2412 20.3734L11.6901 19.9851L10.7195 16.3629ZM10.5497 9.93369C11.0163 9.69484 11.5885 9.38415 12.197 9.01286C13.317 8.32952 14.7109 7.3523 15.7461 6.14469L18.2407 15.4544C16.7403 14.9262 15.0445 14.7769 13.733 14.7451C13.0204 14.7278 12.3694 14.7448 11.846 14.7712L10.5497 9.93369ZM6.26885 11.3438L9.16662 10.5674L10.3313 14.914L7.43353 15.6905L6.26885 11.3438Z",
88
- fill: "currentColor"
89
- })
90
- });
91
- };
92
- var SettingsIcon = function() {
93
- return /*#__PURE__*/ jsx("svg", {
94
- width: "24",
95
- height: "24",
96
- viewBox: "0 0 32 32",
97
- fill: "none",
98
- children: /*#__PURE__*/ jsx("path", {
99
- d: "M6 15.6385C6 14.774 6.1097 13.9351 6.31595 13.135C7.40622 13.1915 8.48848 12.6488 9.0718 11.6385C9.65467 10.6289 9.58406 9.42138 8.99121 8.50568C10.1835 7.33396 11.6683 6.45889 13.326 6C13.8222 6.97252 14.8333 7.63849 16 7.63849C17.1667 7.63849 18.1778 6.97252 18.674 6C20.3317 6.45889 21.8165 7.33396 23.0088 8.50568C22.4159 9.42138 22.3453 10.6289 22.9282 11.6385C23.5115 12.6488 24.5938 13.1915 25.6841 13.135C25.8903 13.9351 26 14.774 26 15.6385C26 16.503 25.8903 17.3419 25.6841 18.142C24.5938 18.0855 23.5115 18.6282 22.9282 19.6385C22.3453 20.6481 22.4159 21.8556 23.0088 22.7713C21.8165 23.943 20.3317 24.8181 18.674 25.277C18.1778 24.3045 17.1667 23.6385 16 23.6385C14.8333 23.6385 13.8222 24.3045 13.326 25.277C11.6683 24.8181 10.1835 23.943 8.99121 22.7713C9.58406 21.8556 9.65467 20.6481 9.0718 19.6385C8.48848 18.6282 7.40622 18.0855 6.31595 18.142C6.1097 17.3419 6 16.503 6 15.6385ZM10.8039 18.6385C11.434 19.7299 11.6146 20.9846 11.3682 22.1623C11.776 22.4525 12.2101 22.7039 12.6649 22.9128C13.5618 22.1099 14.7392 21.6385 16 21.6385C17.2608 21.6385 18.4382 22.1099 19.3351 22.9128C19.7899 22.7039 20.224 22.4525 20.6318 22.1623C20.3854 20.9846 20.566 19.7299 21.1962 18.6385C21.8262 17.5472 22.8225 16.7635 23.9655 16.388C23.9884 16.1402 24 15.8903 24 15.6385C24 15.3868 23.9884 15.1368 23.9655 14.8891C22.8225 14.5136 21.8262 13.7299 21.1962 12.6385C20.566 11.5471 20.3854 10.2924 20.6318 9.11472C20.224 8.82455 19.7899 8.57314 19.3351 8.36419C18.4382 9.16711 17.2608 9.63849 16 9.63849C14.7392 9.63849 13.5618 9.16711 12.6649 8.36419C12.2101 8.57314 11.776 8.82455 11.3682 9.11472C11.6146 10.2924 11.434 11.5471 10.8039 12.6385C10.1738 13.7299 9.17754 14.5136 8.03451 14.8891C8.01157 15.1368 8 15.3868 8 15.6385C8 15.8903 8.01157 16.1402 8.03451 16.388C9.17754 16.7635 10.1738 17.5472 10.8039 18.6385ZM16 18.6385C14.3431 18.6385 13 17.2954 13 15.6385C13 13.9817 14.3431 12.6385 16 12.6385C17.6569 12.6385 19 13.9817 19 15.6385C19 17.2954 17.6569 18.6385 16 18.6385ZM16 16.6385C16.5523 16.6385 17 16.1908 17 15.6385C17 15.0862 16.5523 14.6385 16 14.6385C15.4477 14.6385 15 15.0862 15 15.6385C15 16.1908 15.4477 16.6385 16 16.6385Z",
100
- fill: "currentColor"
101
- })
102
- });
103
- };
104
45
  var BackToAdminIcon = function() {
105
46
  return /*#__PURE__*/ jsx("svg", {
106
47
  width: "24",