genesys-react-components 0.2.4-no-jira-peer-deps.194 → 0.3.1-devengage-1574-implementing-code-fences-devengage-1574-implementing-code-fences.219
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/README.md +24 -1
- package/build/codefence/CodeFence.d.ts +22 -0
- package/build/index.d.ts +2 -1
- package/build/index.js/index-a1accecb.js +29479 -0
- package/build/index.js/index-a1accecb.js.map +1 -0
- package/build/index.js/index.js +2232 -0
- package/build/index.js/index.js.map +1 -0
- package/package.json +6 -3
- package/src/alertblock/AlertBlock.scss +1 -1
- package/src/codefence/CodeFence.scss +103 -0
- package/src/codefence/CodeFence.tsx +68 -0
- package/src/copybutton/CopyButton.scss +1 -1
- package/src/dxaccordion/DxAccordion.scss +6 -3
- package/src/dxbutton/DxButton.scss +26 -23
- package/src/dxitemgroup/DxCheckbox.scss +22 -17
- package/src/dxitemgroup/dropdown.scss +11 -9
- package/src/dxitemgroup/multiselect.scss +12 -9
- package/src/dxlabel/DxLabel.scss +5 -3
- package/src/dxtabbedcontent/DxTabbedContent.scss +6 -4
- package/src/dxtextbox/DxTextbox.scss +15 -12
- package/src/dxtoggle/DxToggle.scss +15 -11
- package/src/index.ts +2 -0
- package/src/loadingplaceholder/LoadingPlaceholder.scss +3 -2
- package/src/loadingplaceholder/LoadingPlaceholder.tsx +94 -1
- package/src/theme/fonts/roboto-v29-latin-300.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-300.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-300italic.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-300italic.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-700.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-700.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-700italic.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-700italic.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-italic.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-italic.woff2 +0 -0
- package/src/theme/fonts/roboto-v29-latin-regular.woff +0 -0
- package/src/theme/fonts/roboto-v29-latin-regular.woff2 +0 -0
- package/src/theme/roboto.scss +65 -0
- package/src/theme/scrollbars.scss +49 -0
- package/src/theme/typography.scss +184 -0
- package/src/theme/variables.scss +413 -0
- package/build/index.js +0 -539
- package/build/index.js.map +0 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
3
|
+
.fence {
|
|
4
|
+
border-radius: 0;
|
|
5
|
+
margin: 40px 0;
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
&.json-editor-fence {
|
|
9
|
+
margin: 1rem 0 0 0 !important;
|
|
10
|
+
height: 80%;
|
|
11
|
+
width: 100%;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fence-header {
|
|
16
|
+
background-color: var($--theme-codefence-header-background-color);
|
|
17
|
+
color: var($--theme-codefence-header-text-color);
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
border-radius: 4px 4px 0px 0px;
|
|
20
|
+
border-bottom: 1px solid var($--theme-codefence-border-color);
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 5px 16px;
|
|
23
|
+
min-height: 24px;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row-reverse;
|
|
26
|
+
flex-wrap: nowrap;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 16px;
|
|
30
|
+
|
|
31
|
+
&.clickable {
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& > * {
|
|
36
|
+
flex-grow: 0;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.copy-button {
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
padding: 0;
|
|
43
|
+
color: var($--theme-codefence-header-text-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.fence-title {
|
|
47
|
+
flex-grow: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon {
|
|
51
|
+
line-height: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fence-body {
|
|
56
|
+
padding: 0;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
border-radius: 0 0 4px 4px;
|
|
59
|
+
|
|
60
|
+
&.json-editor-body {
|
|
61
|
+
height: 100%;
|
|
62
|
+
line-height: 21px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.collapsed {
|
|
66
|
+
max-height: 15px;
|
|
67
|
+
|
|
68
|
+
pre {
|
|
69
|
+
padding-top: 3px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
pre {
|
|
74
|
+
display: block;
|
|
75
|
+
margin: 0 !important;
|
|
76
|
+
padding: 0 !important;
|
|
77
|
+
border-radius: 0 0 4px 4px !important;
|
|
78
|
+
background: var($--theme-codefence-background-color) !important;
|
|
79
|
+
height: 100%;
|
|
80
|
+
width: 100%;
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
|
|
83
|
+
&.json-editor-pre {
|
|
84
|
+
height: 100%;
|
|
85
|
+
width: 100%;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
code {
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
margin: 0 !important;
|
|
92
|
+
padding: 20px !important;
|
|
93
|
+
display: block !important;
|
|
94
|
+
max-height: 600px;
|
|
95
|
+
color: white;
|
|
96
|
+
|
|
97
|
+
.linenumber {
|
|
98
|
+
min-width: 26px !important;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { GenesysDevIcon, GenesysDevIcons } from 'genesys-dev-icons';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { PrismAsync as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
4
|
+
import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
5
|
+
|
|
6
|
+
import CopyButton from '../copybutton/CopyButton';
|
|
7
|
+
|
|
8
|
+
import './CodeFence.scss';
|
|
9
|
+
|
|
10
|
+
declare global {
|
|
11
|
+
interface Window {
|
|
12
|
+
Prism: any;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface IProps {
|
|
17
|
+
value: string | JSX.Element;
|
|
18
|
+
noCollapse?: boolean;
|
|
19
|
+
noHeader?: boolean;
|
|
20
|
+
autoCollapse?: boolean;
|
|
21
|
+
title?: string;
|
|
22
|
+
language?: string;
|
|
23
|
+
showLineNumbers?: boolean;
|
|
24
|
+
indentation?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
jsonEditor?: boolean;
|
|
27
|
+
innerRef?: any;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default function CodeFence(props: IProps) {
|
|
31
|
+
const [collapsed, setCollapsed] = useState(props.noCollapse ? false : props.autoCollapse || false);
|
|
32
|
+
|
|
33
|
+
const bodyClassNames: string[] = ['fence-body'];
|
|
34
|
+
if (props.jsonEditor) bodyClassNames.push('json-editor-body');
|
|
35
|
+
|
|
36
|
+
const classNames: string[] = ['fence'];
|
|
37
|
+
if (props.className) classNames.push(props.className);
|
|
38
|
+
if (props.noCollapse) classNames.push('nocollapse');
|
|
39
|
+
if (props.indentation) classNames.push(`indent-${props.indentation}`);
|
|
40
|
+
if (props.jsonEditor) classNames.push('json-editor-fence');
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<div className={classNames.join(' ')}>
|
|
44
|
+
{props.noHeader || typeof props.value !== 'string' ? (
|
|
45
|
+
''
|
|
46
|
+
) : (
|
|
47
|
+
<div
|
|
48
|
+
className={`fence-header${props.noCollapse ? '' : ' clickable'}`}
|
|
49
|
+
onClick={() => setCollapsed(props.noCollapse ? false : !collapsed)}
|
|
50
|
+
>
|
|
51
|
+
{/* this is a row-reverse flexbox, the JSX is meant to be backwards */}
|
|
52
|
+
{props.noCollapse ? undefined : (
|
|
53
|
+
<GenesysDevIcon icon={collapsed ? GenesysDevIcons.AppChevronDown : GenesysDevIcons.AppChevronUp} />
|
|
54
|
+
)}
|
|
55
|
+
<CopyButton copyText={props.value} />
|
|
56
|
+
<span className="fence-title">{props.title}</span>
|
|
57
|
+
</div>
|
|
58
|
+
)}
|
|
59
|
+
{collapsed ? undefined : (
|
|
60
|
+
<div ref={props.innerRef || undefined} className={bodyClassNames.join(' ')}>
|
|
61
|
+
<SyntaxHighlighter language={props.language} style={vscDarkPlus} showLineNumbers={props.showLineNumbers}>
|
|
62
|
+
{props.value}
|
|
63
|
+
</SyntaxHighlighter>
|
|
64
|
+
</div>
|
|
65
|
+
)}
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-accordion {
|
|
2
4
|
margin: 0;
|
|
3
5
|
|
|
4
6
|
.accordion-heading {
|
|
5
7
|
border-width: 0 0 1px 0;
|
|
6
8
|
border-style: solid;
|
|
7
|
-
border-color:
|
|
9
|
+
border-color: var($--theme-core-layout-border-color);
|
|
8
10
|
font-style: normal;
|
|
9
11
|
font-weight: bold;
|
|
10
12
|
font-size: 14px;
|
|
11
13
|
line-height: 14px;
|
|
12
|
-
color:
|
|
14
|
+
color: var($--theme-core-text-color);
|
|
13
15
|
padding: 13px 20px;
|
|
14
16
|
display: flex;
|
|
15
17
|
flex-flow: row nowrap;
|
|
@@ -27,8 +29,9 @@
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.accordion-content {
|
|
32
|
+
color: var($--theme-core-text-color);
|
|
30
33
|
padding: 13px 20px 20px 20px;
|
|
31
|
-
border-bottom: 1px solid
|
|
34
|
+
border-bottom: 1px solid var($--theme-core-layout-border-color);
|
|
32
35
|
|
|
33
36
|
// Clear excess margins from content, we provide the padding
|
|
34
37
|
& > *:first-child {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-button {
|
|
2
4
|
margin: 15px 10px;
|
|
3
5
|
border-radius: 2px;
|
|
@@ -6,67 +8,68 @@
|
|
|
6
8
|
font-weight: 500;
|
|
7
9
|
|
|
8
10
|
&-primary {
|
|
9
|
-
color:
|
|
10
|
-
border: 1px solid
|
|
11
|
-
background-color:
|
|
11
|
+
color: var($--theme-dxbutton-primary-text-color);
|
|
12
|
+
border: 1px solid var($--theme-dxbutton-primary-background-color);
|
|
13
|
+
background-color: var($--theme-dxbutton-primary-background-color);
|
|
12
14
|
|
|
13
15
|
&:hover {
|
|
14
|
-
background-color:
|
|
15
|
-
border-color:
|
|
16
|
+
background-color: var($--theme-dxbutton-primary-hover-background-color);
|
|
17
|
+
border-color: var($--theme-dxbutton-primary-hover-background-color);
|
|
16
18
|
transition: 0.1s;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
&:focus {
|
|
20
|
-
background-color:
|
|
21
|
-
border-color:
|
|
22
|
-
box-shadow: 0 0 0 2px
|
|
22
|
+
background-color: var($--theme-dxbutton-primary-background-color);
|
|
23
|
+
border-color: var($--theme-dxbutton-primary-background-color);
|
|
24
|
+
box-shadow: 0 0 0 2px var($--theme-dxbutton-primary-shadow-color);
|
|
23
25
|
transition: 0.1s;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
&:disabled {
|
|
27
|
-
background-color:
|
|
28
|
-
border-color:
|
|
29
|
+
background-color: var($--theme-dxbutton-primary-disabled-background-color);
|
|
30
|
+
border-color: var($--theme-dxbutton-primary-disabled-background-color);
|
|
29
31
|
transition: 0.1s;
|
|
30
32
|
cursor: not-allowed;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
&-secondary {
|
|
35
|
-
color:
|
|
36
|
-
border: 1px solid
|
|
37
|
-
|
|
37
|
+
background-color: var($--theme-dxbutton-secondary-background-color);
|
|
38
|
+
border: 1px solid var($--theme-dxbutton-secondary-border-color);
|
|
39
|
+
color: var($--theme-dxbutton-secondary-border-color);
|
|
38
40
|
|
|
39
41
|
&:hover {
|
|
40
|
-
color:
|
|
41
|
-
border-color:
|
|
42
|
+
color: var($--theme-dxbutton-secondary-hover-border-color);
|
|
43
|
+
border-color: var($--theme-dxbutton-secondary-border-color);
|
|
42
44
|
transition: 0.1s;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
&:focus {
|
|
46
|
-
color:
|
|
47
|
-
border-color:
|
|
48
|
-
box-shadow: 0 0 0 2px
|
|
48
|
+
color: var($--theme-dxbutton-secondary-border-color);
|
|
49
|
+
border-color: var($--theme-dxbutton-secondary-border-color);
|
|
50
|
+
box-shadow: 0 0 0 2px var($--theme-dxbutton-secondary-shadow-color);
|
|
49
51
|
transition: 0.1s;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
&:disabled {
|
|
53
|
-
color:
|
|
54
|
-
background-color:
|
|
55
|
-
border-color:
|
|
55
|
+
color: var($--theme-dxbutton-secondary-disabled-text-color);
|
|
56
|
+
background-color: var($--theme-dxbutton-secondary-disabled-background-color);
|
|
57
|
+
border-color: var($--theme-dxbutton-secondary-disabled-background-color);
|
|
56
58
|
transition: 0.1s;
|
|
57
59
|
cursor: not-allowed;
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
&-link {
|
|
62
|
-
color:
|
|
64
|
+
color: var($--theme-core-link-color);
|
|
63
65
|
background: transparent;
|
|
64
66
|
margin: 0;
|
|
65
67
|
padding: 0 2px;
|
|
66
68
|
border: 0;
|
|
67
69
|
|
|
68
70
|
&:hover {
|
|
69
|
-
color:
|
|
71
|
+
color: var($--theme-core-link-hover-color);
|
|
72
|
+
border-color: var($--theme-dxbutton-secondary-border-color);
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
&:disabled {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-checkbox {
|
|
2
4
|
display: flex;
|
|
3
5
|
flex-flow: row nowrap;
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
font-weight: normal;
|
|
15
17
|
font-size: 12px;
|
|
16
18
|
line-height: 18px;
|
|
17
|
-
color:
|
|
19
|
+
color: var($--theme-core-text-color);
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
input[type='checkbox'] {
|
|
@@ -26,9 +28,9 @@
|
|
|
26
28
|
margin: 0 8px 0 0;
|
|
27
29
|
width: 16px;
|
|
28
30
|
height: 16px;
|
|
29
|
-
border: 1px solid
|
|
31
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
30
32
|
border-radius: 2px;
|
|
31
|
-
background-color:
|
|
33
|
+
background-color: var($--theme-core-control-background-color);
|
|
32
34
|
flex-shrink: 0;
|
|
33
35
|
}
|
|
34
36
|
|
|
@@ -39,7 +41,7 @@
|
|
|
39
41
|
|
|
40
42
|
// Fill in background on check
|
|
41
43
|
input[type='checkbox']:checked {
|
|
42
|
-
background-color:
|
|
44
|
+
background-color: var($--theme-core-control-background-color);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
// Display checkmark on check
|
|
@@ -50,10 +52,10 @@
|
|
|
50
52
|
left: 3px;
|
|
51
53
|
font-size: 9px;
|
|
52
54
|
line-height: 0;
|
|
53
|
-
color:
|
|
55
|
+
color: var($--theme-core-control-punch-color);
|
|
54
56
|
|
|
55
57
|
// genesys-dev-icons app-check
|
|
56
|
-
content: '\
|
|
58
|
+
content: '\f104';
|
|
57
59
|
font-family: genesys-dev-icons !important;
|
|
58
60
|
font-style: normal;
|
|
59
61
|
font-weight: normal !important;
|
|
@@ -64,19 +66,22 @@
|
|
|
64
66
|
-moz-osx-font-smoothing: grayscale;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
// Hover -
|
|
69
|
+
// Hover - checkbox
|
|
68
70
|
input[type='checkbox']:not(:disabled):hover {
|
|
69
|
-
border-color:
|
|
71
|
+
border-color: var($--theme-core-control-punch-color);
|
|
70
72
|
}
|
|
71
73
|
|
|
72
|
-
// Focus -
|
|
74
|
+
// Focus - checkbox
|
|
73
75
|
input[type='checkbox']:not(:disabled):focus {
|
|
74
|
-
outline:
|
|
76
|
+
outline: var($--theme-core-control-focus-color) solid 2px;
|
|
75
77
|
}
|
|
76
78
|
// Disable default focus outline
|
|
77
79
|
input[type='checkbox']:not(:disabled):focus-visible {
|
|
78
80
|
outline: 0;
|
|
79
81
|
}
|
|
82
|
+
|
|
83
|
+
////// RADIO
|
|
84
|
+
|
|
80
85
|
input[type='radio'] {
|
|
81
86
|
// Hide default appearance
|
|
82
87
|
-webkit-appearance: none;
|
|
@@ -86,9 +91,9 @@
|
|
|
86
91
|
margin: 0 8px 0 0;
|
|
87
92
|
width: 16px;
|
|
88
93
|
height: 16px;
|
|
89
|
-
border: 1px solid
|
|
94
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
90
95
|
border-radius: 8px;
|
|
91
|
-
background-color:
|
|
96
|
+
background-color: var($--theme-core-control-background-color);
|
|
92
97
|
flex-shrink: 0;
|
|
93
98
|
}
|
|
94
99
|
|
|
@@ -107,17 +112,17 @@
|
|
|
107
112
|
position: relative;
|
|
108
113
|
top: 2px;
|
|
109
114
|
left: 2px;
|
|
110
|
-
background-color:
|
|
115
|
+
background-color: var($--theme-core-control-punch-color);
|
|
111
116
|
}
|
|
112
117
|
|
|
113
118
|
// Hover - radio button
|
|
114
119
|
input[type='radio']:not(:disabled):hover {
|
|
115
|
-
border-color:
|
|
120
|
+
border-color: var($--theme-core-control-punch-color);
|
|
116
121
|
}
|
|
117
122
|
|
|
118
123
|
// Focus - radio button
|
|
119
124
|
input[type='radio']:not(:disabled):focus {
|
|
120
|
-
outline:
|
|
125
|
+
outline: var($--theme-core-control-focus-color) solid 2px;
|
|
121
126
|
}
|
|
122
127
|
// Disable default focus outline
|
|
123
128
|
input[type='radio']:not(:disabled):focus-visible {
|
|
@@ -128,13 +133,13 @@
|
|
|
128
133
|
cursor: not-allowed;
|
|
129
134
|
|
|
130
135
|
input {
|
|
131
|
-
border-color:
|
|
136
|
+
border-color: var($--theme-core-control-disabled-border-color);
|
|
132
137
|
cursor: not-allowed;
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
// Fill in background on check
|
|
136
141
|
input:checked {
|
|
137
|
-
background-color:
|
|
142
|
+
background-color: var($--theme-core-control-disabled-background-color);
|
|
138
143
|
cursor: not-allowed;
|
|
139
144
|
}
|
|
140
145
|
}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-select-group {
|
|
2
4
|
appearance: none;
|
|
3
5
|
position: relative;
|
|
4
6
|
|
|
5
7
|
select {
|
|
6
|
-
border: 1px solid
|
|
8
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
7
9
|
border-radius: 2px;
|
|
8
|
-
background-color:
|
|
10
|
+
background-color: var($--theme-core-control-alt-background-color);
|
|
9
11
|
font-style: normal;
|
|
10
12
|
font-weight: 300;
|
|
11
13
|
font-size: 12px;
|
|
12
14
|
line-height: 14px;
|
|
13
|
-
color:
|
|
15
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
14
16
|
padding: 8px 32px 8px 12px;
|
|
15
17
|
width: 100%;
|
|
16
18
|
appearance: none;
|
|
17
19
|
|
|
18
20
|
&:focus-visible {
|
|
19
|
-
outline: 2px solid
|
|
21
|
+
outline: 2px solid var($--theme-core-control-focus-color);
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
position: absolute;
|
|
25
27
|
bottom: 12px;
|
|
26
28
|
right: 12px;
|
|
27
|
-
content: '\
|
|
29
|
+
content: '\f105';
|
|
28
30
|
font-size: 8px;
|
|
29
31
|
font-family: genesys-dev-icons !important;
|
|
30
32
|
font-style: normal;
|
|
@@ -40,13 +42,13 @@
|
|
|
40
42
|
|
|
41
43
|
&.disabled {
|
|
42
44
|
&::after {
|
|
43
|
-
color:
|
|
45
|
+
color: var($--theme-core-control-disabled-text-color);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
select:disabled {
|
|
47
|
-
background-color:
|
|
48
|
-
border-color:
|
|
49
|
-
color:
|
|
49
|
+
background-color: var($--theme-core-control-disabled-background-color);
|
|
50
|
+
border-color: var($--theme-core-control-disabled-border-color);
|
|
51
|
+
color: var($--theme-core-control-disabled-text-color);
|
|
50
52
|
cursor: not-allowed;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-multiselect-group {
|
|
2
4
|
appearance: none;
|
|
3
5
|
position: relative;
|
|
4
6
|
|
|
5
7
|
select {
|
|
6
|
-
border: 1px solid
|
|
8
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
7
9
|
border-radius: 2px;
|
|
8
|
-
background-color:
|
|
10
|
+
background-color: var($--theme-core-control-alt-background-color);
|
|
9
11
|
font-style: normal;
|
|
10
12
|
font-weight: 300;
|
|
11
13
|
font-size: 12px;
|
|
12
14
|
line-height: 14px;
|
|
13
|
-
color:
|
|
15
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
14
16
|
width: 100%;
|
|
15
17
|
appearance: none;
|
|
16
18
|
|
|
17
19
|
&:focus-visible {
|
|
18
|
-
outline: 2px solid
|
|
20
|
+
outline: 2px solid var($--theme-core-control-focus-color);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
option {
|
|
@@ -28,10 +30,11 @@
|
|
|
28
30
|
font-size: 12px;
|
|
29
31
|
line-height: 31px;
|
|
30
32
|
padding: 8px 12px;
|
|
31
|
-
color:
|
|
33
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
32
34
|
|
|
33
35
|
&:checked {
|
|
34
|
-
|
|
36
|
+
color: var($--theme-core-tag-text-color);
|
|
37
|
+
background-color: var($--theme-core-tag-background-color);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
&:disabled {
|
|
@@ -62,12 +65,12 @@
|
|
|
62
65
|
|
|
63
66
|
&.disabled {
|
|
64
67
|
select:disabled {
|
|
65
|
-
background-color:
|
|
66
|
-
border-color:
|
|
68
|
+
background-color: var($--theme-core-control-disabled-background-color);
|
|
69
|
+
border-color: var($--theme-core-control-disabled-border-color);
|
|
67
70
|
cursor: not-allowed;
|
|
68
71
|
|
|
69
72
|
option {
|
|
70
|
-
color:
|
|
73
|
+
color: var($--theme-core-control-disabled-text-color);
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
}
|
package/src/dxlabel/DxLabel.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-label {
|
|
2
4
|
margin: 20px 0;
|
|
3
5
|
display: block;
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
font-weight: 400;
|
|
11
13
|
font-size: 12px;
|
|
12
14
|
line-height: 14px;
|
|
13
|
-
color:
|
|
15
|
+
color: var($--theme-core-control-label-color);
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
.label-text {
|
|
@@ -24,8 +26,8 @@
|
|
|
24
26
|
gap: 8px;
|
|
25
27
|
|
|
26
28
|
.icon {
|
|
27
|
-
color:
|
|
29
|
+
color: var($--theme-alertblock-info-icon-color);
|
|
28
30
|
line-height: 0;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
|
-
}
|
|
33
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-tabbed-content {
|
|
2
4
|
margin: 40px 0;
|
|
3
5
|
|
|
4
6
|
.tab-titles {
|
|
5
|
-
border-bottom: 1px solid
|
|
7
|
+
border-bottom: 1px solid var($--theme-core-layout-border-color);
|
|
6
8
|
font-weight: normal;
|
|
7
9
|
font-size: 14px;
|
|
8
10
|
line-height: 20px;
|
|
@@ -14,11 +16,11 @@
|
|
|
14
16
|
cursor: pointer;
|
|
15
17
|
|
|
16
18
|
&:hover {
|
|
17
|
-
border-color:
|
|
19
|
+
border-color: var($--theme-core-control-punch-color);
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
&.active {
|
|
21
|
-
border-bottom-color:
|
|
23
|
+
border-bottom-color: var($--theme-core-control-punch-color);
|
|
22
24
|
font-weight: bold;
|
|
23
25
|
}
|
|
24
26
|
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
|
|
33
35
|
.tab-content {
|
|
34
36
|
padding: 13px 20px 20px 20px;
|
|
35
|
-
border-bottom: 1px solid
|
|
37
|
+
border-bottom: 1px solid var($--theme-core-layout-border-color);
|
|
36
38
|
|
|
37
39
|
// Clear excess margins from content, we provide the padding
|
|
38
40
|
& > *:first-child {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
@import '../theme/variables.scss';
|
|
2
|
+
|
|
1
3
|
.dx-textbox {
|
|
2
4
|
display: flex;
|
|
3
5
|
flex-flow: row nowrap;
|
|
4
6
|
justify-content: space-between;
|
|
5
7
|
align-items: center;
|
|
6
8
|
gap: 10px;
|
|
7
|
-
border: 1px solid
|
|
9
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
8
10
|
border-radius: 2px;
|
|
9
11
|
margin: 0;
|
|
10
12
|
padding: 0 10px;
|
|
11
13
|
height: 32px;
|
|
12
|
-
background-color:
|
|
14
|
+
background-color: var($--theme-core-control-alt-background-color);
|
|
13
15
|
|
|
14
16
|
&.with-label {
|
|
15
17
|
margin-top: 0;
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
.icon {
|
|
23
25
|
display: block;
|
|
24
26
|
flex: none;
|
|
25
|
-
color:
|
|
27
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
26
28
|
|
|
27
29
|
&.input-icon {
|
|
28
30
|
font-size: 14px;
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
font-weight: normal;
|
|
53
55
|
font-size: 14px;
|
|
54
56
|
line-height: 16px;
|
|
55
|
-
color:
|
|
57
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
56
58
|
|
|
57
59
|
&:focus-visible {
|
|
58
60
|
outline: 0;
|
|
@@ -63,37 +65,38 @@
|
|
|
63
65
|
font-weight: 300;
|
|
64
66
|
font-size: 14px;
|
|
65
67
|
line-height: 16px;
|
|
66
|
-
color:
|
|
68
|
+
color: var($--theme-core-control-textbox-placeholder-text-color);
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
&.disabled {
|
|
71
|
-
background-color:
|
|
72
|
-
border-color: #e8eaed;
|
|
73
|
+
background-color: var($--theme-dxbutton-secondary-disabled-background-color);
|
|
73
74
|
cursor: not-allowed;
|
|
74
75
|
|
|
75
76
|
input {
|
|
76
77
|
cursor: not-allowed;
|
|
77
|
-
color:
|
|
78
|
+
color: var($--theme-dxbutton-secondary-disabled-text-color);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.icon,
|
|
81
82
|
input::placeholder {
|
|
82
|
-
color:
|
|
83
|
+
color: var($--theme-dxbutton-secondary-disabled-text-color);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
.dx-textarea {
|
|
88
89
|
padding: 10px;
|
|
89
|
-
border: 1px solid
|
|
90
|
+
border: 1px solid var($--theme-core-control-border-color);
|
|
90
91
|
border-radius: 2px;
|
|
91
92
|
width: 100%;
|
|
92
93
|
font-family: 'Roboto', sans-serif;
|
|
93
94
|
box-sizing: border-box;
|
|
95
|
+
background-color: var($--theme-core-control-alt-background-color);
|
|
96
|
+
color: var($--theme-core-control-textbox-text-color);
|
|
94
97
|
|
|
95
98
|
&:focus-within {
|
|
96
|
-
outline:
|
|
99
|
+
outline: var($--theme-core-control-focus-color) solid 2px;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
&::placeholder {
|
|
@@ -102,6 +105,6 @@
|
|
|
102
105
|
font-weight: 300;
|
|
103
106
|
font-size: 14px;
|
|
104
107
|
line-height: 16px;
|
|
105
|
-
color:
|
|
108
|
+
color: var($--theme-core-control-textbox-placeholder-text-color);
|
|
106
109
|
}
|
|
107
110
|
}
|