@veracity/vui 1.8.0-beta.0 → 1.8.0-redesign.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 +121 -44
- package/dist/cjs/button/theme.d.ts.map +1 -1
- package/dist/cjs/button/theme.js +135 -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/theme.d.ts +23 -1
- package/dist/cjs/heading/theme.d.ts.map +1 -1
- package/dist/cjs/heading/theme.js +29 -7
- 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 +0 -2
- 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/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.d.ts.map +1 -1
- package/dist/cjs/tag/tag.js +9 -6
- package/dist/cjs/tag/tag.types.d.ts +3 -2
- package/dist/cjs/tag/tag.types.d.ts.map +1 -1
- package/dist/cjs/tag/tagButton.js +3 -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 +497 -39
- package/dist/cjs/theme/components.d.ts.map +1 -1
- package/dist/cjs/theme/components.js +72 -70
- package/dist/cjs/theme/defaultTheme.d.ts +795 -46
- 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/toast.d.ts.map +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/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 +121 -44
- package/dist/esm/button/theme.d.ts.map +1 -1
- package/dist/esm/button/theme.js +135 -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/theme.d.ts +23 -1
- package/dist/esm/heading/theme.d.ts.map +1 -1
- package/dist/esm/heading/theme.js +29 -7
- 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 +0 -2
- 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/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.d.ts.map +1 -1
- package/dist/esm/tag/tag.js +9 -6
- package/dist/esm/tag/tag.types.d.ts +3 -2
- package/dist/esm/tag/tag.types.d.ts.map +1 -1
- package/dist/esm/tag/tagButton.js +3 -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 +497 -39
- 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 +795 -46
- 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/toast.d.ts.map +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/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 +143 -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/theme.ts +29 -7
- 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 +0 -2
- 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 +17 -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/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 -10
- package/src/tag/tag.types.ts +32 -31
- package/src/tag/tagButton.tsx +2 -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/toast.tsx +0 -1
- package/src/toast/useToast.tsx +2 -1
- package/src/tutorial/tutorialCard.tsx +10 -3
|
@@ -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"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly
|
|
4
|
+
* Generated on Thu, 17 Feb 2022 11:35:15 GMT
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.buttonTypeSecondaryFocusOutline = exports.buttonTypeSecondaryActiveTextColorLight = exports.buttonTypeSecondaryActiveTextColorDark = exports.buttonTypeSecondaryActiveBackgroundColorLight = exports.buttonTypeSecondaryActiveBackgroundColorDark = exports.buttonTypeSecondaryActiveBorderColorLight = exports.buttonTypeSecondaryActiveBorderColorDark = exports.buttonTypeSecondaryHoverTextColorLight = exports.buttonTypeSecondaryHoverTextColorDark = exports.buttonTypeSecondaryHoverBackgroundColorLight = exports.buttonTypeSecondaryHoverBackgroundColorDark = exports.buttonTypeSecondaryHoverBorderColorLight = exports.buttonTypeSecondaryHoverBorderColorDark = exports.buttonTypeSecondaryDefaultTextColorLight = exports.buttonTypeSecondaryDefaultTextColorDark = exports.buttonTypeSecondaryDefaultBackgroundColorLight = exports.buttonTypeSecondaryDefaultBackgroundColorDark = exports.buttonTypeSecondaryDefaultBorderColorLight = exports.buttonTypeSecondaryDefaultBorderColorDark = exports.buttonTypePrimaryFocusOutline = exports.buttonTypePrimaryActiveTextColorLight = exports.buttonTypePrimaryActiveTextColorDark = exports.buttonTypePrimaryActiveBackgroundColorLight = exports.buttonTypePrimaryActiveBackgroundColorDark = exports.buttonTypePrimaryActiveBorderColorLight = exports.buttonTypePrimaryActiveBorderColorDark = exports.buttonTypePrimaryHoverTextColorLight = exports.buttonTypePrimaryHoverTextColorDark = exports.buttonTypePrimaryHoverBackgroundColorLight = exports.buttonTypePrimaryHoverBackgroundColorDark = exports.buttonTypePrimaryHoverBorderColorLight = exports.buttonTypePrimaryHoverBorderColorDark = exports.buttonTypePrimaryDefaultTextColorLight = exports.buttonTypePrimaryDefaultTextColorDark = exports.buttonTypePrimaryDefaultBackgroundColorLight = exports.buttonTypePrimaryDefaultBackgroundColorDark = exports.buttonTypePrimaryDefaultBorderColorLight = exports.buttonTypePrimaryDefaultBorderColorDark = exports.buttonSizeDefaultPadding = exports.buttonSizeDefaultLineHeight = exports.buttonSizeDefaultFontSize = exports.buttonSizeSmallPadding = exports.buttonSizeSmallLineHeight = exports.buttonSizeSmallFontSize = exports.buttonSizeMediumPadding = exports.buttonSizeMediumLineHeight = exports.buttonSizeMediumFontSize = exports.buttonSizeLargePadding = exports.buttonSizeLargeLineHeight = exports.buttonSizeLargeFontSize = void 0;
|
|
8
|
+
exports.buttonCursor = exports.buttonTransition = exports.buttonPadding = exports.buttonFontWeight = exports.buttonLineHeight = exports.buttonFontSize = exports.buttonFontFamily = exports.buttonBorderWidth = exports.buttonBorderStyle = exports.buttonDisabledOpacity = exports.buttonDisabledCursor = exports.buttonTypeTertiaryFocusOutline = exports.buttonTypeTertiaryActiveTextColorLight = exports.buttonTypeTertiaryActiveTextColorDark = exports.buttonTypeTertiaryActiveBackgroundColorLight = exports.buttonTypeTertiaryActiveBackgroundColorDark = exports.buttonTypeTertiaryActiveBorderColorLight = exports.buttonTypeTertiaryActiveBorderColorDark = exports.buttonTypeTertiaryHoverTextColorLight = exports.buttonTypeTertiaryHoverTextColorDark = exports.buttonTypeTertiaryHoverBackgroundColorLight = exports.buttonTypeTertiaryHoverBackgroundColorDark = exports.buttonTypeTertiaryHoverBorderColorLight = exports.buttonTypeTertiaryHoverBorderColorDark = exports.buttonTypeTertiaryDefaultTextColorLight = exports.buttonTypeTertiaryDefaultTextColorDark = exports.buttonTypeTertiaryDefaultBackgroundColorLight = exports.buttonTypeTertiaryDefaultBackgroundColorDark = exports.buttonTypeTertiaryDefaultBorderColorLight = exports.buttonTypeTertiaryDefaultBorderColorDark = void 0;
|
|
9
|
+
exports.buttonSizeLargeFontSize = "1.125rem";
|
|
10
|
+
exports.buttonSizeLargeLineHeight = "1.75rem";
|
|
11
|
+
exports.buttonSizeLargePadding = "0.5rem 1rem";
|
|
12
|
+
exports.buttonSizeMediumFontSize = "1rem";
|
|
13
|
+
exports.buttonSizeMediumLineHeight = "1.5rem";
|
|
14
|
+
exports.buttonSizeMediumPadding = "0.25rem calc(0.25rem * 3)";
|
|
15
|
+
exports.buttonSizeSmallFontSize = "0.875rem";
|
|
16
|
+
exports.buttonSizeSmallLineHeight = "1.25rem";
|
|
17
|
+
exports.buttonSizeSmallPadding = "calc(0.25rem / 2) 0.5rem";
|
|
18
|
+
exports.buttonSizeDefaultFontSize = "1rem";
|
|
19
|
+
exports.buttonSizeDefaultLineHeight = "1.5rem";
|
|
20
|
+
exports.buttonSizeDefaultPadding = "0.25rem calc(0.25rem * 3)";
|
|
21
|
+
exports.buttonTypePrimaryDefaultBorderColorDark = "hsla(0, 0%, 0%, 0)";
|
|
22
|
+
exports.buttonTypePrimaryDefaultBorderColorLight = "hsla(0, 0%, 0%, 0)";
|
|
23
|
+
exports.buttonTypePrimaryDefaultBackgroundColorDark = "hsla(218, 100%, 28%, 1)";
|
|
24
|
+
exports.buttonTypePrimaryDefaultBackgroundColorLight = "hsla(139, 100%, 78%, 1)";
|
|
25
|
+
exports.buttonTypePrimaryDefaultTextColorDark = "hsla(40, 3%, 100%, 1)";
|
|
26
|
+
exports.buttonTypePrimaryDefaultTextColorLight = "hsla(223, 67%, 18%, 1)";
|
|
27
|
+
exports.buttonTypePrimaryHoverBorderColorDark = "hsla(0, 0%, 0%, 0)";
|
|
28
|
+
exports.buttonTypePrimaryHoverBorderColorLight = "hsla(0, 0%, 0%, 0)";
|
|
29
|
+
exports.buttonTypePrimaryHoverBackgroundColorDark = "hsla(218, 100%, 20%, 1)";
|
|
30
|
+
exports.buttonTypePrimaryHoverBackgroundColorLight = "hsla(139, 100%, 70%, 1)";
|
|
31
|
+
exports.buttonTypePrimaryHoverTextColorDark = "hsla(40, 3%, 100%, 1)";
|
|
32
|
+
exports.buttonTypePrimaryHoverTextColorLight = "hsla(223, 67%, 18%, 1)";
|
|
33
|
+
exports.buttonTypePrimaryActiveBorderColorDark = "hsla(0, 0%, 0%, 0)";
|
|
34
|
+
exports.buttonTypePrimaryActiveBorderColorLight = "hsla(0, 0%, 0%, 0)";
|
|
35
|
+
exports.buttonTypePrimaryActiveBackgroundColorDark = "hsla(218, 100%, 35%, 1)";
|
|
36
|
+
exports.buttonTypePrimaryActiveBackgroundColorLight = "hsla(139, 100%, 85%, 1)";
|
|
37
|
+
exports.buttonTypePrimaryActiveTextColorDark = "hsla(40, 3%, 100%, 1)";
|
|
38
|
+
exports.buttonTypePrimaryActiveTextColorLight = "hsla(223, 67%, 18%, 1)";
|
|
39
|
+
exports.buttonTypePrimaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
|
|
40
|
+
exports.buttonTypeSecondaryDefaultBorderColorDark = "hsla(218, 100%, 28%, 1)";
|
|
41
|
+
exports.buttonTypeSecondaryDefaultBorderColorLight = "hsla(139, 100%, 78%, 1)";
|
|
42
|
+
exports.buttonTypeSecondaryDefaultBackgroundColorDark = "hsla(0, 0%, 0%, 0)";
|
|
43
|
+
exports.buttonTypeSecondaryDefaultBackgroundColorLight = "hsla(0, 0%, 0%, 0)";
|
|
44
|
+
exports.buttonTypeSecondaryDefaultTextColorDark = "hsla(218, 100%, 28%, 1)";
|
|
45
|
+
exports.buttonTypeSecondaryDefaultTextColorLight = "hsla(139, 100%, 78%, 1)";
|
|
46
|
+
exports.buttonTypeSecondaryHoverBorderColorDark = "hsla(218, 100%, 28%, 1)";
|
|
47
|
+
exports.buttonTypeSecondaryHoverBorderColorLight = "hsla(139, 100%, 78%, 1)";
|
|
48
|
+
exports.buttonTypeSecondaryHoverBackgroundColorDark = "hsla(196, 74%, 90%, 1)";
|
|
49
|
+
exports.buttonTypeSecondaryHoverBackgroundColorLight = "hsla(218, 100%, 25%, 1)";
|
|
50
|
+
exports.buttonTypeSecondaryHoverTextColorDark = "hsla(218, 100%, 28%, 1)";
|
|
51
|
+
exports.buttonTypeSecondaryHoverTextColorLight = "hsla(139, 100%, 78%, 1)";
|
|
52
|
+
exports.buttonTypeSecondaryActiveBorderColorDark = "hsla(218, 100%, 28%, 1)";
|
|
53
|
+
exports.buttonTypeSecondaryActiveBorderColorLight = "hsla(139, 100%, 78%, 1)";
|
|
54
|
+
exports.buttonTypeSecondaryActiveBackgroundColorDark = "hsla(196, 74%, 95%, 1)";
|
|
55
|
+
exports.buttonTypeSecondaryActiveBackgroundColorLight = "hsla(218, 100%, 35%, 1)";
|
|
56
|
+
exports.buttonTypeSecondaryActiveTextColorDark = "hsla(218, 100%, 28%, 1)";
|
|
57
|
+
exports.buttonTypeSecondaryActiveTextColorLight = "hsla(139, 100%, 78%, 1)";
|
|
58
|
+
exports.buttonTypeSecondaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
|
|
59
|
+
exports.buttonTypeTertiaryDefaultBorderColorDark = "hsla(0, 0%, 0%, 0)";
|
|
60
|
+
exports.buttonTypeTertiaryDefaultBorderColorLight = "hsla(0, 0%, 0%, 0)";
|
|
61
|
+
exports.buttonTypeTertiaryDefaultBackgroundColorDark = "hsla(0, 0%, 0%, 0)";
|
|
62
|
+
exports.buttonTypeTertiaryDefaultBackgroundColorLight = "hsla(0, 0%, 0%, 0)";
|
|
63
|
+
exports.buttonTypeTertiaryDefaultTextColorDark = "hsla(218, 100%, 28%, 1)";
|
|
64
|
+
exports.buttonTypeTertiaryDefaultTextColorLight = "hsla(139, 100%, 78%, 1)";
|
|
65
|
+
exports.buttonTypeTertiaryHoverBorderColorDark = "hsla(0, 0%, 0%, 0)";
|
|
66
|
+
exports.buttonTypeTertiaryHoverBorderColorLight = "hsla(0, 0%, 0%, 0)";
|
|
67
|
+
exports.buttonTypeTertiaryHoverBackgroundColorDark = "hsla(196, 74%, 90%, 1)";
|
|
68
|
+
exports.buttonTypeTertiaryHoverBackgroundColorLight = "hsla(218, 100%, 25%, 1)";
|
|
69
|
+
exports.buttonTypeTertiaryHoverTextColorDark = "hsla(218, 100%, 28%, 1)";
|
|
70
|
+
exports.buttonTypeTertiaryHoverTextColorLight = "hsla(139, 100%, 78%, 1)";
|
|
71
|
+
exports.buttonTypeTertiaryActiveBorderColorDark = "hsla(0, 0%, 0%, 0)";
|
|
72
|
+
exports.buttonTypeTertiaryActiveBorderColorLight = "hsla(0, 0%, 0%, 0)";
|
|
73
|
+
exports.buttonTypeTertiaryActiveBackgroundColorDark = "hsla(196, 74%, 95%, 1)";
|
|
74
|
+
exports.buttonTypeTertiaryActiveBackgroundColorLight = "hsla(218, 100%, 35%, 1)";
|
|
75
|
+
exports.buttonTypeTertiaryActiveTextColorDark = "hsla(218, 100%, 28%, 1)";
|
|
76
|
+
exports.buttonTypeTertiaryActiveTextColorLight = "hsla(139, 100%, 78%, 1)";
|
|
77
|
+
exports.buttonTypeTertiaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
|
|
78
|
+
exports.buttonDisabledCursor = "default";
|
|
79
|
+
exports.buttonDisabledOpacity = "50%";
|
|
80
|
+
exports.buttonBorderStyle = "solid";
|
|
81
|
+
exports.buttonBorderWidth = "calc(0.125rem / 2)";
|
|
82
|
+
exports.buttonFontFamily = "'Avenir Next', Arial, sans-serif";
|
|
83
|
+
exports.buttonFontSize = "1rem";
|
|
84
|
+
exports.buttonLineHeight = "1.5rem";
|
|
85
|
+
exports.buttonFontWeight = "500";
|
|
86
|
+
exports.buttonPadding = "calc(0.25rem * 1.5) calc(0.25rem * 3)";
|
|
87
|
+
exports.buttonTransition = "all 0.15s ease-in-out";
|
|
88
|
+
exports.buttonCursor = "pointer";
|
package/dist/cjs/p/theme.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/p/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/p/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuBA,wBAKC"}
|
package/dist/cjs/p/theme.js
CHANGED
|
@@ -7,23 +7,15 @@ const defaultProps = {
|
|
|
7
7
|
const sizes = {
|
|
8
8
|
sm: {
|
|
9
9
|
fontSize: 'sm',
|
|
10
|
-
lineHeight: '
|
|
10
|
+
lineHeight: '22px'
|
|
11
11
|
},
|
|
12
12
|
md: {
|
|
13
13
|
fontSize: 'md',
|
|
14
|
-
lineHeight: '
|
|
14
|
+
lineHeight: '26px'
|
|
15
15
|
},
|
|
16
16
|
lg: {
|
|
17
17
|
fontSize: 'lg',
|
|
18
|
-
lineHeight: '
|
|
19
|
-
},
|
|
20
|
-
xl: {
|
|
21
|
-
fontSize: '20px',
|
|
22
|
-
lineHeight: '30px'
|
|
23
|
-
},
|
|
24
|
-
xxl: {
|
|
25
|
-
fontSize: '24px',
|
|
26
|
-
lineHeight: '36px'
|
|
18
|
+
lineHeight: '32px'
|
|
27
19
|
}
|
|
28
20
|
};
|
|
29
21
|
const variants = {};
|
|
@@ -54,6 +54,6 @@ exports.Progress = (0, core_1.vui)((props, ref) => {
|
|
|
54
54
|
setWidth(w > 100 ? 100 : w);
|
|
55
55
|
}, [value, max]);
|
|
56
56
|
return (react_1.default.createElement(exports.ProgressBase, Object.assign({ className: (0, utils_1.cs)('vui-progress', className), ref: ref }, styles.container, rest, { bg: "grey.10", borderRadius: "sm", h: 1 }),
|
|
57
|
-
react_1.default.createElement(box_1.Box, { bg: "
|
|
57
|
+
react_1.default.createElement(box_1.Box, { bg: "seaBlue.28", borderRadius: "sm", position: "relative", textAlign: "right", transition: "width 0.4s ease-in-out;", w: `${width}%` }, showPercentage && value >= minPercentageDisplay && (react_1.default.createElement(box_1.Box, Object.assign({}, styles.percentage, { position: "absolute", right: "0" }), `${width}%`)))));
|
|
58
58
|
});
|
|
59
59
|
exports.default = exports.Progress;
|
package/dist/cjs/t/theme.d.ts
CHANGED
|
@@ -17,7 +17,16 @@ declare const _default: {
|
|
|
17
17
|
fontSize: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
variants: {
|
|
20
|
+
variants: {
|
|
21
|
+
label: {
|
|
22
|
+
fontSize: string;
|
|
23
|
+
fontWeight: string;
|
|
24
|
+
};
|
|
25
|
+
caption: {
|
|
26
|
+
fontSize: string;
|
|
27
|
+
fontWeight: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
21
30
|
};
|
|
22
31
|
export default _default;
|
|
23
32
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/t/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/t/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,wBAKC"}
|
package/dist/cjs/t/theme.js
CHANGED
|
@@ -18,7 +18,16 @@ const sizes = {
|
|
|
18
18
|
fontSize: 'lg'
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
const variants = {
|
|
21
|
+
const variants = {
|
|
22
|
+
label: {
|
|
23
|
+
fontSize: 'md',
|
|
24
|
+
fontWeight: 'demi'
|
|
25
|
+
},
|
|
26
|
+
caption: {
|
|
27
|
+
fontSize: 'sm',
|
|
28
|
+
fontWeight: 'medium'
|
|
29
|
+
}
|
|
30
|
+
};
|
|
22
31
|
exports.default = {
|
|
23
32
|
baseStyle,
|
|
24
33
|
defaultProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tbody.d.ts","sourceRoot":"","sources":["../../../src/table/tbody.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"tbody.d.ts","sourceRoot":"","sources":["../../../src/table/tbody.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS,iIAkBrB,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,KAAK,mEAiBhB,CAAA;AAEF,eAAe,KAAK,CAAA"}
|
package/dist/cjs/table/tbody.js
CHANGED
|
@@ -34,6 +34,10 @@ exports.TbodyBase = core_1.styled.tbodyBox `
|
|
|
34
34
|
&[data-variant='striped'][data-selected='false']:nth-of-type(odd):not(:hover) td {
|
|
35
35
|
background-color: grey.10;
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
&[data-variant='basic']:hover td {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
`;
|
|
39
43
|
/** Displays Table body with built-in support for rows. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/table/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/table/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,wBAMC"}
|
package/dist/cjs/table/theme.js
CHANGED
|
@@ -4,8 +4,8 @@ import { IconProp } from '../icon';
|
|
|
4
4
|
import { SystemProps } from '../system';
|
|
5
5
|
import { ThemingProps } from '../theme';
|
|
6
6
|
export declare type AnimationDirection = 'fadeLeft' | 'fadeRight' | 'fadeIn';
|
|
7
|
-
export declare type TabsSize = 'md' | 'sm' | 'lg' | 'xl';
|
|
8
|
-
export declare type NavBarIconSize = 'md' | 'xs' | 'sm' | 'lg' | undefined;
|
|
7
|
+
export declare type TabsSize = 'md' | 'sm' | 'lg' | 'xl' | 'xxl';
|
|
8
|
+
export declare type NavBarIconSize = 'md' | 'xs' | 'sm' | 'lg' | 'xl' | undefined;
|
|
9
9
|
export declare type TabsProps = SystemProps & ThemingProps<'Tabs'> & ChildrenProp & {
|
|
10
10
|
activeTabId?: number;
|
|
11
11
|
showBorder?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,oBAAY,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEpE,oBAAY,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,oBAAY,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEpE,oBAAY,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAA;AACxD,oBAAY,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;AAEzE,oBAAY,SAAS,GAAG,WAAW,GACjC,YAAY,CAAC,MAAM,CAAC,GACpB,YAAY,GAAG;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA;AAEH,oBAAY,QAAQ,GAAG,WAAW,GAChC,YAAY,GAAG;IACb,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAEH,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabsNavBar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabsNavBar.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAkB,cAAc,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"tabsNavBar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabsNavBar.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAkB,cAAc,EAAE,MAAM,cAAc,CAAA;AAW7D,eAAO,MAAM,UAAU,uDA2DrB,CAAA;AAEF,eAAe,UAAU,CAAA"}
|
|
@@ -10,20 +10,28 @@ const core_1 = require("../core");
|
|
|
10
10
|
const icon_1 = require("../icon");
|
|
11
11
|
const list_1 = require("../list");
|
|
12
12
|
const utils_1 = require("../utils");
|
|
13
|
+
const theme_1 = __importDefault(require("./theme"));
|
|
13
14
|
const iconSizeMapper = {
|
|
14
15
|
sm: 'xs',
|
|
15
16
|
md: 'sm',
|
|
16
17
|
lg: 'md',
|
|
17
|
-
xl: 'lg'
|
|
18
|
+
xl: 'lg',
|
|
19
|
+
xxl: 'xl'
|
|
18
20
|
};
|
|
19
21
|
exports.TabsNavBar = (0, core_1.vui)((props, ref) => {
|
|
20
|
-
var _a;
|
|
22
|
+
var _a, _b;
|
|
21
23
|
const { tabs, onNavItemClick, activeNavItem, animationDirection, showBorder, size = 'md' } = props;
|
|
22
24
|
const iconSize = (iconSizeMapper === null || iconSizeMapper === void 0 ? void 0 : iconSizeMapper[size]) || 'md';
|
|
23
|
-
|
|
25
|
+
const { sizes } = (_a = theme_1.default) !== null && _a !== void 0 ? _a : {};
|
|
26
|
+
const fontSize = sizes[size !== null && size !== void 0 ? size : 'md'].tabsNavBar.fontSize;
|
|
27
|
+
const h = sizes[size !== null && size !== void 0 ? size : 'md'].tabsNavBar.h;
|
|
28
|
+
const borderWidth = sizes[size !== null && size !== void 0 ? size : 'md'].tabsNavBar.borderWidth;
|
|
29
|
+
const py = sizes[size !== null && size !== void 0 ? size : 'md'].tabsNavBar.py;
|
|
30
|
+
const iconMarginRight = size === 'xxl' ? '16px' : '8px';
|
|
31
|
+
return (react_1.default.createElement(list_1.List, { borderBottom: showBorder ? '1px solid sandstone.79' : 'none', className: (0, utils_1.cs)('vui-tabsNavBar'), display: "flex", isInteractive: true, mb: "20px", ref: ref, w: 1 }, (_b = tabs === null || tabs === void 0 ? void 0 : tabs.map) === null || _b === void 0 ? void 0 : _b.call(tabs, tab => (react_1.default.createElement(list_1.ListItem, { activeBg: "skyBlue.90", className: `vui-tabsNavBarItem vui-tabsNavBarItem-${tab === null || tab === void 0 ? void 0 : tab.id}`, color: "seaBlue.28", disabled: tab.disabled, display: "inline-flex", fontSize: fontSize, h: h, hoverBg: "skyBlue.85", key: tab.id, onClick: () => onNavItemClick === null || onNavItemClick === void 0 ? void 0 : onNavItemClick(tab.id || 0), position: "relative", px: "16px", py: py },
|
|
24
32
|
react_1.default.createElement(box_1.default, { alignItems: "center" },
|
|
25
|
-
!!tab.icon && react_1.default.createElement(icon_1.Icon, { mr:
|
|
33
|
+
!!tab.icon && react_1.default.createElement(icon_1.Icon, { mr: iconMarginRight, name: tab.icon, size: iconSize }),
|
|
26
34
|
tab.title),
|
|
27
|
-
!tab.disabled && tab.id === activeNavItem && (react_1.default.createElement(box_1.default, { animation: animationDirection, bg: "
|
|
35
|
+
!tab.disabled && tab.id === activeNavItem && (react_1.default.createElement(box_1.default, { animation: animationDirection, bg: "seaBlue.28", bottom: "-1px", h: borderWidth, left: 0, position: "absolute", w: 1 }, "\u00A0")))))));
|
|
28
36
|
});
|
|
29
37
|
exports.default = exports.TabsNavBar;
|