@popsure/dirty-swan 0.59.0 → 0.60.0
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/cjs/index.js +13 -22
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/badge/index.d.ts +4 -3
- package/dist/cjs/lib/components/badge/index.stories.d.ts +8 -2
- package/dist/esm/{Calendar-5ad3eccf.js → Calendar-0f4bf3c1.js} +2 -2
- package/dist/esm/Calendar-0f4bf3c1.js.map +1 -0
- package/dist/esm/{TableSection-b3d158d2.js → TableSection-65e88f87.js} +1 -1
- package/dist/esm/{TableSection-b3d158d2.js.map → TableSection-65e88f87.js.map} +1 -1
- package/dist/esm/components/accordion/index.js +1 -1
- package/dist/esm/components/badge/index.js +7 -16
- package/dist/esm/components/badge/index.js.map +1 -1
- package/dist/esm/components/badge/index.stories.js +25 -4
- package/dist/esm/components/badge/index.stories.js.map +1 -1
- package/dist/esm/components/cards/card/index.js +1 -1
- package/dist/esm/components/dateSelector/components/Calendar.js +1 -1
- package/dist/esm/components/dateSelector/index.js +2 -2
- package/dist/esm/components/dateSelector/index.js.map +1 -1
- package/dist/esm/components/dateSelector/index.stories.js +1 -1
- package/dist/esm/components/dateSelector/index.test.js +1 -1
- package/dist/esm/components/informationBox/index.js +1 -1
- package/dist/esm/components/informationBox/index.js.map +1 -1
- package/dist/esm/components/modal/genericModal/index.js +1 -1
- package/dist/esm/components/modal/genericModal/index.js.map +1 -1
- package/dist/esm/components/table/Table.js +1 -1
- package/dist/esm/components/table/Table.stories.js +1 -1
- package/dist/esm/components/table/Table.test.js +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.js +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/lib/components/badge/index.d.ts +4 -3
- package/dist/esm/lib/components/badge/index.stories.d.ts +8 -2
- package/package.json +1 -1
- package/src/lib/components/accordion/style.module.scss +5 -7
- package/src/lib/components/badge/index.stories.tsx +65 -0
- package/src/lib/components/badge/index.tsx +30 -26
- package/src/lib/components/badge/style.module.scss +118 -6
- package/src/lib/components/cards/card/style.module.scss +12 -1
- package/src/lib/components/dateSelector/components/Calendar.tsx +2 -3
- package/src/lib/components/dateSelector/index.tsx +1 -1
- package/src/lib/components/informationBox/index.tsx +1 -1
- package/src/lib/components/modal/genericModal/index.tsx +1 -1
- package/src/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.module.scss +11 -9
- package/dist/esm/Calendar-5ad3eccf.js.map +0 -1
|
@@ -12,7 +12,7 @@ import { TableContents } from './components/TableContents/TableContents.js';
|
|
|
12
12
|
import { c as classNames } from '../../index-6ea95111.js';
|
|
13
13
|
import { u as useTableNavigation } from '../../useTableNavigation-f929fbc9.js';
|
|
14
14
|
import { TableControls } from './components/TableControls/TableControls.js';
|
|
15
|
-
import { i as isBaseCell, T as TableSection } from '../../TableSection-
|
|
15
|
+
import { i as isBaseCell, T as TableSection } from '../../TableSection-65e88f87.js';
|
|
16
16
|
import { u as useScrollSync } from '../../useScrollSync-b2d28bed.js';
|
|
17
17
|
import './components/TableCell/BaseCell/BaseCell.js';
|
|
18
18
|
import '../icon/icons/CheckThick.js';
|
|
@@ -37,7 +37,7 @@ import '../icon/icons/ChevronDown.js';
|
|
|
37
37
|
import '../icon/icons/ChevronUp.js';
|
|
38
38
|
import '../../useMediaQuery-1a3a2432.js';
|
|
39
39
|
import './components/TableContents/TableContents.js';
|
|
40
|
-
import '../../TableSection-
|
|
40
|
+
import '../../TableSection-65e88f87.js';
|
|
41
41
|
import './components/TableContents/Collapsible.js';
|
|
42
42
|
import '../../useTableNavigation-f929fbc9.js';
|
|
43
43
|
import './components/TableControls/TableControls.js';
|
|
@@ -37,7 +37,7 @@ import '../icon/icons/ChevronDown.js';
|
|
|
37
37
|
import '../icon/icons/ChevronUp.js';
|
|
38
38
|
import '../../useMediaQuery-1a3a2432.js';
|
|
39
39
|
import './components/TableContents/TableContents.js';
|
|
40
|
-
import '../../TableSection-
|
|
40
|
+
import '../../TableSection-65e88f87.js';
|
|
41
41
|
import './components/TableContents/Collapsible.js';
|
|
42
42
|
import '../../useTableNavigation-f929fbc9.js';
|
|
43
43
|
import './components/TableControls/TableControls.js';
|
package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { c as classNames } from '../../../../../../index-6ea95111.js';
|
|
3
3
|
import { s as styleInject } from '../../../../../../style-inject.es-1f59c1d0.js';
|
|
4
4
|
|
|
5
|
-
var css_248z = ".MiniProgressBar-module_progressBar__2K07F {\n margin-
|
|
5
|
+
var css_248z = ".MiniProgressBar-module_progressBar__2K07F {\n margin-top: 4px;\n}\n.MiniProgressBar-module_progressBar__2K07F rect {\n fill: #f2f2f8;\n}\n\n.MiniProgressBar-module_filledBars1__ZhQbV rect:first-child {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars2__2lH_z rect:nth-child(-n+2) {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars3__1OKUj rect:nth-child(-n+3) {\n fill: #919199;\n}\n\n.MiniProgressBar-module_filledBars4__T9kuj rect:nth-child(-n+4) {\n fill: #696971;\n}\n\n.MiniProgressBar-module_filledBars5__WxVpb rect {\n fill: #26262e;\n}";
|
|
6
6
|
var styles = {"progressBar":"MiniProgressBar-module_progressBar__2K07F","filledBars1":"MiniProgressBar-module_filledBars1__ZhQbV","filledBars2":"MiniProgressBar-module_filledBars2__2lH_z","filledBars3":"MiniProgressBar-module_filledBars3__1OKUj","filledBars4":"MiniProgressBar-module_filledBars4__T9kuj","filledBars5":"MiniProgressBar-module_filledBars5__WxVpb"};
|
|
7
7
|
styleInject(css_248z);
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __assign, _ as __spreadArray } from '../../../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { T as TableSection } from '../../../../TableSection-
|
|
4
|
+
import { T as TableSection } from '../../../../TableSection-65e88f87.js';
|
|
5
5
|
import ChevronDownIcon from '../../../icon/icons/ChevronDown.js';
|
|
6
6
|
import ChevronUpIcon from '../../../icon/icons/ChevronUp.js';
|
|
7
7
|
import { Card } from '../../../cards/card/index.js';
|
|
@@ -6,7 +6,7 @@ import 'react';
|
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../../../../_commonjsHelpers-4730bd53.js';
|
|
8
8
|
import 'react-dom/test-utils';
|
|
9
|
-
import '../../../../TableSection-
|
|
9
|
+
import '../../../../TableSection-65e88f87.js';
|
|
10
10
|
import '../../../../index-6ea95111.js';
|
|
11
11
|
import '../../../../style-inject.es-1f59c1d0.js';
|
|
12
12
|
import '../TableCell/TableCell.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '../../../../index-6ea95111.js';
|
|
4
|
-
export { T as TableSection } from '../../../../TableSection-
|
|
4
|
+
export { T as TableSection } from '../../../../TableSection-65e88f87.js';
|
|
5
5
|
import '../TableCell/TableCell.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../../../useMediaQuery-1a3a2432.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __assign } from '../../../../tslib.es6-a39f91fc.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { c as customRender, s as screen } from '../../../../customRender-be47569b.js';
|
|
4
|
-
import { T as TableSection } from '../../../../TableSection-
|
|
4
|
+
import { T as TableSection } from '../../../../TableSection-65e88f87.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../../../../_commonjsHelpers-4730bd53.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export { Accordion } from './components/accordion/index.js';
|
|
|
32
32
|
export { Table } from './components/table/Table.js';
|
|
33
33
|
import { useCallback, useEffect } from 'react';
|
|
34
34
|
export { u as useMediaQuery } from './useMediaQuery-1a3a2432.js';
|
|
35
|
-
export { u as useOnClickOutside } from './Calendar-
|
|
35
|
+
export { u as useOnClickOutside } from './Calendar-0f4bf3c1.js';
|
|
36
36
|
export { LogoColor } from './components/logo/LogoColor.js';
|
|
37
37
|
export { LogoWhite } from './components/logo/LogoWhite.js';
|
|
38
38
|
export { LogoBlack } from './components/logo/LogoBlack.js';
|
|
@@ -466,7 +466,7 @@ import './components/table/components/IconRenderer/IconRenderer.js';
|
|
|
466
466
|
import './components/table/components/TableCell/CardCell/CardCell.js';
|
|
467
467
|
import './components/table/components/TableCell/ButtonCell/ButtonCell.js';
|
|
468
468
|
import './components/table/components/TableContents/TableContents.js';
|
|
469
|
-
import './TableSection-
|
|
469
|
+
import './TableSection-65e88f87.js';
|
|
470
470
|
import './components/table/components/TableContents/Collapsible.js';
|
|
471
471
|
import './useTableNavigation-f929fbc9.js';
|
|
472
472
|
import './components/table/components/TableControls/TableControls.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type Variant = '
|
|
2
|
+
type Variant = 'white' | 'neutral' | 'neutralStrong' | 'information' | 'warning' | 'primary' | 'error' | 'success' | 'black' | 'secondary' | 'secondaryStrong';
|
|
3
3
|
export interface BadgeProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
variant?: Variant;
|
|
6
|
-
size?: 'small' | 'medium' | 'large';
|
|
6
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
7
7
|
children: ReactNode;
|
|
8
|
+
showDot?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare const Badge: ({ className, size, variant, children, }: BadgeProps) => JSX.Element;
|
|
10
|
+
declare const Badge: ({ className, size, variant, children, showDot }: BadgeProps) => JSX.Element;
|
|
10
11
|
export { Badge };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BadgeProps } from '.';
|
|
2
2
|
declare const story: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ className, size, variant, children, }: BadgeProps) => JSX.Element;
|
|
4
|
+
component: ({ className, size, variant, children, showDot }: BadgeProps) => JSX.Element;
|
|
5
5
|
argTypes: {
|
|
6
6
|
children: {
|
|
7
7
|
control: string;
|
|
@@ -17,16 +17,22 @@ declare const story: {
|
|
|
17
17
|
variant: {
|
|
18
18
|
description: string;
|
|
19
19
|
};
|
|
20
|
+
showDot: {
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
20
23
|
};
|
|
21
24
|
args: {
|
|
22
25
|
children: string;
|
|
23
26
|
className: string;
|
|
24
27
|
size: string;
|
|
25
28
|
variant: string;
|
|
29
|
+
showDot: boolean;
|
|
26
30
|
};
|
|
27
31
|
};
|
|
28
32
|
export declare const BadgeStory: {
|
|
29
|
-
({ children, className, size, variant, }: BadgeProps): JSX.Element;
|
|
33
|
+
({ children, className, size, variant, showDot, }: BadgeProps): JSX.Element;
|
|
30
34
|
storyName: string;
|
|
31
35
|
};
|
|
36
|
+
export declare const Variants: () => JSX.Element;
|
|
37
|
+
export declare const Sizes: () => JSX.Element;
|
|
32
38
|
export default story;
|
package/package.json
CHANGED
|
@@ -41,24 +41,22 @@
|
|
|
41
41
|
|
|
42
42
|
.buttonWrapper {
|
|
43
43
|
background-color: transparent!important;
|
|
44
|
-
color: $ds-
|
|
44
|
+
color: $ds-neutral-900;
|
|
45
45
|
outline-offset: -4px;
|
|
46
46
|
|
|
47
47
|
&Default {
|
|
48
48
|
outline-offset: 0;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
&:
|
|
52
|
-
&:
|
|
53
|
-
background: $ds-purple-100;
|
|
54
|
-
|
|
51
|
+
&:focus-visible,
|
|
52
|
+
&:hover {
|
|
55
53
|
.icon {
|
|
56
|
-
color: $ds-
|
|
54
|
+
color: $ds-neutral-900!important;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
.question,
|
|
60
58
|
.chevron{
|
|
61
|
-
color: $ds-
|
|
59
|
+
color: $ds-neutral-900;
|
|
62
60
|
}
|
|
63
61
|
}
|
|
64
62
|
|
|
@@ -18,12 +18,16 @@ const story = {
|
|
|
18
18
|
variant: {
|
|
19
19
|
description: 'Variant that defines the style of the Badge',
|
|
20
20
|
},
|
|
21
|
+
showDot: {
|
|
22
|
+
description: 'Whether to show a dot indicator',
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
args: {
|
|
23
26
|
children: 'Value',
|
|
24
27
|
className: '',
|
|
25
28
|
size: 'medium',
|
|
26
29
|
variant: 'information',
|
|
30
|
+
showDot: false
|
|
27
31
|
}
|
|
28
32
|
};
|
|
29
33
|
|
|
@@ -32,11 +36,13 @@ export const BadgeStory = ({
|
|
|
32
36
|
className,
|
|
33
37
|
size,
|
|
34
38
|
variant,
|
|
39
|
+
showDot,
|
|
35
40
|
}: BadgeProps) => (
|
|
36
41
|
<Badge
|
|
37
42
|
className={className}
|
|
38
43
|
size={size}
|
|
39
44
|
variant={variant}
|
|
45
|
+
showDot={showDot}
|
|
40
46
|
>
|
|
41
47
|
{children}
|
|
42
48
|
</Badge>
|
|
@@ -44,4 +50,63 @@ export const BadgeStory = ({
|
|
|
44
50
|
|
|
45
51
|
BadgeStory.storyName = "Badge";
|
|
46
52
|
|
|
53
|
+
const variants: BadgeProps['variant'][] = [
|
|
54
|
+
'white',
|
|
55
|
+
'neutral',
|
|
56
|
+
'neutralStrong',
|
|
57
|
+
'information',
|
|
58
|
+
'warning',
|
|
59
|
+
'primary',
|
|
60
|
+
'error',
|
|
61
|
+
'success',
|
|
62
|
+
'secondary',
|
|
63
|
+
'secondaryStrong',
|
|
64
|
+
'black',
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
export const Variants = () => (
|
|
68
|
+
<div className='d-flex fd-column gap16'>
|
|
69
|
+
{variants.map((variant) => (
|
|
70
|
+
<div key={variant} className='d-flex'>
|
|
71
|
+
<div className='ws3'>
|
|
72
|
+
<Badge variant={variant}>
|
|
73
|
+
{variant}
|
|
74
|
+
</Badge>
|
|
75
|
+
</div>
|
|
76
|
+
<div className='ws3 ml32'>
|
|
77
|
+
<Badge
|
|
78
|
+
variant={variant}
|
|
79
|
+
showDot
|
|
80
|
+
>
|
|
81
|
+
{variant}
|
|
82
|
+
</Badge>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
))}
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
const sizes: BadgeProps['size'][] = ['xsmall', 'small', 'medium', 'large'];
|
|
90
|
+
|
|
91
|
+
export const Sizes = () => (
|
|
92
|
+
<div className='d-flex fd-column gap16'>
|
|
93
|
+
{sizes.map((size) => (
|
|
94
|
+
<div key={size} className='d-flex'>
|
|
95
|
+
<div className='ws3'>
|
|
96
|
+
<Badge size={size}>
|
|
97
|
+
{size}
|
|
98
|
+
</Badge>
|
|
99
|
+
</div>
|
|
100
|
+
<div className='ws3 ml32'>
|
|
101
|
+
<Badge size={size} showDot>
|
|
102
|
+
{size}
|
|
103
|
+
</Badge>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
))}
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
BadgeStory.storyName = "Badge";
|
|
111
|
+
|
|
47
112
|
export default story;
|
|
@@ -3,51 +3,55 @@ import classNames from 'classnames';
|
|
|
3
3
|
import styles from './style.module.scss';
|
|
4
4
|
|
|
5
5
|
type Variant =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
| 'white'
|
|
7
|
+
| 'neutral'
|
|
8
|
+
| 'neutralStrong'
|
|
9
|
+
| 'information'
|
|
10
|
+
| 'warning'
|
|
11
|
+
| 'primary'
|
|
12
|
+
| 'error'
|
|
13
|
+
| 'success'
|
|
14
|
+
| 'black'
|
|
15
|
+
| 'secondary'
|
|
16
|
+
| 'secondaryStrong';
|
|
15
17
|
|
|
16
18
|
export interface BadgeProps {
|
|
17
19
|
className?: string;
|
|
18
20
|
variant?: Variant;
|
|
19
|
-
size?: 'small' | 'medium' | 'large';
|
|
21
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
20
22
|
children: ReactNode;
|
|
23
|
+
showDot?: boolean;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
const getVariantClassNames = (variant: Variant) => ({
|
|
24
|
-
information: 'bg-blue-100',
|
|
25
|
-
neutral: 'bg-white',
|
|
26
|
-
neutral200: 'bg-neutral-100',
|
|
27
|
-
neutral300: 'bg-neutral-300',
|
|
28
|
-
warning: 'bg-yellow-200',
|
|
29
|
-
error: 'bg-red-100',
|
|
30
|
-
success: 'bg-green-100',
|
|
31
|
-
primary: 'bg-purple-300',
|
|
32
|
-
primary900: 'bg-purple-900 tc-white',
|
|
33
|
-
}[variant])
|
|
34
|
-
|
|
35
26
|
const Badge = ({
|
|
36
27
|
className = '',
|
|
37
28
|
size = 'medium',
|
|
38
29
|
variant = 'information',
|
|
39
30
|
children,
|
|
31
|
+
showDot = false
|
|
40
32
|
}: BadgeProps) => (
|
|
41
33
|
<div
|
|
42
34
|
role="status"
|
|
43
35
|
className={classNames(
|
|
44
|
-
className,
|
|
45
|
-
'
|
|
46
|
-
|
|
36
|
+
className,
|
|
37
|
+
'br8 d-inline-flex ai-center fw-bold p-p',
|
|
38
|
+
styles.badge,
|
|
47
39
|
styles[`badge--${size}`],
|
|
48
|
-
|
|
40
|
+
styles[`badge--${variant}`],
|
|
41
|
+
{
|
|
42
|
+
'p-p--small': size === 'small' || size === 'xsmall',
|
|
43
|
+
}
|
|
49
44
|
)}
|
|
50
45
|
>
|
|
46
|
+
{showDot && (
|
|
47
|
+
<span
|
|
48
|
+
className={classNames(
|
|
49
|
+
styles.badgeDot,
|
|
50
|
+
styles[`badgeDot--${variant}`]
|
|
51
|
+
)}
|
|
52
|
+
/>
|
|
53
|
+
)}
|
|
54
|
+
|
|
51
55
|
{children}
|
|
52
56
|
</div>
|
|
53
57
|
);
|
|
@@ -1,13 +1,125 @@
|
|
|
1
|
+
@use '../../scss/public/colors' as *;
|
|
1
2
|
|
|
2
3
|
.badge {
|
|
3
|
-
|
|
4
|
+
border: 1px solid $ds-white;
|
|
5
|
+
position: relative;
|
|
6
|
+
gap: 6px;
|
|
7
|
+
|
|
8
|
+
&--xsmall {
|
|
9
|
+
padding: 4px 10px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&--small {
|
|
13
|
+
padding: 6px 12px;
|
|
14
|
+
}
|
|
15
|
+
|
|
4
16
|
&--medium {
|
|
5
|
-
padding
|
|
6
|
-
padding-top: 6px;
|
|
17
|
+
padding: 6px 16px;
|
|
7
18
|
}
|
|
8
19
|
|
|
9
20
|
&--large {
|
|
10
|
-
|
|
11
|
-
padding
|
|
21
|
+
gap: 8px;
|
|
22
|
+
padding: 8px 16px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Variants
|
|
26
|
+
&--white {
|
|
27
|
+
background-color: $ds-white;
|
|
28
|
+
border-color: $ds-neutral-100;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--neutral {
|
|
32
|
+
background-color: $ds-neutral-100;
|
|
33
|
+
border-color: $ds-neutral-200;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--neutralStrong {
|
|
37
|
+
background-color: $ds-neutral-300;
|
|
38
|
+
border-color: $ds-neutral-300;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&--information {
|
|
42
|
+
background-color: $ds-blue-100;
|
|
43
|
+
border-color: $ds-blue-200;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&--warning,
|
|
47
|
+
&--primary {
|
|
48
|
+
background-color: $ds-orange-300;
|
|
49
|
+
border-color: $ds-orange-400;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--error {
|
|
53
|
+
background-color: $ds-red-100;
|
|
54
|
+
border-color: $ds-red-200;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--success {
|
|
58
|
+
background-color: $ds-green-100;
|
|
59
|
+
border-color: $ds-green-200;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--black {
|
|
63
|
+
background-color: $ds-neutral-900;
|
|
64
|
+
border-color: $ds-neutral-900;
|
|
65
|
+
color: $ds-white;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--secondary {
|
|
69
|
+
background-color: $ds-purple-200;
|
|
70
|
+
border-color: $ds-purple-300;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--secondaryStrong {
|
|
74
|
+
background-color: $ds-purple-600;
|
|
75
|
+
border-color: $ds-purple-600;
|
|
76
|
+
color: $ds-white;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.badgeDot {
|
|
81
|
+
display: inline-block;
|
|
82
|
+
width: 8px;
|
|
83
|
+
height: 8px;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
|
|
86
|
+
&--primary,
|
|
87
|
+
&--warning {
|
|
88
|
+
background-color: $ds-orange-700;
|
|
89
|
+
}
|
|
90
|
+
&--white {
|
|
91
|
+
background-color: $ds-neutral-500;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&--neutral {
|
|
95
|
+
background-color: $ds-neutral-600;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--neutralStrong {
|
|
99
|
+
background-color: $ds-neutral-700;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&--information {
|
|
103
|
+
background-color: $ds-blue-700;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&--error {
|
|
107
|
+
background-color: $ds-red-700;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&--success {
|
|
111
|
+
background-color: $ds-green-700;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&--black {
|
|
115
|
+
background-color: $ds-white;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&--secondary {
|
|
119
|
+
background-color: $ds-purple-700;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&--secondaryStrong {
|
|
123
|
+
background-color: $ds-white;
|
|
12
124
|
}
|
|
13
|
-
}
|
|
125
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../../scss/public/colors' as *;
|
|
2
2
|
@use '../../../scss/private/borders/default' as *;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
@mixin wrapper-base-styles {
|
|
5
5
|
background-color: $ds-white;
|
|
6
6
|
border: 1px solid transparent;
|
|
7
7
|
transition: all 0.2s ease-in-out;
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.wrapper {
|
|
36
|
+
@include wrapper-base-styles;
|
|
37
|
+
}
|
|
38
|
+
|
|
35
39
|
.button {
|
|
36
40
|
background-color: transparent;
|
|
37
41
|
color: $ds-neutral-900;
|
|
@@ -110,6 +114,13 @@
|
|
|
110
114
|
box-shadow: inset 0 0 0 1px $ds-purple-600;
|
|
111
115
|
}
|
|
112
116
|
}
|
|
117
|
+
|
|
118
|
+
@media (pointer: coarse) {
|
|
119
|
+
&:hover .wrapper,
|
|
120
|
+
&:active .wrapper {
|
|
121
|
+
@include wrapper-base-styles;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
113
124
|
}
|
|
114
125
|
|
|
115
126
|
.smallPadding {
|
|
@@ -72,11 +72,10 @@ export const Calendar = ({
|
|
|
72
72
|
onClick={() => setCalendarOpen(!isOpen)}
|
|
73
73
|
data-testid="calendar-button"
|
|
74
74
|
hideLabel
|
|
75
|
-
variant='
|
|
76
|
-
leftIcon={<CalendarIcon />}
|
|
75
|
+
variant='textBlack'
|
|
77
76
|
type="button"
|
|
78
77
|
>
|
|
79
|
-
|
|
78
|
+
<CalendarIcon size={24} />
|
|
80
79
|
</Button>
|
|
81
80
|
|
|
82
81
|
{isOpen && (
|
|
@@ -233,7 +233,7 @@ export const DateSelector = ({
|
|
|
233
233
|
|
|
234
234
|
return (
|
|
235
235
|
<div>
|
|
236
|
-
<div className="d-flex
|
|
236
|
+
<div className="d-flex">
|
|
237
237
|
<div className={classNames(styles.container, "d-flex gap8")}>
|
|
238
238
|
<div className={"d-flex gap8 jc-between"}>
|
|
239
239
|
<Input {...getInputProps('day', 0)} />
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
@use "../../../../../../scss/public/colors" as *;
|
|
2
2
|
|
|
3
|
-
$defaultColor: $ds-
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
3
|
+
$defaultColor: $ds-neutral-200;
|
|
4
|
+
$oneColor: $ds-neutral-600;
|
|
5
|
+
$twoColor: $ds-neutral-600;
|
|
6
|
+
$threeColor: $ds-neutral-600;
|
|
7
|
+
$fourColor: $ds-neutral-700;
|
|
8
|
+
$allFilledColor: $ds-neutral-900;
|
|
7
9
|
|
|
8
10
|
.progressBar {
|
|
9
|
-
margin-
|
|
11
|
+
margin-top: 4px;
|
|
10
12
|
|
|
11
13
|
rect {
|
|
12
14
|
fill: $defaultColor;
|
|
@@ -15,25 +17,25 @@ $allFilledColor: $ds-purple-600;
|
|
|
15
17
|
|
|
16
18
|
.filledBars1 {
|
|
17
19
|
rect:first-child {
|
|
18
|
-
fill: $
|
|
20
|
+
fill: $oneColor;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.filledBars2 {
|
|
23
25
|
rect:nth-child(-n + 2) {
|
|
24
|
-
fill: $
|
|
26
|
+
fill: $twoColor;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
.filledBars3 {
|
|
29
31
|
rect:nth-child(-n + 3) {
|
|
30
|
-
fill: $
|
|
32
|
+
fill: $threeColor;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.filledBars4 {
|
|
35
37
|
rect:nth-child(-n + 4) {
|
|
36
|
-
fill: $
|
|
38
|
+
fill: $fourColor;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|