@webitel/styleguide 24.12.52 → 24.12.54
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/package.json +1 -1
- package/src/lib/primevue/components/chip/colors/dark/index.ts +23 -16
- package/src/lib/primevue/components/chip/colors/light/index.ts +24 -17
- package/src/lib/primevue/components/chip/sizes/index.ts +2 -2
- package/src/lib/primevue/components/index.ts +3 -1
- package/src/lib/primevue/components/radio/colors/dark/index.ts +29 -0
- package/src/lib/primevue/components/radio/colors/index.ts +9 -0
- package/src/lib/primevue/components/radio/colors/light/index.ts +29 -0
- package/src/lib/primevue/components/radio/index.ts +9 -0
- package/src/lib/primevue/components/radio/sizes/index.ts +33 -0
package/package.json
CHANGED
|
@@ -1,45 +1,52 @@
|
|
|
1
1
|
const darkColors = {
|
|
2
2
|
background: '{surface.100}',
|
|
3
3
|
color: '{surface.800}',
|
|
4
|
-
/**
|
|
5
|
-
* @author Yehor Hlukhov
|
|
6
|
-
*
|
|
7
|
-
* referred to Evgeniy Trahtenberg
|
|
8
|
-
* need to add colors for main
|
|
9
|
-
* */
|
|
10
4
|
main: {
|
|
11
|
-
background: '{
|
|
12
|
-
color: '{
|
|
5
|
+
background: '{amber.650}',
|
|
6
|
+
color: '{amber.950}',
|
|
7
|
+
iconColor: '{amber.900}',
|
|
8
|
+
iconHoverColor: '{amber.950}'
|
|
13
9
|
},
|
|
14
10
|
primary: {
|
|
15
11
|
background: '{primary.color}',
|
|
16
|
-
color: '{primary.foreground}'
|
|
12
|
+
color: '{primary.foreground}',
|
|
13
|
+
iconColor: '{primary.foreground}',
|
|
14
|
+
iconHoverColor: '{primary.foregroundHover}'
|
|
17
15
|
},
|
|
18
16
|
secondary: {
|
|
19
17
|
background: '{secondary.color}',
|
|
20
|
-
color: '{secondary.foreground}'
|
|
18
|
+
color: '{secondary.foreground}',
|
|
19
|
+
iconColor: '{secondary.foreground}',
|
|
20
|
+
iconHoverColor: '{secondary.foregroundHover}'
|
|
21
21
|
},
|
|
22
22
|
success: {
|
|
23
23
|
background: '{success.color}',
|
|
24
|
-
color: '{success.foreground}'
|
|
24
|
+
color: '{success.foreground}',
|
|
25
|
+
iconColor: '{success.foreground}',
|
|
26
|
+
iconHoverColor: '{success.foregroundHover}'
|
|
25
27
|
},
|
|
26
28
|
warning: {
|
|
27
29
|
background: '{warn.color}',
|
|
28
|
-
color: '{warn.foreground}'
|
|
30
|
+
color: '{warn.foreground}',
|
|
31
|
+
iconColor: '{warn.foreground}',
|
|
32
|
+
iconHoverColor: '{warn.foregroundHover}'
|
|
29
33
|
},
|
|
30
34
|
error: {
|
|
31
35
|
background: '{error.color}',
|
|
32
|
-
color: '{error.foreground}'
|
|
36
|
+
color: '{error.foreground}',
|
|
37
|
+
iconColor: '{error.foreground}',
|
|
38
|
+
iconHoverColor: '{error.foregroundHover}'
|
|
33
39
|
},
|
|
34
40
|
transfer: {
|
|
35
41
|
background: '{transfer.color}',
|
|
36
|
-
color: '{transfer.foreground}'
|
|
42
|
+
color: '{transfer.foreground}',
|
|
43
|
+
iconColor: '{transfer.foreground}',
|
|
44
|
+
iconHoverColor: '{transfer.foregroundHover}'
|
|
37
45
|
},
|
|
38
46
|
removeIcon: {
|
|
39
47
|
focusRing: {
|
|
40
|
-
color: '{focus.ring.color}',
|
|
41
48
|
shadow: '{form.field.focus.ring.shadow}'
|
|
42
|
-
}
|
|
49
|
+
},
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
52
|
|
|
@@ -1,45 +1,52 @@
|
|
|
1
1
|
const lightColors = {
|
|
2
|
-
background: '{surface.
|
|
2
|
+
background: '{surface.200}',
|
|
3
3
|
color: '{surface.800}',
|
|
4
|
-
/**
|
|
5
|
-
* @author Yehor Hlukhov
|
|
6
|
-
*
|
|
7
|
-
* referred to Evgeniy Trahtenberg
|
|
8
|
-
* need to add colors for main
|
|
9
|
-
* */
|
|
10
4
|
main: {
|
|
11
|
-
background: '{
|
|
12
|
-
color: '{
|
|
5
|
+
background: '{amber.200}',
|
|
6
|
+
color: '{amber.950}',
|
|
7
|
+
iconColor: '{amber.800}',
|
|
8
|
+
iconHoverColor: '{amber.850}'
|
|
13
9
|
},
|
|
14
10
|
primary: {
|
|
15
11
|
background: '{primary.color}',
|
|
16
|
-
color: '{primary.foreground}'
|
|
12
|
+
color: '{primary.foreground}',
|
|
13
|
+
iconColor: '{primary.foreground}',
|
|
14
|
+
iconHoverColor: '{primary.foregroundHover}'
|
|
17
15
|
},
|
|
18
16
|
secondary: {
|
|
19
17
|
background: '{secondary.color}',
|
|
20
|
-
color: '{secondary.foreground}'
|
|
18
|
+
color: '{secondary.foreground}',
|
|
19
|
+
iconColor: '{secondary.foreground}',
|
|
20
|
+
iconHoverColor: '{secondary.foregroundHover}'
|
|
21
21
|
},
|
|
22
22
|
success: {
|
|
23
23
|
background: '{success.color}',
|
|
24
|
-
color: '{success.foreground}'
|
|
24
|
+
color: '{success.foreground}',
|
|
25
|
+
iconColor: '{success.foreground}',
|
|
26
|
+
iconHoverColor: '{success.foregroundHover}'
|
|
25
27
|
},
|
|
26
28
|
warning: {
|
|
27
29
|
background: '{warn.color}',
|
|
28
|
-
color: '{warn.foreground}'
|
|
30
|
+
color: '{warn.foreground}',
|
|
31
|
+
iconColor: '{warn.foreground}',
|
|
32
|
+
iconHoverColor: '{warn.foregroundHover}'
|
|
29
33
|
},
|
|
30
34
|
error: {
|
|
31
35
|
background: '{error.color}',
|
|
32
|
-
color: '{error.foreground}'
|
|
36
|
+
color: '{error.foreground}',
|
|
37
|
+
iconColor: '{error.foreground}',
|
|
38
|
+
iconHoverColor: '{error.foregroundHover}'
|
|
33
39
|
},
|
|
34
40
|
transfer: {
|
|
35
41
|
background: '{transfer.color}',
|
|
36
|
-
color: '{transfer.foreground}'
|
|
42
|
+
color: '{transfer.foreground}',
|
|
43
|
+
iconColor: '{transfer.foreground}',
|
|
44
|
+
iconHoverColor: '{transfer.foregroundHover}'
|
|
37
45
|
},
|
|
38
46
|
removeIcon: {
|
|
39
47
|
focusRing: {
|
|
40
|
-
color: '{focus.ring.color}',
|
|
41
48
|
shadow: '{form.field.focus.ring.shadow}'
|
|
42
|
-
}
|
|
49
|
+
},
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
52
|
|
|
@@ -7,6 +7,7 @@ import ToolbarScheme from './toolbar';
|
|
|
7
7
|
import ChipScheme from "./chip";
|
|
8
8
|
import CheckboxScheme from "./checkbox";
|
|
9
9
|
import TableScheme from "./table";
|
|
10
|
+
import RadioScheme from "./radio";
|
|
10
11
|
|
|
11
12
|
export {
|
|
12
13
|
AvatarScheme,
|
|
@@ -17,5 +18,6 @@ export {
|
|
|
17
18
|
ToolbarScheme,
|
|
18
19
|
ChipScheme,
|
|
19
20
|
CheckboxScheme,
|
|
20
|
-
TableScheme
|
|
21
|
+
TableScheme,
|
|
22
|
+
RadioScheme,
|
|
21
23
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const darkColors = {
|
|
2
|
+
root: {
|
|
3
|
+
background: '{transparent}',
|
|
4
|
+
checkedBackground: '{surface.300}',
|
|
5
|
+
checkedHoverBackground: '{surface.200}',
|
|
6
|
+
disabledBackground: '{surface.650}',
|
|
7
|
+
filledBackground: '{form.field.filled.background}',
|
|
8
|
+
borderColor: '{surface.300}',
|
|
9
|
+
hoverBorderColor: '{surface.200}',
|
|
10
|
+
focusBorderColor: '{focus-color}',
|
|
11
|
+
checkedBorderColor: '{surface.300}',
|
|
12
|
+
checkedHoverBorderColor: '{surface.200}',
|
|
13
|
+
checkedFocusBorderColor: '{focus-color}',
|
|
14
|
+
checkedDisabledBorderColor: '{surface.650}',
|
|
15
|
+
invalidBorderColor: '{form.field.invalid.border.color}',
|
|
16
|
+
shadow: '{form.field.shadow}',
|
|
17
|
+
focusRing: {
|
|
18
|
+
color: '{focus-color}',
|
|
19
|
+
shadow: '{focus.ring.shadow}'
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
checkedColor: '{surface.800}',
|
|
24
|
+
checkedHoverColor: '{surface.800}',
|
|
25
|
+
disabledColor: '{surface.500}',
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default darkColors
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const lightColors = {
|
|
2
|
+
root: {
|
|
3
|
+
background: '{transparent}',
|
|
4
|
+
checkedBackground: '{surface.700}',
|
|
5
|
+
checkedHoverBackground: '{surface.600}',
|
|
6
|
+
disabledBackground: '{surface.200}',
|
|
7
|
+
filledBackground: '{form.field.filled.background}',
|
|
8
|
+
borderColor: '{surface.700}',
|
|
9
|
+
hoverBorderColor: '{surface.600}',
|
|
10
|
+
focusBorderColor: '{focus-color}',
|
|
11
|
+
checkedBorderColor: '{surface.700}',
|
|
12
|
+
checkedHoverBorderColor: '{surface.600}',
|
|
13
|
+
checkedFocusBorderColor: '{focus-color}',
|
|
14
|
+
checkedDisabledBorderColor: '{surface.200}',
|
|
15
|
+
invalidBorderColor: '{form.field.invalid.border.color}',
|
|
16
|
+
shadow: '{form.field.shadow}',
|
|
17
|
+
focusRing: {
|
|
18
|
+
color: '{focus-color}',
|
|
19
|
+
shadow: '{focus.ring.shadow}'
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
checkedColor: '{surface.0}',
|
|
24
|
+
checkedHoverColor: '{surface.0}',
|
|
25
|
+
disabledColor: '{surface.400}',
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default lightColors
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const sizes = {
|
|
2
|
+
root: {
|
|
3
|
+
width: '1.125rem',
|
|
4
|
+
height: '1.125rem',
|
|
5
|
+
focusRing: {
|
|
6
|
+
width: '{focus.ring.width}',
|
|
7
|
+
style: '{focus.ring.style}',
|
|
8
|
+
offset: '{focus.ring.offset}',
|
|
9
|
+
},
|
|
10
|
+
transitionDuration: '{form.field.transition.duration}',
|
|
11
|
+
sm: {
|
|
12
|
+
width: '1rem',
|
|
13
|
+
height: '1rem'
|
|
14
|
+
},
|
|
15
|
+
lg: {
|
|
16
|
+
width: '1.5rem',
|
|
17
|
+
height: '1.5rem'
|
|
18
|
+
},
|
|
19
|
+
wrapperWidth: '1.5rem',
|
|
20
|
+
wrapperHeight: '1.5rem',
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
size: '0.5rem',
|
|
24
|
+
sm: {
|
|
25
|
+
size: '0.5rem'
|
|
26
|
+
},
|
|
27
|
+
lg: {
|
|
28
|
+
size: '1rem'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default sizes
|