@licklist/design 0.78.5-dev.62 → 0.78.5-dev.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/provider/location-input/LocationInput.js +1 -1
- package/dist/v2/components/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/v2/components/ActionMenu/ActionMenu.js +6 -16
- package/dist/v2/components/ActionMenu/ActionMenu.scss.js +1 -1
- package/dist/v2/components/Badge/Badge.scss.js +1 -1
- package/dist/v2/components/FormField/FormField.scss.js +1 -1
- package/dist/v2/components/NewPageHeader/NewPageHeader.scss.js +1 -1
- package/dist/v2/components/QuickFilter/QuickFilter.scss.js +1 -1
- package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts.map +1 -1
- package/dist/v2/components/TableSortIcon/TableSortIcon.js +5 -3
- package/dist/v2/components/ZoneCard/ResourceRow.d.ts +11 -0
- package/dist/v2/components/ZoneCard/ResourceRow.d.ts.map +1 -1
- package/dist/v2/components/ZoneCard/ResourceRow.js +61 -9
- package/dist/v2/components/ZoneCard/ZoneCard.d.ts +0 -1
- package/dist/v2/components/ZoneCard/ZoneCard.d.ts.map +1 -1
- package/dist/v2/components/ZoneCard/ZoneCard.js +1 -2
- package/dist/v2/components/ZoneCard/ZoneCard.scss.js +1 -1
- package/dist/v2/components/ZoneCard/ZoneHeader.d.ts +6 -1
- package/dist/v2/components/ZoneCard/ZoneHeader.d.ts.map +1 -1
- package/dist/v2/components/ZoneCard/ZoneHeader.js +30 -13
- package/dist/v2/components/ZoneCard/index.d.ts +1 -1
- package/dist/v2/components/ZoneCard/index.d.ts.map +1 -1
- package/dist/v2/components/index.d.ts +1 -1
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/icons/index.d.ts +10 -2
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +41 -29
- package/dist/v2/index.d.ts +1 -1
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.d.ts.map +1 -1
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.js +20 -16
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.scss.js +1 -1
- package/package.json +3 -3
- package/src/provider/location-input/LocationInput.tsx +1 -1
- package/src/v2/components/ActionMenu/ActionMenu.scss +7 -20
- package/src/v2/components/ActionMenu/ActionMenu.tsx +2 -5
- package/src/v2/components/Badge/Badge.scss +25 -23
- package/src/v2/components/Customer/CustomersList.scss +60 -9
- package/src/v2/components/FormField/FormField.scss +1 -1
- package/src/v2/components/NewPageHeader/NewPageHeader.scss +1 -5
- package/src/v2/components/QuickFilter/QuickFilter.scss +14 -3
- package/src/v2/components/TableSortIcon/TableSortIcon.tsx +3 -5
- package/src/v2/components/ZoneCard/ResourceRow.tsx +56 -9
- package/src/v2/components/ZoneCard/ZoneCard.scss +74 -10
- package/src/v2/components/ZoneCard/ZoneCard.stories.tsx +2 -5
- package/src/v2/components/ZoneCard/ZoneCard.tsx +0 -3
- package/src/v2/components/ZoneCard/ZoneHeader.tsx +34 -11
- package/src/v2/components/ZoneCard/index.ts +1 -1
- package/src/v2/components/index.ts +2 -0
- package/src/v2/icons/index.tsx +24 -14
- package/src/v2/index.ts +1 -1
- package/src/v2/pages/ZonesResources/ZonesResourcesPage.scss +25 -0
- package/src/v2/pages/ZonesResources/ZonesResourcesPage.tsx +10 -7
package/src/v2/icons/index.tsx
CHANGED
|
@@ -114,7 +114,7 @@ export const CalendarSmallIcon = () => (
|
|
|
114
114
|
|
|
115
115
|
export const SearchIcon = () => (
|
|
116
116
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 22 22" fill="none">
|
|
117
|
-
<path d="M14.6593 13.7979L17.2683 16.4068L16.4068 17.2684L13.7978 14.6594C12.8597 15.4099 11.67 15.8589 10.3761 15.8589C7.34958 15.8589 4.89331 13.4026 4.89331 10.3761C4.89331 7.34965 7.34958 4.89337 10.3761 4.89337C13.4025 4.89337 15.8588 7.34965 15.8588 10.3761C15.8588 11.6701 15.4098 12.8598 14.6593 13.7979ZM13.4371 13.3458C14.182 12.5781 14.6404 11.5309 14.6404 10.3761C14.6404 8.02006 12.7321 6.11176 10.3761 6.11176C8.02 6.11176 6.1117 8.02006 6.1117 10.3761C6.1117 12.7322 8.02 14.6405 10.3761 14.6405C11.5309 14.6405 12.5781 14.1821 13.3458 13.4371L13.4371 13.3458Z" fill="
|
|
117
|
+
<path d="M14.6593 13.7979L17.2683 16.4068L16.4068 17.2684L13.7978 14.6594C12.8597 15.4099 11.67 15.8589 10.3761 15.8589C7.34958 15.8589 4.89331 13.4026 4.89331 10.3761C4.89331 7.34965 7.34958 4.89337 10.3761 4.89337C13.4025 4.89337 15.8588 7.34965 15.8588 10.3761C15.8588 11.6701 15.4098 12.8598 14.6593 13.7979ZM13.4371 13.3458C14.182 12.5781 14.6404 11.5309 14.6404 10.3761C14.6404 8.02006 12.7321 6.11176 10.3761 6.11176C8.02 6.11176 6.1117 8.02006 6.1117 10.3761C6.1117 12.7322 8.02 14.6405 10.3761 14.6405C11.5309 14.6405 12.5781 14.1821 13.3458 13.4371L13.4371 13.3458Z" fill="currentColor"/>
|
|
118
118
|
</svg>
|
|
119
119
|
)
|
|
120
120
|
|
|
@@ -126,7 +126,7 @@ export const RefreshIcon = ({ width = 24, height = 24 }: React.SVGProps<SVGSVGEl
|
|
|
126
126
|
|
|
127
127
|
export const SendIcon = ({ width = 24, height = 24 }: React.SVGProps<SVGSVGElement> & { width?: number; height?: number } = {}) => (
|
|
128
128
|
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 24 24" fill="none">
|
|
129
|
-
<path d="M18 6C18.4142 6 18.75 6.33579 18.75 6.75V12.75H17.25V9.17871L11.3037 14.5039L5.25 9.16211V17.25H18V18.75H4.5C4.08579 18.75 3.75 18.4142 3.75 18V6.75C3.75 6.33579 4.08579 6 4.5 6H18ZM24 15L20.25 18V15.75H15V14.25H20.25V12L24 15ZM11.2969 12.4961L16.876 7.5H5.63379L11.2969 12.4961Z" fill="
|
|
129
|
+
<path d="M18 6C18.4142 6 18.75 6.33579 18.75 6.75V12.75H17.25V9.17871L11.3037 14.5039L5.25 9.16211V17.25H18V18.75H4.5C4.08579 18.75 3.75 18.4142 3.75 18V6.75C3.75 6.33579 4.08579 6 4.5 6H18ZM24 15L20.25 18V15.75H15V14.25H20.25V12L24 15ZM11.2969 12.4961L16.876 7.5H5.63379L11.2969 12.4961Z" fill="currentColor"/>
|
|
130
130
|
</svg>
|
|
131
131
|
)
|
|
132
132
|
|
|
@@ -181,21 +181,33 @@ export const InfoIcon = ({ width = 16, height = 16 }: { width?: number; height?:
|
|
|
181
181
|
</svg>
|
|
182
182
|
)
|
|
183
183
|
|
|
184
|
-
export const
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
export const TableHeaderArrowUpIcon = () => (
|
|
185
|
+
<svg width="11" height="6" viewBox="0 0 11 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
186
|
+
<path d="M10 5L5.5 1L1 5" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
187
|
+
</svg>
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
export const TableHeaderArrowDownIcon = () => (
|
|
191
|
+
<svg width="11" height="6" viewBox="0 0 11 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
192
|
+
<path d="M1 1L5.5 5L10 1" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
193
|
+
</svg>
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
export const ArrowUpIcon = ({ width = 20, height = 20 }: { width?: number; height?: number } = {}) => (
|
|
197
|
+
<svg width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
198
|
+
<path d="M14.9999 11.8283L9.63589 17.1923L8.22168 15.7781L15.9999 7.99988L23.778 15.7781L22.3638 17.1923L16.9999 11.8283L16.9999 23.9999L14.9999 23.9999L14.9999 11.8283Z" fill="currentColor" />
|
|
187
199
|
</svg>
|
|
188
200
|
)
|
|
189
201
|
|
|
190
|
-
export const ArrowDownIcon = () => (
|
|
191
|
-
<svg width=
|
|
192
|
-
<path d="
|
|
202
|
+
export const ArrowDownIcon = ({ width = 20, height = 20 }: { width?: number; height?: number } = {}) => (
|
|
203
|
+
<svg width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
204
|
+
<path d="M16.9999 20.1715L22.3639 14.8075L23.7781 16.2217L15.9999 23.9999L8.22176 16.2217L9.63596 14.8075L14.9999 20.1715L14.9999 7.99988L16.9999 7.99988L16.9999 20.1715Z" fill="currentColor" />
|
|
193
205
|
</svg>
|
|
194
206
|
)
|
|
195
207
|
|
|
196
208
|
export const GripVerticalIcon = ({ width = 16, height = 16 }: { width?: number; height?: number } = {}) => (
|
|
197
209
|
<svg width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
198
|
-
<path d="
|
|
210
|
+
<path d="M13 20C14.1046 20 15 20.8954 15 22C15 23.1046 14.1046 24 13 24C11.8954 24 11 23.1046 11 22C11 20.8954 11.8954 20 13 20ZM19 20C20.1046 20 21 20.8954 21 22C21 23.1046 20.1046 24 19 24C17.8954 24 17 23.1046 17 22C17 20.8954 17.8954 20 19 20ZM13 14C14.1046 14 15 14.8954 15 16C15 17.1046 14.1046 18 13 18C11.8954 18 11 17.1046 11 16C11 14.8954 11.8954 14 13 14ZM19 14C20.1046 14 21 14.8954 21 16C21 17.1046 20.1046 18 19 18C17.8954 18 17 17.1046 17 16C17 14.8954 17.8954 14 19 14ZM13 8C14.1046 8 15 8.89543 15 10C15 11.1046 14.1046 12 13 12C11.8954 12 11 11.1046 11 10C11 8.89543 11.8954 8 13 8ZM19 8C20.1046 8 21 8.89543 21 10C21 11.1046 20.1046 12 19 12C17.8954 12 17 11.1046 17 10C17 8.89543 17.8954 8 19 8Z" fill="currentColor"/>
|
|
199
211
|
</svg>
|
|
200
212
|
)
|
|
201
213
|
|
|
@@ -219,11 +231,9 @@ export const CloseIcon = ({width = 24, height = 24, ...props
|
|
|
219
231
|
</svg>
|
|
220
232
|
)
|
|
221
233
|
|
|
222
|
-
export const EllipsisIcon = ({ width =
|
|
223
|
-
<svg width={width} height={height} viewBox="0 0
|
|
224
|
-
<
|
|
225
|
-
<circle cx="16" cy="16" r="3" fill={fill} />
|
|
226
|
-
<circle cx="24" cy="16" r="3" fill={fill} />
|
|
234
|
+
export const EllipsisIcon = ({ width = 18, height = 4, fill = 'currentColor', ...props }: React.SVGProps<SVGSVGElement> & { width?: number; height?: number; fill?: string } = {}) => (
|
|
235
|
+
<svg width={width} height={height} viewBox="0 0 18 4" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
236
|
+
<path d="M2 0C3.10457 0 4 0.895431 4 2C4 3.10457 3.10457 4 2 4C0.895431 4 0 3.10457 0 2C0 0.895431 0.895431 0 2 0ZM9 0C10.1046 0 11 0.895431 11 2C11 3.10457 10.1046 4 9 4C7.89543 4 7 3.10457 7 2C7 0.895431 7.89543 0 9 0ZM16 0C17.1046 0 18 0.895431 18 2C18 3.10457 17.1046 4 16 4C14.8954 4 14 3.10457 14 2C14 0.895431 14.8954 0 16 0Z" fill={fill} />
|
|
227
237
|
</svg>
|
|
228
238
|
)
|
|
229
239
|
|
package/src/v2/index.ts
CHANGED
|
@@ -51,7 +51,7 @@ export type { UserPanelProps } from './components/UserPanel'
|
|
|
51
51
|
|
|
52
52
|
// ZoneCard Components
|
|
53
53
|
export { ZoneCard, ZoneContainer, ZoneHeader, ResourceRow, AddResourceButton } from './components/ZoneCard'
|
|
54
|
-
export type { ZoneCardProps, ZoneResource, ZoneContainerProps, DragHandleProps, ZoneHeaderProps, ResourceRowProps, AddResourceButtonProps } from './components/ZoneCard'
|
|
54
|
+
export type { ZoneCardProps, ZoneResource, ZoneContainerProps, DragHandleProps, ZoneHeaderProps, ResourceRowProps, ResourceRowLabels, AddResourceButtonProps } from './components/ZoneCard'
|
|
55
55
|
|
|
56
56
|
// ZonesResources Page
|
|
57
57
|
export { ZonesResourcesPage } from './pages/ZonesResources'
|
|
@@ -7,6 +7,25 @@
|
|
|
7
7
|
padding: 24px 32px 0 32px;
|
|
8
8
|
align-self: flex-start;
|
|
9
9
|
|
|
10
|
+
.icon-button {
|
|
11
|
+
border-color: transparent;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background: var(--surface-action-soft, #F4F4FE);
|
|
15
|
+
border-color: transparent;
|
|
16
|
+
|
|
17
|
+
.icon-button__icon,
|
|
18
|
+
.icon-button__label {
|
|
19
|
+
color: var(--fill-action, #5D5BF4);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.icon-button__icon,
|
|
25
|
+
.icon-button__label {
|
|
26
|
+
color: var(--fill-action, #5D5BF4);
|
|
27
|
+
}
|
|
28
|
+
|
|
10
29
|
@media (max-width: 768px) {
|
|
11
30
|
padding: 16px 16px 0 16px;
|
|
12
31
|
}
|
|
@@ -19,4 +38,10 @@
|
|
|
19
38
|
padding: 16px;
|
|
20
39
|
}
|
|
21
40
|
}
|
|
41
|
+
|
|
42
|
+
&__action {
|
|
43
|
+
margin-bottom: 16px;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: flex-end;
|
|
46
|
+
}
|
|
22
47
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconButton } from '../../components/IconButton'
|
|
3
|
+
import { GhostButton } from '../../components/Button'
|
|
3
4
|
import { NewPageHeader } from '../../components/NewPageHeader'
|
|
4
|
-
import {
|
|
5
|
+
import { PlusIcon } from '../../icons'
|
|
5
6
|
import './ZonesResourcesPage.scss'
|
|
6
7
|
|
|
7
8
|
export interface ZonesResourcesPageProps {
|
|
@@ -17,7 +18,7 @@ export const ZonesResourcesPage: React.FC<ZonesResourcesPageProps> = ({
|
|
|
17
18
|
title = 'Zones & Resources',
|
|
18
19
|
backLabel = 'Back to Settings',
|
|
19
20
|
onBack,
|
|
20
|
-
actionLabel = '
|
|
21
|
+
actionLabel = 'Add Zone',
|
|
21
22
|
onAction,
|
|
22
23
|
children,
|
|
23
24
|
}) => {
|
|
@@ -31,13 +32,15 @@ export const ZonesResourcesPage: React.FC<ZonesResourcesPageProps> = ({
|
|
|
31
32
|
<NewPageHeader
|
|
32
33
|
title={title}
|
|
33
34
|
showDivider
|
|
34
|
-
renderRight={onAction ? () => (
|
|
35
|
-
<Button variant="primary" onClick={onAction}>
|
|
36
|
-
<ButtonText color="white">{actionLabel}</ButtonText>
|
|
37
|
-
</Button>
|
|
38
|
-
) : undefined}
|
|
39
35
|
/>
|
|
40
36
|
<div className="zones-resources-page__content">
|
|
37
|
+
{onAction && (
|
|
38
|
+
<div className="zones-resources-page__action">
|
|
39
|
+
<GhostButton onClick={onAction} icon={<PlusIcon width={16} height={16} />}>
|
|
40
|
+
{actionLabel}
|
|
41
|
+
</GhostButton>
|
|
42
|
+
</div>
|
|
43
|
+
)}
|
|
41
44
|
{children}
|
|
42
45
|
</div>
|
|
43
46
|
</div>
|