@veracity/vui 2.3.0 → 2.4.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/avatar/theme.js +4 -4
- package/dist/cjs/badge/theme.js +1 -1
- package/dist/cjs/button/theme.js +7 -7
- package/dist/cjs/dialog/useDialog.js +1 -1
- package/dist/cjs/dragAndDrop/theme.js +1 -1
- package/dist/cjs/heading/theme.d.ts.map +1 -1
- package/dist/cjs/heading/theme.js +7 -3
- package/dist/cjs/icons/baseIcons/fab/fabMarkdown.d.ts +4 -0
- package/dist/cjs/icons/baseIcons/fab/fabMarkdown.d.ts.map +1 -0
- package/dist/cjs/icons/baseIcons/fab/fabMarkdown.js +7 -0
- package/dist/cjs/icons/baseIcons/icons.d.ts +14 -13
- package/dist/cjs/icons/baseIcons/icons.d.ts.map +1 -1
- package/dist/cjs/icons/baseIcons/icons.js +36 -34
- package/dist/cjs/icons/baseIcons/types.d.ts +1 -1
- package/dist/cjs/icons/baseIcons/types.d.ts.map +1 -1
- package/dist/cjs/input/consts.js +2 -2
- package/dist/cjs/link/theme.js +4 -4
- package/dist/cjs/list/listItem.js +2 -2
- package/dist/cjs/message/consts.js +1 -1
- package/dist/cjs/notification/theme.js +2 -2
- package/dist/cjs/pagination/theme.js +2 -2
- package/dist/cjs/progress/progress.js +1 -1
- package/dist/cjs/select/selectButton.js +2 -2
- package/dist/cjs/select/selectOption.js +1 -1
- package/dist/cjs/spinner/theme.js +2 -2
- package/dist/cjs/table/tableSortIcon.d.ts.map +1 -1
- package/dist/cjs/table/tableSortIcon.js +1 -2
- package/dist/cjs/table/tbody.d.ts.map +1 -1
- package/dist/cjs/table/tbody.js +7 -3
- package/dist/cjs/table/th.d.ts.map +1 -1
- package/dist/cjs/table/th.js +3 -2
- package/dist/cjs/table/thead.d.ts +0 -1
- package/dist/cjs/table/thead.d.ts.map +1 -1
- package/dist/cjs/table/thead.js +7 -11
- package/dist/cjs/table/theme.d.ts +7 -1
- package/dist/cjs/table/theme.d.ts.map +1 -1
- package/dist/cjs/table/theme.js +9 -3
- package/dist/cjs/table/tr.js +1 -1
- package/dist/cjs/tabs/tabsNavBar.js +2 -2
- package/dist/cjs/tag/theme.js +4 -4
- package/dist/cjs/theme/components.d.ts +7 -1
- package/dist/cjs/theme/components.d.ts.map +1 -1
- package/dist/cjs/theme/defaultTheme.d.ts +11 -1
- package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/colors.d.ts +6 -0
- package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/colors.js +8 -5
- package/dist/cjs/theme/foundations/fonts.d.ts +1 -0
- package/dist/cjs/theme/foundations/fonts.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/fonts.js +2 -1
- package/dist/cjs/theme/foundations/index.d.ts +4 -0
- package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
- package/dist/cjs/toast/toast.d.ts.map +1 -1
- package/dist/cjs/toast/toast.js +3 -2
- package/dist/esm/avatar/theme.js +4 -4
- package/dist/esm/badge/theme.js +1 -1
- package/dist/esm/button/theme.js +7 -7
- package/dist/esm/dialog/useDialog.js +1 -1
- package/dist/esm/dragAndDrop/theme.js +1 -1
- package/dist/esm/heading/theme.d.ts.map +1 -1
- package/dist/esm/heading/theme.js +4 -3
- package/dist/esm/icons/baseIcons/fab/fabMarkdown.d.ts +4 -0
- package/dist/esm/icons/baseIcons/fab/fabMarkdown.d.ts.map +1 -0
- package/dist/esm/icons/baseIcons/fab/fabMarkdown.js +5 -0
- package/dist/esm/icons/baseIcons/icons.d.ts +14 -13
- package/dist/esm/icons/baseIcons/icons.d.ts.map +1 -1
- package/dist/esm/icons/baseIcons/icons.js +14 -13
- package/dist/esm/icons/baseIcons/types.d.ts +1 -1
- package/dist/esm/icons/baseIcons/types.d.ts.map +1 -1
- package/dist/esm/input/consts.js +2 -2
- package/dist/esm/link/theme.js +4 -4
- package/dist/esm/list/listItem.js +2 -2
- package/dist/esm/message/consts.js +1 -1
- package/dist/esm/notification/theme.js +2 -2
- package/dist/esm/pagination/theme.js +3 -3
- package/dist/esm/progress/progress.js +1 -1
- package/dist/esm/select/selectButton.js +2 -2
- package/dist/esm/select/selectOption.js +1 -1
- package/dist/esm/spinner/theme.js +2 -2
- package/dist/esm/table/tableSortIcon.d.ts.map +1 -1
- package/dist/esm/table/tableSortIcon.js +1 -2
- package/dist/esm/table/tbody.d.ts.map +1 -1
- package/dist/esm/table/tbody.js +7 -3
- package/dist/esm/table/th.d.ts.map +1 -1
- package/dist/esm/table/th.js +3 -2
- package/dist/esm/table/thead.d.ts +0 -1
- package/dist/esm/table/thead.d.ts.map +1 -1
- package/dist/esm/table/thead.js +5 -9
- package/dist/esm/table/theme.d.ts +7 -1
- package/dist/esm/table/theme.d.ts.map +1 -1
- package/dist/esm/table/theme.js +9 -3
- package/dist/esm/table/tr.js +1 -1
- package/dist/esm/tabs/tabsNavBar.js +2 -2
- package/dist/esm/tag/theme.js +4 -4
- package/dist/esm/theme/components.d.ts +7 -1
- package/dist/esm/theme/components.d.ts.map +1 -1
- package/dist/esm/theme/defaultTheme.d.ts +11 -1
- package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
- package/dist/esm/theme/foundations/colors.d.ts +6 -0
- package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
- package/dist/esm/theme/foundations/colors.js +8 -5
- package/dist/esm/theme/foundations/fonts.d.ts +1 -0
- package/dist/esm/theme/foundations/fonts.d.ts.map +1 -1
- package/dist/esm/theme/foundations/fonts.js +2 -1
- package/dist/esm/theme/foundations/index.d.ts +4 -0
- package/dist/esm/theme/foundations/index.d.ts.map +1 -1
- package/dist/esm/toast/toast.d.ts.map +1 -1
- package/dist/esm/toast/toast.js +3 -2
- package/package.json +1 -1
- package/src/avatar/theme.ts +4 -4
- package/src/badge/theme.ts +1 -1
- package/src/button/theme.ts +7 -7
- package/src/dialog/useDialog.tsx +1 -1
- package/src/dragAndDrop/theme.ts +1 -1
- package/src/heading/theme.ts +5 -3
- package/src/icons/baseIcons/fab/fabMarkdown.ts +8 -0
- package/src/icons/baseIcons/icons.ts +14 -13
- package/src/icons/baseIcons/types.ts +9 -8
- package/src/input/consts.ts +2 -2
- package/src/link/theme.ts +4 -4
- package/src/list/listItem.tsx +2 -2
- package/src/message/consts.ts +1 -1
- package/src/notification/theme.ts +2 -2
- package/src/pagination/theme.ts +3 -3
- package/src/progress/progress.tsx +1 -1
- package/src/select/selectButton.tsx +2 -2
- package/src/select/selectOption.tsx +3 -3
- package/src/spinner/theme.ts +2 -2
- package/src/table/tableSortIcon.tsx +1 -3
- package/src/table/tbody.tsx +7 -3
- package/src/table/th.tsx +3 -2
- package/src/table/thead.tsx +6 -10
- package/src/table/theme.ts +9 -3
- package/src/table/tr.tsx +1 -1
- package/src/tabs/tabsNavBar.tsx +2 -2
- package/src/tag/theme.ts +4 -4
- package/src/theme/foundations/colors.ts +10 -7
- package/src/theme/foundations/fonts.ts +2 -1
- package/src/toast/toast.tsx +3 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export type BaseIcon =
|
|
2
2
|
| 'conCertificate'
|
|
3
3
|
| 'conCreateDataset'
|
|
4
|
-
| 'conDataSearchAlt'
|
|
5
|
-
| 'conDataSearchPlus'
|
|
6
4
|
| 'conDatabase'
|
|
7
5
|
| 'conDatabasePlus'
|
|
6
|
+
| 'conDataSearchAlt'
|
|
7
|
+
| 'conDataSearchPlus'
|
|
8
8
|
| 'conDataset'
|
|
9
9
|
| 'conFolderPlus'
|
|
10
10
|
| 'conInsightSearchAlt'
|
|
@@ -82,6 +82,7 @@ export type BaseIcon =
|
|
|
82
82
|
| 'fabGoogle'
|
|
83
83
|
| 'fabGoogleDrive'
|
|
84
84
|
| 'fabLinkedinIn'
|
|
85
|
+
| 'fabMarkdown'
|
|
85
86
|
| 'fabMedium'
|
|
86
87
|
| 'fabOsi'
|
|
87
88
|
| 'fabSlack'
|
|
@@ -119,14 +120,14 @@ export type BaseIcon =
|
|
|
119
120
|
| 'falArrowFromTop'
|
|
120
121
|
| 'falArrowLeft'
|
|
121
122
|
| 'falArrowRight'
|
|
123
|
+
| 'falArrows'
|
|
124
|
+
| 'falArrowsLeftRight'
|
|
125
|
+
| 'falArrowsUpDown'
|
|
122
126
|
| 'falArrowToBottom'
|
|
123
127
|
| 'falArrowToLeft'
|
|
124
128
|
| 'falArrowToRight'
|
|
125
129
|
| 'falArrowToTop'
|
|
126
130
|
| 'falArrowUp'
|
|
127
|
-
| 'falArrows'
|
|
128
|
-
| 'falArrowsLeftRight'
|
|
129
|
-
| 'falArrowsUpDown'
|
|
130
131
|
| 'falAward'
|
|
131
132
|
| 'falBalanceScale'
|
|
132
133
|
| 'falBan'
|
|
@@ -135,8 +136,8 @@ export type BaseIcon =
|
|
|
135
136
|
| 'falBinoculars'
|
|
136
137
|
| 'falBold'
|
|
137
138
|
| 'falBolt'
|
|
138
|
-
| 'falBookOpen'
|
|
139
139
|
| 'falBookmark'
|
|
140
|
+
| 'falBookOpen'
|
|
140
141
|
| 'falBrainCircuit'
|
|
141
142
|
| 'falBroadcastTower'
|
|
142
143
|
| 'falBroom'
|
|
@@ -344,10 +345,10 @@ export type BaseIcon =
|
|
|
344
345
|
| 'falUserFriends'
|
|
345
346
|
| 'falUserHeadset'
|
|
346
347
|
| 'falUserPlus'
|
|
347
|
-
| 'falUserShield'
|
|
348
|
-
| 'falUserTimes'
|
|
349
348
|
| 'falUsers'
|
|
350
349
|
| 'falUsersClass'
|
|
350
|
+
| 'falUserShield'
|
|
351
|
+
| 'falUserTimes'
|
|
351
352
|
| 'falWater'
|
|
352
353
|
| 'falWind'
|
|
353
354
|
| 'falWindTurbine'
|
package/src/input/consts.ts
CHANGED
|
@@ -5,9 +5,9 @@ export const inputColors = {
|
|
|
5
5
|
placeholder: 'sandstone.55',
|
|
6
6
|
inputText: 'sandstone.10',
|
|
7
7
|
helpText: 'sandstone.30',
|
|
8
|
-
icons: 'seaBlue.
|
|
8
|
+
icons: 'seaBlue.main',
|
|
9
9
|
disabled: 'sandstone.95',
|
|
10
|
-
focus: 'seaBlue.
|
|
10
|
+
focus: 'seaBlue.main',
|
|
11
11
|
error: 'energyRed.45',
|
|
12
12
|
loading: 'seaBlue.80',
|
|
13
13
|
success: 'landGreen.41'
|
package/src/link/theme.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function variantDefault() {
|
|
2
2
|
const container = {
|
|
3
|
-
color: `seaBlue.
|
|
4
|
-
hoverColor: `seaBlue.
|
|
3
|
+
color: `seaBlue.main`,
|
|
4
|
+
hoverColor: `seaBlue.main`
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
return { container }
|
|
@@ -18,8 +18,8 @@ function variantWhite() {
|
|
|
18
18
|
|
|
19
19
|
function variantLight() {
|
|
20
20
|
const container = {
|
|
21
|
-
color: `seaBlue.
|
|
22
|
-
hoverColor: `seaBlue.
|
|
21
|
+
color: `seaBlue.main`,
|
|
22
|
+
hoverColor: `seaBlue.main`
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
return { container }
|
package/src/list/listItem.tsx
CHANGED
|
@@ -29,8 +29,8 @@ export const ListItemBase = styled.liBox`
|
|
|
29
29
|
transition-duration: fast;
|
|
30
30
|
|
|
31
31
|
&[aria-disabled='true'] {
|
|
32
|
-
background-color:
|
|
33
|
-
color:
|
|
32
|
+
background-color: disabled.bg;
|
|
33
|
+
color: disabled.color;
|
|
34
34
|
cursor: not-allowed;
|
|
35
35
|
user-select: none;
|
|
36
36
|
}
|
package/src/message/consts.ts
CHANGED
package/src/pagination/theme.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const base = {
|
|
2
2
|
bg: 'transparent',
|
|
3
3
|
border: 'none',
|
|
4
|
-
color: 'darkBlue.
|
|
4
|
+
color: 'darkBlue.main'
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
const baseStyle = {
|
|
8
8
|
button: {
|
|
9
9
|
...base,
|
|
10
|
-
color: 'seaBlue.
|
|
11
|
-
hoverBg: 'skyBlue.
|
|
10
|
+
color: 'seaBlue.main',
|
|
11
|
+
hoverBg: 'skyBlue.main',
|
|
12
12
|
minW: 24
|
|
13
13
|
},
|
|
14
14
|
ellipsis: { ...base },
|
|
@@ -19,13 +19,13 @@ export const SelectButton = vui<'button', SelectButtonProps>((props, ref) => {
|
|
|
19
19
|
|
|
20
20
|
const text = valueText || placeholder
|
|
21
21
|
const textColor = disabled ? 'sandstone.10' : !valueText ? 'sandstone.10' : undefined
|
|
22
|
-
const iconColor = disabled ? 'sandstone.10' : 'seaBlue.
|
|
22
|
+
const iconColor = disabled ? 'sandstone.10' : 'seaBlue.main'
|
|
23
23
|
|
|
24
24
|
const readOnlyProps = readOnly
|
|
25
25
|
? {
|
|
26
26
|
activeBg: 'sandstone.95',
|
|
27
27
|
bg: 'sandstone.95',
|
|
28
|
-
color: 'seaBlue.
|
|
28
|
+
color: 'seaBlue.main',
|
|
29
29
|
cursor: 'auto',
|
|
30
30
|
disabled: true,
|
|
31
31
|
hoverBg: 'sandstone.95',
|
|
@@ -39,15 +39,15 @@ export const SelectOption = vui<'li', SelectOptionProps>((props, ref) => {
|
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
41
|
<ListItem
|
|
42
|
-
activeBg="skyBlue.
|
|
42
|
+
activeBg="skyBlue.active"
|
|
43
43
|
className={cs('vui-selectOption', className)}
|
|
44
44
|
disabled={disabled}
|
|
45
|
-
hoverBg="skyBlue.
|
|
45
|
+
hoverBg="skyBlue.hover"
|
|
46
46
|
isInteractive
|
|
47
47
|
isSelected={isSelected}
|
|
48
48
|
onClick={onClick}
|
|
49
49
|
ref={ref}
|
|
50
|
-
selectedBg="skyBlue.
|
|
50
|
+
selectedBg="skyBlue.selected"
|
|
51
51
|
title={title}
|
|
52
52
|
value={valueProp}
|
|
53
53
|
{...styles.item}
|
package/src/spinner/theme.ts
CHANGED
|
@@ -10,10 +10,8 @@ import { TableSortIconProps } from './table.types'
|
|
|
10
10
|
export const TableSortIcon = vui<'svg', TableSortIconProps>((props, ref) => {
|
|
11
11
|
const { className, order, ...rest } = props
|
|
12
12
|
const styles = useStyleConfig('Table', useTableContext())
|
|
13
|
-
|
|
14
|
-
// Rotating 1 icon is works better than switching multiple
|
|
15
13
|
const rotate = order === 'asc' ? 180 : 0
|
|
16
|
-
const pathFill = order !== undefined ? ['
|
|
14
|
+
const pathFill = order !== undefined ? ['seaBlue.main', 'sandstone.main'] : 'sandstone.main'
|
|
17
15
|
|
|
18
16
|
return (
|
|
19
17
|
<Icon
|
package/src/table/tbody.tsx
CHANGED
|
@@ -10,15 +10,19 @@ import Tr from './tr'
|
|
|
10
10
|
export const TbodyBase = styled.tbodyBox`
|
|
11
11
|
tr {
|
|
12
12
|
:hover td {
|
|
13
|
-
background-color:
|
|
13
|
+
background-color: skyBlue.hover;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&[data-selected='true']:hover td {
|
|
17
|
-
background-color:
|
|
17
|
+
background-color: skyBlue.hover;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[data-selected='true'] td {
|
|
21
|
+
border-bottom-color: sandstone.main;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
&[data-variant='striped'][data-selected='false']:nth-of-type(odd):not(:hover) td {
|
|
21
|
-
background-color:
|
|
25
|
+
background-color: sandstone.95;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
&[data-variant='basic']:hover td {
|
package/src/table/th.tsx
CHANGED
|
@@ -40,9 +40,9 @@ export const Th = vui<'th', ThProps>((props, ref) => {
|
|
|
40
40
|
const sortOrder = isActive ? sort.order : undefined
|
|
41
41
|
const isInteractive = isInteractiveProp ?? onClick !== undefined
|
|
42
42
|
|
|
43
|
-
const activeProps = isActive ? { bg: '
|
|
44
|
-
|
|
43
|
+
const activeProps = isActive ? { bg: 'skyBlue.active' } : {}
|
|
45
44
|
const disabledProps = disabled ? { bg: 'disabled.bg', color: 'disabled.color', cursor: 'not-allowed' } : {}
|
|
45
|
+
const hoverBg = isSortable ? 'skyBlue.hover' : undefined
|
|
46
46
|
|
|
47
47
|
const interactiveProps =
|
|
48
48
|
!disabled && isInteractive
|
|
@@ -59,6 +59,7 @@ export const Th = vui<'th', ThProps>((props, ref) => {
|
|
|
59
59
|
className={cs('vui-th', className)}
|
|
60
60
|
data-active={isActive}
|
|
61
61
|
data-disabled={disabled}
|
|
62
|
+
hoverBg={hoverBg}
|
|
62
63
|
px={2}
|
|
63
64
|
ref={ref}
|
|
64
65
|
{...styles.th}
|
package/src/table/thead.tsx
CHANGED
|
@@ -7,16 +7,6 @@ import { TheadProps } from './table.types'
|
|
|
7
7
|
import Th from './th'
|
|
8
8
|
import Tr from './tr'
|
|
9
9
|
|
|
10
|
-
export const TheadBase = styled.theadBox`
|
|
11
|
-
tr:not(:last-of-type) th {
|
|
12
|
-
border-bottom: 1px solid grey.20;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
tr:last-of-type th {
|
|
16
|
-
border-bottom: 1px solid grey.40;
|
|
17
|
-
}
|
|
18
|
-
`
|
|
19
|
-
|
|
20
10
|
/** Displays Table head with support for columns and sticky. */
|
|
21
11
|
export const Thead = vui<'thead', TheadProps>((props, ref) => {
|
|
22
12
|
const { children, className, ...rest } = props
|
|
@@ -32,6 +22,12 @@ export const Thead = vui<'thead', TheadProps>((props, ref) => {
|
|
|
32
22
|
}
|
|
33
23
|
: {}
|
|
34
24
|
|
|
25
|
+
const TheadBase = styled.theadBox`
|
|
26
|
+
tr th {
|
|
27
|
+
border-bottom: ${rest.borderBottom || '1px solid sandstone.main'};
|
|
28
|
+
}
|
|
29
|
+
`
|
|
30
|
+
|
|
35
31
|
return (
|
|
36
32
|
<TheadBase className={cs('vui-thead', className)} ref={ref} {...stickyProps} {...styles.thead} {...rest}>
|
|
37
33
|
{children ?? (
|
package/src/table/theme.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
const baseStyle = {
|
|
1
|
+
const baseStyle = {
|
|
2
|
+
th: {
|
|
3
|
+
fontSize: 14,
|
|
4
|
+
fontWeight: 500,
|
|
5
|
+
color: 'darkBlue.main'
|
|
6
|
+
}
|
|
7
|
+
}
|
|
2
8
|
|
|
3
9
|
const defaultProps = {
|
|
4
10
|
size: 'lg',
|
|
@@ -28,13 +34,13 @@ const sizes = {
|
|
|
28
34
|
const variants = {
|
|
29
35
|
bordered: {
|
|
30
36
|
td: {
|
|
31
|
-
borderBottom: '1px solid
|
|
37
|
+
borderBottom: '1px solid sandstone.90'
|
|
32
38
|
}
|
|
33
39
|
},
|
|
34
40
|
striped: {},
|
|
35
41
|
basic: {
|
|
36
42
|
td: {
|
|
37
|
-
borderBottom: '1px solid
|
|
43
|
+
borderBottom: '1px solid sandstone.90'
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
}
|
package/src/table/tr.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export const Tr = vui<'tr', TrProps>((props, ref) => {
|
|
|
15
15
|
const { variant } = useTableContext() ?? {}
|
|
16
16
|
const styles = useStyleConfig('Table', useTableContext())
|
|
17
17
|
|
|
18
|
-
const selectedProps = isSelected ? { bg: '
|
|
18
|
+
const selectedProps = isSelected ? { bg: 'skyBlue.selected' } : {}
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<TrBase
|
package/src/tabs/tabsNavBar.tsx
CHANGED
|
@@ -42,7 +42,7 @@ export const TabsNavBar = vui<'div', TabNavBarProps>((props, ref) => {
|
|
|
42
42
|
<ListItem
|
|
43
43
|
activeBg="skyBlue.90"
|
|
44
44
|
className={`vui-tabsNavBarItem vui-tabsNavBarItem-${tab?.id}`}
|
|
45
|
-
color="seaBlue.
|
|
45
|
+
color="seaBlue.main"
|
|
46
46
|
disabled={tab.disabled}
|
|
47
47
|
display="inline-flex"
|
|
48
48
|
fontSize={fontSize}
|
|
@@ -61,7 +61,7 @@ export const TabsNavBar = vui<'div', TabNavBarProps>((props, ref) => {
|
|
|
61
61
|
{!tab.disabled && tab.id === activeNavItem && (
|
|
62
62
|
<Box
|
|
63
63
|
animation={animationDirection}
|
|
64
|
-
bg="seaBlue.
|
|
64
|
+
bg="seaBlue.main"
|
|
65
65
|
bottom="-1px"
|
|
66
66
|
h={borderWidth}
|
|
67
67
|
left={0}
|
package/src/tag/theme.ts
CHANGED
|
@@ -87,14 +87,14 @@ const variants = {
|
|
|
87
87
|
hoverBg: 'skyBlue.90',
|
|
88
88
|
activeBg: 'skyBlue.85',
|
|
89
89
|
borderColor: 'skyBlue.95',
|
|
90
|
-
color: 'seaBlue.
|
|
90
|
+
color: 'seaBlue.main'
|
|
91
91
|
},
|
|
92
92
|
button: {
|
|
93
93
|
bg: 'transparent',
|
|
94
94
|
hoverBg: 'skyBlue.90',
|
|
95
95
|
activeBg: 'skyBlue.85',
|
|
96
96
|
hoverBorderColor: 'transparent',
|
|
97
|
-
color: 'seaBlue.
|
|
97
|
+
color: 'seaBlue.main'
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
subtleRed: {
|
|
@@ -149,10 +149,10 @@ const variants = {
|
|
|
149
149
|
/** solids next */
|
|
150
150
|
solidBlue: {
|
|
151
151
|
container: {
|
|
152
|
-
bg: 'seaBlue.
|
|
152
|
+
bg: 'seaBlue.main',
|
|
153
153
|
hoverBg: 'seaBlue.35',
|
|
154
154
|
activeBg: 'seaBlue.40',
|
|
155
|
-
borderColor: 'seaBlue.
|
|
155
|
+
borderColor: 'seaBlue.main',
|
|
156
156
|
color: 'white'
|
|
157
157
|
},
|
|
158
158
|
button: {
|
|
@@ -164,7 +164,7 @@ export const energyRed = {
|
|
|
164
164
|
70: 'hsl(357, 83%, 70%)',
|
|
165
165
|
65: 'hsl(357, 83%, 65%)',
|
|
166
166
|
60: 'hsl(357, 83%, 60%)',
|
|
167
|
-
54: 'hsl(357,83%, 54%)', //main
|
|
167
|
+
54: 'hsl(357, 83%, 54%)', //main
|
|
168
168
|
50: 'hsl(357, 83%, 50%)',
|
|
169
169
|
45: 'hsl(357, 83%, 45%)',
|
|
170
170
|
40: 'hsl(357, 83%, 40%)',
|
|
@@ -249,8 +249,8 @@ export const sandstone = {
|
|
|
249
249
|
|
|
250
250
|
export const skyBlue = {
|
|
251
251
|
97: 'hsl(196, 74%, 97%)',
|
|
252
|
-
95: 'hsl(196, 74%, 95%)',
|
|
253
|
-
90: 'hsl(196, 74%, 90%)',
|
|
252
|
+
95: 'hsl(196, 74%, 95%)', // active, selected
|
|
253
|
+
90: 'hsl(196, 74%, 90%)', // hover
|
|
254
254
|
85: 'hsl(196, 74%, 85%)',
|
|
255
255
|
80: 'hsl(196, 74%, 80%)',
|
|
256
256
|
77: 'hsl(196, 74%, 77%)', // main
|
|
@@ -267,7 +267,10 @@ export const skyBlue = {
|
|
|
267
267
|
15: 'hsl(196, 74%, 15%)',
|
|
268
268
|
10: 'hsl(196, 74%, 10%)',
|
|
269
269
|
5: 'hsl(196, 74%, 5%)',
|
|
270
|
-
main: 'hsl(196, 74%, 77%)'
|
|
270
|
+
main: 'hsl(196, 74%, 77%)', // skyBlue.77
|
|
271
|
+
active: 'hsl(196, 74%, 95%)', // skyBlue.95
|
|
272
|
+
hover: 'hsl(196, 74%, 90%)', // skyBlue.90
|
|
273
|
+
selected: 'hsl(196, 74%, 95%)' // skyBlue.95
|
|
271
274
|
}
|
|
272
275
|
|
|
273
276
|
export const sunflower = {
|
|
@@ -431,9 +434,9 @@ export const yellow = {
|
|
|
431
434
|
}
|
|
432
435
|
|
|
433
436
|
export const disabled = {
|
|
434
|
-
bg:
|
|
435
|
-
border:
|
|
436
|
-
color:
|
|
437
|
+
bg: sandstone[95],
|
|
438
|
+
border: sandstone[10],
|
|
439
|
+
color: sandstone[10]
|
|
437
440
|
}
|
|
438
441
|
|
|
439
442
|
export default {
|
package/src/toast/toast.tsx
CHANGED
|
@@ -10,13 +10,14 @@ export const toasterWidth = 420
|
|
|
10
10
|
const Toaster = () => {
|
|
11
11
|
const { toasts } = useVuiContext()
|
|
12
12
|
|
|
13
|
-
const padding =
|
|
13
|
+
const padding = { md: '16px', sm: '4px', xs: '2px' }
|
|
14
14
|
const right = { md: '1rem', sm: 0, xs: 0 }
|
|
15
15
|
const width = { md: toasterWidth, sm: toasterWidth, xs: '100%' }
|
|
16
|
+
const bottom = toasts?.list?.length ? '1rem' : '-2rem'
|
|
16
17
|
|
|
17
18
|
return (
|
|
18
19
|
<Box
|
|
19
|
-
bottom=
|
|
20
|
+
bottom={bottom}
|
|
20
21
|
className="vui-toaster"
|
|
21
22
|
display="block"
|
|
22
23
|
maxW={width}
|