@licklist/design 0.78.5-dev.93 → 0.78.5-dev.94
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/v2/components/AvatarUpload/AvatarUpload.d.ts.map +1 -1
- package/dist/v2/components/AvatarUpload/AvatarUpload.js +7 -3
- package/dist/v2/components/IconButton/IconButton.scss.js +1 -1
- package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.js +10 -4
- package/dist/v2/components/StatusBadge/StatusBadge.d.ts.map +1 -1
- package/dist/v2/components/StatusBadge/StatusBadge.js +17 -13
- package/dist/v2/components/TableControls/TableControls.d.ts.map +1 -1
- package/dist/v2/components/TableControls/TableControls.js +7 -3
- package/dist/v2/components/UserPanel/UserPanel.d.ts.map +1 -1
- package/dist/v2/components/UserPanel/UserPanel.js +18 -14
- package/dist/v2/dashboard-analytics/blog-posts/Blog.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/blog-posts/Blog.js +6 -2
- package/dist/v2/dashboard-analytics/chart/Chart.scss.js +1 -1
- package/dist/v2/dashboard-analytics/dashboard/Dashboard.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/dashboard/Dashboard.js +24 -16
- package/dist/v2/icons/index.d.ts +4 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/navigation/DashboardLayout/DashboardFooter.d.ts.map +1 -1
- package/dist/v2/navigation/DashboardLayout/DashboardFooter.js +9 -6
- package/dist/v2/navigation/SidebarUserElement/SidebarUserElement.d.ts.map +1 -1
- package/dist/v2/pages/RoleSelection/RoleSelectionPage.d.ts.map +1 -1
- package/dist/v2/pages/Settings/components/SidebarCustomisation.js +1 -0
- package/dist/v2/pages/Settings/components/SidebarNavItem.js +1 -0
- package/dist/v2/pages/UserDetails/UserDetailsPage.d.ts.map +1 -1
- package/dist/v2/pages/auth/AuthLayout/AuthLayout.d.ts.map +1 -1
- package/dist/v2/pages/auth/AuthLayout/AuthLayout.js +6 -2
- package/dist/v2/shadcn/_reference/auth/CreatePasswordPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/LoginForm.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/LoginPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/ResetPasswordForm.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/ResetPasswordPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/VerifyEmailForm.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/auth/VerifyEmailPanel.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/email/EmailAttachment.d.ts.map +1 -1
- package/dist/v2/shadcn/_reference/shared/ConfirmationDialog.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/v2/components/AvatarUpload/AvatarUpload.tsx +5 -3
- package/src/v2/components/Customer/CustomersList.scss +8 -9
- package/src/v2/components/IconButton/IconButton.scss +9 -9
- package/src/v2/components/Modal/DeleteModal.tsx +5 -3
- package/src/v2/components/StatusBadge/StatusBadge.tsx +23 -18
- package/src/v2/components/TableControls/TableControls.tsx +5 -3
- package/src/v2/components/UserPanel/UserPanel.tsx +9 -5
- package/src/v2/dashboard-analytics/blog-posts/Blog.tsx +6 -4
- package/src/v2/dashboard-analytics/chart/Chart.scss +2 -2
- package/src/v2/dashboard-analytics/dashboard/Dashboard.tsx +19 -16
- package/src/v2/icons/index.tsx +15 -0
- package/src/v2/navigation/DashboardLayout/DashboardFooter.tsx +4 -2
- package/src/v2/navigation/SidebarUserElement/SidebarUserElement.tsx +5 -3
- package/src/v2/pages/RoleSelection/RoleSelectionPage.tsx +10 -8
- package/src/v2/pages/UserDetails/UserDetailsPage.tsx +16 -14
- package/src/v2/pages/auth/AuthLayout/AuthLayout.tsx +4 -2
- package/src/v2/shadcn/_reference/auth/CreatePasswordForm.tsx +9 -9
- package/src/v2/shadcn/_reference/auth/CreatePasswordPanel.tsx +5 -3
- package/src/v2/shadcn/_reference/auth/LoginForm.tsx +21 -17
- package/src/v2/shadcn/_reference/auth/LoginPanel.tsx +6 -4
- package/src/v2/shadcn/_reference/auth/ResetPasswordForm.tsx +14 -12
- package/src/v2/shadcn/_reference/auth/ResetPasswordPanel.tsx +5 -3
- package/src/v2/shadcn/_reference/auth/VerifyEmailForm.tsx +8 -6
- package/src/v2/shadcn/_reference/auth/VerifyEmailPanel.tsx +5 -3
- package/src/v2/shadcn/_reference/email/EmailAttachment.tsx +5 -3
- package/src/v2/shadcn/_reference/shared/ConfirmationDialog.tsx +13 -11
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
3
4
|
import './DashboardFooter.scss.js';
|
|
4
5
|
|
|
5
6
|
var DashboardFooter = function(param) {
|
|
6
7
|
var version = param.version;
|
|
8
|
+
var t = useTranslation([
|
|
9
|
+
'Design'
|
|
10
|
+
]).t;
|
|
7
11
|
var currentYear = new Date().getFullYear();
|
|
8
12
|
return /*#__PURE__*/ jsx("footer", {
|
|
9
13
|
className: "dashboard-footer",
|
|
@@ -13,18 +17,17 @@ var DashboardFooter = function(param) {
|
|
|
13
17
|
/*#__PURE__*/ jsxs("div", {
|
|
14
18
|
className: "dashboard-footer__version",
|
|
15
19
|
children: [
|
|
16
|
-
|
|
20
|
+
t('versionLabel'),
|
|
17
21
|
/*#__PURE__*/ jsx("span", {
|
|
18
22
|
children: version
|
|
19
23
|
})
|
|
20
24
|
]
|
|
21
25
|
}),
|
|
22
|
-
/*#__PURE__*/
|
|
26
|
+
/*#__PURE__*/ jsx("div", {
|
|
23
27
|
className: "dashboard-footer__copyright",
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
]
|
|
28
|
+
children: t('copyright', {
|
|
29
|
+
year: currentYear
|
|
30
|
+
})
|
|
28
31
|
})
|
|
29
32
|
]
|
|
30
33
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarUserElement.d.ts","sourceRoot":"","sources":["../../../../src/v2/navigation/SidebarUserElement/SidebarUserElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"SidebarUserElement.d.ts","sourceRoot":"","sources":["../../../../src/v2/navigation/SidebarUserElement/SidebarUserElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,2BAA2B,CAAA;AAyBlC,MAAM,WAAW,uBAAuB;IACpC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA2EhE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSelectionPage.d.ts","sourceRoot":"","sources":["../../../../src/v2/pages/RoleSelection/RoleSelectionPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"RoleSelectionPage.d.ts","sourceRoot":"","sources":["../../../../src/v2/pages/RoleSelection/RoleSelectionPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,OAAO,0BAA0B,CAAA;AAIjC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iDAAiD;IACjD,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA8F9D,CAAA"}
|
|
@@ -12,6 +12,7 @@ import '../../../components/NewTable/NewTable.scss.js';
|
|
|
12
12
|
import '../../../components/ActionMenu/ActionMenu.scss.js';
|
|
13
13
|
import '../../../shadcn/components/ui/checkbox.js';
|
|
14
14
|
import '../../../components/DataTable/DataTable.scss.js';
|
|
15
|
+
import 'react-i18next';
|
|
15
16
|
import '../../../components/TableControls/TableControls.scss.js';
|
|
16
17
|
import '../../../components/EmptyState/EmptyState.scss.js';
|
|
17
18
|
import '../../../components/Tabs/Tabs.scss.js';
|
|
@@ -9,6 +9,7 @@ import '../../../components/NewTable/NewTable.scss.js';
|
|
|
9
9
|
import '../../../components/ActionMenu/ActionMenu.scss.js';
|
|
10
10
|
import '../../../shadcn/components/ui/checkbox.js';
|
|
11
11
|
import '../../../components/DataTable/DataTable.scss.js';
|
|
12
|
+
import 'react-i18next';
|
|
12
13
|
import '../../../components/TableControls/TableControls.scss.js';
|
|
13
14
|
import '../../../components/EmptyState/EmptyState.scss.js';
|
|
14
15
|
import '../../../components/Tabs/Tabs.scss.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserDetailsPage.d.ts","sourceRoot":"","sources":["../../../../src/v2/pages/UserDetails/UserDetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"UserDetailsPage.d.ts","sourceRoot":"","sources":["../../../../src/v2/pages/UserDetails/UserDetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,wBAAwB,CAAA;AAI/B,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,2DAA2D;IAC3D,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,8IAA8I;IAC9I,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAeD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwJ1D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthLayout.d.ts","sourceRoot":"","sources":["../../../../../src/v2/pages/auth/AuthLayout/AuthLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"AuthLayout.d.ts","sourceRoot":"","sources":["../../../../../src/v2/pages/auth/AuthLayout/AuthLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,mBAAmB,CAAA;AAM1B,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2ChD,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
3
4
|
import './AuthLayout.scss.js';
|
|
4
5
|
import { DashboardFooter } from '../../../navigation/DashboardLayout/DashboardFooter.js';
|
|
5
6
|
import { AuthBgDecorationIcon, BookedLogo } from '../../../icons/index.js';
|
|
@@ -54,6 +55,9 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
54
55
|
}
|
|
55
56
|
var AuthLayout = function(param) {
|
|
56
57
|
var badgeLabel = param.badgeLabel, icon = param.icon, title = param.title, subtitle = param.subtitle, children = param.children, version = param.version, error = param.error, successMessage = param.successMessage;
|
|
58
|
+
var t = useTranslation([
|
|
59
|
+
'Design'
|
|
60
|
+
]).t;
|
|
57
61
|
var _useState = _sliced_to_array(useState(false), 2), dismissed = _useState[0], setDismissed = _useState[1];
|
|
58
62
|
useEffect(function() {
|
|
59
63
|
setDismissed(false);
|
|
@@ -69,7 +73,7 @@ var AuthLayout = function(param) {
|
|
|
69
73
|
/*#__PURE__*/ jsx(AuthBgDecorationIcon, {}),
|
|
70
74
|
showError && /*#__PURE__*/ jsx(Alert, {
|
|
71
75
|
variant: "error",
|
|
72
|
-
title:
|
|
76
|
+
title: t('errorTitle'),
|
|
73
77
|
message: error,
|
|
74
78
|
className: "auth-layout__alert",
|
|
75
79
|
onDismiss: function() {
|
|
@@ -78,7 +82,7 @@ var AuthLayout = function(param) {
|
|
|
78
82
|
}),
|
|
79
83
|
showSuccess && /*#__PURE__*/ jsx(Alert, {
|
|
80
84
|
variant: "success",
|
|
81
|
-
title:
|
|
85
|
+
title: t('successTitle'),
|
|
82
86
|
message: successMessage,
|
|
83
87
|
className: "auth-layout__alert",
|
|
84
88
|
onDismiss: function() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatePasswordPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/CreatePasswordPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CreatePasswordPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/CreatePasswordPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAcvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EA0L7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/LoginPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/LoginPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAgC9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/ResetPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetPasswordForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/ResetPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EA4FrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/ResetPasswordPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetPasswordPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/ResetPasswordPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EActC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyEmailForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/VerifyEmailForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VerifyEmailForm.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/VerifyEmailForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAsFnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyEmailPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/VerifyEmailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"VerifyEmailPanel.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/auth/VerifyEmailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAcpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/email/EmailAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EmailAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/email/EmailAttachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,UAAU,oBAAoB;IAC5B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAC3C;AAQD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8FnD,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/shared/ConfirmationDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/_reference/shared/ConfirmationDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,UAAU,uBAAuB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAuGzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-dev.
|
|
3
|
+
"version": "0.78.5-dev.94",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/bookedit-licklist/licklist_design.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.36.1-dev.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.43",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
47
|
"@licklist/plugins": "0.36.4-dev.15",
|
|
48
48
|
"clsx": "2.1.1",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useRef } from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import './AvatarUpload.scss'
|
|
3
4
|
import { UploadIcon } from '../../icons'
|
|
4
5
|
|
|
@@ -19,6 +20,7 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
19
20
|
description,
|
|
20
21
|
className = '',
|
|
21
22
|
}) => {
|
|
23
|
+
const { t } = useTranslation(['Design'])
|
|
22
24
|
const inputRef = useRef<HTMLInputElement>(null)
|
|
23
25
|
|
|
24
26
|
const handleCircleClick = () => {
|
|
@@ -41,7 +43,7 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
41
43
|
onClick={handleCircleClick}
|
|
42
44
|
>
|
|
43
45
|
{preview ? (
|
|
44
|
-
<img className="avatar-upload__image" src={preview} alt=
|
|
46
|
+
<img className="avatar-upload__image" src={preview} alt={t('avatarPreview')} />
|
|
45
47
|
) : (
|
|
46
48
|
<span className="avatar-upload__upload-icon">
|
|
47
49
|
<UploadIcon />
|
|
@@ -62,11 +64,11 @@ export const AvatarUpload: React.FC<AvatarUploadProps> = ({
|
|
|
62
64
|
{description && <span className="avatar-upload__description">{description}</span>}
|
|
63
65
|
{preview ? (
|
|
64
66
|
<button type="button" className="avatar-upload__remove" onClick={onDelete}>
|
|
65
|
-
|
|
67
|
+
{t('remove')}
|
|
66
68
|
</button>
|
|
67
69
|
) : (
|
|
68
70
|
<button type="button" className="avatar-upload__upload-btn" onClick={handleCircleClick}>
|
|
69
|
-
|
|
71
|
+
{t('upload')}
|
|
70
72
|
</button>
|
|
71
73
|
)}
|
|
72
74
|
</div>
|
|
@@ -458,12 +458,11 @@
|
|
|
458
458
|
overflow-x: auto;
|
|
459
459
|
-webkit-overflow-scrolling: touch;
|
|
460
460
|
padding: 0;
|
|
461
|
+
scrollbar-width: none;
|
|
461
462
|
|
|
462
463
|
&::-webkit-scrollbar {
|
|
463
464
|
display: none;
|
|
464
465
|
}
|
|
465
|
-
|
|
466
|
-
scrollbar-width: none;
|
|
467
466
|
}
|
|
468
467
|
|
|
469
468
|
&__tab {
|
|
@@ -608,13 +607,6 @@
|
|
|
608
607
|
"next last"
|
|
609
608
|
"divider divider"
|
|
610
609
|
"status actions";
|
|
611
|
-
|
|
612
|
-
:is(.waivers-page--compact) & {
|
|
613
|
-
grid-template-areas:
|
|
614
|
-
"customer customer"
|
|
615
|
-
"divider divider"
|
|
616
|
-
"status actions";
|
|
617
|
-
}
|
|
618
610
|
border: 1px solid var(--border-primary, #E8E9EF);
|
|
619
611
|
border-radius: 12px;
|
|
620
612
|
margin-bottom: 16px;
|
|
@@ -624,6 +616,13 @@
|
|
|
624
616
|
position: relative;
|
|
625
617
|
overflow: visible;
|
|
626
618
|
|
|
619
|
+
:is(.waivers-page--compact) & {
|
|
620
|
+
grid-template-areas:
|
|
621
|
+
"customer customer"
|
|
622
|
+
"divider divider"
|
|
623
|
+
"status actions";
|
|
624
|
+
}
|
|
625
|
+
|
|
627
626
|
&::after {
|
|
628
627
|
content: "";
|
|
629
628
|
grid-area: divider;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
gap: var(--spacing-sm, 8px);
|
|
6
6
|
padding: 0 16px 0 12px;
|
|
7
7
|
height: 36px;
|
|
8
|
-
background:
|
|
9
|
-
border:
|
|
8
|
+
background: var(--surface-action-soft);
|
|
9
|
+
border: none;
|
|
10
10
|
border-radius: 8px;
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
transition: all 0.2s ease;
|
|
@@ -18,33 +18,33 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&:hover {
|
|
21
|
-
background: var(--surface-
|
|
22
|
-
color: var(--label-primary);
|
|
21
|
+
background: var(--surface-action-soft-hover, color-mix(in srgb, var(--surface-action-soft) 85%, var(--label-action)));
|
|
23
22
|
|
|
24
23
|
.icon-button__icon {
|
|
25
|
-
color: var(--label-
|
|
24
|
+
color: var(--label-action);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.icon-button__label {
|
|
29
|
-
color: var(--label-
|
|
28
|
+
color: var(--label-action);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
&:active {
|
|
34
|
-
background: var(--surface-
|
|
33
|
+
background: var(--surface-action-soft);
|
|
34
|
+
opacity: 0.8;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&__icon {
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
|
-
color: var(--label-
|
|
40
|
+
color: var(--label-action);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&__label {
|
|
44
44
|
font-size: 13px;
|
|
45
45
|
font-weight: 500;
|
|
46
46
|
line-height: 16px;
|
|
47
|
-
color: var(--label-
|
|
47
|
+
color: var(--label-action);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import {
|
|
3
4
|
Dialog,
|
|
4
5
|
DialogContent,
|
|
@@ -33,6 +34,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
33
34
|
confirmationPlaceholder,
|
|
34
35
|
isDeleting = false,
|
|
35
36
|
}) => {
|
|
37
|
+
const { t } = useTranslation(['Design'])
|
|
36
38
|
const [inputValue, setInputValue] = useState('')
|
|
37
39
|
|
|
38
40
|
useEffect(() => {
|
|
@@ -70,7 +72,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
70
72
|
|
|
71
73
|
<div className="delete-modal__confirmation">
|
|
72
74
|
<p className="delete-modal__label">
|
|
73
|
-
|
|
75
|
+
{t('typeWord')} <strong>{confirmationText}</strong> {t('toConfirmDeletion')}
|
|
74
76
|
</p>
|
|
75
77
|
<NewInput
|
|
76
78
|
type="text"
|
|
@@ -89,7 +91,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
89
91
|
onClick={handleConfirm}
|
|
90
92
|
disabled={isConfirmDisabled}
|
|
91
93
|
>
|
|
92
|
-
{isDeleting ? '
|
|
94
|
+
{isDeleting ? t('deleting') : t('delete')}
|
|
93
95
|
</button>
|
|
94
96
|
<button
|
|
95
97
|
type="button"
|
|
@@ -97,7 +99,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
97
99
|
onClick={onClose}
|
|
98
100
|
disabled={isDeleting}
|
|
99
101
|
>
|
|
100
|
-
|
|
102
|
+
{t('cancel')}
|
|
101
103
|
</button>
|
|
102
104
|
</DialogFooter>
|
|
103
105
|
</DialogContent>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import './StatusBadge.scss'
|
|
3
4
|
|
|
4
5
|
export type StatusBadgeStatus =
|
|
@@ -19,22 +20,26 @@ export interface StatusBadgeProps {
|
|
|
19
20
|
label?: string
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
export const StatusBadge: React.FC<StatusBadgeProps> = ({ status, label }) => {
|
|
24
|
+
const { t } = useTranslation(['Design'])
|
|
25
|
+
|
|
26
|
+
const STATUS_LABELS: Record<StatusBadgeStatus, string> = {
|
|
27
|
+
active: t('statusActive'),
|
|
28
|
+
disabled: t('statusDisabled'),
|
|
29
|
+
suspended: t('statusSuspended'),
|
|
30
|
+
invited: t('statusInvited'),
|
|
31
|
+
imported: t('statusImported'),
|
|
32
|
+
inactive: t('statusInactive'),
|
|
33
|
+
expired: t('statusExpired'),
|
|
34
|
+
success: t('statusSuccess'),
|
|
35
|
+
warning: t('statusWarning'),
|
|
36
|
+
error: t('statusError'),
|
|
37
|
+
default: '',
|
|
38
|
+
}
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)
|
|
40
|
+
return (
|
|
41
|
+
<span className={`status-badge status-badge--${status}`}>
|
|
42
|
+
{label ?? STATUS_LABELS[status]}
|
|
43
|
+
</span>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import { Button } from '../Button'
|
|
3
4
|
import { QuickFilter } from '../QuickFilter'
|
|
4
5
|
import type { QuickFilterOption } from '../QuickFilter'
|
|
@@ -40,8 +41,9 @@ export const TableControls: React.FC<TableControlsProps> = ({
|
|
|
40
41
|
searchConfig,
|
|
41
42
|
filters,
|
|
42
43
|
actions,
|
|
43
|
-
filterLabel
|
|
44
|
+
filterLabel,
|
|
44
45
|
}) => {
|
|
46
|
+
const { t } = useTranslation(['Design'])
|
|
45
47
|
const filterOptions: QuickFilterOption[] = (filters ?? []).map((f) => ({
|
|
46
48
|
label: f.label,
|
|
47
49
|
value: f.value,
|
|
@@ -73,7 +75,7 @@ export const TableControls: React.FC<TableControlsProps> = ({
|
|
|
73
75
|
<input
|
|
74
76
|
className="table-controls__search"
|
|
75
77
|
type="text"
|
|
76
|
-
placeholder={searchConfig.placeholder ?? '
|
|
78
|
+
placeholder={searchConfig.placeholder ?? t('searchPlaceholder')}
|
|
77
79
|
value={searchConfig.value}
|
|
78
80
|
onChange={(e) => searchConfig.onChange(e.target.value)}
|
|
79
81
|
/>
|
|
@@ -99,7 +101,7 @@ export const TableControls: React.FC<TableControlsProps> = ({
|
|
|
99
101
|
{/* ── Quick filters row ── */}
|
|
100
102
|
{filterOptions.length > 0 && (
|
|
101
103
|
<QuickFilter
|
|
102
|
-
label={filterLabel}
|
|
104
|
+
label={filterLabel ?? t('quickFilters')}
|
|
103
105
|
options={filterOptions}
|
|
104
106
|
selectedValues={selectedFilterValues}
|
|
105
107
|
onChange={handleFilterChange}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import { useTranslation } from 'react-i18next'
|
|
2
3
|
import './UserPanel.scss'
|
|
3
4
|
import { UserAvatar } from '../UserAvatar'
|
|
4
5
|
|
|
@@ -48,6 +49,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
48
49
|
onProfileClick,
|
|
49
50
|
onLogoutClick,
|
|
50
51
|
}) => {
|
|
52
|
+
const { t } = useTranslation(['Design'])
|
|
51
53
|
const displayFirstName = firstName || userName?.split(' ')[0] || 'User'
|
|
52
54
|
const displayInitials = initials || userName?.split(' ').map(n => n[0]).join('').toUpperCase().slice(0, 2) || 'U'
|
|
53
55
|
|
|
@@ -75,7 +77,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
75
77
|
size="md"
|
|
76
78
|
/>
|
|
77
79
|
<div className="user-panel__user-details">
|
|
78
|
-
<h2 className="user-panel__greeting">
|
|
80
|
+
<h2 className="user-panel__greeting">{t('greetingHey', { name: displayFirstName })}</h2>
|
|
79
81
|
{email && (
|
|
80
82
|
<span className="user-panel__email">{email}</span>
|
|
81
83
|
)}
|
|
@@ -84,7 +86,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
84
86
|
<button
|
|
85
87
|
onClick={onClose}
|
|
86
88
|
className="user-panel__close-btn"
|
|
87
|
-
aria-label=
|
|
89
|
+
aria-label={t('closeUserMenu')}
|
|
88
90
|
>
|
|
89
91
|
<CloseIcon />
|
|
90
92
|
</button>
|
|
@@ -97,7 +99,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
97
99
|
className="user-panel__menu-item"
|
|
98
100
|
>
|
|
99
101
|
<UserIcon />
|
|
100
|
-
<span>
|
|
102
|
+
<span>{t('profile')}</span>
|
|
101
103
|
</button>
|
|
102
104
|
</div>
|
|
103
105
|
|
|
@@ -108,7 +110,7 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
108
110
|
className="user-panel__menu-item"
|
|
109
111
|
>
|
|
110
112
|
<LogoutIcon />
|
|
111
|
-
<span>
|
|
113
|
+
<span>{t('logOutLower')}</span>
|
|
112
114
|
</button>
|
|
113
115
|
</div>
|
|
114
116
|
|
|
@@ -116,7 +118,9 @@ export const UserPanel: React.FC<UserPanelProps> = ({
|
|
|
116
118
|
<div className="user-panel__footer">
|
|
117
119
|
<div className="user-panel__user-badge">
|
|
118
120
|
<span>
|
|
119
|
-
|
|
121
|
+
{userRole
|
|
122
|
+
? t('userLabelWithRole', { id: userNumber ? String(userNumber).padStart(2, '0') : 'N/A', role: userRole })
|
|
123
|
+
: t('userLabel', { id: userNumber ? String(userNumber).padStart(2, '0') : 'N/A' })}
|
|
120
124
|
</span>
|
|
121
125
|
</div>
|
|
122
126
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
2
3
|
import './Blog.scss';
|
|
3
4
|
|
|
4
5
|
interface BlogPost {
|
|
@@ -49,15 +50,16 @@ const ExternalLinkIcon = () => (
|
|
|
49
50
|
</svg>
|
|
50
51
|
);
|
|
51
52
|
|
|
52
|
-
export const Blog: React.FC<BlogProps> = ({
|
|
53
|
-
posts = defaultPosts,
|
|
53
|
+
export const Blog: React.FC<BlogProps> = ({
|
|
54
|
+
posts = defaultPosts,
|
|
54
55
|
logoUrl = 'https://api.builder.io/api/v1/image/assets/TEMP/1f8a6c2f7239cf2c859ace81bb32160a5d376121?placeholderIfAbsent=true',
|
|
55
56
|
className = ''
|
|
56
57
|
}) => {
|
|
58
|
+
const { t } = useTranslation(['Design']);
|
|
57
59
|
return (
|
|
58
60
|
<div className={`blog ${className}`}>
|
|
59
61
|
<div className="blog__header">
|
|
60
|
-
<h2 className="blog__title">
|
|
62
|
+
<h2 className="blog__title">{t('latestUpdates')}</h2>
|
|
61
63
|
<img
|
|
62
64
|
src={logoUrl}
|
|
63
65
|
alt="Logo"
|
|
@@ -76,7 +78,7 @@ export const Blog: React.FC<BlogProps> = ({
|
|
|
76
78
|
rel="noopener noreferrer"
|
|
77
79
|
className="blog__post-link"
|
|
78
80
|
>
|
|
79
|
-
|
|
81
|
+
{t('readMore')}
|
|
80
82
|
<span className="blog__post-link-icon">
|
|
81
83
|
<ExternalLinkIcon />
|
|
82
84
|
</span>
|