@licklist/design 0.78.41 → 0.78.44
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/.yarnrc.yml +5 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/v2/components/InputCheckbox/InputCheckbox.scss.js +1 -1
- package/dist/v2/components/NewTabs/NewTabs.scss.js +1 -1
- package/dist/v2/components/Tooltip/Tooltip.d.ts +0 -1
- package/dist/v2/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/v2/components/ZoneCard/ZoneCard.scss.js +1 -1
- package/dist/v2/components/index.d.ts +1 -1
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/blog-posts/index.d.ts +1 -1
- package/dist/v2/dashboard-analytics/blog-posts/index.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/chart/Chart.d.ts.map +1 -1
- package/dist/v2/dashboard-analytics/chart/Chart.js +3 -2
- package/dist/v2/icons/index.d.ts +4 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +47 -1
- package/dist/v2/navigation/DashboardLayout/DashboardLayout.js +1 -1
- package/dist/v2/navigation/DashboardLayout/TopNavigation.d.ts.map +1 -1
- package/dist/v2/navigation/FigmasSideBar/FigmasSideBar.d.ts.map +1 -1
- package/dist/v2/navigation/config.d.ts.map +1 -1
- package/dist/v2/styles/common.scss +7 -0
- package/dist/v2/styles/components/Button.scss +199 -0
- package/dist/v2/styles/form/Layout.scss +15 -0
- package/dist/v2/styles/form/NewInput.scss +271 -0
- package/dist/v2/styles/form/NewInput.scss.js +1 -1
- package/dist/v2/styles/index.scss +6 -0
- package/dist/v2/styles/navigation/Navigation.scss +17 -0
- package/dist/v2/styles/navigation/NavigationItem.scss +86 -0
- package/dist/v2/styles/navigation/NavigationSection.scss +26 -0
- package/dist/v2/styles/navigation/_index.scss +9 -0
- package/dist/v2/styles/tokens/_colors.scss +562 -0
- package/dist/v2/styles/tokens/_sizes.scss +125 -0
- package/dist/v2/styles/tokens/_status.scss +108 -0
- package/dist/v2/styles/tokens/_typography.scss +146 -0
- package/dist/v2/types/navigation.d.ts +2 -0
- package/dist/v2/types/navigation.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedGrid.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.d.ts.map +1 -1
- package/dist/virtualized/components/VirtualizedWindowScroller.js +3 -2
- package/package.json +3 -3
- package/rollup.config.js +6 -0
- package/src/index.ts +1 -2
- package/src/static/date-range-input/DateRangeInput.tsx +1 -0
- package/src/v2/components/InputCheckbox/InputCheckbox.scss +3 -3
- package/src/v2/components/NPSScore/NPSScore.tsx +2 -2
- package/src/v2/components/NewTabs/NewTabs.scss +1 -1
- package/src/v2/components/Tooltip/Tooltip.tsx +1 -2
- package/src/v2/components/ZoneCard/ZoneCard.scss +78 -0
- package/src/v2/components/index.ts +1 -0
- package/src/v2/dashboard-analytics/blog-posts/index.ts +1 -1
- package/src/v2/dashboard-analytics/chart/Chart.tsx +36 -31
- package/src/v2/dashboard-analytics/dashboard/Dashboard.tsx +1 -1
- package/src/v2/icons/index.tsx +10 -0
- package/src/v2/navigation/DashboardLayout/DashboardLayout.tsx +1 -1
- package/src/v2/navigation/DashboardLayout/TopNavigation.tsx +9 -6
- package/src/v2/navigation/FigmasAdminSideBar/FigmasAdminSideBar.tsx +1 -1
- package/src/v2/navigation/FigmasSideBar/FigmasSideBar.tsx +6 -4
- package/src/v2/navigation/config.tsx +0 -1
- package/src/v2/pages/SettingsSubPage/SettingsSubPage.scss +43 -0
- package/src/v2/styles/form/NewInput.scss +12 -0
- package/src/v2/types/navigation.ts +3 -0
- package/src/virtualized/components/VirtualizedGrid.tsx +1 -0
- package/src/virtualized/components/VirtualizedWindowScroller.tsx +1 -0
- package/tsconfig.build.tsbuildinfo +1 -0
|
@@ -43,7 +43,8 @@ const SidebarCollapsedIcon = () => (
|
|
|
43
43
|
<path d="M29 10C30.6569 10 32 11.3431 32 13V27C32 28.6569 30.6569 30 29 30H11C9.34315 30 8 28.6569 8 27V13C8 11.3431 9.34315 10 11 10H29ZM14 28H29C29.5523 28 30 27.5523 30 27V13C30 12.4477 29.5523 12 29 12H14V28ZM11 12C10.4477 12 10 12.4477 10 13V27C10 27.5523 10.4477 28 11 28H12V12H11Z" fill="var(--fills-main-fill-secondary, #626A90)"/>
|
|
44
44
|
</svg>
|
|
45
45
|
)
|
|
46
|
-
|
|
46
|
+
// @ts-ignore kept for future use
|
|
47
|
+
const _InboxIcon = ({ active, hovered }: { active?: boolean; hovered?: boolean }) => (
|
|
47
48
|
<svg width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
48
49
|
{(hovered && !active) && (
|
|
49
50
|
<path d="M11 10H21L22.5 18H19L18 20L16 20.5L14 20L13 18H9.5L11 10Z" fill="var(--fills-main-fill-secondary, #626A90)" fillOpacity="0.3"/>
|
|
@@ -54,7 +55,8 @@ const InboxIcon = ({ active, hovered }: { active?: boolean; hovered?: boolean })
|
|
|
54
55
|
<path d="M8.02381 7.78307C8.12549 7.32553 8.5313 7 9 7H23C23.4687 7 23.8745 7.32553 23.9762 7.78307L25.9762 16.7831C25.992 16.8543 26 16.927 26 17V24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24V17C6 16.927 6.00799 16.8543 6.02381 16.7831L8.02381 7.78307ZM9.80217 9L8.24662 16H13C13 17.6569 14.3431 19 16 19C17.6569 19 19 17.6569 19 16H23.7534L22.1978 9H9.80217ZM20.584 18C19.8124 19.7659 18.0503 21 16 21C13.9497 21 12.1876 19.7659 11.416 18H8V23H24V18H20.584Z" fill={active ? 'white' : 'var(--fills-main-fill-secondary, #626A90)'}/>
|
|
55
56
|
</svg>
|
|
56
57
|
)
|
|
57
|
-
|
|
58
|
+
// @ts-ignore kept for future use
|
|
59
|
+
const _NotificationIcon = ({ active, hovered }: { active?: boolean; hovered?: boolean }) => {
|
|
58
60
|
if (active) {
|
|
59
61
|
return (
|
|
60
62
|
<svg width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
@@ -135,10 +137,10 @@ export const TopNavigation: React.FC<TopNavigationProps> = ({
|
|
|
135
137
|
userAvatarUrl,
|
|
136
138
|
userId,
|
|
137
139
|
userRole,
|
|
138
|
-
inboxCount = 0,
|
|
139
|
-
notificationCount = 0,
|
|
140
|
+
inboxCount: _inboxCount = 0,
|
|
141
|
+
notificationCount: _notificationCount = 0,
|
|
140
142
|
onUserClick,
|
|
141
|
-
onInboxClick,
|
|
143
|
+
onInboxClick: _onInboxClick,
|
|
142
144
|
onNotificationClick,
|
|
143
145
|
onHelpClick,
|
|
144
146
|
onProfileClick,
|
|
@@ -153,7 +155,8 @@ export const TopNavigation: React.FC<TopNavigationProps> = ({
|
|
|
153
155
|
const handleUserClick = () => {
|
|
154
156
|
onUserClick?.()
|
|
155
157
|
}
|
|
156
|
-
|
|
158
|
+
// @ts-ignore kept for future use
|
|
159
|
+
const _handleNotificationClick = () => {
|
|
157
160
|
setIsNotificationActive(!isNotificationActive)
|
|
158
161
|
onNotificationClick?.()
|
|
159
162
|
}
|
|
@@ -26,18 +26,20 @@ export const FigmasSideBar: React.FC<FigmasSideBarProps> = ({
|
|
|
26
26
|
venueName = "Sharky's Soft Play",
|
|
27
27
|
venueId = "123",
|
|
28
28
|
venueImage,
|
|
29
|
-
onToggle,
|
|
29
|
+
onToggle: _onToggle,
|
|
30
30
|
navigationItems,
|
|
31
|
-
onNavigation,
|
|
31
|
+
onNavigation: _onNavigation,
|
|
32
32
|
activePath,
|
|
33
33
|
authCredentials,
|
|
34
34
|
}) => {
|
|
35
35
|
// Filter navigation items based on auth if provided
|
|
36
|
-
|
|
36
|
+
// @ts-ignore kept for future use
|
|
37
|
+
const _accessibleItems = authCredentials && navigationItems
|
|
37
38
|
? navigationItems.filter(item => useCanAccess(authCredentials, item))
|
|
38
39
|
: navigationItems || []
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
// @ts-ignore kept for future use
|
|
42
|
+
const _isActive = (path: string) => activePath === path
|
|
41
43
|
const icon = (
|
|
42
44
|
<div className="figmas-sidebar__icon">
|
|
43
45
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.settings-sub-page {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-self: stretch;
|
|
5
|
+
|
|
6
|
+
&__back {
|
|
7
|
+
padding: 24px 32px 0 0;
|
|
8
|
+
align-self: flex-start;
|
|
9
|
+
|
|
10
|
+
.ghost-button {
|
|
11
|
+
color: var(--fill-action, #5D5BF4);
|
|
12
|
+
border-color: var(--borders-main-border-primary, #E8E9EF);
|
|
13
|
+
|
|
14
|
+
&:not(.active):hover:not(:disabled) {
|
|
15
|
+
background-color: var(--surface-action-soft, #F4F4FE);
|
|
16
|
+
color: var(--fill-action, #5D5BF4);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ghost-button__icon svg {
|
|
20
|
+
width: 24px;
|
|
21
|
+
height: 24px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (max-width: 768px) {
|
|
26
|
+
padding: 16px 16px 0 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__content {
|
|
31
|
+
padding: 24px 0;
|
|
32
|
+
|
|
33
|
+
@media (max-width: 768px) {
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__action {
|
|
39
|
+
margin-bottom: 16px;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
&__input {
|
|
36
36
|
@include typography('text.regular');
|
|
37
37
|
flex: 1 0 0;
|
|
38
|
+
color: var(--label-primary, #121e52);
|
|
38
39
|
background-color: var(--surfaces-main-background-secondary);
|
|
39
40
|
border: 2px solid var(--border-primary);
|
|
40
41
|
border-radius: var(--radius-md);
|
|
@@ -57,6 +58,17 @@
|
|
|
57
58
|
&::placeholder {
|
|
58
59
|
color: var(--labels-main-label-secondary, #626a90);
|
|
59
60
|
}
|
|
61
|
+
|
|
62
|
+
&[type="date"]::-webkit-datetime-edit-text,
|
|
63
|
+
&[type="date"]::-webkit-datetime-edit-month-field,
|
|
64
|
+
&[type="date"]::-webkit-datetime-edit-day-field,
|
|
65
|
+
&[type="date"]::-webkit-datetime-edit-year-field,
|
|
66
|
+
&[type="time"]::-webkit-datetime-edit-text,
|
|
67
|
+
&[type="time"]::-webkit-datetime-edit-hour-field,
|
|
68
|
+
&[type="time"]::-webkit-datetime-edit-minute-field,
|
|
69
|
+
&[type="time"]::-webkit-datetime-edit-ampm-field {
|
|
70
|
+
color: var(--label-primary, #121e52);
|
|
71
|
+
}
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
&__textarea {
|