@veracity/vui 1.9.1 → 2.0.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/avatar.js +1 -1
- package/dist/cjs/badge/badge.d.ts +9 -0
- package/dist/cjs/badge/badge.d.ts.map +1 -0
- package/dist/cjs/badge/badge.js +35 -0
- package/dist/cjs/badge/badge.types.d.ts +17 -0
- package/dist/cjs/badge/badge.types.d.ts.map +1 -0
- package/dist/cjs/badge/badge.types.js +2 -0
- package/dist/cjs/badge/index.d.ts +3 -0
- package/dist/cjs/badge/index.d.ts.map +1 -0
- package/dist/cjs/badge/index.js +23 -0
- package/dist/cjs/badge/theme.d.ts +130 -0
- package/dist/cjs/badge/theme.d.ts.map +1 -0
- package/dist/cjs/badge/theme.js +135 -0
- package/dist/cjs/button/button.d.ts +1 -1
- package/dist/cjs/button/button.d.ts.map +1 -1
- package/dist/cjs/button/button.js +16 -23
- package/dist/cjs/button/button.types.d.ts +3 -4
- package/dist/cjs/button/button.types.d.ts.map +1 -1
- package/dist/cjs/button/buttons.js +8 -8
- package/dist/cjs/button/consts.js +3 -3
- package/dist/cjs/button/theme.d.ts +204 -44
- package/dist/cjs/button/theme.d.ts.map +1 -1
- package/dist/cjs/button/theme.js +220 -54
- package/dist/cjs/buttonGroup/buttonGroup.d.ts.map +1 -1
- package/dist/cjs/buttonGroup/buttonGroup.js +5 -5
- package/dist/cjs/buttonGroup/buttonGroup.types.d.ts +2 -3
- package/dist/cjs/buttonGroup/buttonGroup.types.d.ts.map +1 -1
- package/dist/cjs/buttonGroup/helpers.d.ts.map +1 -1
- package/dist/cjs/buttonGroup/helpers.js +2 -3
- package/dist/cjs/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
- package/dist/cjs/buttonToggleGroup/buttonToggleGroup.js +1 -1
- package/dist/cjs/checkbox/checkbox.js +1 -1
- package/dist/cjs/copyToClipboard/copyToClipboard.js +1 -1
- package/dist/cjs/core/vuiProvider/globalStyle.d.ts.map +1 -1
- package/dist/cjs/core/vuiProvider/globalStyle.js +55 -38
- package/dist/cjs/footer/footerTrademark.js +1 -1
- package/dist/cjs/heading/heading.d.ts.map +1 -1
- package/dist/cjs/heading/heading.js +7 -1
- package/dist/cjs/heading/heading.types.d.ts +1 -0
- package/dist/cjs/heading/heading.types.d.ts.map +1 -1
- package/dist/cjs/heading/theme.d.ts +67 -9
- package/dist/cjs/heading/theme.d.ts.map +1 -1
- package/dist/cjs/heading/theme.js +69 -11
- package/dist/cjs/icon/icon.types.d.ts +1 -1
- package/dist/cjs/icon/icon.types.d.ts.map +1 -1
- package/dist/cjs/icon/theme.d.ts +5 -0
- package/dist/cjs/icon/theme.d.ts.map +1 -1
- package/dist/cjs/icon/theme.js +5 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/input/input.js +1 -1
- package/dist/cjs/input/inputInput.js +1 -1
- package/dist/cjs/link/link.d.ts.map +1 -1
- package/dist/cjs/link/link.js +3 -3
- package/dist/cjs/link/link.types.d.ts +1 -1
- package/dist/cjs/link/link.types.d.ts.map +1 -1
- package/dist/cjs/link/theme.d.ts +21 -4
- package/dist/cjs/link/theme.d.ts.map +1 -1
- package/dist/cjs/link/theme.js +30 -17
- package/dist/cjs/list/listItem.d.ts.map +1 -1
- package/dist/cjs/list/listItem.js +6 -2
- package/dist/cjs/notification/consts.js +10 -10
- package/dist/cjs/notification/notification.d.ts.map +1 -1
- package/dist/cjs/notification/notification.js +10 -8
- package/dist/cjs/notification/notification.types.d.ts +2 -2
- package/dist/cjs/notification/notification.types.d.ts.map +1 -1
- package/dist/cjs/notification/notificationButton.d.ts.map +1 -1
- package/dist/cjs/notification/notificationButton.js +5 -1
- package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
- package/dist/cjs/notification/notificationIcon.js +3 -2
- package/dist/cjs/notification/notificationText.d.ts.map +1 -1
- package/dist/cjs/notification/notificationText.js +1 -1
- package/dist/cjs/notification/notificationTitle.d.ts +2 -2
- package/dist/cjs/notification/notificationTitle.d.ts.map +1 -1
- package/dist/cjs/notification/notificationTitle.js +2 -2
- package/dist/cjs/notification/theme.d.ts +31 -16
- package/dist/cjs/notification/theme.d.ts.map +1 -1
- package/dist/cjs/notification/theme.js +32 -26
- package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts +85 -0
- package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +1 -0
- package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.js +88 -0
- package/dist/cjs/p/theme.d.ts +0 -8
- package/dist/cjs/p/theme.d.ts.map +1 -1
- package/dist/cjs/p/theme.js +3 -11
- package/dist/cjs/progress/progress.js +1 -1
- package/dist/cjs/select/selectButton.js +1 -1
- package/dist/cjs/sidemenu/sidemenu.js +1 -1
- package/dist/cjs/sidemenu/sidemenuItem.js +2 -2
- package/dist/cjs/t/theme.d.ts +10 -1
- package/dist/cjs/t/theme.d.ts.map +1 -1
- package/dist/cjs/t/theme.js +10 -1
- package/dist/cjs/table/tbody.d.ts.map +1 -1
- package/dist/cjs/table/tbody.js +4 -0
- package/dist/cjs/table/theme.d.ts +5 -0
- package/dist/cjs/table/theme.d.ts.map +1 -1
- package/dist/cjs/table/theme.js +6 -1
- package/dist/cjs/tabs/tabs.types.d.ts +2 -2
- package/dist/cjs/tabs/tabs.types.d.ts.map +1 -1
- package/dist/cjs/tabs/tabsNavBar.d.ts.map +1 -1
- package/dist/cjs/tabs/tabsNavBar.js +13 -5
- package/dist/cjs/tabs/theme.d.ts +40 -4
- package/dist/cjs/tabs/theme.d.ts.map +1 -1
- package/dist/cjs/tabs/theme.js +41 -4
- package/dist/cjs/tag/tag.js +9 -6
- package/dist/cjs/tag/tag.types.d.ts +4 -3
- package/dist/cjs/tag/tag.types.d.ts.map +1 -1
- package/dist/cjs/tag/tagButton.d.ts.map +1 -1
- package/dist/cjs/tag/tagButton.js +1 -1
- package/dist/cjs/tag/theme.d.ts +178 -32
- package/dist/cjs/tag/theme.d.ts.map +1 -1
- package/dist/cjs/tag/theme.js +182 -65
- package/dist/cjs/textarea/textarea.js +1 -1
- package/dist/cjs/theme/components.d.ts +624 -47
- package/dist/cjs/theme/components.d.ts.map +1 -1
- package/dist/cjs/theme/components.js +76 -74
- package/dist/cjs/theme/defaultTheme.d.ts +916 -48
- package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/colors.d.ts +523 -0
- package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/colors.js +389 -1
- package/dist/cjs/theme/foundations/fontWeights.d.ts +0 -1
- package/dist/cjs/theme/foundations/fontWeights.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/fontWeights.js +1 -2
- package/dist/cjs/theme/foundations/index.d.ts +292 -1
- package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/radii.d.ts +5 -0
- package/dist/cjs/theme/foundations/radii.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/radii.js +8 -3
- package/dist/cjs/toast/useToast.d.ts.map +1 -1
- package/dist/cjs/toast/useToast.js +1 -1
- package/dist/cjs/tutorial/tutorialCard.d.ts.map +1 -1
- package/dist/cjs/tutorial/tutorialCard.js +3 -3
- package/dist/esm/avatar/avatar.js +1 -1
- package/dist/esm/badge/badge.d.ts +9 -0
- package/dist/esm/badge/badge.d.ts.map +1 -0
- package/dist/esm/badge/badge.js +17 -0
- package/dist/esm/badge/badge.types.d.ts +17 -0
- package/dist/esm/badge/badge.types.d.ts.map +1 -0
- package/dist/esm/badge/badge.types.js +1 -0
- package/dist/esm/badge/index.d.ts +3 -0
- package/dist/esm/badge/index.d.ts.map +1 -0
- package/dist/esm/badge/index.js +2 -0
- package/dist/esm/badge/theme.d.ts +130 -0
- package/dist/esm/badge/theme.d.ts.map +1 -0
- package/dist/esm/badge/theme.js +133 -0
- package/dist/esm/button/button.d.ts +1 -1
- package/dist/esm/button/button.d.ts.map +1 -1
- package/dist/esm/button/button.js +16 -23
- package/dist/esm/button/button.types.d.ts +3 -4
- package/dist/esm/button/button.types.d.ts.map +1 -1
- package/dist/esm/button/buttons.js +8 -8
- package/dist/esm/button/consts.js +3 -3
- package/dist/esm/button/theme.d.ts +204 -44
- package/dist/esm/button/theme.d.ts.map +1 -1
- package/dist/esm/button/theme.js +220 -58
- package/dist/esm/buttonGroup/buttonGroup.d.ts.map +1 -1
- package/dist/esm/buttonGroup/buttonGroup.js +6 -6
- package/dist/esm/buttonGroup/buttonGroup.types.d.ts +2 -3
- package/dist/esm/buttonGroup/buttonGroup.types.d.ts.map +1 -1
- package/dist/esm/buttonGroup/helpers.d.ts.map +1 -1
- package/dist/esm/buttonGroup/helpers.js +2 -3
- package/dist/esm/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
- package/dist/esm/buttonToggleGroup/buttonToggleGroup.js +1 -1
- package/dist/esm/checkbox/checkbox.js +1 -1
- package/dist/esm/copyToClipboard/copyToClipboard.js +1 -1
- package/dist/esm/core/vuiProvider/globalStyle.d.ts.map +1 -1
- package/dist/esm/core/vuiProvider/globalStyle.js +55 -38
- package/dist/esm/footer/footerTrademark.js +1 -1
- package/dist/esm/heading/heading.d.ts.map +1 -1
- package/dist/esm/heading/heading.js +8 -2
- package/dist/esm/heading/heading.types.d.ts +1 -0
- package/dist/esm/heading/heading.types.d.ts.map +1 -1
- package/dist/esm/heading/theme.d.ts +67 -9
- package/dist/esm/heading/theme.d.ts.map +1 -1
- package/dist/esm/heading/theme.js +69 -11
- package/dist/esm/icon/icon.types.d.ts +1 -1
- package/dist/esm/icon/icon.types.d.ts.map +1 -1
- package/dist/esm/icon/theme.d.ts +5 -0
- package/dist/esm/icon/theme.d.ts.map +1 -1
- package/dist/esm/icon/theme.js +5 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/input/input.js +1 -1
- package/dist/esm/input/inputInput.js +1 -1
- package/dist/esm/link/link.d.ts.map +1 -1
- package/dist/esm/link/link.js +3 -3
- package/dist/esm/link/link.types.d.ts +1 -1
- package/dist/esm/link/link.types.d.ts.map +1 -1
- package/dist/esm/link/theme.d.ts +21 -4
- package/dist/esm/link/theme.d.ts.map +1 -1
- package/dist/esm/link/theme.js +30 -17
- package/dist/esm/list/listItem.d.ts.map +1 -1
- package/dist/esm/list/listItem.js +6 -2
- package/dist/esm/notification/consts.js +10 -10
- package/dist/esm/notification/notification.d.ts.map +1 -1
- package/dist/esm/notification/notification.js +11 -9
- package/dist/esm/notification/notification.types.d.ts +2 -2
- package/dist/esm/notification/notification.types.d.ts.map +1 -1
- package/dist/esm/notification/notificationButton.d.ts.map +1 -1
- package/dist/esm/notification/notificationButton.js +4 -1
- package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
- package/dist/esm/notification/notificationIcon.js +3 -2
- package/dist/esm/notification/notificationText.d.ts.map +1 -1
- package/dist/esm/notification/notificationText.js +1 -1
- package/dist/esm/notification/notificationTitle.d.ts +2 -2
- package/dist/esm/notification/notificationTitle.d.ts.map +1 -1
- package/dist/esm/notification/notificationTitle.js +2 -2
- package/dist/esm/notification/theme.d.ts +31 -16
- package/dist/esm/notification/theme.d.ts.map +1 -1
- package/dist/esm/notification/theme.js +32 -26
- package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts +85 -0
- package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +1 -0
- package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.js +84 -0
- package/dist/esm/p/theme.d.ts +0 -8
- package/dist/esm/p/theme.d.ts.map +1 -1
- package/dist/esm/p/theme.js +3 -11
- package/dist/esm/progress/progress.js +1 -1
- package/dist/esm/select/selectButton.js +1 -1
- package/dist/esm/sidemenu/sidemenu.js +1 -1
- package/dist/esm/sidemenu/sidemenuItem.js +2 -2
- package/dist/esm/t/theme.d.ts +10 -1
- package/dist/esm/t/theme.d.ts.map +1 -1
- package/dist/esm/t/theme.js +10 -1
- package/dist/esm/table/tbody.d.ts.map +1 -1
- package/dist/esm/table/tbody.js +4 -0
- package/dist/esm/table/theme.d.ts +5 -0
- package/dist/esm/table/theme.d.ts.map +1 -1
- package/dist/esm/table/theme.js +6 -1
- package/dist/esm/tabs/tabs.types.d.ts +2 -2
- package/dist/esm/tabs/tabs.types.d.ts.map +1 -1
- package/dist/esm/tabs/tabsNavBar.d.ts.map +1 -1
- package/dist/esm/tabs/tabsNavBar.js +12 -4
- package/dist/esm/tabs/theme.d.ts +40 -4
- package/dist/esm/tabs/theme.d.ts.map +1 -1
- package/dist/esm/tabs/theme.js +41 -4
- package/dist/esm/tag/tag.js +9 -6
- package/dist/esm/tag/tag.types.d.ts +4 -3
- package/dist/esm/tag/tag.types.d.ts.map +1 -1
- package/dist/esm/tag/tagButton.d.ts.map +1 -1
- package/dist/esm/tag/tagButton.js +1 -1
- package/dist/esm/tag/theme.d.ts +178 -32
- package/dist/esm/tag/theme.d.ts.map +1 -1
- package/dist/esm/tag/theme.js +182 -65
- package/dist/esm/textarea/textarea.js +1 -1
- package/dist/esm/theme/components.d.ts +624 -47
- package/dist/esm/theme/components.d.ts.map +1 -1
- package/dist/esm/theme/components.js +2 -0
- package/dist/esm/theme/defaultTheme.d.ts +916 -48
- package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
- package/dist/esm/theme/foundations/colors.d.ts +523 -0
- package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
- package/dist/esm/theme/foundations/colors.js +365 -0
- package/dist/esm/theme/foundations/fontWeights.d.ts +0 -1
- package/dist/esm/theme/foundations/fontWeights.d.ts.map +1 -1
- package/dist/esm/theme/foundations/fontWeights.js +1 -2
- package/dist/esm/theme/foundations/index.d.ts +292 -1
- package/dist/esm/theme/foundations/index.d.ts.map +1 -1
- package/dist/esm/theme/foundations/radii.d.ts +5 -0
- package/dist/esm/theme/foundations/radii.d.ts.map +1 -1
- package/dist/esm/theme/foundations/radii.js +8 -3
- package/dist/esm/toast/useToast.d.ts.map +1 -1
- package/dist/esm/toast/useToast.js +1 -1
- package/dist/esm/tutorial/tutorialCard.d.ts.map +1 -1
- package/dist/esm/tutorial/tutorialCard.js +3 -3
- package/package.json +1 -1
- package/src/avatar/avatar.tsx +1 -1
- package/src/badge/badge.tsx +36 -0
- package/src/badge/badge.types.ts +17 -0
- package/src/badge/index.ts +2 -0
- package/src/badge/theme.ts +140 -0
- package/src/button/button.tsx +19 -28
- package/src/button/button.types.ts +4 -8
- package/src/button/buttons.tsx +8 -8
- package/src/button/consts.ts +3 -3
- package/src/button/theme.ts +229 -71
- package/src/buttonGroup/buttonGroup.tsx +6 -9
- package/src/buttonGroup/buttonGroup.types.ts +2 -3
- package/src/buttonGroup/helpers.ts +2 -4
- package/src/buttonToggleGroup/buttonToggleGroup.tsx +0 -2
- package/src/checkbox/checkbox.tsx +1 -1
- package/src/copyToClipboard/copyToClipboard.tsx +1 -1
- package/src/core/vuiProvider/globalStyle.tsx +55 -38
- package/src/footer/footerTrademark.tsx +1 -1
- package/src/heading/heading.tsx +19 -2
- package/src/heading/heading.types.ts +2 -0
- package/src/heading/theme.ts +69 -11
- package/src/icon/icon.types.ts +1 -1
- package/src/icon/theme.ts +5 -0
- package/src/index.ts +1 -0
- package/src/input/input.tsx +1 -1
- package/src/input/inputInput.tsx +1 -1
- package/src/link/link.tsx +2 -3
- package/src/link/link.types.ts +1 -1
- package/src/link/theme.ts +30 -20
- package/src/list/listItem.tsx +6 -2
- package/src/notification/consts.ts +10 -10
- package/src/notification/notification.tsx +16 -11
- package/src/notification/notification.types.ts +2 -2
- package/src/notification/notificationButton.tsx +10 -5
- package/src/notification/notificationIcon.tsx +6 -3
- package/src/notification/notificationText.tsx +2 -1
- package/src/notification/notificationTitle.tsx +3 -9
- package/src/notification/theme.ts +32 -34
- package/src/onedesign-tokens/dist/js/es6/rem/button.js +85 -0
- package/src/p/theme.ts +3 -11
- package/src/progress/progress.tsx +1 -1
- package/src/select/selectButton.tsx +1 -1
- package/src/sidemenu/sidemenu.tsx +1 -1
- package/src/sidemenu/sidemenuItem.tsx +3 -3
- package/src/t/theme.ts +10 -1
- package/src/table/tbody.tsx +4 -0
- package/src/table/theme.ts +6 -1
- package/src/tabs/tabs.types.ts +2 -2
- package/src/tabs/tabsNavBar.tsx +23 -6
- package/src/tabs/theme.ts +41 -4
- package/src/tag/tag.tsx +11 -11
- package/src/tag/tag.types.ts +32 -31
- package/src/tag/tagButton.tsx +1 -2
- package/src/tag/theme.ts +183 -80
- package/src/textarea/textarea.tsx +1 -1
- package/src/theme/components.ts +2 -0
- package/src/theme/foundations/colors.ts +401 -0
- package/src/theme/foundations/fontWeights.ts +1 -2
- package/src/theme/foundations/radii.ts +8 -3
- package/src/toast/useToast.tsx +2 -1
- package/src/tutorial/tutorialCard.tsx +10 -3
package/dist/cjs/link/theme.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function variantDefault(
|
|
4
|
-
const { colorScheme: c } = props;
|
|
3
|
+
function variantDefault() {
|
|
5
4
|
const container = {
|
|
6
|
-
color:
|
|
7
|
-
hoverColor:
|
|
5
|
+
color: `seaBlue.28`,
|
|
6
|
+
hoverColor: `seaBlue.28`
|
|
7
|
+
};
|
|
8
|
+
return { container };
|
|
9
|
+
}
|
|
10
|
+
function variantWhite() {
|
|
11
|
+
const container = {
|
|
12
|
+
color: `white`,
|
|
13
|
+
hoverColor: `white`
|
|
8
14
|
};
|
|
9
|
-
if (c === 'white') {
|
|
10
|
-
container.color = 'white';
|
|
11
|
-
container.hoverColor = 'white';
|
|
12
|
-
}
|
|
13
15
|
return { container };
|
|
14
16
|
}
|
|
15
|
-
function variantLight(
|
|
16
|
-
const { colorScheme: c } = props;
|
|
17
|
+
function variantLight() {
|
|
17
18
|
const container = {
|
|
18
|
-
color:
|
|
19
|
-
hoverColor:
|
|
19
|
+
color: `seaBlue.28`,
|
|
20
|
+
hoverColor: `seaBlue.28`
|
|
20
21
|
};
|
|
21
22
|
return { container };
|
|
22
23
|
}
|
|
@@ -27,7 +28,6 @@ const variantPlain = {
|
|
|
27
28
|
};
|
|
28
29
|
const baseStyle = {};
|
|
29
30
|
const defaultProps = {
|
|
30
|
-
colorScheme: 'blue',
|
|
31
31
|
size: 'md',
|
|
32
32
|
variant: 'default'
|
|
33
33
|
};
|
|
@@ -35,7 +35,8 @@ const parts = ['container', 'icon', 'text'];
|
|
|
35
35
|
const sizes = {
|
|
36
36
|
sm: {
|
|
37
37
|
container: {
|
|
38
|
-
fontSize: '
|
|
38
|
+
fontSize: 'xs',
|
|
39
|
+
lineHeight: '16px'
|
|
39
40
|
},
|
|
40
41
|
icon: {
|
|
41
42
|
size: 'xs'
|
|
@@ -43,7 +44,8 @@ const sizes = {
|
|
|
43
44
|
},
|
|
44
45
|
md: {
|
|
45
46
|
container: {
|
|
46
|
-
fontSize: '
|
|
47
|
+
fontSize: 'sm',
|
|
48
|
+
lineHeight: '20px'
|
|
47
49
|
},
|
|
48
50
|
icon: {
|
|
49
51
|
size: 'xs'
|
|
@@ -51,7 +53,17 @@ const sizes = {
|
|
|
51
53
|
},
|
|
52
54
|
lg: {
|
|
53
55
|
container: {
|
|
54
|
-
fontSize: '
|
|
56
|
+
fontSize: 'md',
|
|
57
|
+
lineHeight: '24px'
|
|
58
|
+
},
|
|
59
|
+
icon: {
|
|
60
|
+
size: 'sm'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
xl: {
|
|
64
|
+
container: {
|
|
65
|
+
fontSize: 'lg',
|
|
66
|
+
lineHeight: '28px'
|
|
55
67
|
},
|
|
56
68
|
icon: {
|
|
57
69
|
size: 'sm'
|
|
@@ -61,7 +73,8 @@ const sizes = {
|
|
|
61
73
|
const variants = {
|
|
62
74
|
default: variantDefault,
|
|
63
75
|
light: variantLight,
|
|
64
|
-
plain: variantPlain
|
|
76
|
+
plain: variantPlain,
|
|
77
|
+
white: variantWhite
|
|
65
78
|
};
|
|
66
79
|
exports.default = {
|
|
67
80
|
baseStyle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listItem.d.ts","sourceRoot":"","sources":["../../../src/list/listItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAkB5C,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"listItem.d.ts","sourceRoot":"","sources":["../../../src/list/listItem.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAkB5C,eAAO,MAAM,YAAY,8HAgBxB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,qDA6EnB,CAAA;AAEF,eAAe,QAAQ,CAAA"}
|
|
@@ -54,11 +54,15 @@ exports.ListItemBase = core_1.styled.liBox `
|
|
|
54
54
|
transition-duration: fast;
|
|
55
55
|
|
|
56
56
|
&[aria-disabled='true'] {
|
|
57
|
-
background-color: disabled.bg;
|
|
58
|
-
color: disabled.color;
|
|
57
|
+
background-color: disabled .bg;
|
|
58
|
+
color: disabled .color;
|
|
59
59
|
cursor: not-allowed;
|
|
60
60
|
user-select: none;
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
&:focus-visible {
|
|
64
|
+
z-index: 1;
|
|
65
|
+
}
|
|
62
66
|
`;
|
|
63
67
|
/**
|
|
64
68
|
* Displays a list item with text and optional icons. Can be shown as interactive or selected.
|
|
@@ -3,35 +3,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.notificationStatusMapping = void 0;
|
|
4
4
|
exports.notificationStatusMapping = {
|
|
5
5
|
error: {
|
|
6
|
-
colorScheme: 'red',
|
|
7
6
|
iconProps: {
|
|
8
7
|
name: 'falTimesCircle'
|
|
9
|
-
}
|
|
8
|
+
},
|
|
9
|
+
variant: 'subtleRed'
|
|
10
10
|
},
|
|
11
11
|
info: {
|
|
12
|
-
colorScheme: 'blue',
|
|
13
12
|
iconProps: {
|
|
14
13
|
name: 'falInfoCircle'
|
|
15
|
-
}
|
|
14
|
+
},
|
|
15
|
+
variant: 'subtleBlue'
|
|
16
16
|
},
|
|
17
17
|
loading: {
|
|
18
|
-
colorScheme: 'blue',
|
|
19
18
|
iconProps: {
|
|
20
19
|
animation: 'vui-spin 0.6s linear infinite',
|
|
21
20
|
name: 'fadSpinnerThird',
|
|
22
21
|
pathFill: ['blue.40', 'blue.60']
|
|
23
|
-
}
|
|
22
|
+
},
|
|
23
|
+
variant: 'subtleBlue'
|
|
24
24
|
},
|
|
25
25
|
success: {
|
|
26
|
-
colorScheme: 'green',
|
|
27
26
|
iconProps: {
|
|
28
27
|
name: 'falCheckCircle'
|
|
29
|
-
}
|
|
28
|
+
},
|
|
29
|
+
variant: 'subtleGreen'
|
|
30
30
|
},
|
|
31
31
|
warning: {
|
|
32
|
-
colorScheme: 'yellow',
|
|
33
32
|
iconProps: {
|
|
34
33
|
name: 'falExclamationCircle'
|
|
35
|
-
}
|
|
34
|
+
},
|
|
35
|
+
variant: 'subtleYellow'
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/notification/notification.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;AACrD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AAEnD;;;GAGG;AACH,eAAO,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/notification/notification.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAuB,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;AACrD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AAEnD;;;GAGG;AACH,eAAO,MAAM,YAAY;YAwDf,yBAAyB;UAC3B,uBAAuB;UACvB,uBAAuB;WACtB,wBAAwB;CAChC,CAAA;AAOD,eAAe,YAAY,CAAA"}
|
|
@@ -31,20 +31,22 @@ const notificationTitle_1 = __importDefault(require("./notificationTitle"));
|
|
|
31
31
|
*/
|
|
32
32
|
exports.Notification = (0, core_1.vui)((props, ref) => {
|
|
33
33
|
var _a, _b, _c;
|
|
34
|
-
const { action, children, className,
|
|
34
|
+
const { action, children, className, icon, onClose, size, status, statusMapping, text, title, variant: variantProp = 'subtleBlue', verticalAlign } = props, rest = __rest(props, ["action", "children", "className", "icon", "onClose", "size", "status", "statusMapping", "text", "title", "variant", "verticalAlign"]);
|
|
35
35
|
const statuses = Object.assign(Object.assign({}, consts_1.notificationStatusMapping), statusMapping);
|
|
36
|
-
const {
|
|
37
|
-
const styles = (0, core_1.useStyleConfig)('Notification', Object.assign({
|
|
36
|
+
const { variant = variantProp } = (_a = statuses[status !== null && status !== void 0 ? status : '']) !== null && _a !== void 0 ? _a : {};
|
|
37
|
+
const styles = (0, core_1.useStyleConfig)('Notification', Object.assign({ variant }, props));
|
|
38
38
|
const iconName = (0, utils_1.isString)(icon) ? icon : (_c = (_b = statuses[status !== null && status !== void 0 ? status : '']) === null || _b === void 0 ? void 0 : _b.iconProps) === null || _c === void 0 ? void 0 : _c.name;
|
|
39
|
-
const context = (0, utils_1.filterUndefined)({
|
|
39
|
+
const context = (0, utils_1.filterUndefined)({ size, status });
|
|
40
|
+
const titleDisplay = action ? 'block' : 'inline-flex';
|
|
41
|
+
const alignSelf = verticalAlign === 'center' ? 'center' : 'flex-start';
|
|
40
42
|
return (react_1.default.createElement(context_1.NotificationProvider, { value: context },
|
|
41
|
-
react_1.default.createElement(box_1.default, Object.assign({ borderRadius: "md", className: (0, utils_1.cs)('vui-notification', className),
|
|
42
|
-
iconName ? react_1.default.createElement(notificationIcon_1.default, { name: iconName }) : icon, children !== null && children !== void 0 ? children : (react_1.default.createElement(notificationText_1.default,
|
|
43
|
-
(0, utils_1.isReactText)(title) ? react_1.default.createElement(notificationTitle_1.default, { text: title }) : title,
|
|
43
|
+
react_1.default.createElement(box_1.default, Object.assign({ borderRadius: "md", borderWidth: 1, className: (0, utils_1.cs)('vui-notification', className), ref: ref, w: "fit-content" }, styles.container, rest),
|
|
44
|
+
iconName ? react_1.default.createElement(notificationIcon_1.default, { alignSelf: alignSelf, name: iconName }) : icon, children !== null && children !== void 0 ? children : (react_1.default.createElement(notificationText_1.default, { alignSelf: alignSelf },
|
|
45
|
+
(0, utils_1.isReactText)(title) ? react_1.default.createElement(notificationTitle_1.default, { display: titleDisplay, text: title }) : title,
|
|
44
46
|
" ",
|
|
45
47
|
text)),
|
|
46
48
|
action,
|
|
47
|
-
onClose && react_1.default.createElement(notificationButton_1.default, { icon: "falTimes", onClick: onClose }))));
|
|
49
|
+
onClose && (react_1.default.createElement(notificationButton_1.default, { alignSelf: alignSelf, icon: "falTimes", onClick: onClose, variant: variant, w: "32px" })))));
|
|
48
50
|
});
|
|
49
51
|
exports.Notification.Button = notificationButton_1.default;
|
|
50
52
|
exports.Notification.Icon = notificationIcon_1.default;
|
|
@@ -5,7 +5,7 @@ import { ThemingProps } from '../theme';
|
|
|
5
5
|
export declare type NotificationProps = Omit<BoxProps, 'size' | 'variant'> & ThemingProps<'Notification'> & {
|
|
6
6
|
/** Socket displaying a button on the right. */
|
|
7
7
|
action?: ReactNode;
|
|
8
|
-
/** Available theme colors for this component. @
|
|
8
|
+
/** Available theme colors for this component. @deprecated */
|
|
9
9
|
colorScheme?: 'blue' | 'green' | 'red' | 'yellow';
|
|
10
10
|
/** Socket displaying an icon on the left. */
|
|
11
11
|
icon?: IconProp | JSX.Element;
|
|
@@ -22,7 +22,7 @@ export declare type NotificationProps = Omit<BoxProps, 'size' | 'variant'> & The
|
|
|
22
22
|
};
|
|
23
23
|
export declare type NotificationStatus = 'error' | 'info' | 'loading' | 'success' | 'warning';
|
|
24
24
|
export declare type NotificationStatusMapping = Record<string, {
|
|
25
|
-
colorScheme?: NotificationProps['colorScheme'];
|
|
26
25
|
iconProps: IconProps;
|
|
26
|
+
variant?: NotificationProps['variant'];
|
|
27
27
|
}>;
|
|
28
28
|
//# sourceMappingURL=notification.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.types.d.ts","sourceRoot":"","sources":["../../../src/notification/notification.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,oBAAY,iBAAiB,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC,GAChE,YAAY,CAAC,cAAc,CAAC,GAAG;IAC7B,+CAA+C;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB
|
|
1
|
+
{"version":3,"file":"notification.types.d.ts","sourceRoot":"","sources":["../../../src/notification/notification.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,oBAAY,iBAAiB,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC,GAChE,YAAY,CAAC,cAAc,CAAC,GAAG;IAC7B,+CAA+C;IAC/C,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;IACjD,6CAA6C;IAC7C,IAAI,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAC7B,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,yBAAyB,CAAA;IACzC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAEH,oBAAY,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAErF,oBAAY,yBAAyB,GAAG,MAAM,CAC5C,MAAM,EACN;IACE,SAAS,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACvC,CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationButton.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationButton.tsx"],"names":[],"mappings":"AAEA,OAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"notificationButton.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationButton.tsx"],"names":[],"mappings":"AAEA,OAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAM/C,yDAAyD;AACzD,eAAO,MAAM,kBAAkB,uDAsB7B,CAAA;AAEF,eAAe,kBAAkB,CAAA"}
|
|
@@ -19,12 +19,16 @@ const react_1 = __importDefault(require("react"));
|
|
|
19
19
|
const button_1 = __importDefault(require("../button"));
|
|
20
20
|
const core_1 = require("../core");
|
|
21
21
|
const utils_1 = require("../utils");
|
|
22
|
+
const consts_1 = require("./consts");
|
|
22
23
|
const context_1 = require("./context");
|
|
23
24
|
/** Displays an action button within the Notification. */
|
|
24
25
|
exports.NotificationButton = (0, core_1.vui)((props, ref) => {
|
|
26
|
+
var _a;
|
|
25
27
|
const { className } = props, rest = __rest(props, ["className"]);
|
|
26
28
|
const mergedProps = Object.assign(Object.assign({}, (0, context_1.useNotificationContext)()), props);
|
|
27
29
|
const styles = (0, core_1.useStyleConfig)('Notification', (0, context_1.useNotificationContext)());
|
|
28
|
-
|
|
30
|
+
const { status = '' } = mergedProps;
|
|
31
|
+
const { variant } = (_a = consts_1.notificationStatusMapping[status]) !== null && _a !== void 0 ? _a : {};
|
|
32
|
+
return (react_1.default.createElement(button_1.default, Object.assign({ className: (0, utils_1.cs)('vui-notificationButton', className), ml: "0px", mr: "16px", my: "16px", px: "12px", py: "6px", ref: ref }, styles.button, { variant: variant }, rest)));
|
|
29
33
|
});
|
|
30
34
|
exports.default = exports.NotificationButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationIcon.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationIcon.tsx"],"names":[],"mappings":"AAGA,OAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKzC,oEAAoE;AACpE,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"notificationIcon.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationIcon.tsx"],"names":[],"mappings":"AAGA,OAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAKzC,oEAAoE;AACpE,eAAO,MAAM,gBAAgB,kDAuB3B,CAAA;AAEF,eAAe,gBAAgB,CAAA"}
|
|
@@ -24,11 +24,12 @@ const context_1 = require("./context");
|
|
|
24
24
|
/** Displays an icon based on the status within the Notification. */
|
|
25
25
|
exports.NotificationIcon = (0, core_1.vui)((props, ref) => {
|
|
26
26
|
var _a;
|
|
27
|
-
const { className } = props, rest = __rest(props, ["className"]);
|
|
27
|
+
const { className, alignSelf } = props, rest = __rest(props, ["className", "alignSelf"]);
|
|
28
28
|
const mergedProps = Object.assign(Object.assign({}, (0, context_1.useNotificationContext)()), props);
|
|
29
29
|
const styles = (0, core_1.useStyleConfig)('Notification', (0, context_1.useNotificationContext)());
|
|
30
30
|
const { status = '' } = mergedProps;
|
|
31
31
|
const { iconProps } = (_a = consts_1.notificationStatusMapping[status]) !== null && _a !== void 0 ? _a : {};
|
|
32
|
-
|
|
32
|
+
const marginTop = alignSelf === 'center' ? '0' : '16px';
|
|
33
|
+
return (react_1.default.createElement(icon_1.default, Object.assign({ alignSelf: alignSelf, className: (0, utils_1.cs)('vui-notificationIcon', className), ml: "16px", mt: marginTop, ref: ref, size: "md" }, styles.icon, iconProps, rest)));
|
|
33
34
|
});
|
|
34
35
|
exports.default = exports.NotificationIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationText.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationText.tsx"],"names":[],"mappings":"AAGA,OAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIhC,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"notificationText.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationText.tsx"],"names":[],"mappings":"AAGA,OAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAIhC,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,6CAiB3B,CAAA;AAEF,eAAe,gBAAgB,CAAA"}
|
|
@@ -24,6 +24,6 @@ const context_1 = require("./context");
|
|
|
24
24
|
exports.NotificationText = (0, core_1.vui)((props, ref) => {
|
|
25
25
|
const { className } = props, rest = __rest(props, ["className"]);
|
|
26
26
|
const styles = (0, core_1.useStyleConfig)('Notification', (0, context_1.useNotificationContext)());
|
|
27
|
-
return (react_1.default.createElement(t_1.default, Object.assign({ className: (0, utils_1.cs)('vui-notificationText', className), flex: "1", lineHeight: "24px", minW: 0,
|
|
27
|
+
return (react_1.default.createElement(t_1.default, Object.assign({ className: (0, utils_1.cs)('vui-notificationText', className), flex: "1", lineHeight: "24px", minW: 0, mx: "16px", my: "16px", ref: ref }, styles.text, rest)));
|
|
28
28
|
});
|
|
29
29
|
exports.default = exports.NotificationText;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TProps } from '../t';
|
|
2
2
|
/** Displays a title within the Notification. */
|
|
3
|
-
export declare const NotificationTitle: import("../core").VuiComponent<"
|
|
3
|
+
export declare const NotificationTitle: import("../core").VuiComponent<"span", TProps>;
|
|
4
4
|
export default NotificationTitle;
|
|
5
5
|
//# sourceMappingURL=notificationTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationTitle.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationTitle.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"notificationTitle.d.ts","sourceRoot":"","sources":["../../../src/notification/notificationTitle.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAK,MAAM,EAAE,MAAM,MAAM,CAAA;AAIhC,gDAAgD;AAChD,eAAO,MAAM,iBAAiB,gDAO5B,CAAA;AAEF,eAAe,iBAAiB,CAAA"}
|
|
@@ -17,13 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.NotificationTitle = void 0;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
19
|
const core_1 = require("../core");
|
|
20
|
-
const
|
|
20
|
+
const t_1 = require("../t");
|
|
21
21
|
const utils_1 = require("../utils");
|
|
22
22
|
const context_1 = require("./context");
|
|
23
23
|
/** Displays a title within the Notification. */
|
|
24
24
|
exports.NotificationTitle = (0, core_1.vui)((props, ref) => {
|
|
25
25
|
const { className } = props, rest = __rest(props, ["className"]);
|
|
26
26
|
const styles = (0, core_1.useStyleConfig)('Notification', (0, context_1.useNotificationContext)());
|
|
27
|
-
return (react_1.default.createElement(
|
|
27
|
+
return (react_1.default.createElement(t_1.T, Object.assign({ className: (0, utils_1.cs)('vui-notificationTitle', className), fontWeight: "demi", ref: ref }, styles.title, rest)));
|
|
28
28
|
});
|
|
29
29
|
exports.default = exports.NotificationTitle;
|
|
@@ -1,27 +1,42 @@
|
|
|
1
|
-
import { Dict } from '../utils';
|
|
2
|
-
declare function variantSubtle(props: Dict): {
|
|
3
|
-
container: {
|
|
4
|
-
bg: string;
|
|
5
|
-
borderColor: string;
|
|
6
|
-
borderWidth: number;
|
|
7
|
-
color: string;
|
|
8
|
-
};
|
|
9
|
-
button: {
|
|
10
|
-
color: string;
|
|
11
|
-
hoverBg: string;
|
|
12
|
-
activeBg: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
1
|
declare const _default: {
|
|
16
2
|
baseStyle: {};
|
|
17
3
|
defaultProps: {
|
|
18
|
-
colorScheme: string;
|
|
19
4
|
variant: string;
|
|
20
5
|
};
|
|
21
6
|
parts: string[];
|
|
22
7
|
sizes: {};
|
|
23
8
|
variants: {
|
|
24
|
-
|
|
9
|
+
subtleBlue: {
|
|
10
|
+
container: {
|
|
11
|
+
bg: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
button: {
|
|
16
|
+
borderColor: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
subtleRed: {
|
|
20
|
+
container: {
|
|
21
|
+
bg: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
subtleYellow: {
|
|
27
|
+
container: {
|
|
28
|
+
bg: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
subtleGreen: {
|
|
34
|
+
container: {
|
|
35
|
+
bg: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
color: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
25
40
|
};
|
|
26
41
|
};
|
|
27
42
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/notification/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/notification/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,wBAMC"}
|
|
@@ -1,37 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function variantSubtle(props) {
|
|
4
|
-
const { colorScheme: c } = props;
|
|
5
|
-
const container = {
|
|
6
|
-
bg: `${c}.20`,
|
|
7
|
-
borderColor: `${c}.80`,
|
|
8
|
-
borderWidth: 1,
|
|
9
|
-
color: `${c}.90`
|
|
10
|
-
};
|
|
11
|
-
const button = {
|
|
12
|
-
color: `${c}.90`,
|
|
13
|
-
hoverBg: `${c}.30`,
|
|
14
|
-
activeBg: `${c}.40`
|
|
15
|
-
};
|
|
16
|
-
if (c === 'blue') {
|
|
17
|
-
container.color = 'blue.80';
|
|
18
|
-
button.color = 'blue.80';
|
|
19
|
-
}
|
|
20
|
-
if (c === 'yellow') {
|
|
21
|
-
container.color = 'yellow.100';
|
|
22
|
-
button.color = 'yellow.100';
|
|
23
|
-
}
|
|
24
|
-
return { container, button };
|
|
25
|
-
}
|
|
26
3
|
const baseStyle = {};
|
|
27
4
|
const defaultProps = {
|
|
28
|
-
|
|
29
|
-
variant: 'subtle'
|
|
5
|
+
variant: 'subtleBlue'
|
|
30
6
|
};
|
|
31
7
|
const parts = ['container', 'button', 'icon', 'text', 'title'];
|
|
32
8
|
const sizes = {};
|
|
33
9
|
const variants = {
|
|
34
|
-
|
|
10
|
+
subtleBlue: {
|
|
11
|
+
container: {
|
|
12
|
+
bg: 'skyBlue.95',
|
|
13
|
+
borderColor: 'seaBlue.28',
|
|
14
|
+
color: 'seaBlue.28'
|
|
15
|
+
},
|
|
16
|
+
button: {
|
|
17
|
+
borderColor: 'transparent'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
subtleRed: {
|
|
21
|
+
container: {
|
|
22
|
+
bg: 'energyRed.95',
|
|
23
|
+
borderColor: 'energyRed.45',
|
|
24
|
+
color: 'energyRed.45'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
subtleYellow: {
|
|
28
|
+
container: {
|
|
29
|
+
bg: 'sunflower.85',
|
|
30
|
+
borderColor: 'sunflower.15',
|
|
31
|
+
color: 'sunflower.15'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
subtleGreen: {
|
|
35
|
+
container: {
|
|
36
|
+
bg: 'landGreen.95',
|
|
37
|
+
borderColor: 'landGreen.30',
|
|
38
|
+
color: 'landGreen.30'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
35
41
|
};
|
|
36
42
|
exports.default = {
|
|
37
43
|
baseStyle,
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Thu, 17 Feb 2022 11:35:15 GMT
|
|
4
|
+
*/
|
|
5
|
+
export const buttonSizeLargeFontSize: "1.125rem";
|
|
6
|
+
export const buttonSizeLargeLineHeight: "1.75rem";
|
|
7
|
+
export const buttonSizeLargePadding: "0.5rem 1rem";
|
|
8
|
+
export const buttonSizeMediumFontSize: "1rem";
|
|
9
|
+
export const buttonSizeMediumLineHeight: "1.5rem";
|
|
10
|
+
export const buttonSizeMediumPadding: "0.25rem calc(0.25rem * 3)";
|
|
11
|
+
export const buttonSizeSmallFontSize: "0.875rem";
|
|
12
|
+
export const buttonSizeSmallLineHeight: "1.25rem";
|
|
13
|
+
export const buttonSizeSmallPadding: "calc(0.25rem / 2) 0.5rem";
|
|
14
|
+
export const buttonSizeDefaultFontSize: "1rem";
|
|
15
|
+
export const buttonSizeDefaultLineHeight: "1.5rem";
|
|
16
|
+
export const buttonSizeDefaultPadding: "0.25rem calc(0.25rem * 3)";
|
|
17
|
+
export const buttonTypePrimaryDefaultBorderColorDark: "hsla(0, 0%, 0%, 0)";
|
|
18
|
+
export const buttonTypePrimaryDefaultBorderColorLight: "hsla(0, 0%, 0%, 0)";
|
|
19
|
+
export const buttonTypePrimaryDefaultBackgroundColorDark: "hsla(218, 100%, 28%, 1)";
|
|
20
|
+
export const buttonTypePrimaryDefaultBackgroundColorLight: "hsla(139, 100%, 78%, 1)";
|
|
21
|
+
export const buttonTypePrimaryDefaultTextColorDark: "hsla(40, 3%, 100%, 1)";
|
|
22
|
+
export const buttonTypePrimaryDefaultTextColorLight: "hsla(223, 67%, 18%, 1)";
|
|
23
|
+
export const buttonTypePrimaryHoverBorderColorDark: "hsla(0, 0%, 0%, 0)";
|
|
24
|
+
export const buttonTypePrimaryHoverBorderColorLight: "hsla(0, 0%, 0%, 0)";
|
|
25
|
+
export const buttonTypePrimaryHoverBackgroundColorDark: "hsla(218, 100%, 20%, 1)";
|
|
26
|
+
export const buttonTypePrimaryHoverBackgroundColorLight: "hsla(139, 100%, 70%, 1)";
|
|
27
|
+
export const buttonTypePrimaryHoverTextColorDark: "hsla(40, 3%, 100%, 1)";
|
|
28
|
+
export const buttonTypePrimaryHoverTextColorLight: "hsla(223, 67%, 18%, 1)";
|
|
29
|
+
export const buttonTypePrimaryActiveBorderColorDark: "hsla(0, 0%, 0%, 0)";
|
|
30
|
+
export const buttonTypePrimaryActiveBorderColorLight: "hsla(0, 0%, 0%, 0)";
|
|
31
|
+
export const buttonTypePrimaryActiveBackgroundColorDark: "hsla(218, 100%, 35%, 1)";
|
|
32
|
+
export const buttonTypePrimaryActiveBackgroundColorLight: "hsla(139, 100%, 85%, 1)";
|
|
33
|
+
export const buttonTypePrimaryActiveTextColorDark: "hsla(40, 3%, 100%, 1)";
|
|
34
|
+
export const buttonTypePrimaryActiveTextColorLight: "hsla(223, 67%, 18%, 1)";
|
|
35
|
+
export const buttonTypePrimaryFocusOutline: "0.25rem solid hsla(196, 100%, 43%, 1)";
|
|
36
|
+
export const buttonTypeSecondaryDefaultBorderColorDark: "hsla(218, 100%, 28%, 1)";
|
|
37
|
+
export const buttonTypeSecondaryDefaultBorderColorLight: "hsla(139, 100%, 78%, 1)";
|
|
38
|
+
export const buttonTypeSecondaryDefaultBackgroundColorDark: "hsla(0, 0%, 0%, 0)";
|
|
39
|
+
export const buttonTypeSecondaryDefaultBackgroundColorLight: "hsla(0, 0%, 0%, 0)";
|
|
40
|
+
export const buttonTypeSecondaryDefaultTextColorDark: "hsla(218, 100%, 28%, 1)";
|
|
41
|
+
export const buttonTypeSecondaryDefaultTextColorLight: "hsla(139, 100%, 78%, 1)";
|
|
42
|
+
export const buttonTypeSecondaryHoverBorderColorDark: "hsla(218, 100%, 28%, 1)";
|
|
43
|
+
export const buttonTypeSecondaryHoverBorderColorLight: "hsla(139, 100%, 78%, 1)";
|
|
44
|
+
export const buttonTypeSecondaryHoverBackgroundColorDark: "hsla(196, 74%, 90%, 1)";
|
|
45
|
+
export const buttonTypeSecondaryHoverBackgroundColorLight: "hsla(218, 100%, 25%, 1)";
|
|
46
|
+
export const buttonTypeSecondaryHoverTextColorDark: "hsla(218, 100%, 28%, 1)";
|
|
47
|
+
export const buttonTypeSecondaryHoverTextColorLight: "hsla(139, 100%, 78%, 1)";
|
|
48
|
+
export const buttonTypeSecondaryActiveBorderColorDark: "hsla(218, 100%, 28%, 1)";
|
|
49
|
+
export const buttonTypeSecondaryActiveBorderColorLight: "hsla(139, 100%, 78%, 1)";
|
|
50
|
+
export const buttonTypeSecondaryActiveBackgroundColorDark: "hsla(196, 74%, 95%, 1)";
|
|
51
|
+
export const buttonTypeSecondaryActiveBackgroundColorLight: "hsla(218, 100%, 35%, 1)";
|
|
52
|
+
export const buttonTypeSecondaryActiveTextColorDark: "hsla(218, 100%, 28%, 1)";
|
|
53
|
+
export const buttonTypeSecondaryActiveTextColorLight: "hsla(139, 100%, 78%, 1)";
|
|
54
|
+
export const buttonTypeSecondaryFocusOutline: "0.25rem solid hsla(196, 100%, 43%, 1)";
|
|
55
|
+
export const buttonTypeTertiaryDefaultBorderColorDark: "hsla(0, 0%, 0%, 0)";
|
|
56
|
+
export const buttonTypeTertiaryDefaultBorderColorLight: "hsla(0, 0%, 0%, 0)";
|
|
57
|
+
export const buttonTypeTertiaryDefaultBackgroundColorDark: "hsla(0, 0%, 0%, 0)";
|
|
58
|
+
export const buttonTypeTertiaryDefaultBackgroundColorLight: "hsla(0, 0%, 0%, 0)";
|
|
59
|
+
export const buttonTypeTertiaryDefaultTextColorDark: "hsla(218, 100%, 28%, 1)";
|
|
60
|
+
export const buttonTypeTertiaryDefaultTextColorLight: "hsla(139, 100%, 78%, 1)";
|
|
61
|
+
export const buttonTypeTertiaryHoverBorderColorDark: "hsla(0, 0%, 0%, 0)";
|
|
62
|
+
export const buttonTypeTertiaryHoverBorderColorLight: "hsla(0, 0%, 0%, 0)";
|
|
63
|
+
export const buttonTypeTertiaryHoverBackgroundColorDark: "hsla(196, 74%, 90%, 1)";
|
|
64
|
+
export const buttonTypeTertiaryHoverBackgroundColorLight: "hsla(218, 100%, 25%, 1)";
|
|
65
|
+
export const buttonTypeTertiaryHoverTextColorDark: "hsla(218, 100%, 28%, 1)";
|
|
66
|
+
export const buttonTypeTertiaryHoverTextColorLight: "hsla(139, 100%, 78%, 1)";
|
|
67
|
+
export const buttonTypeTertiaryActiveBorderColorDark: "hsla(0, 0%, 0%, 0)";
|
|
68
|
+
export const buttonTypeTertiaryActiveBorderColorLight: "hsla(0, 0%, 0%, 0)";
|
|
69
|
+
export const buttonTypeTertiaryActiveBackgroundColorDark: "hsla(196, 74%, 95%, 1)";
|
|
70
|
+
export const buttonTypeTertiaryActiveBackgroundColorLight: "hsla(218, 100%, 35%, 1)";
|
|
71
|
+
export const buttonTypeTertiaryActiveTextColorDark: "hsla(218, 100%, 28%, 1)";
|
|
72
|
+
export const buttonTypeTertiaryActiveTextColorLight: "hsla(139, 100%, 78%, 1)";
|
|
73
|
+
export const buttonTypeTertiaryFocusOutline: "0.25rem solid hsla(196, 100%, 43%, 1)";
|
|
74
|
+
export const buttonDisabledCursor: "default";
|
|
75
|
+
export const buttonDisabledOpacity: "50%";
|
|
76
|
+
export const buttonBorderStyle: "solid";
|
|
77
|
+
export const buttonBorderWidth: "calc(0.125rem / 2)";
|
|
78
|
+
export const buttonFontFamily: "'Avenir Next', Arial, sans-serif";
|
|
79
|
+
export const buttonFontSize: "1rem";
|
|
80
|
+
export const buttonLineHeight: "1.5rem";
|
|
81
|
+
export const buttonFontWeight: "500";
|
|
82
|
+
export const buttonPadding: "calc(0.25rem * 1.5) calc(0.25rem * 3)";
|
|
83
|
+
export const buttonTransition: "all 0.15s ease-in-out";
|
|
84
|
+
export const buttonCursor: "pointer";
|
|
85
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../../src/onedesign-tokens/dist/js/es6/rem/button.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,iDAAkD;AAClD,kDAAmD;AACnD,mDAAoD;AACpD,8CAA+C;AAC/C,kDAAmD;AACnD,kEAAmE;AACnE,iDAAkD;AAClD,kDAAmD;AACnD,gEAAiE;AACjE,+CAAgD;AAChD,mDAAoD;AACpD,mEAAoE;AACpE,2EAA4E;AAC5E,4EAA6E;AAC7E,oFAAqF;AACrF,qFAAsF;AACtF,4EAA6E;AAC7E,8EAA+E;AAC/E,yEAA0E;AAC1E,0EAA2E;AAC3E,kFAAmF;AACnF,mFAAoF;AACpF,0EAA2E;AAC3E,4EAA6E;AAC7E,0EAA2E;AAC3E,2EAA4E;AAC5E,mFAAoF;AACpF,oFAAqF;AACrF,2EAA4E;AAC5E,6EAA8E;AAC9E,oFAAqF;AACrF,kFAAmF;AACnF,mFAAoF;AACpF,iFAAkF;AAClF,kFAAmF;AACnF,gFAAiF;AACjF,iFAAkF;AAClF,gFAAiF;AACjF,iFAAkF;AAClF,mFAAoF;AACpF,qFAAsF;AACtF,8EAA+E;AAC/E,+EAAgF;AAChF,iFAAkF;AAClF,kFAAmF;AACnF,oFAAqF;AACrF,sFAAuF;AACvF,+EAAgF;AAChF,gFAAiF;AACjF,sFAAuF;AACvF,4EAA6E;AAC7E,6EAA8E;AAC9E,gFAAiF;AACjF,iFAAkF;AAClF,+EAAgF;AAChF,gFAAiF;AACjF,0EAA2E;AAC3E,2EAA4E;AAC5E,kFAAmF;AACnF,oFAAqF;AACrF,6EAA8E;AAC9E,8EAA+E;AAC/E,2EAA4E;AAC5E,4EAA6E;AAC7E,mFAAoF;AACpF,qFAAsF;AACtF,8EAA+E;AAC/E,+EAAgF;AAChF,qFAAsF;AACtF,6CAA8C;AAC9C,0CAA2C;AAC3C,wCAAyC;AACzC,qDAAsD;AACtD,kEAAmE;AACnE,oCAAqC;AACrC,wCAAyC;AACzC,qCAAsC;AACtC,oEAAqE;AACrE,uDAAwD;AACxD,qCAAsC"}
|