@licklist/design 0.78.5-dev.71 → 0.78.5-dev.73
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.d.ts +22 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -29
- package/dist/static/tabs/index.d.ts +1 -0
- package/dist/static/tabs/index.d.ts.map +1 -1
- package/dist/v2/components/AvatarUpload/AvatarUpload.js +62 -0
- package/dist/v2/components/AvatarUpload/AvatarUpload.scss.js +6 -0
- package/dist/v2/components/DataTable/DataTable.js +221 -0
- package/dist/v2/components/DataTable/DataTable.scss.js +6 -0
- package/dist/v2/components/EmptyState/EmptyState.js +36 -0
- package/dist/v2/components/EmptyState/EmptyState.scss.js +6 -0
- package/dist/v2/components/InfoGrid/InfoGrid.js +27 -0
- package/dist/v2/components/InfoGrid/InfoGrid.scss.js +6 -0
- package/dist/v2/components/RadioCard/RadioCard.js +58 -0
- package/dist/v2/components/RadioCard/RadioCard.scss.js +6 -0
- package/dist/v2/components/StatusBadge/StatusBadge.js +22 -0
- package/dist/v2/components/StatusBadge/StatusBadge.scss.js +6 -0
- package/dist/v2/components/StepIndicator/StepIndicator.js +38 -0
- package/dist/v2/components/StepIndicator/StepIndicator.scss.js +6 -0
- package/dist/v2/components/TableControls/TableControls.js +83 -0
- package/dist/v2/components/TableControls/TableControls.scss.js +6 -0
- package/dist/v2/components/Tabs/Tabs.scss.js +6 -0
- package/dist/v2/components/index.d.ts +19 -1
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/icons/index.d.ts +3 -1
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +274 -1
- package/dist/v2/index.d.ts +2 -2
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/navigation/DashboardLayout/ProviderSidebar.js +1 -13
- package/dist/v2/pages/Settings/components/SidebarCustomisation.js +9 -0
- package/dist/v2/pages/Settings/components/SidebarNavItem.js +9 -0
- package/dist/v2/pages/auth/CreatePassword/CreatePasswordPage.d.ts.map +1 -1
- package/dist/v2/pages/auth/Login/LoginPage.d.ts.map +1 -1
- package/dist/v2/pages/auth/ResetPassword/ResetPasswordPage.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +35 -3
- package/src/static/tabs/index.ts +1 -0
- package/src/v2/components/index.ts +52 -1
- package/src/v2/icons/index.tsx +2 -2
- package/src/v2/index.ts +4 -65
- package/src/v2/pages/auth/CreatePassword/CreatePasswordPage.tsx +1 -3
- package/src/v2/pages/auth/Login/LoginPage.tsx +1 -3
- package/src/v2/pages/auth/ResetPassword/ResetPasswordPage.tsx +1 -2
- package/dist/radio-card/RadioCard.js +0 -64
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,27 @@ export * from './snippet';
|
|
|
20
20
|
export * from './sortable-fields';
|
|
21
21
|
export * from './sortable-list';
|
|
22
22
|
export * from './sortable-tree';
|
|
23
|
-
export * from './static';
|
|
23
|
+
export * as Images from './static/images';
|
|
24
|
+
export * from './static/TextField';
|
|
25
|
+
export * from './static/loader';
|
|
26
|
+
export * from './static/number-input';
|
|
27
|
+
export * from './static/switch';
|
|
28
|
+
export * from './static/text-expand';
|
|
29
|
+
export { Tabs } from './static/tabs';
|
|
30
|
+
export type { TabsProps } from './static/tabs';
|
|
31
|
+
export { default as CountrySelect } from './static/CountrySelect';
|
|
32
|
+
export { default as FormCard } from './static/FormCard';
|
|
33
|
+
export { default as Image } from './static/Image';
|
|
34
|
+
export { default as SocialButton } from './static/SocialButton';
|
|
35
|
+
export { default as StyledButton } from './static/StyledButton';
|
|
36
|
+
export { default as RestrictedAccess } from './static/RestrictedAccess';
|
|
37
|
+
export { default as WarningMessage } from './static/WarningMessage';
|
|
38
|
+
export * from './static/date-range-input';
|
|
39
|
+
export { ManualDatePicker } from './static/manual-date-picker';
|
|
40
|
+
export type { ManualDatePickerProps } from './static/manual-date-picker';
|
|
41
|
+
export { CurrencyNumberInput } from './static/CurrencyNumberInput';
|
|
42
|
+
export type { CurrencyNumberInputProps } from './static/CurrencyNumberInput';
|
|
43
|
+
export * from './static/form-number-input';
|
|
24
44
|
export * from './table';
|
|
25
45
|
export * from './typeahead';
|
|
26
46
|
export * from './tiptap-editor';
|
|
@@ -35,7 +55,6 @@ export * from './resource';
|
|
|
35
55
|
export * from './virtualized';
|
|
36
56
|
export * from './customers';
|
|
37
57
|
export * from './striped-static-table';
|
|
38
|
-
export * from './radio-card';
|
|
39
58
|
export * from './image-radio-input';
|
|
40
59
|
export * from './sorting-select';
|
|
41
60
|
export * from './date-time-button';
|
|
@@ -48,7 +67,7 @@ export { default as RadioButton } from './customRadioButton/RadioButton';
|
|
|
48
67
|
export * from './PageNotFound';
|
|
49
68
|
export * from './UnderMaintenance';
|
|
50
69
|
export * from './v2/dashboard-analytics';
|
|
51
|
-
export
|
|
70
|
+
export { DashboardLayout, type DashboardLayoutProps, type DestinationType, ProviderSidebar, type ProviderSidebarProps, type NavItem, AdminSidebar, type AdminSidebarProps, TopNavigation, type TopNavigationProps, DashboardFooter, type DashboardFooterProps, } from './v2/navigation/DashboardLayout';
|
|
52
71
|
export * from './v2/pages/Settings';
|
|
53
72
|
export * from './v2/pages/ZonesResources';
|
|
54
73
|
export * from './v2/components';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACnE,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAClE,YAAY,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAC5E,cAAc,4BAA4B,CAAA;AAC1C,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iCAAiC,CAAA;AACxE,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,YAAY,EACZ,KAAK,iBAAiB,EACtB,aAAa,EACb,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,iCAAiC,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -154,7 +154,31 @@ export { SortableFieldList } from './sortable-fields/SortableFieldList.js';
|
|
|
154
154
|
export { CreateSortableListItem } from './sortable-list/CreateSortableListItem.js';
|
|
155
155
|
export { SORTABLE_ID_KEY, SortableList } from './sortable-list/SortableList.js';
|
|
156
156
|
export { SortableTree } from './sortable-tree/SortableTree.js';
|
|
157
|
-
import './static/index.js';
|
|
157
|
+
import * as index from './static/images/index.js';
|
|
158
|
+
export { index as Images };
|
|
159
|
+
export { TextField } from './static/TextField.js';
|
|
160
|
+
export { LoaderIndicator } from './static/loader/LoaderIndicator.js';
|
|
161
|
+
export { BlockLoader } from './static/loader/BlockLoader.js';
|
|
162
|
+
export { ButtonLoader } from './static/loader/ButtonLoader.js';
|
|
163
|
+
export { SnippetLoader } from './static/loader/SnippetLoader.js';
|
|
164
|
+
export { PaymentLoader } from './static/loader/PaymentLoader.js';
|
|
165
|
+
export { FullScreenLoader } from './static/loader/FullScreenLoader.js';
|
|
166
|
+
export { NumberInput } from './static/number-input/NumberInput.js';
|
|
167
|
+
export { BooleanSwitch } from './static/switch/BooleanSwitch.js';
|
|
168
|
+
export { Switch } from './static/switch/Switch.js';
|
|
169
|
+
export { TextExpand } from './static/text-expand/TextExpand.js';
|
|
170
|
+
export { Tabs } from './static/tabs/Tabs.js';
|
|
171
|
+
export { default as CountrySelect } from './static/CountrySelect.js';
|
|
172
|
+
export { default as FormCard } from './static/FormCard.js';
|
|
173
|
+
export { default as Image } from './static/Image.js';
|
|
174
|
+
export { default as SocialButton } from './static/SocialButton.js';
|
|
175
|
+
export { default as StyledButton } from './static/StyledButton.js';
|
|
176
|
+
export { default as RestrictedAccess } from './static/RestrictedAccess.js';
|
|
177
|
+
export { default as WarningMessage } from './static/WarningMessage.js';
|
|
178
|
+
export { DateRangeInput } from './static/date-range-input/DateRangeInput.js';
|
|
179
|
+
export { ManualDatePicker } from './static/manual-date-picker/ManualDatePicker.js';
|
|
180
|
+
export { CurrencyNumberInput } from './static/CurrencyNumberInput.js';
|
|
181
|
+
export { FormNumberInput } from './static/form-number-input/FormNumberInput.js';
|
|
158
182
|
export { FilterHelperComponent } from './table/FilterHelperComponent.js';
|
|
159
183
|
export { PaginationHelperComponent } from './table/PaginationHelperComponent.js';
|
|
160
184
|
export { PerPageHelperComponent } from './table/PerPageHelperComponent.js';
|
|
@@ -190,7 +214,6 @@ export { VirtualizedWindowScroller } from './virtualized/components/VirtualizedW
|
|
|
190
214
|
export { VirtualizedContext, VirtualizedContextProvider } from './virtualized/context/VirtualizedContext.js';
|
|
191
215
|
export { CustomerFilter } from './customers/components/filter/CustomerFilter.js';
|
|
192
216
|
export { StripedStaticTable } from './striped-static-table/StripedStaticTable.js';
|
|
193
|
-
export { RadioCard } from './radio-card/RadioCard.js';
|
|
194
217
|
export { ImageRadioInput } from './image-radio-input/ImageRadioInput.js';
|
|
195
218
|
export { SortingSelect } from './sorting-select/SortingSelect.js';
|
|
196
219
|
export { DateTimeButton, Variant } from './date-time-button/DateTimeButton.js';
|
|
@@ -215,11 +238,11 @@ export { Chart } from './v2/dashboard-analytics/chart/Chart.js';
|
|
|
215
238
|
export { Dashboard } from './v2/dashboard-analytics/dashboard/Dashboard.js';
|
|
216
239
|
export { Blog } from './v2/dashboard-analytics/blog-posts/Blog.js';
|
|
217
240
|
export { DashboardLayout } from './v2/navigation/DashboardLayout/DashboardLayout.js';
|
|
218
|
-
export {
|
|
241
|
+
export { ProviderSidebar } from './v2/navigation/DashboardLayout/ProviderSidebar.js';
|
|
219
242
|
export { AdminSidebar } from './v2/navigation/DashboardLayout/AdminSidebar.js';
|
|
220
243
|
export { TopNavigation } from './v2/navigation/DashboardLayout/TopNavigation.js';
|
|
221
244
|
export { DashboardFooter } from './v2/navigation/DashboardLayout/DashboardFooter.js';
|
|
222
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, CircleIcon, ClearIcon, ClockIcon, CloseIcon, DeleteIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, GripVerticalIcon, InfoIcon, PlusIcon, RefreshIcon, SearchIcon, SendIcon, TableHeaderArrowDownIcon, TableHeaderArrowUpIcon } from './v2/icons/index.js';
|
|
245
|
+
export { AdminIcon, AnalyticsIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, ChevronLeftIcon, ChevronRightIcon, CircleIcon, ClearIcon, ClockIcon, CloseIcon, CompanyIcon, CustomersIcon, DashboardIcon, DeleteIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, GripVerticalIcon, InfoIcon, LoyaltyIcon, MarketingIcon, PaymentsIcon, PlusIcon, ProfileIcon, ProviderPlusIcon, RefreshIcon, ReportsIcon, SearchIcon, SecurityIcon, SendIcon, SettingsIcon, SlidersIcon, TableHeaderArrowDownIcon, TableHeaderArrowUpIcon, UploadIcon, UserAddIcon, UserImportIcon, VenueIcon, WaiversIcon } from './v2/icons/index.js';
|
|
223
246
|
export { SettingsPage } from './v2/pages/Settings/SettingsPage.js';
|
|
224
247
|
export { SettingsTabs } from './v2/pages/Settings/SettingsTabs.js';
|
|
225
248
|
export { SidebarCustomisation, defaultSidebarItems } from './v2/pages/Settings/components/SidebarCustomisation.js';
|
|
@@ -229,6 +252,16 @@ export { IconButton } from './v2/components/IconButton/IconButton.js';
|
|
|
229
252
|
export { Badge } from './v2/components/Badge/Badge.js';
|
|
230
253
|
export { QuickFilter } from './v2/components/QuickFilter/QuickFilter.js';
|
|
231
254
|
export { NewTable } from './v2/components/NewTable/NewTable.js';
|
|
255
|
+
export { DataTable } from './v2/components/DataTable/DataTable.js';
|
|
256
|
+
export { TableControls } from './v2/components/TableControls/TableControls.js';
|
|
257
|
+
export { EmptyState } from './v2/components/EmptyState/EmptyState.js';
|
|
258
|
+
export { RadioCard } from './v2/components/RadioCard/RadioCard.js';
|
|
259
|
+
import 'react';
|
|
260
|
+
import './v2/components/Tabs/Tabs.scss.js';
|
|
261
|
+
export { StepIndicator } from './v2/components/StepIndicator/StepIndicator.js';
|
|
262
|
+
export { AvatarUpload } from './v2/components/AvatarUpload/AvatarUpload.js';
|
|
263
|
+
export { InfoGrid } from './v2/components/InfoGrid/InfoGrid.js';
|
|
264
|
+
export { StatusBadge } from './v2/components/StatusBadge/StatusBadge.js';
|
|
232
265
|
export { TableSortIcon } from './v2/components/TableSortIcon/TableSortIcon.js';
|
|
233
266
|
export { ActionMenu } from './v2/components/ActionMenu/ActionMenu.js';
|
|
234
267
|
export { DeleteModal } from './v2/components/Modal/DeleteModal.js';
|
|
@@ -254,28 +287,3 @@ export { ZoneContainer } from './v2/components/ZoneCard/ZoneContainer.js';
|
|
|
254
287
|
export { ZoneHeader } from './v2/components/ZoneCard/ZoneHeader.js';
|
|
255
288
|
export { ResourceRow } from './v2/components/ZoneCard/ResourceRow.js';
|
|
256
289
|
export { AddResourceButton } from './v2/components/ZoneCard/AddResourceButton.js';
|
|
257
|
-
export { default as CountrySelect } from './static/CountrySelect.js';
|
|
258
|
-
export { default as FormCard } from './static/FormCard.js';
|
|
259
|
-
export { default as Image } from './static/Image.js';
|
|
260
|
-
export { default as SocialButton } from './static/SocialButton.js';
|
|
261
|
-
export { default as StyledButton } from './static/StyledButton.js';
|
|
262
|
-
export { default as RestrictedAccess } from './static/RestrictedAccess.js';
|
|
263
|
-
export { default as WarningMessage } from './static/WarningMessage.js';
|
|
264
|
-
export { Tabs } from './static/tabs/Tabs.js';
|
|
265
|
-
export { ManualDatePicker } from './static/manual-date-picker/ManualDatePicker.js';
|
|
266
|
-
export { CurrencyNumberInput } from './static/CurrencyNumberInput.js';
|
|
267
|
-
export { TextField } from './static/TextField.js';
|
|
268
|
-
export { LoaderIndicator } from './static/loader/LoaderIndicator.js';
|
|
269
|
-
export { BlockLoader } from './static/loader/BlockLoader.js';
|
|
270
|
-
export { ButtonLoader } from './static/loader/ButtonLoader.js';
|
|
271
|
-
export { SnippetLoader } from './static/loader/SnippetLoader.js';
|
|
272
|
-
export { PaymentLoader } from './static/loader/PaymentLoader.js';
|
|
273
|
-
export { FullScreenLoader } from './static/loader/FullScreenLoader.js';
|
|
274
|
-
export { NumberInput } from './static/number-input/NumberInput.js';
|
|
275
|
-
export { BooleanSwitch } from './static/switch/BooleanSwitch.js';
|
|
276
|
-
export { Switch } from './static/switch/Switch.js';
|
|
277
|
-
export { TextExpand } from './static/text-expand/TextExpand.js';
|
|
278
|
-
export { DateRangeInput } from './static/date-range-input/DateRangeInput.js';
|
|
279
|
-
export { FormNumberInput } from './static/form-number-input/FormNumberInput.js';
|
|
280
|
-
import * as index from './static/images/index.js';
|
|
281
|
-
export { index as Images };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/static/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/static/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef } from 'react';
|
|
3
|
+
import './AvatarUpload.scss.js';
|
|
4
|
+
import { UploadIcon } from '../../icons/index.js';
|
|
5
|
+
|
|
6
|
+
var AvatarUpload = function(param) {
|
|
7
|
+
var preview = param.preview, onFileSelect = param.onFileSelect, onDelete = param.onDelete, label = param.label, description = param.description, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className;
|
|
8
|
+
var inputRef = useRef(null);
|
|
9
|
+
var handleCircleClick = function() {
|
|
10
|
+
var _inputRef_current;
|
|
11
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.click();
|
|
12
|
+
};
|
|
13
|
+
var handleFileChange = function(e) {
|
|
14
|
+
var _e_target_files;
|
|
15
|
+
var file = (_e_target_files = e.target.files) === null || _e_target_files === void 0 ? void 0 : _e_target_files[0];
|
|
16
|
+
if (file) {
|
|
17
|
+
onFileSelect(file);
|
|
18
|
+
}
|
|
19
|
+
// Reset input so the same file can be selected again
|
|
20
|
+
e.target.value = '';
|
|
21
|
+
};
|
|
22
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
23
|
+
className: "avatar-upload ".concat(className),
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ jsx("div", {
|
|
26
|
+
className: "avatar-upload__circle".concat(preview ? ' avatar-upload__circle--has-preview' : ''),
|
|
27
|
+
onClick: handleCircleClick,
|
|
28
|
+
children: preview ? /*#__PURE__*/ jsx("img", {
|
|
29
|
+
className: "avatar-upload__image",
|
|
30
|
+
src: preview,
|
|
31
|
+
alt: "Avatar preview"
|
|
32
|
+
}) : /*#__PURE__*/ jsx("span", {
|
|
33
|
+
className: "avatar-upload__upload-icon",
|
|
34
|
+
children: /*#__PURE__*/ jsx(UploadIcon, {})
|
|
35
|
+
})
|
|
36
|
+
}),
|
|
37
|
+
/*#__PURE__*/ jsx("input", {
|
|
38
|
+
ref: inputRef,
|
|
39
|
+
type: "file",
|
|
40
|
+
accept: "image/*",
|
|
41
|
+
className: "avatar-upload__input",
|
|
42
|
+
onChange: handleFileChange
|
|
43
|
+
}),
|
|
44
|
+
label && /*#__PURE__*/ jsx("span", {
|
|
45
|
+
className: "avatar-upload__label",
|
|
46
|
+
children: label
|
|
47
|
+
}),
|
|
48
|
+
description && /*#__PURE__*/ jsx("span", {
|
|
49
|
+
className: "avatar-upload__description",
|
|
50
|
+
children: description
|
|
51
|
+
}),
|
|
52
|
+
preview && /*#__PURE__*/ jsx("button", {
|
|
53
|
+
type: "button",
|
|
54
|
+
className: "avatar-upload__remove",
|
|
55
|
+
onClick: onDelete,
|
|
56
|
+
children: "Remove"
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { AvatarUpload };
|
|
@@ -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 = ":root{--blue-50:#e7f4fc;--blue-100:#b4dbf6;--blue-200:#90caf2;--blue-300:#5eb2ec;--blue-400:#3ea3e8;--blue-500:#0e8ce2;--blue-600:#0d7fce;--blue-700:#0a63a0;--blue-800:#084d7c;--blue-900:#063b5f;--cyan-50:#eafbff;--cyan-75:#bdf3ff;--cyan-100:#aff1ff;--cyan-200:#9deeff;--cyan-300:#71e6ff;--cyan-400:#55e1ff;--cyan-500:#2bd9ff;--cyan-600:#27c5e8;--cyan-700:#1f9ab5;--cyan-800:#18778c;--cyan-900:#125b6b;--indigo-50:#efeffe;--indigo-100:#cdccfc;--indigo-200:#b4b4fa;--indigo-300:#9291f8;--indigo-400:#7c74ff;--indigo-500:#5d5bf4;--indigo-600:#5553de;--indigo-700:#4241ad;--indigo-800:#333286;--indigo-900:#272666;--green-50:#eef9ea;--green-100:#c9ecbd;--green-200:#afe39d;--green-300:#8bd671;--green-400:#75ce55;--green-500:#52c22b;--green-600:#4bb127;--green-700:#3a8a1f;--green-800:#2d6b18;--green-900:#225112;--red-50:#fceceb;--red-100:#f5c4c2;--red-200:#f1a8a4;--red-300:#ea807b;--red-400:#e66861;--red-500:#e0423a;--red-600:#cc3c35;--red-700:#9f2f29;--red-800:#7b2420;--red-900:#5e1c18;--purple-50:#efe6fd;--purple-100:#ceb0fa;--purple-200:#b78af7;--purple-300:#965ff4;--purple-400:#8133f1;--purple-500:#6200ee;--purple-600:#5900d9;--purple-700:#4600a9;--purple-800:#360083;--purple-900:#290064;--orange-50:#fff2e8;--orange-100:#fed7b6;--orange-200:#fec493;--orange-300:#fea962;--orange-400:#fd9843;--orange-500:#fd7e14;--orange-600:#e67312;--orange-700:#b4590e;--orange-800:#8b450b;--orange-900:#6a3508;--yellow-50:#fcf6e7;--yellow-100:#f6e3b4;--yellow-200:#f2d68f;--yellow-300:#ecc35c;--yellow-400:#fcc741;--yellow-500:#fbb912;--yellow-600:#e4a810;--yellow-700:#a07509;--yellow-800:#7c5b07;--yellow-900:#5f4505;--pink-50:#fdecf4;--pink-100:#f8c3db;--pink-200:#f4a6ca;--pink-300:#f07eb2;--pink-400:#ed65a3;--pink-500:#e83e8c;--pink-600:#d33874;--pink-700:#a52c63;--pink-800:#80224d;--pink-900:#611a3b;--teal-50:#e9faf7;--teal-100:#baf0e7;--teal-200:#99e8db;--teal-300:#6bdecb;--teal-400:#4ed8c1;--teal-500:#22ceb1;--teal-600:#1fbba1;--teal-700:#18927e;--teal-800:#137161;--teal-900:#0e574a;--neutral-white:#fff;--neutral-25:#f8f8fa;--neutral-50:#e8e9ef;--neutral-75:#d2d5e3;--neutral-100:#b6bacc;--neutral-200:#9399b3;--neutral-300:#626a90;--neutral-400:#433d7b;--neutral-500:#14215a;--neutral-600:#121e52;--neutral-700:#0e1740;--neutral-800:#0b1232;--neutral-900:#080e26;--neutral-black:#000;--purple-lightest:var(--purple-50);--purple-lighter:var(--purple-100);--purple-light:var(--purple-300);--purple-regular:var(--purple-500);--purple-dark:var(--purple-600);--purple-darker:var(--purple-800);--purple-darkest:var(--purple-900);--blue-lightest:var(--blue-50);--blue-lighter:var(--blue-100);--blue-light:var(--blue-300);--blue-regular:var(--blue-500);--blue-dark:var(--blue-600);--blue-darker:var(--blue-800);--blue-darkest:var(--blue-900);--indigo-lightest:var(--indigo-50);--indigo-lighter:var(--indigo-100);--indigo-light:var(--indigo-300);--indigo-regular:var(--indigo-500);--indigo-dark:var(--indigo-600);--indigo-darker:var(--indigo-800);--indigo-darkest:var(--indigo-900);--cyan-lightest:var(--cyan-50);--cyan-lighter:var(--cyan-100);--cyan-light:var(--cyan-300);--cyan-regular:var(--cyan-500);--cyan-dark:var(--cyan-700);--cyan-darker:var(--cyan-800);--cyan-darkest:var(--cyan-900);--red-lightest:var(--red-50);--red-lighter:var(--red-100);--red-light:var(--red-400);--red-regular:var(--red-500);--red-dark:var(--red-600);--red-darker:var(--red-800);--red-darkest:var(--red-900);--orange-lightest:var(--orange-50);--orange-lighter:var(--orange-100);--orange-light:var(--orange-300);--orange-regular:var(--orange-500);--orange-dark:var(--orange-600);--orange-darker:var(--orange-700);--orange-darkest:var(--orange-800);--yellow-lightest:var(--yellow-50);--yellow-lighter:var(--yellow-100);--yellow-light:var(--yellow-300);--yellow-regular:var(--yellow-500);--yellow-dark:var(--yellow-600);--yellow-darker:var(--yellow-800);--yellow-darkest:var(--yellow-900);--pink-lightest:var(--pink-50);--pink-lighter:var(--pink-100);--pink-light:var(--pink-300);--pink-regular:var(--pink-500);--pink-dark:var(--pink-600);--pink-darker:var(--pink-700);--pink-darkest:var(--pink-800);--green-lightest:var(--green-50);--green-lighter:var(--green-100);--green-light:var(--green-300);--green-regular:var(--green-500);--green-dark:var(--green-600);--green-darker:var(--green-800);--green-darkest:var(--green-900);--teal-lightest:var(--teal-50);--teal-lighter:var(--teal-100);--teal-light:var(--teal-300);--teal-regular:var(--teal-500);--teal-dark:var(--teal-600);--teal-darker:var(--teal-700);--teal-darkest:var(--teal-800);--tone-lightest:var(--neutral-white);--tone-lighter:var(--neutral-25);--tone-light:var(--neutral-50);--tone-regular:var(--neutral-75);--tone-dark:var(--neutral-100);--tone-darker:var(--neutral-200);--tone-darkest:var(--neutral-300);--shade-lightest:var(--neutral-400);--shade-lighter:var(--neutral-500);--shade-light:var(--neutral-600);--shade-regular:var(--neutral-700);--shade-dark:var(--neutral-800);--shade-darker:var(--neutral-900);--shade-darkest:var(--neutral-black);--highlight-lightest:var(--cyan-lightest);--highlight-lighter:var(--cyan-lighter);--highlight-light:var(--cyan-light);--highlight-regular:var(--blue-regular);--highlight-dark:var(--blue-dark);--highlight-darker:var(--blue-darker);--highlight-darkest:var(--blue-darkest);--success-lightest:var(--green-lightest);--success-lighter:var(--green-lighter);--success-light:var(--green-light);--success-regular:var(--green-regular);--success-dark:var(--green-dark);--success-darker:var(--green-darker);--success-darkest:var(--green-darkest);--errors-lightest:var(--red-lightest);--errors-lighter:var(--red-lighter);--errors-light:var(--red-light);--errors-regular:var(--red-regular);--errors-dark:var(--red-dark);--errors-darker:var(--red-darker);--errors-darkest:var(--red-darkest);--actions-lightest:var(--purple-50);--actions-lighter:var(--purple-lighter);--actions-light:var(--purple-light);--actions-regular:var(--purple-regular);--actions-dark:var(--purple-dark);--actions-darker:var(--purple-darker);--actions-darkest:var(--purple-darkest);--information-lightest:var(--blue-lightest);--information-lighter:var(--blue-lighter);--information-light:var(--blue-light);--information-regular:var(--blue-regular);--information-dark:var(--blue-dark);--information-darker:var(--blue-darker);--information-darkest:var(--blue-darkest);--alert-lightest:var(--yellow-lightest);--alert-lighter:var(--yellow-lighter);--alert-light:var(--orange-light);--alert-regular:var(--orange-regular);--alert-darker:var(--yellow-darker);--alert-darkest:var(--yellow-darkest);--danger-lightest:var(--red-lightest);--danger-lighter:var(--red-lighter);--danger-light:var(--red-light);--danger-regular:var(--red-regular);--danger-dark:var(--red-dark);--danger-darker:var(--red-darker);--danger-darkest:var(--red-darkest);--disabled-lightest:var(--tone-light);--disabled-lighter:var(--tone-regular);--disabled-light:var(--tone-dark);--disabled-regular:var(--tone-darker);--disabled-dark:var(--shade-lighter);--disabled-darker:var(--shade-light);--disabled-darkest:var(--shade-regular);--label-primary:var(--shade-light);--label-primary-alt:var(--tone-lighter);--label-secondary:var(--tone-darkest);--label-secondary-hover:var(--shade-lighter);--label-white:var(--tone-lightest);--label-highlight:var(--highlight-dark);--label-action:var(--actions-regular);--label-danger:var(--danger-dark);--label-status-error:var(--errors-dark);--label-status-success:var(--success-darker);--label-status-info:var(--information-dark);--label-status-alert:var(--alert-regular);--label-status-disabled:var(--disabled-regular);--surface-primary:var(--tone-lightest);--surface-primary-hover:var(--tone-lighter);--surface-primary-pressed:var(--tone-light);--surface-secondary:var(--neutral-25);--surface-secondary-hover:var(--tone-light);--surface-secondary-pressed:var(--tone-regular);--surface-tertiary:var(--tone-light);--surface-tertiary-hover:var(--tone-lighter);--surface-tertiary-pressed:var(--tone-lightest);--surface-status-success:var(--success-lightest);--surface-status-error:var(--errors-lightest);--surface-status-alert:var(--alert-lightest);--surface-status-info:var(--information-lightest);--surface-status-disabled:var(--disabled-lighter);--surface-action:var(--actions-regular);--surface-action-hover:var(--actions-dark);--surface-action-soft:var(--actions-lightest);--surface-action-soft-hover:var(--actions-lighter);--surface-action-soft-pressed:var(--actions-light);--surface-danger-soft:var(--danger-lightest);--surface-danger-soft-hover:var(--danger-lighter);--surface-danger-soft-pressed:var(--danger-light);--surface-highlight-soft:var(--highlight-lightest);--surface-colour-red-soft:var(--red-lightest);--surface-colour-green-soft:var(--green-lightest);--surface-colour-blue-soft:var(--blue-lightest);--surface-colour-orange-soft:var(--orange-lightest);--surface-colour-yellow-soft:var(--yellow-lightest);--surface-colour-purple-soft:var(--purple-lightest);--surface-colour-indigo-soft:var(--indigo-lightest);--surface-colour-cyan-soft:var(--cyan-lightest);--surface-colour-pink-soft:var(--pink-lightest);--surface-colour-teal-soft:var(--teal-lightest);--border-primary:var(--tone-light);--border-secondary:var(--tone-regular);--border-selected:var(--neutral-600);--border-action:var(--actions-regular);--border-status-error:var(--errors-lighter);--border-status-success:var(--success-lighter);--border-status-alert:var(--alert-lighter);--border-status-info:var(--information-lighter);--border-status-disabled:var(--disabled-lightest);--border-colour-overlay:#121e521a;--fill-primary:var(--shade-lighter);--fill-secondary:var(--tone-darkest);--fill-white:var(--tone-lightest);--fill-action:var(--actions-regular);--fill-highlight:var(--highlight-dark);--fill-danger:var(--danger-dark);--fill-status-success:var(--success-darker);--fill-status-error:var(--errors-dark);--fill-status-alert:var(--alert-regular);--fill-status-info:var(--information-regular);--fill-status-disabled:var(--disabled-light);--gradient-stop1:var(--purple-500);--gradient-stop2:var(--indigo-500);--gradient-stop3:var(--blue-500)}[data-theme=dark]{--label-primary:var(--tone-lighter);--label-primary-alt:var(--shade-light);--label-secondary:var(--tone-darker);--label-secondary-hover:var(--tone-lighter);--label-white:var(--tone-lightest);--label-highlight:var(--highlight-light);--label-action:var(--actions-lighter);--label-danger:var(--danger-light);--label-status-error:var(--errors-light);--label-status-success:var(--success-light);--label-status-info:var(--information-light);--label-status-alert:var(--alert-light);--label-status-disabled:var(--disabled-regular);--surface-primary:var(--shade-darker);--surface-primary-hover:var(--shade-dark);--surface-primary-pressed:var(--shade-regular);--surface-secondary:var(--shade-dark);--surface-secondary-hover:var(--shade-darker);--surface-secondary-pressed:var(--shade-darkest);--surface-tertiary:var(--shade-regular);--surface-tertiary-hover:var(--shade-dark);--surface-tertiary-pressed:var(--shade-darker);--surface-status-success:var(--success-darkest);--surface-status-error:var(--errors-darkest);--surface-status-alert:var(--alert-darkest);--surface-status-info:var(--information-darkest);--surface-status-disabled:var(--disabled-darkest);--surface-action:var(--actions-regular);--surface-action-hover:var(--actions-light);--surface-action-soft:var(--actions-darkest);--surface-action-soft-hover:var(--actions-darker);--surface-action-soft-pressed:var(--actions-dark);--surface-danger-soft:var(--danger-darkest);--surface-danger-soft-hover:var(--danger-darker);--surface-danger-soft-pressed:var(--danger-dark);--surface-highlight-soft:var(--highlight-darkest);--surface-colour-red-soft:var(--red-darkest);--surface-colour-green-soft:var(--green-darkest);--surface-colour-blue-soft:var(--blue-darkest);--surface-colour-orange-soft:var(--orange-darkest);--surface-colour-yellow-soft:var(--yellow-darkest);--surface-colour-purple-soft:var(--purple-darkest);--surface-colour-indigo-soft:var(--indigo-darkest);--surface-colour-cyan-soft:var(--cyan-darkest);--surface-colour-pink-soft:var(--pink-darkest);--surface-colour-teal-soft:var(--teal-darkest);--border-primary:var(--shade-light);--border-secondary:var(--shade-dark);--border-selected:var(--tone-light);--border-action:var(--actions-light);--border-status-error:var(--errors-darker);--border-status-success:var(--success-darker);--border-status-alert:var(--alert-darker);--border-status-info:var(--information-darker);--border-status-disabled:var(--disabled-dark);--border-colour-overlay:#ffffff1a;--fill-primary:var(--tone-lighter);--fill-secondary:var(--tone-darker);--fill-white:var(--tone-lightest);--fill-action:var(--actions-lighter);--fill-highlight:var(--highlight-light);--fill-danger:var(--danger-light);--fill-status-success:var(--success-light);--fill-status-error:var(--errors-light);--fill-status-alert:var(--alert-light);--fill-status-info:var(--information-light);--fill-status-disabled:var(--disabled-dark);--gradient-stop1:var(--indigo-400);--gradient-stop2:var(--cyan-500);--gradient-stop3:var(--cyan-100)}.text-primary{color:var(--label-primary)}.text-secondary{color:var(--label-secondary)}.text-white{color:var(--label-white)}.text-action{color:var(--label-action)}.text-danger{color:var(--label-danger)}.text-success{color:var(--label-status-success)}.text-error{color:var(--label-status-error)}.text-info{color:var(--label-status-info)}.text-warning{color:var(--label-status-alert)}.text-disabled{color:var(--label-status-disabled)}.bg-primary{background-color:var(--surface-primary)}.bg-secondary{background-color:var(--surface-secondary)}.bg-tertiary{background-color:var(--surface-tertiary)}.bg-success{background-color:var(--surface-status-success)}.bg-error{background-color:var(--surface-status-error)}.bg-warning{background-color:var(--surface-status-alert)}.bg-info{background-color:var(--surface-status-info)}.bg-action-soft{background-color:var(--surface-action-soft)}.bg-danger-soft{background-color:var(--surface-danger-soft)}.border-primary{border-color:var(--border-primary)}.border-secondary{border-color:var(--border-secondary)}.border-selected{border-color:var(--border-selected)}.border-action{border-color:var(--border-action)}.border-success{border-color:var(--border-status-success)}.border-error{border-color:var(--border-status-error)}.border-warning{border-color:var(--border-status-alert)}.border-info{border-color:var(--border-status-info)}:root{--radius-zero:0px;--radius-xs:1px;--radius-sm:2px;--radius-md:4px;--radius-reg:8px;--radius-lg:16px;--radius-xl:24px;--spacing-zero:0px;--spacing-xxs:1px;--spacing-xs:2px;--spacing-sm:4px;--spacing-md:8px;--spacing-reg:16px;--spacing-lg:24px;--spacing-xl:32px;--spacing-xxl:64px;--spacing-super:128px;--container-padding-mobile:16px;--opacity-0:0;--opacity-10:0.1;--opacity-20:0.2;--opacity-30:0.3;--opacity-40:0.4;--opacity-50:0.5;--opacity-60:0.6;--opacity-70:0.7;--opacity-80:0.8;--opacity-90:0.9;--opacity-100:1;--color-success-fill:#2d6b18;--color-success-background:#eef9ea;--color-success-border:#c9ecbd;--color-error-fill:#cc3c35;--color-error-background:#fceceb;--color-error-border:#f5c4c2;--color-alert-fill:#fd7e14;--color-alert-background:#fcf6e7;--color-alert-border:#f6e3b4;--color-info-fill:#0e8ce2;--color-info-background:#e7f4fc;--color-info-border:#b4dbf6;--surfaces-status-background-success:var(--color-success-background);--surfaces-status-background-error:var(--color-error-background);--surfaces-status-background-alert:var(--color-alert-background);--surfaces-status-background-info:var(--color-info-background);--borders-status-border-success:var(--color-success-border);--borders-status-border-error:var(--color-error-border);--borders-status-border-alert:var(--color-alert-border);--borders-status-border-info:var(--color-info-border);--fills-status-fill-success:var(--color-success-fill);--fills-status-fill-error:var(--color-error-fill);--fills-status-fill-alert:var(--color-alert-fill);--fills-status-fill-info:var(--color-info-fill);--font-family-sans:\"Geist\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Roboto\",\"Helvetica Neue\",Arial,sans-serif;--font-family-mono:\"Geist Mono\",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--heading-xxl-size:44px;--heading-xxl-line:48px;--heading-xxl-weight:600;--heading-xl-size:32px;--heading-xl-line:36px;--heading-xl-weight:700;--heading-h1-size:24px;--heading-h1-line:28px;--heading-h1-weight:600;--heading-h2-size:20px;--heading-h2-line:24px;--heading-h2-weight:600;--heading-h3-size:17px;--heading-h3-line:20px;--heading-h3-weight:600;--heading-h4-size:15px;--heading-h4-line:18px;--heading-h4-weight:600;--heading-h5-size:13px;--heading-h5-line:16px;--heading-h5-weight:500;--heading-h6-size:11px;--heading-h6-line:14px;--heading-h6-weight:500;--heading-xxl-mobile-size:32px;--heading-xxl-mobile-line:36px;--heading-xxl-mobile-weight:600;--heading-xl-mobile-size:26px;--heading-xl-mobile-line:30px;--heading-xl-mobile-weight:700;--heading-h1-mobile-size:20px;--heading-h1-mobile-line:23px;--heading-h1-mobile-weight:600;--heading-h2-mobile-size:18px;--heading-h2-mobile-line:22px;--heading-h2-mobile-weight:600;--heading-h3-mobile-size:16px;--heading-h3-mobile-line:18px;--heading-h3-mobile-weight:600;--heading-h4-mobile-size:14px;--heading-h4-mobile-line:16px;--heading-h4-mobile-weight:600;--heading-h5-mobile-size:13px;--heading-h5-mobile-line:16px;--heading-h5-mobile-weight:500;--heading-h6-mobile-size:11px;--heading-h6-mobile-line:14px;--heading-h6-mobile-weight:500;--text-xl-size:20px;--text-xl-line:26px;--text-xl-weight:400;--text-large-size:18px;--text-large-line:24px;--text-large-weight:400;--text-regular-size:15px;--text-regular-line:20px;--text-regular-weight:400;--text-small-size:13px;--text-small-line:16px;--text-small-weight:400;--text-small-emphasis-weight:500;--text-small-bold-weight:600;--text-xs-size:10px;--text-xs-line:13px;--text-xs-weight:500;--text-xs-bold-weight:600}.waiver-template-form-section{gap:var(--padding-reg,16px)}.waiver-template-form-group,.waiver-template-form-section{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column}.waiver-template-form-group{gap:var(--padding-lg,24px)}.text-description{color:var(--label-secondary,#626a90);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:16px;font-style:normal;line-height:24px}.avatar-upload{align-items:center;display:flex;flex-direction:column;gap:8px}.avatar-upload__circle{align-items:center;background:var(--surface-secondary,#f8f8fa);border:1.5px dashed var(--border-primary,#e8e9ef);border-radius:50%;cursor:pointer;display:flex;height:80px;justify-content:center;overflow:hidden;position:relative;transition:border-color .15s;width:80px}.avatar-upload__circle:hover{border-color:var(--border-selected,#6200ee)}.avatar-upload__circle--has-preview{border-color:var(--border-primary,#e8e9ef);border-style:solid}.avatar-upload__image{height:100%;object-fit:cover;width:100%}.avatar-upload__input{display:none}.avatar-upload__upload-icon{color:var(--label-secondary,#626a90)}.avatar-upload__label{color:var(--label-primary,#121e52);font-size:13px;font-weight:600}.avatar-upload__description{color:var(--label-secondary,#626a90);font-size:12px;text-align:center}.avatar-upload__remove{background:none;border:none;color:var(--label-status-error,#ef4444);cursor:pointer;font-size:12px;padding:0;text-decoration:underline}";
|
|
4
|
+
styleInject(css_248z);
|
|
5
|
+
|
|
6
|
+
export { css_248z as default };
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useEffect } from 'react';
|
|
3
|
+
import { ActionMenu } from '../ActionMenu/ActionMenu.js';
|
|
4
|
+
import { ArrowDownIcon, ArrowUpIcon } from '../../icons/index.js';
|
|
5
|
+
import './DataTable.scss.js';
|
|
6
|
+
|
|
7
|
+
function _array_like_to_array(arr, len) {
|
|
8
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
9
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10
|
+
return arr2;
|
|
11
|
+
}
|
|
12
|
+
function _array_without_holes(arr) {
|
|
13
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
14
|
+
}
|
|
15
|
+
function _iterable_to_array(iter) {
|
|
16
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
17
|
+
}
|
|
18
|
+
function _non_iterable_spread() {
|
|
19
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20
|
+
}
|
|
21
|
+
function _to_consumable_array(arr) {
|
|
22
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
23
|
+
}
|
|
24
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
25
|
+
if (!o) return;
|
|
26
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
27
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
28
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
29
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
30
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
31
|
+
}
|
|
32
|
+
function HeaderCheckbox(param) {
|
|
33
|
+
var checked = param.checked, indeterminate = param.indeterminate, onChange = param.onChange;
|
|
34
|
+
var ref = useRef(null);
|
|
35
|
+
useEffect(function() {
|
|
36
|
+
if (ref.current) ref.current.indeterminate = indeterminate;
|
|
37
|
+
}, [
|
|
38
|
+
indeterminate
|
|
39
|
+
]);
|
|
40
|
+
return /*#__PURE__*/ jsx("input", {
|
|
41
|
+
type: "checkbox",
|
|
42
|
+
ref: ref,
|
|
43
|
+
checked: checked,
|
|
44
|
+
onChange: onChange,
|
|
45
|
+
className: "data-table__checkbox",
|
|
46
|
+
onClick: function(e) {
|
|
47
|
+
return e.stopPropagation();
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
// ─── Component ────────────────────────────────────────────────────────────────
|
|
52
|
+
function DataTable(param) {
|
|
53
|
+
var columns = param.columns, data = param.data, keyExtractor = param.keyExtractor, onRowClick = param.onRowClick, rowActions = param.rowActions, emptyState = param.emptyState, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className, sortKey = param.sortKey, sortDirection = param.sortDirection, onSort = param.onSort, _param_selectable = param.selectable, selectable = _param_selectable === void 0 ? false : _param_selectable, _param_selectedKeys = param.selectedKeys, selectedKeys = _param_selectedKeys === void 0 ? [] : _param_selectedKeys, onSelectionChange = param.onSelectionChange;
|
|
54
|
+
var allKeys = data.map(keyExtractor);
|
|
55
|
+
var allSelected = data.length > 0 && allKeys.every(function(k) {
|
|
56
|
+
return selectedKeys.includes(k);
|
|
57
|
+
});
|
|
58
|
+
var someSelected = selectedKeys.length > 0 && !allSelected;
|
|
59
|
+
var toggleAll = function() {
|
|
60
|
+
if (!onSelectionChange) return;
|
|
61
|
+
if (allSelected) {
|
|
62
|
+
onSelectionChange(selectedKeys.filter(function(k) {
|
|
63
|
+
return !allKeys.includes(k);
|
|
64
|
+
}));
|
|
65
|
+
} else {
|
|
66
|
+
var newKeys = _to_consumable_array(selectedKeys);
|
|
67
|
+
allKeys.forEach(function(k) {
|
|
68
|
+
if (!newKeys.includes(k)) newKeys.push(k);
|
|
69
|
+
});
|
|
70
|
+
onSelectionChange(newKeys);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
var toggleRow = function(key) {
|
|
74
|
+
if (!onSelectionChange) return;
|
|
75
|
+
if (selectedKeys.includes(key)) {
|
|
76
|
+
onSelectionChange(selectedKeys.filter(function(k) {
|
|
77
|
+
return k !== key;
|
|
78
|
+
}));
|
|
79
|
+
} else {
|
|
80
|
+
onSelectionChange(_to_consumable_array(selectedKeys).concat([
|
|
81
|
+
key
|
|
82
|
+
]));
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
86
|
+
className: "data-table ".concat(className),
|
|
87
|
+
children: [
|
|
88
|
+
/*#__PURE__*/ jsxs("div", {
|
|
89
|
+
className: "data-table__header",
|
|
90
|
+
children: [
|
|
91
|
+
selectable && /*#__PURE__*/ jsx("div", {
|
|
92
|
+
className: "data-table__th data-table__th--checkbox",
|
|
93
|
+
children: /*#__PURE__*/ jsx(HeaderCheckbox, {
|
|
94
|
+
checked: allSelected,
|
|
95
|
+
indeterminate: someSelected,
|
|
96
|
+
onChange: toggleAll
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
|
+
columns.map(function(col, i) {
|
|
100
|
+
var isSorted = col.sortKey && sortKey === col.sortKey;
|
|
101
|
+
var canSort = col.sortable && col.sortKey && onSort;
|
|
102
|
+
var _col_labelClassName, _col_className;
|
|
103
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
104
|
+
className: [
|
|
105
|
+
'data-table__th',
|
|
106
|
+
!col.width && i === 0 ? 'data-table__th--flex1' : '',
|
|
107
|
+
(_col_labelClassName = col.labelClassName) !== null && _col_labelClassName !== void 0 ? _col_labelClassName : '',
|
|
108
|
+
(_col_className = col.className) !== null && _col_className !== void 0 ? _col_className : '',
|
|
109
|
+
canSort ? 'data-table__th--sortable' : ''
|
|
110
|
+
].filter(Boolean).join(' '),
|
|
111
|
+
style: col.width ? {
|
|
112
|
+
width: col.width,
|
|
113
|
+
flexShrink: 0
|
|
114
|
+
} : undefined,
|
|
115
|
+
onClick: function() {
|
|
116
|
+
return canSort && onSort(col.sortKey);
|
|
117
|
+
},
|
|
118
|
+
children: [
|
|
119
|
+
col.label,
|
|
120
|
+
canSort && /*#__PURE__*/ jsx("span", {
|
|
121
|
+
className: "data-table__sort-icon ".concat(!isSorted ? 'data-table__sort-icon--hidden' : ''),
|
|
122
|
+
children: isSorted && sortDirection === 'desc' ? /*#__PURE__*/ jsx(ArrowDownIcon, {}) : /*#__PURE__*/ jsx(ArrowUpIcon, {})
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
}, i);
|
|
126
|
+
}),
|
|
127
|
+
rowActions && /*#__PURE__*/ jsx("div", {
|
|
128
|
+
className: "data-table__th data-table__th--action"
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
}),
|
|
132
|
+
/*#__PURE__*/ jsx("div", {
|
|
133
|
+
className: "data-table__body",
|
|
134
|
+
children: data.length === 0 ? /*#__PURE__*/ jsx("div", {
|
|
135
|
+
className: "data-table__empty",
|
|
136
|
+
children: emptyState !== null && emptyState !== void 0 ? emptyState : 'No data found.'
|
|
137
|
+
}) : data.map(function(item) {
|
|
138
|
+
var key = keyExtractor(item);
|
|
139
|
+
var actions = rowActions === null || rowActions === void 0 ? void 0 : rowActions(item);
|
|
140
|
+
var isSelected = selectedKeys.includes(key);
|
|
141
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
142
|
+
className: [
|
|
143
|
+
'data-table__row',
|
|
144
|
+
onRowClick ? 'data-table__row--clickable' : '',
|
|
145
|
+
isSelected ? 'data-table__row--selected' : ''
|
|
146
|
+
].filter(Boolean).join(' '),
|
|
147
|
+
onClick: function() {
|
|
148
|
+
return onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(item);
|
|
149
|
+
},
|
|
150
|
+
children: [
|
|
151
|
+
selectable && /*#__PURE__*/ jsx("div", {
|
|
152
|
+
className: "data-table__td data-table__td--checkbox",
|
|
153
|
+
onClick: function(e) {
|
|
154
|
+
e.stopPropagation();
|
|
155
|
+
toggleRow(key);
|
|
156
|
+
},
|
|
157
|
+
children: /*#__PURE__*/ jsx("input", {
|
|
158
|
+
type: "checkbox",
|
|
159
|
+
className: "data-table__checkbox",
|
|
160
|
+
checked: isSelected,
|
|
161
|
+
onChange: function() {
|
|
162
|
+
return toggleRow(key);
|
|
163
|
+
},
|
|
164
|
+
onClick: function(e) {
|
|
165
|
+
return e.stopPropagation();
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
}),
|
|
169
|
+
/*#__PURE__*/ jsxs("div", {
|
|
170
|
+
className: "data-table__row-cells",
|
|
171
|
+
children: [
|
|
172
|
+
columns.map(function(col, colIndex) {
|
|
173
|
+
var content;
|
|
174
|
+
if (col.render) {
|
|
175
|
+
content = col.render(item);
|
|
176
|
+
} else if (col.accessor) {
|
|
177
|
+
var _item_col_accessor;
|
|
178
|
+
content = typeof col.accessor === 'function' ? col.accessor(item) : String((_item_col_accessor = item[col.accessor]) !== null && _item_col_accessor !== void 0 ? _item_col_accessor : '');
|
|
179
|
+
}
|
|
180
|
+
var _col_className;
|
|
181
|
+
return /*#__PURE__*/ jsx("div", {
|
|
182
|
+
className: [
|
|
183
|
+
'data-table__td',
|
|
184
|
+
!col.width && colIndex === 0 ? 'data-table__td--flex1' : '',
|
|
185
|
+
(_col_className = col.className) !== null && _col_className !== void 0 ? _col_className : ''
|
|
186
|
+
].filter(Boolean).join(' '),
|
|
187
|
+
style: col.width ? {
|
|
188
|
+
width: col.width,
|
|
189
|
+
flexShrink: 0
|
|
190
|
+
} : undefined,
|
|
191
|
+
children: content
|
|
192
|
+
}, colIndex);
|
|
193
|
+
}),
|
|
194
|
+
actions && actions.length > 0 && /*#__PURE__*/ jsx("div", {
|
|
195
|
+
className: "data-table__td data-table__td--action",
|
|
196
|
+
onClick: function(e) {
|
|
197
|
+
return e.stopPropagation();
|
|
198
|
+
},
|
|
199
|
+
children: /*#__PURE__*/ jsx(ActionMenu, {
|
|
200
|
+
items: actions.map(function(a) {
|
|
201
|
+
return {
|
|
202
|
+
label: a.label,
|
|
203
|
+
onClick: function() {
|
|
204
|
+
return a.onClick(item);
|
|
205
|
+
},
|
|
206
|
+
variant: a.variant
|
|
207
|
+
};
|
|
208
|
+
})
|
|
209
|
+
})
|
|
210
|
+
})
|
|
211
|
+
]
|
|
212
|
+
})
|
|
213
|
+
]
|
|
214
|
+
}, key);
|
|
215
|
+
})
|
|
216
|
+
})
|
|
217
|
+
]
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export { DataTable };
|
|
@@ -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 = ":root{--blue-50:#e7f4fc;--blue-100:#b4dbf6;--blue-200:#90caf2;--blue-300:#5eb2ec;--blue-400:#3ea3e8;--blue-500:#0e8ce2;--blue-600:#0d7fce;--blue-700:#0a63a0;--blue-800:#084d7c;--blue-900:#063b5f;--cyan-50:#eafbff;--cyan-75:#bdf3ff;--cyan-100:#aff1ff;--cyan-200:#9deeff;--cyan-300:#71e6ff;--cyan-400:#55e1ff;--cyan-500:#2bd9ff;--cyan-600:#27c5e8;--cyan-700:#1f9ab5;--cyan-800:#18778c;--cyan-900:#125b6b;--indigo-50:#efeffe;--indigo-100:#cdccfc;--indigo-200:#b4b4fa;--indigo-300:#9291f8;--indigo-400:#7c74ff;--indigo-500:#5d5bf4;--indigo-600:#5553de;--indigo-700:#4241ad;--indigo-800:#333286;--indigo-900:#272666;--green-50:#eef9ea;--green-100:#c9ecbd;--green-200:#afe39d;--green-300:#8bd671;--green-400:#75ce55;--green-500:#52c22b;--green-600:#4bb127;--green-700:#3a8a1f;--green-800:#2d6b18;--green-900:#225112;--red-50:#fceceb;--red-100:#f5c4c2;--red-200:#f1a8a4;--red-300:#ea807b;--red-400:#e66861;--red-500:#e0423a;--red-600:#cc3c35;--red-700:#9f2f29;--red-800:#7b2420;--red-900:#5e1c18;--purple-50:#efe6fd;--purple-100:#ceb0fa;--purple-200:#b78af7;--purple-300:#965ff4;--purple-400:#8133f1;--purple-500:#6200ee;--purple-600:#5900d9;--purple-700:#4600a9;--purple-800:#360083;--purple-900:#290064;--orange-50:#fff2e8;--orange-100:#fed7b6;--orange-200:#fec493;--orange-300:#fea962;--orange-400:#fd9843;--orange-500:#fd7e14;--orange-600:#e67312;--orange-700:#b4590e;--orange-800:#8b450b;--orange-900:#6a3508;--yellow-50:#fcf6e7;--yellow-100:#f6e3b4;--yellow-200:#f2d68f;--yellow-300:#ecc35c;--yellow-400:#fcc741;--yellow-500:#fbb912;--yellow-600:#e4a810;--yellow-700:#a07509;--yellow-800:#7c5b07;--yellow-900:#5f4505;--pink-50:#fdecf4;--pink-100:#f8c3db;--pink-200:#f4a6ca;--pink-300:#f07eb2;--pink-400:#ed65a3;--pink-500:#e83e8c;--pink-600:#d33874;--pink-700:#a52c63;--pink-800:#80224d;--pink-900:#611a3b;--teal-50:#e9faf7;--teal-100:#baf0e7;--teal-200:#99e8db;--teal-300:#6bdecb;--teal-400:#4ed8c1;--teal-500:#22ceb1;--teal-600:#1fbba1;--teal-700:#18927e;--teal-800:#137161;--teal-900:#0e574a;--neutral-white:#fff;--neutral-25:#f8f8fa;--neutral-50:#e8e9ef;--neutral-75:#d2d5e3;--neutral-100:#b6bacc;--neutral-200:#9399b3;--neutral-300:#626a90;--neutral-400:#433d7b;--neutral-500:#14215a;--neutral-600:#121e52;--neutral-700:#0e1740;--neutral-800:#0b1232;--neutral-900:#080e26;--neutral-black:#000;--purple-lightest:var(--purple-50);--purple-lighter:var(--purple-100);--purple-light:var(--purple-300);--purple-regular:var(--purple-500);--purple-dark:var(--purple-600);--purple-darker:var(--purple-800);--purple-darkest:var(--purple-900);--blue-lightest:var(--blue-50);--blue-lighter:var(--blue-100);--blue-light:var(--blue-300);--blue-regular:var(--blue-500);--blue-dark:var(--blue-600);--blue-darker:var(--blue-800);--blue-darkest:var(--blue-900);--indigo-lightest:var(--indigo-50);--indigo-lighter:var(--indigo-100);--indigo-light:var(--indigo-300);--indigo-regular:var(--indigo-500);--indigo-dark:var(--indigo-600);--indigo-darker:var(--indigo-800);--indigo-darkest:var(--indigo-900);--cyan-lightest:var(--cyan-50);--cyan-lighter:var(--cyan-100);--cyan-light:var(--cyan-300);--cyan-regular:var(--cyan-500);--cyan-dark:var(--cyan-700);--cyan-darker:var(--cyan-800);--cyan-darkest:var(--cyan-900);--red-lightest:var(--red-50);--red-lighter:var(--red-100);--red-light:var(--red-400);--red-regular:var(--red-500);--red-dark:var(--red-600);--red-darker:var(--red-800);--red-darkest:var(--red-900);--orange-lightest:var(--orange-50);--orange-lighter:var(--orange-100);--orange-light:var(--orange-300);--orange-regular:var(--orange-500);--orange-dark:var(--orange-600);--orange-darker:var(--orange-700);--orange-darkest:var(--orange-800);--yellow-lightest:var(--yellow-50);--yellow-lighter:var(--yellow-100);--yellow-light:var(--yellow-300);--yellow-regular:var(--yellow-500);--yellow-dark:var(--yellow-600);--yellow-darker:var(--yellow-800);--yellow-darkest:var(--yellow-900);--pink-lightest:var(--pink-50);--pink-lighter:var(--pink-100);--pink-light:var(--pink-300);--pink-regular:var(--pink-500);--pink-dark:var(--pink-600);--pink-darker:var(--pink-700);--pink-darkest:var(--pink-800);--green-lightest:var(--green-50);--green-lighter:var(--green-100);--green-light:var(--green-300);--green-regular:var(--green-500);--green-dark:var(--green-600);--green-darker:var(--green-800);--green-darkest:var(--green-900);--teal-lightest:var(--teal-50);--teal-lighter:var(--teal-100);--teal-light:var(--teal-300);--teal-regular:var(--teal-500);--teal-dark:var(--teal-600);--teal-darker:var(--teal-700);--teal-darkest:var(--teal-800);--tone-lightest:var(--neutral-white);--tone-lighter:var(--neutral-25);--tone-light:var(--neutral-50);--tone-regular:var(--neutral-75);--tone-dark:var(--neutral-100);--tone-darker:var(--neutral-200);--tone-darkest:var(--neutral-300);--shade-lightest:var(--neutral-400);--shade-lighter:var(--neutral-500);--shade-light:var(--neutral-600);--shade-regular:var(--neutral-700);--shade-dark:var(--neutral-800);--shade-darker:var(--neutral-900);--shade-darkest:var(--neutral-black);--highlight-lightest:var(--cyan-lightest);--highlight-lighter:var(--cyan-lighter);--highlight-light:var(--cyan-light);--highlight-regular:var(--blue-regular);--highlight-dark:var(--blue-dark);--highlight-darker:var(--blue-darker);--highlight-darkest:var(--blue-darkest);--success-lightest:var(--green-lightest);--success-lighter:var(--green-lighter);--success-light:var(--green-light);--success-regular:var(--green-regular);--success-dark:var(--green-dark);--success-darker:var(--green-darker);--success-darkest:var(--green-darkest);--errors-lightest:var(--red-lightest);--errors-lighter:var(--red-lighter);--errors-light:var(--red-light);--errors-regular:var(--red-regular);--errors-dark:var(--red-dark);--errors-darker:var(--red-darker);--errors-darkest:var(--red-darkest);--actions-lightest:var(--purple-50);--actions-lighter:var(--purple-lighter);--actions-light:var(--purple-light);--actions-regular:var(--purple-regular);--actions-dark:var(--purple-dark);--actions-darker:var(--purple-darker);--actions-darkest:var(--purple-darkest);--information-lightest:var(--blue-lightest);--information-lighter:var(--blue-lighter);--information-light:var(--blue-light);--information-regular:var(--blue-regular);--information-dark:var(--blue-dark);--information-darker:var(--blue-darker);--information-darkest:var(--blue-darkest);--alert-lightest:var(--yellow-lightest);--alert-lighter:var(--yellow-lighter);--alert-light:var(--orange-light);--alert-regular:var(--orange-regular);--alert-darker:var(--yellow-darker);--alert-darkest:var(--yellow-darkest);--danger-lightest:var(--red-lightest);--danger-lighter:var(--red-lighter);--danger-light:var(--red-light);--danger-regular:var(--red-regular);--danger-dark:var(--red-dark);--danger-darker:var(--red-darker);--danger-darkest:var(--red-darkest);--disabled-lightest:var(--tone-light);--disabled-lighter:var(--tone-regular);--disabled-light:var(--tone-dark);--disabled-regular:var(--tone-darker);--disabled-dark:var(--shade-lighter);--disabled-darker:var(--shade-light);--disabled-darkest:var(--shade-regular);--label-primary:var(--shade-light);--label-primary-alt:var(--tone-lighter);--label-secondary:var(--tone-darkest);--label-secondary-hover:var(--shade-lighter);--label-white:var(--tone-lightest);--label-highlight:var(--highlight-dark);--label-action:var(--actions-regular);--label-danger:var(--danger-dark);--label-status-error:var(--errors-dark);--label-status-success:var(--success-darker);--label-status-info:var(--information-dark);--label-status-alert:var(--alert-regular);--label-status-disabled:var(--disabled-regular);--surface-primary:var(--tone-lightest);--surface-primary-hover:var(--tone-lighter);--surface-primary-pressed:var(--tone-light);--surface-secondary:var(--neutral-25);--surface-secondary-hover:var(--tone-light);--surface-secondary-pressed:var(--tone-regular);--surface-tertiary:var(--tone-light);--surface-tertiary-hover:var(--tone-lighter);--surface-tertiary-pressed:var(--tone-lightest);--surface-status-success:var(--success-lightest);--surface-status-error:var(--errors-lightest);--surface-status-alert:var(--alert-lightest);--surface-status-info:var(--information-lightest);--surface-status-disabled:var(--disabled-lighter);--surface-action:var(--actions-regular);--surface-action-hover:var(--actions-dark);--surface-action-soft:var(--actions-lightest);--surface-action-soft-hover:var(--actions-lighter);--surface-action-soft-pressed:var(--actions-light);--surface-danger-soft:var(--danger-lightest);--surface-danger-soft-hover:var(--danger-lighter);--surface-danger-soft-pressed:var(--danger-light);--surface-highlight-soft:var(--highlight-lightest);--surface-colour-red-soft:var(--red-lightest);--surface-colour-green-soft:var(--green-lightest);--surface-colour-blue-soft:var(--blue-lightest);--surface-colour-orange-soft:var(--orange-lightest);--surface-colour-yellow-soft:var(--yellow-lightest);--surface-colour-purple-soft:var(--purple-lightest);--surface-colour-indigo-soft:var(--indigo-lightest);--surface-colour-cyan-soft:var(--cyan-lightest);--surface-colour-pink-soft:var(--pink-lightest);--surface-colour-teal-soft:var(--teal-lightest);--border-primary:var(--tone-light);--border-secondary:var(--tone-regular);--border-selected:var(--neutral-600);--border-action:var(--actions-regular);--border-status-error:var(--errors-lighter);--border-status-success:var(--success-lighter);--border-status-alert:var(--alert-lighter);--border-status-info:var(--information-lighter);--border-status-disabled:var(--disabled-lightest);--border-colour-overlay:#121e521a;--fill-primary:var(--shade-lighter);--fill-secondary:var(--tone-darkest);--fill-white:var(--tone-lightest);--fill-action:var(--actions-regular);--fill-highlight:var(--highlight-dark);--fill-danger:var(--danger-dark);--fill-status-success:var(--success-darker);--fill-status-error:var(--errors-dark);--fill-status-alert:var(--alert-regular);--fill-status-info:var(--information-regular);--fill-status-disabled:var(--disabled-light);--gradient-stop1:var(--purple-500);--gradient-stop2:var(--indigo-500);--gradient-stop3:var(--blue-500)}[data-theme=dark]{--label-primary:var(--tone-lighter);--label-primary-alt:var(--shade-light);--label-secondary:var(--tone-darker);--label-secondary-hover:var(--tone-lighter);--label-white:var(--tone-lightest);--label-highlight:var(--highlight-light);--label-action:var(--actions-lighter);--label-danger:var(--danger-light);--label-status-error:var(--errors-light);--label-status-success:var(--success-light);--label-status-info:var(--information-light);--label-status-alert:var(--alert-light);--label-status-disabled:var(--disabled-regular);--surface-primary:var(--shade-darker);--surface-primary-hover:var(--shade-dark);--surface-primary-pressed:var(--shade-regular);--surface-secondary:var(--shade-dark);--surface-secondary-hover:var(--shade-darker);--surface-secondary-pressed:var(--shade-darkest);--surface-tertiary:var(--shade-regular);--surface-tertiary-hover:var(--shade-dark);--surface-tertiary-pressed:var(--shade-darker);--surface-status-success:var(--success-darkest);--surface-status-error:var(--errors-darkest);--surface-status-alert:var(--alert-darkest);--surface-status-info:var(--information-darkest);--surface-status-disabled:var(--disabled-darkest);--surface-action:var(--actions-regular);--surface-action-hover:var(--actions-light);--surface-action-soft:var(--actions-darkest);--surface-action-soft-hover:var(--actions-darker);--surface-action-soft-pressed:var(--actions-dark);--surface-danger-soft:var(--danger-darkest);--surface-danger-soft-hover:var(--danger-darker);--surface-danger-soft-pressed:var(--danger-dark);--surface-highlight-soft:var(--highlight-darkest);--surface-colour-red-soft:var(--red-darkest);--surface-colour-green-soft:var(--green-darkest);--surface-colour-blue-soft:var(--blue-darkest);--surface-colour-orange-soft:var(--orange-darkest);--surface-colour-yellow-soft:var(--yellow-darkest);--surface-colour-purple-soft:var(--purple-darkest);--surface-colour-indigo-soft:var(--indigo-darkest);--surface-colour-cyan-soft:var(--cyan-darkest);--surface-colour-pink-soft:var(--pink-darkest);--surface-colour-teal-soft:var(--teal-darkest);--border-primary:var(--shade-light);--border-secondary:var(--shade-dark);--border-selected:var(--tone-light);--border-action:var(--actions-light);--border-status-error:var(--errors-darker);--border-status-success:var(--success-darker);--border-status-alert:var(--alert-darker);--border-status-info:var(--information-darker);--border-status-disabled:var(--disabled-dark);--border-colour-overlay:#ffffff1a;--fill-primary:var(--tone-lighter);--fill-secondary:var(--tone-darker);--fill-white:var(--tone-lightest);--fill-action:var(--actions-lighter);--fill-highlight:var(--highlight-light);--fill-danger:var(--danger-light);--fill-status-success:var(--success-light);--fill-status-error:var(--errors-light);--fill-status-alert:var(--alert-light);--fill-status-info:var(--information-light);--fill-status-disabled:var(--disabled-dark);--gradient-stop1:var(--indigo-400);--gradient-stop2:var(--cyan-500);--gradient-stop3:var(--cyan-100)}.text-primary{color:var(--label-primary)}.text-secondary{color:var(--label-secondary)}.text-white{color:var(--label-white)}.text-action{color:var(--label-action)}.text-danger{color:var(--label-danger)}.text-success{color:var(--label-status-success)}.text-error{color:var(--label-status-error)}.text-info{color:var(--label-status-info)}.text-warning{color:var(--label-status-alert)}.text-disabled{color:var(--label-status-disabled)}.bg-primary{background-color:var(--surface-primary)}.bg-secondary{background-color:var(--surface-secondary)}.bg-tertiary{background-color:var(--surface-tertiary)}.bg-success{background-color:var(--surface-status-success)}.bg-error{background-color:var(--surface-status-error)}.bg-warning{background-color:var(--surface-status-alert)}.bg-info{background-color:var(--surface-status-info)}.bg-action-soft{background-color:var(--surface-action-soft)}.bg-danger-soft{background-color:var(--surface-danger-soft)}.border-primary{border-color:var(--border-primary)}.border-secondary{border-color:var(--border-secondary)}.border-selected{border-color:var(--border-selected)}.border-action{border-color:var(--border-action)}.border-success{border-color:var(--border-status-success)}.border-error{border-color:var(--border-status-error)}.border-warning{border-color:var(--border-status-alert)}.border-info{border-color:var(--border-status-info)}:root{--radius-zero:0px;--radius-xs:1px;--radius-sm:2px;--radius-md:4px;--radius-reg:8px;--radius-lg:16px;--radius-xl:24px;--spacing-zero:0px;--spacing-xxs:1px;--spacing-xs:2px;--spacing-sm:4px;--spacing-md:8px;--spacing-reg:16px;--spacing-lg:24px;--spacing-xl:32px;--spacing-xxl:64px;--spacing-super:128px;--container-padding-mobile:16px;--opacity-0:0;--opacity-10:0.1;--opacity-20:0.2;--opacity-30:0.3;--opacity-40:0.4;--opacity-50:0.5;--opacity-60:0.6;--opacity-70:0.7;--opacity-80:0.8;--opacity-90:0.9;--opacity-100:1;--color-success-fill:#2d6b18;--color-success-background:#eef9ea;--color-success-border:#c9ecbd;--color-error-fill:#cc3c35;--color-error-background:#fceceb;--color-error-border:#f5c4c2;--color-alert-fill:#fd7e14;--color-alert-background:#fcf6e7;--color-alert-border:#f6e3b4;--color-info-fill:#0e8ce2;--color-info-background:#e7f4fc;--color-info-border:#b4dbf6;--surfaces-status-background-success:var(--color-success-background);--surfaces-status-background-error:var(--color-error-background);--surfaces-status-background-alert:var(--color-alert-background);--surfaces-status-background-info:var(--color-info-background);--borders-status-border-success:var(--color-success-border);--borders-status-border-error:var(--color-error-border);--borders-status-border-alert:var(--color-alert-border);--borders-status-border-info:var(--color-info-border);--fills-status-fill-success:var(--color-success-fill);--fills-status-fill-error:var(--color-error-fill);--fills-status-fill-alert:var(--color-alert-fill);--fills-status-fill-info:var(--color-info-fill);--font-family-sans:\"Geist\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Roboto\",\"Helvetica Neue\",Arial,sans-serif;--font-family-mono:\"Geist Mono\",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--heading-xxl-size:44px;--heading-xxl-line:48px;--heading-xxl-weight:600;--heading-xl-size:32px;--heading-xl-line:36px;--heading-xl-weight:700;--heading-h1-size:24px;--heading-h1-line:28px;--heading-h1-weight:600;--heading-h2-size:20px;--heading-h2-line:24px;--heading-h2-weight:600;--heading-h3-size:17px;--heading-h3-line:20px;--heading-h3-weight:600;--heading-h4-size:15px;--heading-h4-line:18px;--heading-h4-weight:600;--heading-h5-size:13px;--heading-h5-line:16px;--heading-h5-weight:500;--heading-h6-size:11px;--heading-h6-line:14px;--heading-h6-weight:500;--heading-xxl-mobile-size:32px;--heading-xxl-mobile-line:36px;--heading-xxl-mobile-weight:600;--heading-xl-mobile-size:26px;--heading-xl-mobile-line:30px;--heading-xl-mobile-weight:700;--heading-h1-mobile-size:20px;--heading-h1-mobile-line:23px;--heading-h1-mobile-weight:600;--heading-h2-mobile-size:18px;--heading-h2-mobile-line:22px;--heading-h2-mobile-weight:600;--heading-h3-mobile-size:16px;--heading-h3-mobile-line:18px;--heading-h3-mobile-weight:600;--heading-h4-mobile-size:14px;--heading-h4-mobile-line:16px;--heading-h4-mobile-weight:600;--heading-h5-mobile-size:13px;--heading-h5-mobile-line:16px;--heading-h5-mobile-weight:500;--heading-h6-mobile-size:11px;--heading-h6-mobile-line:14px;--heading-h6-mobile-weight:500;--text-xl-size:20px;--text-xl-line:26px;--text-xl-weight:400;--text-large-size:18px;--text-large-line:24px;--text-large-weight:400;--text-regular-size:15px;--text-regular-line:20px;--text-regular-weight:400;--text-small-size:13px;--text-small-line:16px;--text-small-weight:400;--text-small-emphasis-weight:500;--text-small-bold-weight:600;--text-xs-size:10px;--text-xs-line:13px;--text-xs-weight:500;--text-xs-bold-weight:600}.waiver-template-form-section{gap:var(--padding-reg,16px)}.waiver-template-form-group,.waiver-template-form-section{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column}.waiver-template-form-group{gap:var(--padding-lg,24px)}.text-description{color:var(--label-secondary,#626a90);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:16px;font-style:normal;line-height:24px}.data-table{display:flex;flex-direction:column;overflow:visible;width:100%}.data-table__header{align-items:center;align-self:stretch;background:var(--surface-secondary,#f8f8fa);border-bottom:1px solid var(--border-primary,#e8e9ef);display:flex;gap:16px;height:48px;min-width:0;padding:0 16px}.data-table__th{align-items:center;color:var(--label-secondary,#626a90);display:flex;flex-shrink:0;font-size:13px;font-weight:500;gap:4px;line-height:16px;white-space:nowrap}.data-table__th--flex1{flex:1;min-width:0}.data-table__th--sortable{cursor:pointer;transition:color .15s;-webkit-user-select:none;user-select:none}.data-table__th--sortable:hover{color:var(--label-primary,#121e52)}.data-table__th--action{flex-shrink:0;width:40px}.data-table__th--checkbox{justify-content:center;width:40px}.data-table__sort-icon,.data-table__th--checkbox{align-items:center;display:flex;flex-shrink:0}.data-table__sort-icon svg{height:14px;width:14px}.data-table__sort-icon--hidden{opacity:0}.data-table__body{display:flex;flex-direction:column;overflow:visible;position:relative}.data-table__row{align-items:center;align-self:stretch;border-bottom:1px solid var(--border-primary,#e8e9ef);display:flex;transition:background-color .15s}.data-table__row:last-child{border-bottom:none}.data-table__row--clickable{cursor:pointer}.data-table__row--clickable:hover{background:var(--surface-primary-hover,#f8f8fa)}.data-table__row.action-menu-open{overflow:visible;position:relative;z-index:20}.data-table__row.action-menu-open .data-table__row-cells{overflow:visible}.data-table__row-cells{align-items:center;display:flex;flex:1;gap:16px;min-width:0;overflow:hidden;padding:16px}.data-table__td{color:var(--label-primary,#121e52);flex-shrink:0;font-size:13px;font-weight:400;line-height:16px}.data-table__td--flex1{flex:1;min-width:0}.data-table__td--action{display:flex;flex-shrink:0;justify-content:flex-end;width:40px}.data-table__td--checkbox{align-items:center;display:flex;flex-shrink:0;justify-content:center;width:40px}.data-table__checkbox{accent-color:var(--label-action,#6200ee);border-radius:3px;cursor:pointer;flex-shrink:0;height:16px;width:16px}.data-table__row--selected,.data-table__row--selected:hover{background:var(--surface-action-soft,#f3e8ff)}.data-table__empty{color:var(--label-secondary,#626a90);font-size:14px;font-weight:500;padding:48px 16px;text-align:center}";
|
|
4
|
+
styleInject(css_248z);
|
|
5
|
+
|
|
6
|
+
export { css_248z as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
import './EmptyState.scss.js';
|
|
4
|
+
import { Button } from '../Button/Button.js';
|
|
5
|
+
import '../Button/GhostButton.scss.js';
|
|
6
|
+
|
|
7
|
+
var EmptyState = function(param) {
|
|
8
|
+
var icon = param.icon, title = param.title, description = param.description, action = param.action, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className;
|
|
9
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
10
|
+
className: "empty-state ".concat(className),
|
|
11
|
+
children: [
|
|
12
|
+
icon && /*#__PURE__*/ jsx("div", {
|
|
13
|
+
className: "empty-state__icon",
|
|
14
|
+
children: icon
|
|
15
|
+
}),
|
|
16
|
+
/*#__PURE__*/ jsx("p", {
|
|
17
|
+
className: "empty-state__title",
|
|
18
|
+
children: title
|
|
19
|
+
}),
|
|
20
|
+
description && /*#__PURE__*/ jsx("p", {
|
|
21
|
+
className: "empty-state__description",
|
|
22
|
+
children: description
|
|
23
|
+
}),
|
|
24
|
+
action && /*#__PURE__*/ jsx("div", {
|
|
25
|
+
className: "empty-state__action",
|
|
26
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
27
|
+
variant: "primary",
|
|
28
|
+
onClick: action.onClick,
|
|
29
|
+
children: action.label
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { EmptyState };
|