@veracity/vui 1.7.0-redesign.5 → 1.7.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/button/button.d.ts +1 -1
- package/dist/cjs/button/button.d.ts.map +1 -1
- package/dist/cjs/button/button.js +23 -16
- package/dist/cjs/button/button.types.d.ts +4 -3
- 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 +44 -121
- package/dist/cjs/button/theme.d.ts.map +1 -1
- package/dist/cjs/button/theme.js +54 -135
- 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 +3 -2
- 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 +3 -2
- 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 +38 -56
- package/dist/cjs/footer/footerTrademark.js +1 -1
- package/dist/cjs/heading/theme.d.ts +1 -23
- package/dist/cjs/heading/theme.d.ts.map +1 -1
- package/dist/cjs/heading/theme.js +7 -29
- 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 +0 -5
- package/dist/cjs/icon/theme.d.ts.map +1 -1
- package/dist/cjs/icon/theme.js +0 -5
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +0 -1
- 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 +2 -0
- package/dist/cjs/link/link.types.d.ts.map +1 -1
- package/dist/cjs/link/theme.d.ts +4 -21
- package/dist/cjs/link/theme.d.ts.map +1 -1
- package/dist/cjs/link/theme.js +17 -30
- package/dist/cjs/list/listItem.d.ts.map +1 -1
- package/dist/cjs/list/listItem.js +2 -6
- package/dist/cjs/notification/consts.js +10 -10
- package/dist/cjs/notification/notification.d.ts.map +1 -1
- package/dist/cjs/notification/notification.js +8 -10
- 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 +1 -5
- package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
- package/dist/cjs/notification/notificationIcon.js +2 -3
- 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 +16 -31
- package/dist/cjs/notification/theme.d.ts.map +1 -1
- package/dist/cjs/notification/theme.js +26 -32
- package/dist/cjs/p/theme.d.ts +8 -0
- package/dist/cjs/p/theme.d.ts.map +1 -1
- package/dist/cjs/p/theme.js +11 -3
- package/dist/cjs/progress/progress.js +1 -1
- package/dist/cjs/select/selectButton.js +1 -1
- package/dist/cjs/t/theme.d.ts +1 -10
- package/dist/cjs/t/theme.d.ts.map +1 -1
- package/dist/cjs/t/theme.js +1 -10
- package/dist/cjs/table/tbody.d.ts.map +1 -1
- package/dist/cjs/table/tbody.js +0 -4
- package/dist/cjs/table/theme.d.ts +0 -5
- package/dist/cjs/table/theme.d.ts.map +1 -1
- package/dist/cjs/table/theme.js +1 -6
- 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 +5 -13
- package/dist/cjs/tabs/theme.d.ts +4 -40
- package/dist/cjs/tabs/theme.d.ts.map +1 -1
- package/dist/cjs/tabs/theme.js +4 -41
- package/dist/cjs/tag/tag.d.ts.map +1 -1
- package/dist/cjs/tag/tag.js +6 -9
- package/dist/cjs/tag/tag.types.d.ts +2 -3
- package/dist/cjs/tag/tag.types.d.ts.map +1 -1
- package/dist/cjs/tag/tagButton.js +1 -3
- package/dist/cjs/tag/theme.d.ts +32 -178
- package/dist/cjs/tag/theme.d.ts.map +1 -1
- package/dist/cjs/tag/theme.js +65 -182
- package/dist/cjs/textarea/textarea.js +1 -1
- package/dist/cjs/theme/components.d.ts +39 -497
- package/dist/cjs/theme/components.d.ts.map +1 -1
- package/dist/cjs/theme/components.js +68 -70
- package/dist/cjs/theme/defaultTheme.d.ts +46 -795
- package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/colors.d.ts +0 -523
- package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/colors.js +1 -389
- package/dist/cjs/theme/foundations/fontWeights.d.ts +1 -0
- package/dist/cjs/theme/foundations/fontWeights.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/fontWeights.js +2 -1
- package/dist/cjs/theme/foundations/index.d.ts +1 -292
- package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/radii.d.ts +0 -5
- package/dist/cjs/theme/foundations/radii.d.ts.map +1 -1
- package/dist/cjs/theme/foundations/radii.js +3 -8
- package/dist/cjs/toast/toast.d.ts +1 -1
- package/dist/cjs/toast/toast.js +1 -1
- 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/button/button.d.ts +1 -1
- package/dist/esm/button/button.d.ts.map +1 -1
- package/dist/esm/button/button.js +23 -16
- package/dist/esm/button/button.types.d.ts +4 -3
- 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 +44 -121
- package/dist/esm/button/theme.d.ts.map +1 -1
- package/dist/esm/button/theme.js +58 -135
- 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 +3 -2
- 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 +3 -2
- 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 +38 -56
- package/dist/esm/footer/footerTrademark.js +1 -1
- package/dist/esm/heading/theme.d.ts +1 -23
- package/dist/esm/heading/theme.d.ts.map +1 -1
- package/dist/esm/heading/theme.js +7 -29
- 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 +0 -5
- package/dist/esm/icon/theme.d.ts.map +1 -1
- package/dist/esm/icon/theme.js +0 -5
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -1
- 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 +2 -0
- package/dist/esm/link/link.types.d.ts.map +1 -1
- package/dist/esm/link/theme.d.ts +4 -21
- package/dist/esm/link/theme.d.ts.map +1 -1
- package/dist/esm/link/theme.js +17 -30
- package/dist/esm/list/listItem.d.ts.map +1 -1
- package/dist/esm/list/listItem.js +2 -6
- package/dist/esm/notification/consts.js +10 -10
- package/dist/esm/notification/notification.d.ts.map +1 -1
- package/dist/esm/notification/notification.js +9 -11
- 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 +1 -4
- package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
- package/dist/esm/notification/notificationIcon.js +2 -3
- 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 +16 -31
- package/dist/esm/notification/theme.d.ts.map +1 -1
- package/dist/esm/notification/theme.js +26 -32
- package/dist/esm/p/theme.d.ts +8 -0
- package/dist/esm/p/theme.d.ts.map +1 -1
- package/dist/esm/p/theme.js +11 -3
- package/dist/esm/progress/progress.js +1 -1
- package/dist/esm/select/selectButton.js +1 -1
- package/dist/esm/t/theme.d.ts +1 -10
- package/dist/esm/t/theme.d.ts.map +1 -1
- package/dist/esm/t/theme.js +1 -10
- package/dist/esm/table/tbody.d.ts.map +1 -1
- package/dist/esm/table/tbody.js +0 -4
- package/dist/esm/table/theme.d.ts +0 -5
- package/dist/esm/table/theme.d.ts.map +1 -1
- package/dist/esm/table/theme.js +1 -6
- 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 +4 -12
- package/dist/esm/tabs/theme.d.ts +4 -40
- package/dist/esm/tabs/theme.d.ts.map +1 -1
- package/dist/esm/tabs/theme.js +4 -41
- package/dist/esm/tag/tag.d.ts.map +1 -1
- package/dist/esm/tag/tag.js +6 -9
- package/dist/esm/tag/tag.types.d.ts +2 -3
- package/dist/esm/tag/tag.types.d.ts.map +1 -1
- package/dist/esm/tag/tagButton.js +1 -3
- package/dist/esm/tag/theme.d.ts +32 -178
- package/dist/esm/tag/theme.d.ts.map +1 -1
- package/dist/esm/tag/theme.js +65 -182
- package/dist/esm/textarea/textarea.js +1 -1
- package/dist/esm/theme/components.d.ts +39 -497
- package/dist/esm/theme/components.d.ts.map +1 -1
- package/dist/esm/theme/components.js +0 -2
- package/dist/esm/theme/defaultTheme.d.ts +46 -795
- package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
- package/dist/esm/theme/foundations/colors.d.ts +0 -523
- package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
- package/dist/esm/theme/foundations/colors.js +0 -365
- package/dist/esm/theme/foundations/fontWeights.d.ts +1 -0
- package/dist/esm/theme/foundations/fontWeights.d.ts.map +1 -1
- package/dist/esm/theme/foundations/fontWeights.js +2 -1
- package/dist/esm/theme/foundations/index.d.ts +1 -292
- package/dist/esm/theme/foundations/index.d.ts.map +1 -1
- package/dist/esm/theme/foundations/radii.d.ts +0 -5
- package/dist/esm/theme/foundations/radii.d.ts.map +1 -1
- package/dist/esm/theme/foundations/radii.js +3 -8
- package/dist/esm/toast/toast.d.ts +1 -1
- package/dist/esm/toast/toast.js +1 -1
- 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/button/button.tsx +28 -19
- package/src/button/button.types.ts +8 -4
- package/src/button/buttons.tsx +8 -8
- package/src/button/consts.ts +3 -3
- package/src/button/theme.ts +71 -143
- package/src/buttonGroup/buttonGroup.tsx +9 -6
- package/src/buttonGroup/buttonGroup.types.ts +3 -2
- package/src/buttonGroup/helpers.ts +4 -2
- package/src/buttonToggleGroup/buttonToggleGroup.tsx +2 -0
- package/src/checkbox/checkbox.tsx +1 -1
- package/src/copyToClipboard/copyToClipboard.tsx +1 -1
- package/src/core/vuiProvider/globalStyle.tsx +38 -56
- package/src/footer/footerTrademark.tsx +1 -1
- package/src/heading/theme.ts +7 -29
- package/src/icon/icon.types.ts +1 -1
- package/src/icon/theme.ts +0 -5
- package/src/index.ts +0 -1
- package/src/input/input.tsx +1 -1
- package/src/input/inputInput.tsx +1 -1
- package/src/link/link.tsx +3 -2
- package/src/link/link.types.ts +2 -0
- package/src/link/theme.ts +20 -30
- package/src/list/listItem.tsx +2 -6
- package/src/notification/consts.ts +10 -10
- package/src/notification/notification.tsx +11 -17
- package/src/notification/notification.types.ts +2 -2
- package/src/notification/notificationButton.tsx +5 -10
- package/src/notification/notificationIcon.tsx +3 -6
- package/src/notification/notificationText.tsx +1 -2
- package/src/notification/notificationTitle.tsx +9 -3
- package/src/notification/theme.ts +34 -32
- package/src/p/theme.ts +11 -3
- package/src/progress/progress.tsx +1 -1
- package/src/select/selectButton.tsx +1 -1
- package/src/t/theme.ts +1 -10
- package/src/table/tbody.tsx +0 -4
- package/src/table/theme.ts +1 -6
- package/src/tabs/tabs.types.ts +2 -2
- package/src/tabs/tabsNavBar.tsx +6 -23
- package/src/tabs/theme.ts +4 -41
- package/src/tag/tag.tsx +10 -11
- package/src/tag/tag.types.ts +31 -32
- package/src/tag/tagButton.tsx +2 -2
- package/src/tag/theme.ts +80 -183
- package/src/textarea/textarea.tsx +1 -1
- package/src/theme/components.ts +0 -2
- package/src/theme/foundations/colors.ts +0 -401
- package/src/theme/foundations/fontWeights.ts +2 -1
- package/src/theme/foundations/radii.ts +3 -8
- package/src/toast/toast.tsx +1 -1
- package/src/toast/useToast.tsx +1 -2
- package/src/tutorial/tutorialCard.tsx +3 -10
- package/dist/cjs/badge/badge.d.ts +0 -9
- package/dist/cjs/badge/badge.d.ts.map +0 -1
- package/dist/cjs/badge/badge.js +0 -35
- package/dist/cjs/badge/badge.types.d.ts +0 -17
- package/dist/cjs/badge/badge.types.d.ts.map +0 -1
- package/dist/cjs/badge/badge.types.js +0 -2
- package/dist/cjs/badge/index.d.ts +0 -3
- package/dist/cjs/badge/index.d.ts.map +0 -1
- package/dist/cjs/badge/index.js +0 -23
- package/dist/cjs/badge/theme.d.ts +0 -130
- package/dist/cjs/badge/theme.d.ts.map +0 -1
- package/dist/cjs/badge/theme.js +0 -135
- package/dist/esm/badge/badge.d.ts +0 -9
- package/dist/esm/badge/badge.d.ts.map +0 -1
- package/dist/esm/badge/badge.js +0 -17
- package/dist/esm/badge/badge.types.d.ts +0 -17
- package/dist/esm/badge/badge.types.d.ts.map +0 -1
- package/dist/esm/badge/badge.types.js +0 -1
- package/dist/esm/badge/index.d.ts +0 -3
- package/dist/esm/badge/index.d.ts.map +0 -1
- package/dist/esm/badge/index.js +0 -2
- package/dist/esm/badge/theme.d.ts +0 -130
- package/dist/esm/badge/theme.d.ts.map +0 -1
- package/dist/esm/badge/theme.js +0 -133
- package/src/badge/badge.tsx +0 -36
- package/src/badge/badge.types.ts +0 -17
- package/src/badge/index.ts +0 -2
- package/src/badge/theme.ts +0 -140
- package/src/onedesign-tokens/button.js +0 -85
|
@@ -12,297 +12,6 @@ declare const _default: {
|
|
|
12
12
|
};
|
|
13
13
|
borders: {};
|
|
14
14
|
colors: {
|
|
15
|
-
buttonTypePrimaryDefaultBorderColorDark: string;
|
|
16
|
-
buttonTypePrimaryDefaultBackgroundColorDark: string;
|
|
17
|
-
buttonTypePrimaryDefaultTextColorDark: string;
|
|
18
|
-
buttonTypePrimaryHoverBackgroundColorDark: string;
|
|
19
|
-
buttonTypePrimaryHoverBorderColorDark: string;
|
|
20
|
-
buttonTypePrimaryHoverTextColorDark: string;
|
|
21
|
-
buttonTypePrimaryActiveBackgroundColorDark: string;
|
|
22
|
-
buttonTypePrimaryActiveBorderColorDark: string;
|
|
23
|
-
buttonTypePrimaryActiveTextColorDark: string;
|
|
24
|
-
buttonTypePrimaryDefaultBorderColorLight: string;
|
|
25
|
-
buttonTypePrimaryDefaultBackgroundColorLight: string;
|
|
26
|
-
buttonTypePrimaryDefaultTextColorLight: string;
|
|
27
|
-
buttonTypePrimaryFocusOutline: string;
|
|
28
|
-
buttonTypePrimaryHoverBackgroundColorLight: string;
|
|
29
|
-
buttonTypePrimaryHoverBorderColorLight: string;
|
|
30
|
-
buttonTypePrimaryHoverTextColorLight: string;
|
|
31
|
-
buttonTypePrimaryActiveBackgroundColorLight: string;
|
|
32
|
-
buttonTypePrimaryActiveBorderColorLight: string;
|
|
33
|
-
buttonTypePrimaryActiveTextColorLight: string;
|
|
34
|
-
buttonTypeSecondaryDefaultBorderColorDark: string;
|
|
35
|
-
buttonTypeSecondaryDefaultBackgroundColorDark: string;
|
|
36
|
-
buttonTypeSecondaryDefaultTextColorDark: string;
|
|
37
|
-
buttonTypeSecondaryFocusOutline: string;
|
|
38
|
-
buttonTypeSecondaryHoverBackgroundColorDark: string;
|
|
39
|
-
buttonTypeSecondaryHoverBorderColorDark: string;
|
|
40
|
-
buttonTypeSecondaryHoverTextColorDark: string;
|
|
41
|
-
buttonTypeSecondaryActiveBackgroundColorDark: string;
|
|
42
|
-
buttonTypeSecondaryActiveBorderColorDark: string;
|
|
43
|
-
buttonTypeSecondaryActiveTextColorDark: string;
|
|
44
|
-
buttonTypeSecondaryDefaultBorderColorLight: string;
|
|
45
|
-
buttonTypeSecondaryDefaultBackgroundColorLight: string;
|
|
46
|
-
buttonTypeSecondaryDefaultTextColorLight: string;
|
|
47
|
-
buttonTypeSecondaryHoverBackgroundColorLight: string;
|
|
48
|
-
buttonTypeSecondaryHoverBorderColorLight: string;
|
|
49
|
-
buttonTypeSecondaryHoverTextColorLight: string;
|
|
50
|
-
buttonTypeSecondaryActiveBackgroundColorLight: string;
|
|
51
|
-
buttonTypeSecondaryActiveBorderColorLight: string;
|
|
52
|
-
buttonTypeSecondaryActiveTextColorLight: string;
|
|
53
|
-
buttonTypeTertiaryDefaultBorderColorDark: string;
|
|
54
|
-
buttonTypeTertiaryDefaultBackgroundColorDark: string;
|
|
55
|
-
buttonTypeTertiaryDefaultTextColorDark: string;
|
|
56
|
-
buttonTypeTertiaryHoverBackgroundColorDark: string;
|
|
57
|
-
buttonTypeTertiaryHoverBorderColorDark: string;
|
|
58
|
-
buttonTypeTertiaryHoverTextColorDark: string;
|
|
59
|
-
buttonTypeTertiaryFocusOutline: string;
|
|
60
|
-
buttonTypeTertiaryActiveBackgroundColorDark: string;
|
|
61
|
-
buttonTypeTertiaryActiveBorderColorDark: string;
|
|
62
|
-
buttonTypeTertiaryActiveTextColorDark: string;
|
|
63
|
-
buttonTypeTertiaryDefaultBorderColorLight: string;
|
|
64
|
-
buttonTypeTertiaryDefaultBackgroundColorLight: string;
|
|
65
|
-
buttonTypeTertiaryDefaultTextColorLight: string;
|
|
66
|
-
buttonTypeTertiaryHoverBackgroundColorLight: string;
|
|
67
|
-
buttonTypeTertiaryHoverBorderColorLight: string;
|
|
68
|
-
buttonTypeTertiaryHoverTextColorLight: string;
|
|
69
|
-
buttonTypeTertiaryActiveBackgroundColorLight: string;
|
|
70
|
-
buttonTypeTertiaryActiveBorderColorLight: string;
|
|
71
|
-
buttonTypeTertiaryActiveTextColorLight: string;
|
|
72
|
-
buttonDisabledCursor: string;
|
|
73
|
-
buttonDisabledOpacity: string;
|
|
74
|
-
darkBlue: {
|
|
75
|
-
95: string;
|
|
76
|
-
90: string;
|
|
77
|
-
85: string;
|
|
78
|
-
80: string;
|
|
79
|
-
75: string;
|
|
80
|
-
70: string;
|
|
81
|
-
65: string;
|
|
82
|
-
60: string;
|
|
83
|
-
55: string;
|
|
84
|
-
50: string;
|
|
85
|
-
45: string;
|
|
86
|
-
40: string;
|
|
87
|
-
35: string;
|
|
88
|
-
30: string;
|
|
89
|
-
25: string;
|
|
90
|
-
18: string;
|
|
91
|
-
15: string;
|
|
92
|
-
10: string;
|
|
93
|
-
5: string;
|
|
94
|
-
};
|
|
95
|
-
digiGreen: {
|
|
96
|
-
95: string;
|
|
97
|
-
90: string;
|
|
98
|
-
85: string;
|
|
99
|
-
80: string;
|
|
100
|
-
78: string;
|
|
101
|
-
70: string;
|
|
102
|
-
65: string;
|
|
103
|
-
60: string;
|
|
104
|
-
55: string;
|
|
105
|
-
50: string;
|
|
106
|
-
45: string;
|
|
107
|
-
40: string;
|
|
108
|
-
35: string;
|
|
109
|
-
30: string;
|
|
110
|
-
25: string;
|
|
111
|
-
20: string;
|
|
112
|
-
15: string;
|
|
113
|
-
10: string;
|
|
114
|
-
5: string;
|
|
115
|
-
};
|
|
116
|
-
earth: {
|
|
117
|
-
95: string;
|
|
118
|
-
89: string;
|
|
119
|
-
85: string;
|
|
120
|
-
80: string;
|
|
121
|
-
75: string;
|
|
122
|
-
70: string;
|
|
123
|
-
65: string;
|
|
124
|
-
60: string;
|
|
125
|
-
55: string;
|
|
126
|
-
50: string;
|
|
127
|
-
45: string;
|
|
128
|
-
40: string;
|
|
129
|
-
35: string;
|
|
130
|
-
30: string;
|
|
131
|
-
25: string;
|
|
132
|
-
20: string;
|
|
133
|
-
15: string;
|
|
134
|
-
10: string;
|
|
135
|
-
5: string;
|
|
136
|
-
};
|
|
137
|
-
energyRed: {
|
|
138
|
-
95: string;
|
|
139
|
-
90: string;
|
|
140
|
-
85: string;
|
|
141
|
-
80: string;
|
|
142
|
-
75: string;
|
|
143
|
-
70: string;
|
|
144
|
-
65: string;
|
|
145
|
-
60: string;
|
|
146
|
-
54: string;
|
|
147
|
-
50: string;
|
|
148
|
-
45: string;
|
|
149
|
-
40: string;
|
|
150
|
-
35: string;
|
|
151
|
-
30: string;
|
|
152
|
-
25: string;
|
|
153
|
-
20: string;
|
|
154
|
-
15: string;
|
|
155
|
-
10: string;
|
|
156
|
-
5: string;
|
|
157
|
-
};
|
|
158
|
-
focusColor: string;
|
|
159
|
-
landGreen: {
|
|
160
|
-
95: string;
|
|
161
|
-
90: string;
|
|
162
|
-
85: string;
|
|
163
|
-
80: string;
|
|
164
|
-
75: string;
|
|
165
|
-
70: string;
|
|
166
|
-
65: string;
|
|
167
|
-
60: string;
|
|
168
|
-
55: string;
|
|
169
|
-
50: string;
|
|
170
|
-
45: string;
|
|
171
|
-
41: string;
|
|
172
|
-
35: string;
|
|
173
|
-
30: string;
|
|
174
|
-
25: string;
|
|
175
|
-
20: string;
|
|
176
|
-
15: string;
|
|
177
|
-
10: string;
|
|
178
|
-
5: string;
|
|
179
|
-
};
|
|
180
|
-
sandstone: {
|
|
181
|
-
95: string;
|
|
182
|
-
90: string;
|
|
183
|
-
85: string;
|
|
184
|
-
79: string;
|
|
185
|
-
75: string;
|
|
186
|
-
70: string;
|
|
187
|
-
65: string;
|
|
188
|
-
60: string;
|
|
189
|
-
55: string;
|
|
190
|
-
50: string;
|
|
191
|
-
45: string;
|
|
192
|
-
40: string;
|
|
193
|
-
35: string;
|
|
194
|
-
30: string;
|
|
195
|
-
25: string;
|
|
196
|
-
20: string;
|
|
197
|
-
15: string;
|
|
198
|
-
10: string;
|
|
199
|
-
5: string;
|
|
200
|
-
};
|
|
201
|
-
seaBlue: {
|
|
202
|
-
95: string;
|
|
203
|
-
90: string;
|
|
204
|
-
85: string;
|
|
205
|
-
80: string;
|
|
206
|
-
75: string;
|
|
207
|
-
70: string;
|
|
208
|
-
65: string;
|
|
209
|
-
60: string;
|
|
210
|
-
55: string;
|
|
211
|
-
50: string;
|
|
212
|
-
45: string;
|
|
213
|
-
40: string;
|
|
214
|
-
35: string;
|
|
215
|
-
28: string;
|
|
216
|
-
25: string;
|
|
217
|
-
20: string;
|
|
218
|
-
15: string;
|
|
219
|
-
10: string;
|
|
220
|
-
5: string;
|
|
221
|
-
};
|
|
222
|
-
skyBlue: {
|
|
223
|
-
97: string;
|
|
224
|
-
95: string;
|
|
225
|
-
90: string;
|
|
226
|
-
85: string;
|
|
227
|
-
80: string;
|
|
228
|
-
77: string;
|
|
229
|
-
65: string;
|
|
230
|
-
60: string;
|
|
231
|
-
55: string;
|
|
232
|
-
50: string;
|
|
233
|
-
45: string;
|
|
234
|
-
40: string;
|
|
235
|
-
35: string;
|
|
236
|
-
30: string;
|
|
237
|
-
25: string;
|
|
238
|
-
20: string;
|
|
239
|
-
15: string;
|
|
240
|
-
10: string;
|
|
241
|
-
5: string;
|
|
242
|
-
};
|
|
243
|
-
sunflower: {
|
|
244
|
-
95: string;
|
|
245
|
-
90: string;
|
|
246
|
-
85: string;
|
|
247
|
-
80: string;
|
|
248
|
-
73: string;
|
|
249
|
-
70: string;
|
|
250
|
-
65: string;
|
|
251
|
-
60: string;
|
|
252
|
-
55: string;
|
|
253
|
-
50: string;
|
|
254
|
-
45: string;
|
|
255
|
-
40: string;
|
|
256
|
-
35: string;
|
|
257
|
-
30: string;
|
|
258
|
-
25: string;
|
|
259
|
-
20: string;
|
|
260
|
-
15: string;
|
|
261
|
-
10: string;
|
|
262
|
-
5: string;
|
|
263
|
-
};
|
|
264
|
-
terracotta: {
|
|
265
|
-
95: string;
|
|
266
|
-
90: string;
|
|
267
|
-
85: string;
|
|
268
|
-
80: string;
|
|
269
|
-
75: string;
|
|
270
|
-
70: string;
|
|
271
|
-
65: string;
|
|
272
|
-
60: string;
|
|
273
|
-
55: string;
|
|
274
|
-
50: string;
|
|
275
|
-
45: string;
|
|
276
|
-
40: string;
|
|
277
|
-
35: string;
|
|
278
|
-
30: string;
|
|
279
|
-
25: string;
|
|
280
|
-
20: string;
|
|
281
|
-
15: string;
|
|
282
|
-
10: string;
|
|
283
|
-
5: string;
|
|
284
|
-
};
|
|
285
|
-
warmGrey: {
|
|
286
|
-
95: string;
|
|
287
|
-
90: string;
|
|
288
|
-
85: string;
|
|
289
|
-
80: string;
|
|
290
|
-
75: string;
|
|
291
|
-
70: string;
|
|
292
|
-
65: string;
|
|
293
|
-
60: string;
|
|
294
|
-
56: string;
|
|
295
|
-
50: string;
|
|
296
|
-
45: string;
|
|
297
|
-
40: string;
|
|
298
|
-
35: string;
|
|
299
|
-
30: string;
|
|
300
|
-
25: string;
|
|
301
|
-
20: string;
|
|
302
|
-
15: string;
|
|
303
|
-
10: string;
|
|
304
|
-
5: string;
|
|
305
|
-
};
|
|
306
15
|
blue: {
|
|
307
16
|
10: string;
|
|
308
17
|
20: string;
|
|
@@ -412,6 +121,7 @@ declare const _default: {
|
|
|
412
121
|
regular: string;
|
|
413
122
|
medium: string;
|
|
414
123
|
demi: string;
|
|
124
|
+
bold: string;
|
|
415
125
|
};
|
|
416
126
|
gridTemplateColumns: {
|
|
417
127
|
1: string;
|
|
@@ -440,7 +150,6 @@ declare const _default: {
|
|
|
440
150
|
sm: number;
|
|
441
151
|
md: number;
|
|
442
152
|
lg: number;
|
|
443
|
-
xl: number;
|
|
444
153
|
round: number;
|
|
445
154
|
};
|
|
446
155
|
ringWidths: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/foundations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/foundations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wBAqBC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
none: number;
|
|
3
|
-
/** sm radius. @deprecated */
|
|
4
3
|
sm: number;
|
|
5
|
-
/** md radius. @deprecated */
|
|
6
4
|
md: number;
|
|
7
|
-
/** lg radius. @deprecated */
|
|
8
5
|
lg: number;
|
|
9
|
-
/** xl radius. @deprecated */
|
|
10
|
-
xl: number;
|
|
11
6
|
round: number;
|
|
12
7
|
};
|
|
13
8
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radii.d.ts","sourceRoot":"","sources":["../../../../src/theme/foundations/radii.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radii.d.ts","sourceRoot":"","sources":["../../../../src/theme/foundations/radii.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAMC"}
|
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
none: 0,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
md: 2,
|
|
9
|
-
/** lg radius. @deprecated */
|
|
10
|
-
lg: 4,
|
|
11
|
-
/** xl radius. @deprecated */
|
|
12
|
-
xl: 6,
|
|
5
|
+
sm: 4,
|
|
6
|
+
md: 6,
|
|
7
|
+
lg: 10,
|
|
13
8
|
round: 9999
|
|
14
9
|
};
|
package/dist/cjs/toast/toast.js
CHANGED
|
@@ -8,7 +8,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const box_1 = require("../box");
|
|
9
9
|
const core_1 = require("../core");
|
|
10
10
|
const theme_1 = require("../theme");
|
|
11
|
-
exports.toasterWidth =
|
|
11
|
+
exports.toasterWidth = 420;
|
|
12
12
|
const Toaster = () => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
const { toasts } = (0, core_1.useVuiContext)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../src/toast/useToast.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKxC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAc,MAAM,eAAe,CAAA;AAEvE,eAAO,MAAM,eAAe,SAAS,CAAA;AACrC,eAAO,MAAM,iBAAiB,OAAO,CAAA;AACrC,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAWrC,eAAO,MAAM,QAAQ;0BAKU,YAAY,KAAG,IAAI;oBAFzB,MAAM;
|
|
1
|
+
{"version":3,"file":"useToast.d.ts","sourceRoot":"","sources":["../../../src/toast/useToast.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKxC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAc,MAAM,eAAe,CAAA;AAEvE,eAAO,MAAM,eAAe,SAAS,CAAA;AACrC,eAAO,MAAM,iBAAiB,OAAO,CAAA;AACrC,eAAO,MAAM,iBAAiB,OAAO,CAAA;AAWrC,eAAO,MAAM,QAAQ;0BAKU,YAAY,KAAG,IAAI;oBAFzB,MAAM;qBAoCL,SAAS,aAAY,aAAa;wBAE/B,SAAS,aAAY,aAAa;wBAElC,SAAS,aAAY,aAAa;sBAEpC,SAAS,aAAY,aAAa;wBAEhC,SAAS,aAAY,aAAa;CAI9D,CAAA"}
|
|
@@ -32,7 +32,7 @@ const useToast = () => {
|
|
|
32
32
|
const onClose = () => hideToast(id);
|
|
33
33
|
const toast = {
|
|
34
34
|
id,
|
|
35
|
-
component: (react_1.default.createElement(notification_1.Notification, { action: action, animation: "fadeDown", icon: icon, mt: { md: 1, sm: '4px', xs: '4px' }, onClose: onClose, shadow:
|
|
35
|
+
component: (react_1.default.createElement(notification_1.Notification, { action: action, animation: "fadeDown", icon: icon, mt: { md: 1, sm: '4px', xs: '4px' }, onClose: onClose, shadow: 1, status: status, text: text, title: title, w: 1 }))
|
|
36
36
|
};
|
|
37
37
|
addToast(toast);
|
|
38
38
|
if (duration && duration !== 'sticky')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tutorialCard.d.ts","sourceRoot":"","sources":["../../../src/tutorial/tutorialCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAyC,MAAM,kBAAkB,CAAA;AAG3F,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,WAAW,EACX,KAAK,EACL,YAAY,EACZ,KAAK,EAAE,UAAe,EACtB,SAAS,EACT,QAAQ,EACT,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"tutorialCard.d.ts","sourceRoot":"","sources":["../../../src/tutorial/tutorialCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAyC,MAAM,kBAAkB,CAAA;AAG3F,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,WAAW,EACX,KAAK,EACL,YAAY,EACZ,KAAK,EAAE,UAAe,EACtB,SAAS,EACT,QAAQ,EACT,EAAE,iBAAiB,eA0HnB"}
|
|
@@ -51,15 +51,15 @@ function TutorialCard({ className, description, title, readMoreLink, steps: prop
|
|
|
51
51
|
return (react_1.default.createElement(index_1.Card, { bg: "blue.100", className: className, color: "white", column: true, justifyContent: "space-between", minH: 200, w: 450 },
|
|
52
52
|
react_1.default.createElement(index_1.Box, { alignContent: "center", alignItems: "center", display: "flex", flex: 0, flexDirection: "row", flexGrow: 0, justifyContent: "space-between", m: 2, mb: 1, minH: "48px", row: true, style: { WebkitFlexGrow: '0' } },
|
|
53
53
|
react_1.default.createElement(index_1.H3, null, title),
|
|
54
|
-
!isFinalStep && (react_1.default.createElement(index_1.Button, { color: "white", hoverColor: "prussian.80", icon: "falTimes", onClick: onDismiss, scale: 2, variant: "
|
|
54
|
+
!isFinalStep && (react_1.default.createElement(index_1.Button, { color: "white", hoverColor: "prussian.80", icon: "falTimes", onClick: onDismiss, scale: 2, variant: "text" }))),
|
|
55
55
|
react_1.default.createElement(index_1.Box, { column: true, flex: 5, hidden: started, mx: 2 },
|
|
56
56
|
react_1.default.createElement(index_1.T, { flexGrow: 1 }, description),
|
|
57
57
|
react_1.default.createElement(index_1.Box, { alignItems: "center", flexDirection: "row-reverse", row: true },
|
|
58
58
|
react_1.default.createElement(index_1.Button, { bg: "white", color: "prussian.80", float: "right", mb: 0, onClick: () => setStarted(true), pb: 0 }, "Let's get started!"))),
|
|
59
59
|
react_1.default.createElement(index_1.Box, { flex: 5, hidden: !started, mx: 2, row: true }, (_a = steps === null || steps === void 0 ? void 0 : steps.map) === null || _a === void 0 ? void 0 : _a.call(steps, s => (react_1.default.createElement(tutorialStep_1.TutorialStep, { active: s.key === activeStep, description: s.step.description, key: s.step.title, readMoreLink: s.step.readMoreLink, title: s.step.title })))),
|
|
60
60
|
react_1.default.createElement(index_1.Box, { alignItems: "center", flex: 0, flexGrow: 0, hidden: !started, justifyContent: "space-between", m: 2, mt: 0, row: true, style: { WebkitFlexGrow: '0' } },
|
|
61
|
-
react_1.default.createElement(index_1.Button, { color: "white", disabled: isStartStep, disabledBg: "blue.100", disabledBorderColor: "blue.100", disabledColor: "prussian.80", focusBorderColor: "none", hoverBg: "none", hoverBorder: "none", hoverBorderColor: "blue.100", icon: "falArrowLeft", onClick: decrementStep, scale: 2, transition: "none", variant: "
|
|
61
|
+
react_1.default.createElement(index_1.Button, { color: "white", disabled: isStartStep, disabledBg: "blue.100", disabledBorderColor: "blue.100", disabledColor: "prussian.80", focusBorderColor: "none", hoverBg: "none", hoverBorder: "none", hoverBorderColor: "blue.100", icon: "falArrowLeft", onClick: decrementStep, scale: 2, transition: "none", variant: "text", w: "80" }),
|
|
62
62
|
react_1.default.createElement(index_1.Box, { className: "vuiTutorialStepDots" }, (_b = steps === null || steps === void 0 ? void 0 : steps.map) === null || _b === void 0 ? void 0 : _b.call(steps, s => (react_1.default.createElement(index_1.Icon, { color: s.key === activeStep ? 'white' : 'grey.70', key: s.key, name: "cusDotFull" })))),
|
|
63
|
-
isFinalStep ? (react_1.default.createElement(index_1.Button, { bg: "white", color: "prussian.80", hoverBg: "blue.30", hoverColor: "prussian.80", onClick: onFinish }, "Finish")) : (react_1.default.createElement(index_1.Button, { color: "white", focusBorderColor: "none", hoverBg: "none", hoverBorder: "none", hoverBorderColor: "blue.100", icon: "falArrowRight", onClick: incrementStep, scale: 2, transition: "none", variant: "
|
|
63
|
+
isFinalStep ? (react_1.default.createElement(index_1.Button, { bg: "white", color: "prussian.80", hoverBg: "blue.30", hoverColor: "prussian.80", onClick: onFinish }, "Finish")) : (react_1.default.createElement(index_1.Button, { color: "white", focusBorderColor: "none", hoverBg: "none", hoverBorder: "none", hoverBorderColor: "blue.100", icon: "falArrowRight", onClick: incrementStep, scale: 2, transition: "none", variant: "text", w: "80" })))));
|
|
64
64
|
}
|
|
65
65
|
exports.TutorialCard = TutorialCard;
|
|
@@ -23,7 +23,7 @@ export const AvatarBase = styled.spanBox `
|
|
|
23
23
|
export const Avatar = vui((props, ref) => {
|
|
24
24
|
const { children, className, getInitials = defaultGetInitials, icon, isInteractive = props.onClick !== undefined, isSquare, name = '', src, ...rest } = omitThemingProps(props);
|
|
25
25
|
const { activeBg, h, hoverBg, iconSize, ...styles } = useStyleConfig('Avatar', props);
|
|
26
|
-
const borderRadius = isSquare ? '
|
|
26
|
+
const borderRadius = isSquare ? 'lg' : '50%';
|
|
27
27
|
const initials = getInitials(name);
|
|
28
28
|
const interactiveProps = isInteractive
|
|
29
29
|
? {
|
|
@@ -4,7 +4,7 @@ import { ButtonProps } from './button.types';
|
|
|
4
4
|
import ButtonIcon from './buttonIcon';
|
|
5
5
|
import ButtonText from './buttonText';
|
|
6
6
|
export declare const ButtonBase: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("..").AnimationProps & import("..").BackgroundColorProps & import("..").BorderProps & import("..").BorderTopProps & import("..").BorderRightProps & import("..").BorderBottomProps & import("..").BorderLeftProps & import("..").BorderColorProps & import("..").BorderTopColorProps & import("..").BorderRightColorProps & import("..").BorderBottomColorProps & import("..").BorderLeftColorProps & import("..").BorderWidthProps & import("..").BorderTopWidthProps & import("..").BorderRightWidthProps & import("..").BorderBottomWidthProps & import("..").BorderLeftWidthProps & import("..").BorderStyleProps & import("..").BorderRadiusProps & import("..").OutlineProps & import("..").OutlineColorProps & import("..").OutlineWidthProps & import("..").OutlineStyleProps & import("..").DivideXProps & import("..").DivideYProps & import("..").DivideXReverseProps & import("..").DivideYReverseProps & import("..").DivideColorProps & import("..").DivideStyleProps & import("..").RingProps & import("..").RingColorProps & import("..").OpacityProps & import("..").BoxShadowProps & import("..").TextShadowProps & import("..").DisplayProps & import("..").AlignItemsProps & import("..").AlignContentProps & import("..").JustifyContentProps & import("..").JustifyItemsProps & import("..").FlexWrapProps & import("..").FlexGrowProps & import("..").FlexShrinkProps & import("..").FlexBasisProps & import("..").FlexDirectionProps & import("..").FlexProps & import("..").JustifySelfProps & import("..").AlignSelfProps & import("..").OrderProps & import("../system/flexboxGrids").RowProps & import("../system/flexboxGrids").ColProps & import("../system/grids").GapProps & import("../system/grids").ColumnGapProps & import("../system/grids").RowGapProps & import("../system/grids").GridColumnProps & import("../system/grids").GridRowProps & import("../system/grids").GridAutoFlowProps & import("../system/grids").GridAutoColumnsProps & import("../system/grids").GridAutoRowsProps & import("../system/grids").GridTemplateColumnsProps & import("../system/grids").GridTemplateRowsProps & import("../system/grids").GridTemplateAreasProps & import("../system/grids").GridAreaProps & import("..").AppearanceProps & import("..").CursorProps & import("..").PointerEventsProps & import("..").ResizeProps & import("..").UserSelectProps & import("..").IsTruncatedProps & import("..").FloatProps & import("..").BoxSizingProps & import("..").OverflowProps & import("..").OverflowXProps & import("..").OverflowYProps & import("..").PositionProps & import("..").ZIndexProps & import("..").TopProps & import("..").RightProps & import("..").BottomProps & import("..").LeftProps & import("..").VisibilityProps & import("..").OverscrollBehaviorProps & import("..").ObjectFitProps & import("..").MaxLinesProps & import("..").WidthProps & import("..").HeightProps & import("..").MaxWidthProps & import("..").MaxHeightProps & import("..").MinWidthProps & import("..").MinHeightProps & import("..").MarginProps & import("..").MarginTopProps & import("..").MarginRightProps & import("..").MarginBottomProps & import("..").MarginLeftProps & import("..").MarginXProps & import("..").MarginYProps & import("..").PaddingProps & import("..").PaddingTopProps & import("..").PaddingRightProps & import("..").PaddingBottomProps & import("..").PaddingLeftProps & import("..").PaddingXProps & import("..").PaddingYProps & import("..").SpaceXProps & import("..").SpaceYProps & import("..").SpaceXReverseProps & import("..").SpaceYReverseProps & import("../system/tables").BorderCollapseProps & import("../system/tables").TableLayoutProps & import("..").TransformProps & import("..").TransformOriginProps & import("..").TranslateXProps & import("..").TranslateYProps & import("..").RotateProps & import("..").SkewXProps & import("..").SkewYProps & import("..").ScaleProps & import("..").ScaleXProps & import("..").ScaleYProps & import("..").TransitionProps & import("..").TransitionPropertyProps & import("..").TransitionDurationProps & import("..").TransitionTimingFunctionProps & import("..").TransitionDelayProps & import("..").FontFamilyProps & import("..").FontSizeProps & import("..").FontStyleProps & import("..").FontWeightProps & import("..").LineHeightProps & import("..").ColorProps & import("..").TextTransformProps & import("..").TextDecorationProps & import("..").TextAlignProps & import("..").VerticalAlignProps & import("..").LetterSpacingProps & import("..").WhiteSpaceProps & import("..").TextOverflowProps & import("..").ListStyleTypeProps & import("..").ListStylePositionProps & import("..").WordBreakProps & import("..").ThemingProps<"Button"> & {
|
|
7
|
-
colorScheme?:
|
|
7
|
+
colorScheme?: import("./button.types").ButtonColorScheme | undefined;
|
|
8
8
|
icon?: JSX.Element | import("..").IconProp | undefined;
|
|
9
9
|
iconLeft?: JSX.Element | import("..").IconProp | undefined;
|
|
10
10
|
iconRight?: JSX.Element | import("..").IconProp | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAGtC,OAAO,EAA+B,YAAY,EAAE,MAAM,SAAS,CAAA;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,UAAU,MAAM,cAAc,CAAA;AAiBrC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAGtC,OAAO,EAA+B,YAAY,EAAE,MAAM,SAAS,CAAA;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,UAAU,MAAM,cAAc,CAAA;AACrC,OAAO,UAAU,MAAM,cAAc,CAAA;AAiBrC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;SAoBtB,CAAA;AACD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;UAqHX,iBAAiB;UACjB,iBAAiB;CACxB,CAAA;AAKD,eAAe,MAAM,CAAA"}
|
|
@@ -19,7 +19,7 @@ const StateWrapper = styled.span `
|
|
|
19
19
|
`;
|
|
20
20
|
export const ButtonBase = styled.buttonBox `
|
|
21
21
|
align-items: center;
|
|
22
|
-
border-radius:
|
|
22
|
+
border-radius: md;
|
|
23
23
|
display: inline-flex;
|
|
24
24
|
flex-shrink: 0;
|
|
25
25
|
font-weight: medium;
|
|
@@ -30,6 +30,13 @@ export const ButtonBase = styled.buttonBox `
|
|
|
30
30
|
transition-duration: fast;
|
|
31
31
|
user-select: none;
|
|
32
32
|
width: fit-content;
|
|
33
|
+
|
|
34
|
+
&:focus,
|
|
35
|
+
&:focus:hover {
|
|
36
|
+
border-color: transparent;
|
|
37
|
+
outline: none;
|
|
38
|
+
z-index: 1;
|
|
39
|
+
}
|
|
33
40
|
`;
|
|
34
41
|
/**
|
|
35
42
|
* Triggers given actions on click. Supports multiple states, sizes and variants.
|
|
@@ -41,41 +48,41 @@ export const ButtonBase = styled.buttonBox `
|
|
|
41
48
|
export const Button = vui((props, ref) => {
|
|
42
49
|
const buttonGroupProps = useButtonGroupContext();
|
|
43
50
|
const mergedProps = { ...buttonGroupProps, ...props };
|
|
44
|
-
const { borderWidth: borderWidthProp, children, className, colorScheme, disabled, icon, iconLeft, iconRight, isActive, isDropDown, isElevated, isFullWidth, isLoading, // eslint-disable-line
|
|
45
|
-
isRound, isSplit, isTruncated, size, state = props.isLoading ? 'loading' : '', stateMapping, text, variant
|
|
51
|
+
const { borderWidth: borderWidthProp, children, className, colorScheme: colorSchemeProp, disabled, icon, iconLeft, iconRight, isActive, isDropDown, isElevated, isFullWidth, isLoading, // eslint-disable-line
|
|
52
|
+
isRound, isSplit, isTruncated, size, state = props.isLoading ? 'loading' : '', stateMapping, text, variant, ...rest } = mergedProps;
|
|
46
53
|
const hasState = Boolean(state) && state !== 'idle';
|
|
47
54
|
const states = { ...buttonStateMapping, ...stateMapping };
|
|
48
55
|
const { iconProps: stateIconProps, ...stateProps } = states[state] ?? {};
|
|
49
|
-
const
|
|
50
|
-
|
|
56
|
+
const colorScheme = filterUndefined({
|
|
57
|
+
colorScheme: states[state]?.colorScheme ?? colorSchemeProp
|
|
51
58
|
});
|
|
52
|
-
const styles = useStyleConfig('Button', { ...mergedProps, ...
|
|
59
|
+
const styles = useStyleConfig('Button', { ...mergedProps, ...colorScheme });
|
|
53
60
|
const { borderWidth, h, spaceX = 0, ...buttonStyles } = styles.container;
|
|
54
|
-
const context = useMemo(() => filterUndefined({ disabled, size, variant }), [disabled, size, variant]);
|
|
61
|
+
const context = useMemo(() => filterUndefined({ colorScheme, disabled, size, variant }), [colorScheme, disabled, size, variant]);
|
|
55
62
|
const Content = hasState ? ContentWrapper : React.Fragment;
|
|
56
63
|
// Apply more space for text and less space for icons
|
|
57
|
-
const border = borderWidthProp ?? borderWidth ??
|
|
64
|
+
const border = borderWidthProp ?? borderWidth ?? 0;
|
|
58
65
|
const spaceXItem = spaceX - border;
|
|
59
66
|
const spaceXText = spaceX * 2 - border;
|
|
60
67
|
const iconLeftMr = spaceXItem + 1 + 'px';
|
|
61
68
|
const iconRightMl = isSplit ? 'auto' : spaceXItem + 1 + 'px';
|
|
62
69
|
const pl = (icon || iconLeft ? spaceXItem : spaceXText) + 'px';
|
|
63
70
|
const pr = (icon || iconRight ? spaceXItem : spaceXText) + 'px';
|
|
71
|
+
const disabledBorderColor = variant === 'outlined' ? 'disabled.border' : 'disabled.bg';
|
|
64
72
|
const disabledProps = disabled
|
|
65
73
|
? {
|
|
66
74
|
'aria-disabled': disabled,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
activeBg: 'bg',
|
|
75
|
+
activeBg: 'disabled.bg',
|
|
76
|
+
bg: 'disabled.bg',
|
|
77
|
+
borderColor: disabledBorderColor,
|
|
78
|
+
hoverBorderColor: disabledBorderColor,
|
|
79
|
+
color: 'disabled.color',
|
|
73
80
|
cursor: 'not-allowed',
|
|
74
|
-
|
|
81
|
+
hoverBg: 'disabled.bg'
|
|
75
82
|
}
|
|
76
83
|
: {};
|
|
77
84
|
const aliasedProps = filterUndefined({
|
|
78
|
-
borderRadius: isRound ? h / 2 :
|
|
85
|
+
borderRadius: isRound ? h / 2 : undefined,
|
|
79
86
|
boxShadow: isElevated ? '2' : undefined,
|
|
80
87
|
minW: icon ? 0 : undefined,
|
|
81
88
|
pointerEvents: hasState ? 'none' : undefined,
|
|
@@ -3,9 +3,10 @@ import { IconProp, IconProps } from '../icon';
|
|
|
3
3
|
import { SystemProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
5
|
import { AnyString } from '../utils';
|
|
6
|
+
export declare type ButtonColorScheme = 'blue' | 'green' | 'pink' | 'prussian' | 'red';
|
|
6
7
|
export declare type ButtonProps = SystemProps & ThemingProps<'Button'> & {
|
|
7
|
-
/** Available theme colors for this component. @
|
|
8
|
-
colorScheme?:
|
|
8
|
+
/** Available theme colors for this component. @default prussian */
|
|
9
|
+
colorScheme?: ButtonColorScheme;
|
|
9
10
|
/** Icon that replaces any other content. */
|
|
10
11
|
icon?: IconProp | JSX.Element;
|
|
11
12
|
/** Socket displaying icon on the left side. */
|
|
@@ -35,7 +36,7 @@ export declare type ButtonProps = SystemProps & ThemingProps<'Button'> & {
|
|
|
35
36
|
};
|
|
36
37
|
export declare type ButtonState = 'error' | 'idle' | 'loading' | 'success' | AnyString;
|
|
37
38
|
export declare type ButtonStateMapping = Record<string, SystemProps & {
|
|
38
|
-
|
|
39
|
+
colorScheme: ButtonProps['colorScheme'];
|
|
39
40
|
iconProps: IconProps;
|
|
40
41
|
}>;
|
|
41
42
|
/** Narrower prop definition for IconButton component */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../src/button/button.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,oBAAY,WAAW,GAAG,WAAW,GACnC,YAAY,CAAC,QAAQ,CAAC,GAAG;IACvB,
|
|
1
|
+
{"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../src/button/button.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,oBAAY,iBAAiB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAA;AAE9E,oBAAY,WAAW,GAAG,WAAW,GACnC,YAAY,CAAC,QAAQ,CAAC,GAAG;IACvB,mEAAmE;IACnE,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,4CAA4C;IAC5C,IAAI,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IACjC,gDAAgD;IAChD,SAAS,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAA;IAClC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kEAAkE;IAClE,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,sDAAsD;IACtD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB,CAAA;AACH,oBAAY,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AAE9E,oBAAY,kBAAkB,GAAG,MAAM,CACrC,MAAM,EACN,WAAW,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAChF,CAAA;AAED,wDAAwD;AACxD,oBAAY,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { vui } from '../core';
|
|
3
3
|
import Button from './button';
|
|
4
|
-
export const AppButton = vui((props, ref) => (React.createElement(Button, { ref: ref, variant: "
|
|
5
|
-
export const BackButton = vui((props, ref) => (React.createElement(IconButton, { icon: "falArrowLeft", ref: ref, variant: "
|
|
6
|
-
export const CloseButton = vui((props, ref) => (React.createElement(IconButton, { icon: "falTimes", ref: ref, variant: "
|
|
7
|
-
export const CTAButton = vui((props, ref) => (React.createElement(Button, { ref: ref, variant: "
|
|
8
|
-
export const DangerButton = vui((props, ref) => (React.createElement(Button, { ref: ref, variant: "
|
|
9
|
-
export const IconButton = vui((props, ref) => (React.createElement(Button, { ref: ref, variant: "
|
|
10
|
-
export const LineButton = vui((props, ref) => (React.createElement(Button, { ref: ref, variant: "
|
|
11
|
-
export const TextButton = vui((props, ref) => (React.createElement(Button, { ref: ref, variant: "
|
|
4
|
+
export const AppButton = vui((props, ref) => (React.createElement(Button, { colorScheme: "blue", ref: ref, variant: "solid", ...props })));
|
|
5
|
+
export const BackButton = vui((props, ref) => (React.createElement(IconButton, { colorScheme: "blue", icon: "falArrowLeft", ref: ref, variant: "text", ...props })));
|
|
6
|
+
export const CloseButton = vui((props, ref) => (React.createElement(IconButton, { colorScheme: "blue", icon: "falTimes", ref: ref, variant: "text", ...props })));
|
|
7
|
+
export const CTAButton = vui((props, ref) => (React.createElement(Button, { colorScheme: "green", ref: ref, variant: "solid", ...props })));
|
|
8
|
+
export const DangerButton = vui((props, ref) => (React.createElement(Button, { colorScheme: "red", ref: ref, variant: "solid", ...props })));
|
|
9
|
+
export const IconButton = vui((props, ref) => (React.createElement(Button, { colorScheme: "blue", ref: ref, variant: "text", ...props })));
|
|
10
|
+
export const LineButton = vui((props, ref) => (React.createElement(Button, { colorScheme: "blue", ref: ref, variant: "outlined", ...props })));
|
|
11
|
+
export const TextButton = vui((props, ref) => (React.createElement(Button, { colorScheme: "blue", ref: ref, variant: "text", ...props })));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export const buttonStateMapping = {
|
|
2
2
|
error: {
|
|
3
|
-
|
|
3
|
+
colorScheme: 'red',
|
|
4
4
|
iconProps: {
|
|
5
5
|
animation: 'fadeDown',
|
|
6
6
|
icon: 'falTimesCircle'
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
loading: {
|
|
10
|
-
|
|
10
|
+
colorScheme: 'blue',
|
|
11
11
|
iconProps: {
|
|
12
12
|
animation: 'vui-spin 0.6s linear infinite',
|
|
13
13
|
name: 'fadSpinnerThird',
|
|
@@ -15,7 +15,7 @@ export const buttonStateMapping = {
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
success: {
|
|
18
|
-
|
|
18
|
+
colorScheme: 'green',
|
|
19
19
|
iconProps: {
|
|
20
20
|
animation: 'fadeDown',
|
|
21
21
|
icon: 'falCheckCircle'
|