@licklist/design 0.78.5-dev.74 → 0.78.5-dev.76
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/v2/components/NewTable/NewTable.scss.js +1 -1
- package/dist/v2/index.d.ts +2 -0
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/pages/SettingsSubPage/SettingsSubPage.d.ts +12 -0
- package/dist/v2/pages/SettingsSubPage/SettingsSubPage.d.ts.map +1 -0
- package/dist/v2/pages/SettingsSubPage/SettingsSubPage.js +47 -0
- package/dist/v2/pages/SettingsSubPage/SettingsSubPage.scss.js +6 -0
- package/dist/v2/pages/SettingsSubPage/index.d.ts +3 -0
- package/dist/v2/pages/SettingsSubPage/index.d.ts.map +1 -0
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.d.ts +5 -8
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.d.ts.map +1 -1
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.js +68 -42
- package/dist/v2/styles/form/NewInput.scss +12 -0
- package/dist/v2/styles/form/NewInput.scss.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/v2/components/Customer/CustomerDetail.scss +110 -194
- package/src/v2/components/Customer/CustomersList.scss +4 -3
- package/src/v2/components/NewTable/NewTable.scss +1 -0
- package/src/v2/icons/Icons.stories.tsx +253 -0
- package/src/v2/index.ts +5 -1
- package/src/v2/pages/SettingsSubPage/SettingsSubPage.scss +43 -0
- package/src/v2/pages/SettingsSubPage/SettingsSubPage.tsx +49 -0
- package/src/v2/pages/SettingsSubPage/index.ts +2 -0
- package/src/v2/pages/ZonesResources/ZonesResourcesPage.tsx +12 -39
- package/src/v2/styles/form/NewInput.scss +12 -0
- package/dist/v2/pages/ZonesResources/ZonesResourcesPage.scss.js +0 -6
|
@@ -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 32px;
|
|
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 16px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__content {
|
|
31
|
+
padding: 24px 32px;
|
|
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
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { GhostButton } from '../../components/Button'
|
|
3
|
+
import { NewPageHeader } from '../../components/NewPageHeader'
|
|
4
|
+
import { ArrowLeftIcon, PlusIcon } from '../../icons'
|
|
5
|
+
import './SettingsSubPage.scss'
|
|
6
|
+
|
|
7
|
+
export interface SettingsSubPageProps {
|
|
8
|
+
title?: string
|
|
9
|
+
backLabel?: string
|
|
10
|
+
onBack?: () => void
|
|
11
|
+
actionLabel?: string
|
|
12
|
+
onAction?: () => void
|
|
13
|
+
children?: React.ReactNode
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const SettingsSubPage: React.FC<SettingsSubPageProps> = ({
|
|
17
|
+
title = '',
|
|
18
|
+
backLabel = 'Back to Settings',
|
|
19
|
+
onBack,
|
|
20
|
+
actionLabel,
|
|
21
|
+
onAction,
|
|
22
|
+
children,
|
|
23
|
+
}) => {
|
|
24
|
+
return (
|
|
25
|
+
<div className="settings-sub-page">
|
|
26
|
+
{onBack && (
|
|
27
|
+
<div className="settings-sub-page__back">
|
|
28
|
+
<GhostButton onClick={onBack} icon={<ArrowLeftIcon />}>
|
|
29
|
+
{backLabel}
|
|
30
|
+
</GhostButton>
|
|
31
|
+
</div>
|
|
32
|
+
)}
|
|
33
|
+
<NewPageHeader
|
|
34
|
+
title={title}
|
|
35
|
+
showDivider
|
|
36
|
+
/>
|
|
37
|
+
<div className="settings-sub-page__content">
|
|
38
|
+
{onAction && actionLabel && (
|
|
39
|
+
<div className="settings-sub-page__action">
|
|
40
|
+
<GhostButton onClick={onAction} icon={<PlusIcon width={16} height={16} />}>
|
|
41
|
+
{actionLabel}
|
|
42
|
+
</GhostButton>
|
|
43
|
+
</div>
|
|
44
|
+
)}
|
|
45
|
+
{children}
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -1,49 +1,22 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ArrowLeftIcon, PlusIcon } from '../../icons'
|
|
5
|
-
import './ZonesResourcesPage.scss'
|
|
2
|
+
import { SettingsSubPage } from '../SettingsSubPage'
|
|
3
|
+
import type { SettingsSubPageProps } from '../SettingsSubPage'
|
|
6
4
|
|
|
7
|
-
export interface ZonesResourcesPageProps {
|
|
8
|
-
title?: string
|
|
9
|
-
backLabel?: string
|
|
10
|
-
onBack?: () => void
|
|
11
|
-
actionLabel?: string
|
|
12
|
-
onAction?: () => void
|
|
13
|
-
children?: React.ReactNode
|
|
14
|
-
}
|
|
5
|
+
export interface ZonesResourcesPageProps extends SettingsSubPageProps {}
|
|
15
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use SettingsSubPage instead. This is kept for backwards compatibility.
|
|
9
|
+
*/
|
|
16
10
|
export const ZonesResourcesPage: React.FC<ZonesResourcesPageProps> = ({
|
|
17
11
|
title = 'Zones & Resources',
|
|
18
|
-
backLabel = 'Back to Settings',
|
|
19
|
-
onBack,
|
|
20
12
|
actionLabel = 'Add Zone',
|
|
21
|
-
|
|
22
|
-
children,
|
|
13
|
+
...props
|
|
23
14
|
}) => {
|
|
24
15
|
return (
|
|
25
|
-
<
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</GhostButton>
|
|
31
|
-
</div>
|
|
32
|
-
)}
|
|
33
|
-
<NewPageHeader
|
|
34
|
-
title={title}
|
|
35
|
-
showDivider
|
|
36
|
-
/>
|
|
37
|
-
<div className="zones-resources-page__content">
|
|
38
|
-
{onAction && (
|
|
39
|
-
<div className="zones-resources-page__action">
|
|
40
|
-
<GhostButton onClick={onAction} icon={<PlusIcon width={16} height={16} />}>
|
|
41
|
-
{actionLabel}
|
|
42
|
-
</GhostButton>
|
|
43
|
-
</div>
|
|
44
|
-
)}
|
|
45
|
-
{children}
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
16
|
+
<SettingsSubPage
|
|
17
|
+
title={title}
|
|
18
|
+
actionLabel={actionLabel}
|
|
19
|
+
{...props}
|
|
20
|
+
/>
|
|
48
21
|
)
|
|
49
22
|
}
|
|
@@ -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 {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import styleInject from '/opt/atlassian/pipelines/agent/build/node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".zones-resources-page{align-self:stretch;display:flex;flex-direction:column}.zones-resources-page__back{align-self:flex-start;padding:24px 32px 0}.zones-resources-page__back .ghost-button{border-color:var(--borders-main-border-primary,#e8e9ef);color:var(--fill-action,#5d5bf4)}.zones-resources-page__back .ghost-button:not(.active):hover:not(:disabled){background-color:var(--surface-action-soft,#f4f4fe);color:var(--fill-action,#5d5bf4)}.zones-resources-page__back .ghost-button .ghost-button__icon svg{height:24px;width:24px}@media (max-width:768px){.zones-resources-page__back{padding:16px 16px 0}}.zones-resources-page__content{padding:24px 32px}@media (max-width:768px){.zones-resources-page__content{padding:0}}.zones-resources-page__action{display:flex;justify-content:flex-end;margin-bottom:16px}";
|
|
4
|
-
styleInject(css_248z);
|
|
5
|
-
|
|
6
|
-
export { css_248z as default };
|