@veeqo/ui 13.19.0-beta-1 → 13.19.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/components/Anchor/Anchor.cjs +11 -5
- package/dist/components/Anchor/Anchor.cjs.map +1 -1
- package/dist/components/Anchor/Anchor.d.ts +1 -1
- package/dist/components/Anchor/Anchor.js +11 -5
- package/dist/components/Anchor/Anchor.js.map +1 -1
- package/dist/components/Anchor/Anchor.module.scss.cjs +9 -0
- package/dist/components/Anchor/Anchor.module.scss.cjs.map +1 -0
- package/dist/components/Anchor/Anchor.module.scss.js +7 -0
- package/dist/components/Anchor/Anchor.module.scss.js.map +1 -0
- package/dist/components/ToastsLayout/ToastsLayout.cjs +5 -7
- package/dist/components/ToastsLayout/ToastsLayout.cjs.map +1 -1
- package/dist/components/ToastsLayout/ToastsLayout.js +5 -7
- package/dist/components/ToastsLayout/ToastsLayout.js.map +1 -1
- package/dist/components/ToastsLayout/components/Toast.cjs +38 -22
- package/dist/components/ToastsLayout/components/Toast.cjs.map +1 -1
- package/dist/components/ToastsLayout/components/Toast.d.ts +1 -1
- package/dist/components/ToastsLayout/components/Toast.js +38 -22
- package/dist/components/ToastsLayout/components/Toast.js.map +1 -1
- package/dist/components/ToastsLayout/components/styled.cjs +25 -0
- package/dist/components/ToastsLayout/components/styled.cjs.map +1 -0
- package/dist/components/ToastsLayout/components/styled.d.ts +10 -0
- package/dist/components/ToastsLayout/components/styled.js +15 -0
- package/dist/components/ToastsLayout/components/styled.js.map +1 -0
- package/dist/components/ToastsLayout/types.d.ts +4 -7
- package/dist/components/TokenProvider/TokenProvider.cjs +15 -0
- package/dist/components/TokenProvider/TokenProvider.cjs.map +1 -0
- package/dist/components/TokenProvider/TokenProvider.d.ts +8 -0
- package/dist/components/TokenProvider/TokenProvider.js +9 -0
- package/dist/components/TokenProvider/TokenProvider.js.map +1 -0
- package/dist/components/TokenProvider/TokenProvider.module.scss.cjs +9 -0
- package/dist/components/TokenProvider/TokenProvider.module.scss.cjs.map +1 -0
- package/dist/components/TokenProvider/TokenProvider.module.scss.js +7 -0
- package/dist/components/TokenProvider/TokenProvider.module.scss.js.map +1 -0
- package/dist/components/TokenProvider/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hoc/index.d.ts +1 -0
- package/dist/hoc/withTokens/index.d.ts +2 -0
- package/dist/hoc/withTokens/withTokens.cjs +18 -0
- package/dist/hoc/withTokens/withTokens.cjs.map +1 -0
- package/dist/hoc/withTokens/withTokens.d.ts +9 -0
- package/dist/hoc/withTokens/withTokens.js +12 -0
- package/dist/hoc/withTokens/withTokens.js.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Anchor/styled.cjs +0 -38
- package/dist/components/Anchor/styled.cjs.map +0 -1
- package/dist/components/Anchor/styled.d.ts +0 -10
- package/dist/components/Anchor/styled.js +0 -29
- package/dist/components/Anchor/styled.js.map +0 -1
- package/dist/components/ToastsLayout/components/constants.cjs +0 -42
- package/dist/components/ToastsLayout/components/constants.cjs.map +0 -1
- package/dist/components/ToastsLayout/components/constants.d.ts +0 -2
- package/dist/components/ToastsLayout/components/constants.js +0 -36
- package/dist/components/ToastsLayout/components/constants.js.map +0 -1
- package/dist/components/ToastsLayout/components/toast.module.scss.cjs +0 -9
- package/dist/components/ToastsLayout/components/toast.module.scss.cjs.map +0 -1
- package/dist/components/ToastsLayout/components/toast.module.scss.js +0 -7
- package/dist/components/ToastsLayout/components/toast.module.scss.js.map +0 -1
- package/dist/components/ToastsLayout/components/utils.cjs +0 -10
- package/dist/components/ToastsLayout/components/utils.cjs.map +0 -1
- package/dist/components/ToastsLayout/components/utils.d.ts +0 -2
- package/dist/components/ToastsLayout/components/utils.js +0 -8
- package/dist/components/ToastsLayout/components/utils.js.map +0 -1
- package/dist/components/ToastsLayout/toastsLayout.module.scss.cjs +0 -9
- package/dist/components/ToastsLayout/toastsLayout.module.scss.cjs.map +0 -1
- package/dist/components/ToastsLayout/toastsLayout.module.scss.js +0 -7
- package/dist/components/ToastsLayout/toastsLayout.module.scss.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Stack } from '../../Stack/Stack.js';
|
|
3
|
+
import { BaseContainer } from '../../BaseContainer/BaseContainer.js';
|
|
4
|
+
import { Text } from '../../Text/Text.js';
|
|
5
|
+
import { theme } from '../../../theme/index.js';
|
|
6
|
+
import { sizes } from '../../../theme/modules/sizes.js';
|
|
7
|
+
|
|
8
|
+
const ToastsLayoutContainer = styled(Stack).withConfig({ displayName: "vui--ToastsLayoutContainer", componentId: "vui--1iztsl9" }) `position:fixed;bottom:24px;width:100%;pointer-events:none;z-index:${theme.layers.tooltip};`;
|
|
9
|
+
const Toast = styled(Stack).withConfig({ displayName: "vui--Toast", componentId: "vui--1o64628" }) `background-color:${theme.colors.neutral.ink.dark};padding:12px 24px 12px 12px;box-shadow:${theme.shadows.lg};border-radius:${theme.radius.md};pointer-events:auto;z-index:40;min-width:${({ minWidth }) => minWidth};max-width:80vw;&.veeqo-components-toast-enter{transform:translateY(12px);opacity:0;}&.veeqo-components-toast-enter-active{transform:translateY(0);opacity:1;transition:500ms ease;}&.veeqo-components-toast-exit{transform:${({ last }) => (last ? 'translateY(0)' : 'translateX(0)')};opacity:1;}&.veeqo-components-toast-exit-active{transform:${({ last }) => (last ? 'translateY(12px)' : 'translateX(12px)')};opacity:0;transition:500ms ease;}`;
|
|
10
|
+
const IconWrap = styled(BaseContainer).withConfig({ displayName: "vui--IconWrap", componentId: "vui--1nmtetq" }) `display:flex;flex-direction:row;align-items:center;justify-content:center;height:40px;width:40px;border-radius:${theme.radius.md};background-color:${({ color }) => color};color:#fff;svg{width:${sizes.md};height:${sizes.md};}`;
|
|
11
|
+
const ContentStack = styled(Stack).withConfig({ displayName: "vui--ContentStack", componentId: "vui--fvpujj" }) `flex-grow:1;`;
|
|
12
|
+
const StyledText = styled(Text).withConfig({ displayName: "vui--StyledText", componentId: "vui--ppieao" }) `color:white;font-size:16px;`;
|
|
13
|
+
|
|
14
|
+
export { ContentStack, IconWrap, StyledText, Toast, ToastsLayoutContainer };
|
|
15
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../../src/components/ToastsLayout/components/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { Stack } from '../../Stack';\nimport { BaseContainer } from '../../BaseContainer';\nimport { Text } from '../../Text';\nimport { theme } from '../../../theme';\nimport { sizes } from '../../../theme/modules/sizes';\n\nexport const ToastsLayoutContainer = styled(Stack)`\n position: fixed;\n bottom: 24px;\n width: 100%;\n pointer-events: none;\n z-index: ${theme.layers.tooltip};\n`;\n\nexport const Toast = styled(Stack)<{\n minWidth: number | string;\n last: boolean;\n}>`\n background-color: ${theme.colors.neutral.ink.dark};\n padding: 12px 24px 12px 12px;\n box-shadow: ${theme.shadows.lg};\n border-radius: ${theme.radius.md};\n pointer-events: auto;\n z-index: 40;\n min-width: ${({ minWidth }) => minWidth};\n max-width: 80vw;\n\n &.veeqo-components-toast-enter {\n transform: translateY(12px);\n opacity: 0;\n }\n\n &.veeqo-components-toast-enter-active {\n transform: translateY(0);\n opacity: 1;\n transition: 500ms ease;\n }\n\n &.veeqo-components-toast-exit {\n transform: ${({ last }) => (last ? 'translateY(0)' : 'translateX(0)')};\n opacity: 1;\n }\n\n &.veeqo-components-toast-exit-active {\n transform: ${({ last }) => (last ? 'translateY(12px)' : 'translateX(12px)')};\n opacity: 0;\n transition: 500ms ease;\n }\n`;\n\nexport const IconWrap = styled(BaseContainer)<{ color: string }>`\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 40px;\n width: 40px;\n border-radius: ${theme.radius.md};\n background-color: ${({ color }) => color};\n color: #fff;\n\n svg {\n width: ${sizes.md};\n height: ${sizes.md};\n }\n`;\n\nexport const ContentStack = styled(Stack)`\n flex-grow: 1;\n`;\n\nexport const StyledText = styled(Text)`\n color: white;\n font-size: 16px;\n`;\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,qBAAqB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,4BAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,kEAAA,EAKrC,KAAK,CAAC,MAAM,CAAC,OAAO;AAGpB,MAAA,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAIZ,UAAA,CAAA,EAAA,WAAA,EAAA,YAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,iBAAA,EAAA,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAEnC,wCAAA,EAAA,KAAK,CAAC,OAAO,CAAC,EAAE,CAAA,eAAA,EACb,KAAK,CAAC,MAAM,CAAC,EAAE,6CAGnB,CAAC,EAAE,QAAQ,EAAE,KAAK,QAAQ,CAexB,4NAAA,EAAA,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,eAAe,GAAG,eAAe,CAAC,CAAA,2DAAA,EAKxD,CAAC,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AAMxE,MAAM,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,eAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,+GAAA,EAO1B,KAAK,CAAC,MAAM,CAAC,EAAE,CACZ,kBAAA,EAAA,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,CAI7B,sBAAA,EAAA,KAAK,CAAC,EAAE,CACP,QAAA,EAAA,KAAK,CAAC,EAAE;MAIT,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,mBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,YAAA;MAI5B,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,2BAAA;;;;"}
|
|
@@ -2,22 +2,22 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
export declare enum ToastTypes {
|
|
3
3
|
info = "info",
|
|
4
4
|
error = "error",
|
|
5
|
-
warning = "warning",
|
|
6
5
|
success = "success",
|
|
7
|
-
merge = "merge"
|
|
8
|
-
custom = "custom"
|
|
6
|
+
merge = "merge"
|
|
9
7
|
}
|
|
10
8
|
export type ToastType = Record<ToastTypes, {
|
|
11
9
|
accentColor: string;
|
|
12
|
-
icon
|
|
10
|
+
icon: ReactElement;
|
|
13
11
|
}>;
|
|
14
12
|
export type ToastPropTypes = Omit<Notification, 'key'> & {
|
|
13
|
+
className?: string;
|
|
15
14
|
e2eClassName?: string;
|
|
16
15
|
last: boolean;
|
|
17
16
|
minWidth: number | string;
|
|
18
17
|
onClose: () => void;
|
|
19
18
|
};
|
|
20
19
|
export type ToastsLayoutPropTypes = {
|
|
20
|
+
className?: string;
|
|
21
21
|
e2eClassName?: string;
|
|
22
22
|
toasts: Notification[];
|
|
23
23
|
minWidth?: number | string;
|
|
@@ -34,8 +34,5 @@ export type Notification = {
|
|
|
34
34
|
type: keyof typeof ToastTypes;
|
|
35
35
|
iconSlot?: ReactElement;
|
|
36
36
|
text: string;
|
|
37
|
-
subMessage?: string;
|
|
38
|
-
ctaSlot?: React.ReactNode;
|
|
39
|
-
/** @deprecated Use ctaSlot instead */
|
|
40
37
|
cta?: React.ReactNode;
|
|
41
38
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var TokenProvider_module = require('./TokenProvider.module.scss.cjs');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
|
+
|
|
10
|
+
const TokenProvider = ({ theme, children }) => {
|
|
11
|
+
return (React__default.default.createElement("div", { className: TokenProvider_module[theme], style: { display: 'contents' } }, children));
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.TokenProvider = TokenProvider;
|
|
15
|
+
//# sourceMappingURL=TokenProvider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenProvider.cjs","sources":["../../../src/components/TokenProvider/TokenProvider.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './TokenProvider.module.scss';\n\nexport type ThemeType = 'default' | 'purple' | 'teal';\n\ntype TokenProviderProps = {\n theme: ThemeType;\n children: React.ReactNode;\n};\n\nexport const TokenProvider = ({ theme, children }: TokenProviderProps) => {\n return (\n <div className={styles[theme]} style={{ display: 'contents' }}>\n {children}\n </div>\n );\n};\n"],"names":["React","styles"],"mappings":";;;;;;;;;AAUa,MAAA,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAsB,KAAI;IACvE,QACEA,8CAAK,SAAS,EAAEC,oBAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,IAC1D,QAAQ,CACL;AAEV;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ThemeType = 'default' | 'purple' | 'teal';
|
|
3
|
+
type TokenProviderProps = {
|
|
4
|
+
theme: ThemeType;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const TokenProvider: ({ theme, children }: TokenProviderProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import styles from './TokenProvider.module.scss.js';
|
|
3
|
+
|
|
4
|
+
const TokenProvider = ({ theme, children }) => {
|
|
5
|
+
return (React__default.createElement("div", { className: styles[theme], style: { display: 'contents' } }, children));
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { TokenProvider };
|
|
9
|
+
//# sourceMappingURL=TokenProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenProvider.js","sources":["../../../src/components/TokenProvider/TokenProvider.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './TokenProvider.module.scss';\n\nexport type ThemeType = 'default' | 'purple' | 'teal';\n\ntype TokenProviderProps = {\n theme: ThemeType;\n children: React.ReactNode;\n};\n\nexport const TokenProvider = ({ theme, children }: TokenProviderProps) => {\n return (\n <div className={styles[theme]} style={{ display: 'contents' }}>\n {children}\n </div>\n );\n};\n"],"names":["React"],"mappings":";;;AAUa,MAAA,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAsB,KAAI;IACvE,QACEA,sCAAK,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,IAC1D,QAAQ,CACL;AAEV;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
|
|
4
|
+
|
|
5
|
+
___$insertStyle("._default_1ad7m_1 {\n --theme-surface: var(--colors-secondary-blue-lightest);\n --theme-surface-hover: var(--colors-secondary-blue-light);\n --theme-border: var(--colors-secondary-blue-base);\n --theme-text: var(--colors-secondary-blue-darkest);\n --theme-text-secondary: var(--colors-secondary-blue-dark);\n --theme-text-link: var(--colors-secondary-blue-dark);\n --theme-icon: var(--colors-secondary-blue-base);\n --theme-action-bg: var(--colors-secondary-blue-base);\n --theme-action-bg-hover: var(--colors-secondary-blue-dark);\n --theme-action-text: #ffffff;\n}\n\n._purple_1ad7m_14 {\n --theme-surface: var(--colors-secondary-purple-lightest);\n --theme-surface-hover: var(--colors-secondary-purple-light);\n --theme-border: var(--colors-secondary-purple-light);\n --theme-text: var(--colors-secondary-purple-darkest);\n --theme-text-secondary: var(--colors-secondary-purple-dark);\n --theme-text-link: var(--colors-secondary-purple-dark);\n --theme-icon: var(--colors-secondary-purple-dark);\n --theme-action-bg: var(--colors-secondary-purple-base);\n --theme-action-bg-hover: var(--colors-secondary-purple-dark);\n --theme-action-text: #ffffff;\n}\n\n._teal_1ad7m_27 {\n --theme-surface: var(--colors-secondary-teal-lightest);\n --theme-surface-hover: var(--colors-secondary-teal-light);\n --theme-border: var(--colors-secondary-teal-light);\n --theme-text: var(--colors-secondary-teal-darkest);\n --theme-text-secondary: var(--colors-secondary-teal-dark);\n --theme-text-link: var(--colors-secondary-teal-dark);\n --theme-icon: var(--colors-secondary-teal-dark);\n --theme-action-bg: var(--colors-secondary-teal-base);\n --theme-action-bg-hover: var(--colors-secondary-teal-dark);\n --theme-action-text: #ffffff;\n}");
|
|
6
|
+
var styles = {"default":"_default_1ad7m_1","purple":"_purple_1ad7m_14","teal":"_teal_1ad7m_27"};
|
|
7
|
+
|
|
8
|
+
module.exports = styles;
|
|
9
|
+
//# sourceMappingURL=TokenProvider.module.scss.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenProvider.module.scss.cjs","sources":["../../../src/components/TokenProvider/TokenProvider.module.scss"],"sourcesContent":[".default {\n --theme-surface: var(--colors-secondary-blue-lightest);\n --theme-surface-hover: var(--colors-secondary-blue-light);\n --theme-border: var(--colors-secondary-blue-base);\n --theme-text: var(--colors-secondary-blue-darkest);\n --theme-text-secondary: var(--colors-secondary-blue-dark);\n --theme-text-link: var(--colors-secondary-blue-dark);\n --theme-icon: var(--colors-secondary-blue-base);\n --theme-action-bg: var(--colors-secondary-blue-base);\n --theme-action-bg-hover: var(--colors-secondary-blue-dark);\n --theme-action-text: #ffffff;\n}\n\n.purple {\n --theme-surface: var(--colors-secondary-purple-lightest);\n --theme-surface-hover: var(--colors-secondary-purple-light);\n --theme-border: var(--colors-secondary-purple-light);\n --theme-text: var(--colors-secondary-purple-darkest);\n --theme-text-secondary: var(--colors-secondary-purple-dark);\n --theme-text-link: var(--colors-secondary-purple-dark);\n --theme-icon: var(--colors-secondary-purple-dark);\n --theme-action-bg: var(--colors-secondary-purple-base);\n --theme-action-bg-hover: var(--colors-secondary-purple-dark);\n --theme-action-text: #ffffff;\n}\n\n.teal {\n --theme-surface: var(--colors-secondary-teal-lightest);\n --theme-surface-hover: var(--colors-secondary-teal-light);\n --theme-border: var(--colors-secondary-teal-light);\n --theme-text: var(--colors-secondary-teal-darkest);\n --theme-text-secondary: var(--colors-secondary-teal-dark);\n --theme-text-link: var(--colors-secondary-teal-dark);\n --theme-icon: var(--colors-secondary-teal-dark);\n --theme-action-bg: var(--colors-secondary-teal-base);\n --theme-action-bg-hover: var(--colors-secondary-teal-dark);\n --theme-action-text: #ffffff;\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,4tDAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,QAAA,CAAA,kBAAA,CAAA,MAAA,CAAA,gBAAA;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import insertStyle from '../../_virtual/____insertStyle.js';
|
|
2
|
+
|
|
3
|
+
insertStyle("._default_1ad7m_1 {\n --theme-surface: var(--colors-secondary-blue-lightest);\n --theme-surface-hover: var(--colors-secondary-blue-light);\n --theme-border: var(--colors-secondary-blue-base);\n --theme-text: var(--colors-secondary-blue-darkest);\n --theme-text-secondary: var(--colors-secondary-blue-dark);\n --theme-text-link: var(--colors-secondary-blue-dark);\n --theme-icon: var(--colors-secondary-blue-base);\n --theme-action-bg: var(--colors-secondary-blue-base);\n --theme-action-bg-hover: var(--colors-secondary-blue-dark);\n --theme-action-text: #ffffff;\n}\n\n._purple_1ad7m_14 {\n --theme-surface: var(--colors-secondary-purple-lightest);\n --theme-surface-hover: var(--colors-secondary-purple-light);\n --theme-border: var(--colors-secondary-purple-light);\n --theme-text: var(--colors-secondary-purple-darkest);\n --theme-text-secondary: var(--colors-secondary-purple-dark);\n --theme-text-link: var(--colors-secondary-purple-dark);\n --theme-icon: var(--colors-secondary-purple-dark);\n --theme-action-bg: var(--colors-secondary-purple-base);\n --theme-action-bg-hover: var(--colors-secondary-purple-dark);\n --theme-action-text: #ffffff;\n}\n\n._teal_1ad7m_27 {\n --theme-surface: var(--colors-secondary-teal-lightest);\n --theme-surface-hover: var(--colors-secondary-teal-light);\n --theme-border: var(--colors-secondary-teal-light);\n --theme-text: var(--colors-secondary-teal-darkest);\n --theme-text-secondary: var(--colors-secondary-teal-dark);\n --theme-text-link: var(--colors-secondary-teal-dark);\n --theme-icon: var(--colors-secondary-teal-dark);\n --theme-action-bg: var(--colors-secondary-teal-base);\n --theme-action-bg-hover: var(--colors-secondary-teal-dark);\n --theme-action-text: #ffffff;\n}");
|
|
4
|
+
var styles = {"default":"_default_1ad7m_1","purple":"_purple_1ad7m_14","teal":"_teal_1ad7m_27"};
|
|
5
|
+
|
|
6
|
+
export { styles as default };
|
|
7
|
+
//# sourceMappingURL=TokenProvider.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenProvider.module.scss.js","sources":["../../../src/components/TokenProvider/TokenProvider.module.scss"],"sourcesContent":[".default {\n --theme-surface: var(--colors-secondary-blue-lightest);\n --theme-surface-hover: var(--colors-secondary-blue-light);\n --theme-border: var(--colors-secondary-blue-base);\n --theme-text: var(--colors-secondary-blue-darkest);\n --theme-text-secondary: var(--colors-secondary-blue-dark);\n --theme-text-link: var(--colors-secondary-blue-dark);\n --theme-icon: var(--colors-secondary-blue-base);\n --theme-action-bg: var(--colors-secondary-blue-base);\n --theme-action-bg-hover: var(--colors-secondary-blue-dark);\n --theme-action-text: #ffffff;\n}\n\n.purple {\n --theme-surface: var(--colors-secondary-purple-lightest);\n --theme-surface-hover: var(--colors-secondary-purple-light);\n --theme-border: var(--colors-secondary-purple-light);\n --theme-text: var(--colors-secondary-purple-darkest);\n --theme-text-secondary: var(--colors-secondary-purple-dark);\n --theme-text-link: var(--colors-secondary-purple-dark);\n --theme-icon: var(--colors-secondary-purple-dark);\n --theme-action-bg: var(--colors-secondary-purple-base);\n --theme-action-bg-hover: var(--colors-secondary-purple-dark);\n --theme-action-text: #ffffff;\n}\n\n.teal {\n --theme-surface: var(--colors-secondary-teal-lightest);\n --theme-surface-hover: var(--colors-secondary-teal-light);\n --theme-border: var(--colors-secondary-teal-light);\n --theme-text: var(--colors-secondary-teal-darkest);\n --theme-text-secondary: var(--colors-secondary-teal-dark);\n --theme-text-link: var(--colors-secondary-teal-dark);\n --theme-icon: var(--colors-secondary-teal-dark);\n --theme-action-bg: var(--colors-secondary-teal-base);\n --theme-action-bg-hover: var(--colors-secondary-teal-dark);\n --theme-action-text: #ffffff;\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,4tDAAA;AACA,aAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,QAAA,CAAA,kBAAA,CAAA,MAAA,CAAA,gBAAA;;;;"}
|
|
@@ -72,6 +72,7 @@ export { WeightInput } from './WeightInput';
|
|
|
72
72
|
export { Indicator } from './Indicator';
|
|
73
73
|
export { SelectDropdown } from './SelectDropdown';
|
|
74
74
|
export { ThemeInjector } from './ThemeInjector';
|
|
75
|
+
export { TokenProvider, type ThemeType } from './TokenProvider';
|
|
75
76
|
export { DataGrid, type ColumnDefinition, type RowExpansion, type RowGroupingConfiguration, type SortState, } from './DataGrid';
|
|
76
77
|
export { FlexCol } from './Flex/FlexCol';
|
|
77
78
|
export { FlexRow } from './Flex/FlexRow';
|
package/dist/hoc/index.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var TokenProvider = require('../../components/TokenProvider/TokenProvider.cjs');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
|
+
|
|
10
|
+
const withTokens = (Component) => {
|
|
11
|
+
const ComponentWithTokens = ({ theme = 'default', ...props }) => (React__default.default.createElement(TokenProvider.TokenProvider, { theme: theme },
|
|
12
|
+
React__default.default.createElement(Component, { ...props })));
|
|
13
|
+
ComponentWithTokens.displayName = `withTokens(${Component.displayName || Component.name || 'Component'})`;
|
|
14
|
+
return ComponentWithTokens;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.withTokens = withTokens;
|
|
18
|
+
//# sourceMappingURL=withTokens.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withTokens.cjs","sources":["../../../src/hoc/withTokens/withTokens.tsx"],"sourcesContent":["import React, { ComponentType } from 'react';\nimport { ThemeType } from '../../components/TokenProvider/TokenProvider';\nimport { TokenProvider } from '../../components/TokenProvider';\n\nexport type WithTokensProps = {\n theme?: ThemeType;\n};\n\nexport const withTokens = <P extends object>(Component: ComponentType<P>) => {\n const ComponentWithTokens = ({ theme = 'default', ...props }: P & WithTokensProps) => (\n <TokenProvider theme={theme}>\n <Component {...(props as P)} />\n </TokenProvider>\n );\n\n ComponentWithTokens.displayName = `withTokens(${Component.displayName || Component.name || 'Component'})`;\n\n return ComponentWithTokens;\n};\n"],"names":["React","TokenProvider"],"mappings":";;;;;;;;;AAQa,MAAA,UAAU,GAAG,CAAmB,SAA2B,KAAI;IAC1E,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,EAAuB,MAC/EA,sBAAA,CAAA,aAAA,CAACC,2BAAa,EAAC,EAAA,KAAK,EAAE,KAAK,EAAA;AACzB,QAAAD,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAM,EAAA,GAAA,KAAW,EAAI,CAAA,CACjB,CACjB;AAED,IAAA,mBAAmB,CAAC,WAAW,GAAG,CAAA,WAAA,EAAc,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,WAAW,GAAG;AAEzG,IAAA,OAAO,mBAAmB;AAC5B;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
|
+
import { ThemeType } from '../../components/TokenProvider/TokenProvider';
|
|
3
|
+
export type WithTokensProps = {
|
|
4
|
+
theme?: ThemeType;
|
|
5
|
+
};
|
|
6
|
+
export declare const withTokens: <P extends object>(Component: React.ComponentType<P>) => {
|
|
7
|
+
({ theme, ...props }: P & WithTokensProps): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { TokenProvider } from '../../components/TokenProvider/TokenProvider.js';
|
|
3
|
+
|
|
4
|
+
const withTokens = (Component) => {
|
|
5
|
+
const ComponentWithTokens = ({ theme = 'default', ...props }) => (React__default.createElement(TokenProvider, { theme: theme },
|
|
6
|
+
React__default.createElement(Component, { ...props })));
|
|
7
|
+
ComponentWithTokens.displayName = `withTokens(${Component.displayName || Component.name || 'Component'})`;
|
|
8
|
+
return ComponentWithTokens;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { withTokens };
|
|
12
|
+
//# sourceMappingURL=withTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withTokens.js","sources":["../../../src/hoc/withTokens/withTokens.tsx"],"sourcesContent":["import React, { ComponentType } from 'react';\nimport { ThemeType } from '../../components/TokenProvider/TokenProvider';\nimport { TokenProvider } from '../../components/TokenProvider';\n\nexport type WithTokensProps = {\n theme?: ThemeType;\n};\n\nexport const withTokens = <P extends object>(Component: ComponentType<P>) => {\n const ComponentWithTokens = ({ theme = 'default', ...props }: P & WithTokensProps) => (\n <TokenProvider theme={theme}>\n <Component {...(props as P)} />\n </TokenProvider>\n );\n\n ComponentWithTokens.displayName = `withTokens(${Component.displayName || Component.name || 'Component'})`;\n\n return ComponentWithTokens;\n};\n"],"names":["React"],"mappings":";;;AAQa,MAAA,UAAU,GAAG,CAAmB,SAA2B,KAAI;IAC1E,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,GAAG,SAAS,EAAE,GAAG,KAAK,EAAuB,MAC/EA,cAAA,CAAA,aAAA,CAAC,aAAa,EAAC,EAAA,KAAK,EAAE,KAAK,EAAA;AACzB,QAAAA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAM,EAAA,GAAA,KAAW,EAAI,CAAA,CACjB,CACjB;AAED,IAAA,mBAAmB,CAAC,WAAW,GAAG,CAAA,WAAA,EAAc,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,IAAI,WAAW,GAAG;AAEzG,IAAA,OAAO,mBAAmB;AAC5B;;;;"}
|
package/dist/index.cjs
CHANGED
|
@@ -83,6 +83,7 @@ var WeightInput = require('./components/WeightInput/WeightInput.cjs');
|
|
|
83
83
|
var Indicator = require('./components/Indicator/Indicator.cjs');
|
|
84
84
|
var index$4 = require('./components/SelectDropdown/index.cjs');
|
|
85
85
|
var ThemeInjector = require('./components/ThemeInjector/ThemeInjector.cjs');
|
|
86
|
+
var TokenProvider = require('./components/TokenProvider/TokenProvider.cjs');
|
|
86
87
|
var DataGrid = require('./components/DataGrid/DataGrid.cjs');
|
|
87
88
|
var FlexCol = require('./components/Flex/FlexCol/FlexCol.cjs');
|
|
88
89
|
var FlexRow = require('./components/Flex/FlexRow/FlexRow.cjs');
|
|
@@ -106,6 +107,7 @@ var useScrollPosition = require('./hooks/useScrollPosition/useScrollPosition.cjs
|
|
|
106
107
|
var withLabels = require('./hoc/withLabels/withLabels.cjs');
|
|
107
108
|
var withDeprecated = require('./hoc/withDeprecated.cjs');
|
|
108
109
|
var withClassNames = require('./hoc/withClassNames/withClassNames.cjs');
|
|
110
|
+
var withTokens = require('./hoc/withTokens/withTokens.cjs');
|
|
109
111
|
var buildClassnames = require('./utils/buildClassnames.cjs');
|
|
110
112
|
var color = require('./utils/color.cjs');
|
|
111
113
|
var generateId = require('./utils/generateId.cjs');
|
|
@@ -443,6 +445,7 @@ exports.WeightInput = WeightInput.WeightInput;
|
|
|
443
445
|
exports.Indicator = Indicator.Indicator;
|
|
444
446
|
exports.SelectDropdown = index$4.SelectDropdown;
|
|
445
447
|
exports.ThemeInjector = ThemeInjector.ThemeInjector;
|
|
448
|
+
exports.TokenProvider = TokenProvider.TokenProvider;
|
|
446
449
|
exports.DataGrid = DataGrid.DataGrid;
|
|
447
450
|
exports.FlexCol = FlexCol.FlexCol;
|
|
448
451
|
exports.FlexRow = FlexRow.FlexRow;
|
|
@@ -467,6 +470,7 @@ exports.useScrollPosition = useScrollPosition.useScrollPosition;
|
|
|
467
470
|
exports.withLabels = withLabels.withLabels;
|
|
468
471
|
exports.withDeprecated = withDeprecated.withDeprecated;
|
|
469
472
|
exports.withClassNames = withClassNames.withClassNames;
|
|
473
|
+
exports.withTokens = withTokens.withTokens;
|
|
470
474
|
exports.buildClassnames = buildClassnames.buildClassnames;
|
|
471
475
|
exports.getOpaqueHexColor = color.getOpaqueHexColor;
|
|
472
476
|
exports.hexToRgb = color.hexToRgb;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -81,6 +81,7 @@ export { WeightInput } from './components/WeightInput/WeightInput.js';
|
|
|
81
81
|
export { Indicator } from './components/Indicator/Indicator.js';
|
|
82
82
|
export { SelectDropdown } from './components/SelectDropdown/index.js';
|
|
83
83
|
export { ThemeInjector } from './components/ThemeInjector/ThemeInjector.js';
|
|
84
|
+
export { TokenProvider } from './components/TokenProvider/TokenProvider.js';
|
|
84
85
|
export { DataGrid } from './components/DataGrid/DataGrid.js';
|
|
85
86
|
export { FlexCol } from './components/Flex/FlexCol/FlexCol.js';
|
|
86
87
|
export { FlexRow } from './components/Flex/FlexRow/FlexRow.js';
|
|
@@ -104,6 +105,7 @@ export { useScrollPosition } from './hooks/useScrollPosition/useScrollPosition.j
|
|
|
104
105
|
export { withLabels } from './hoc/withLabels/withLabels.js';
|
|
105
106
|
export { withDeprecated } from './hoc/withDeprecated.js';
|
|
106
107
|
export { withClassNames } from './hoc/withClassNames/withClassNames.js';
|
|
108
|
+
export { withTokens } from './hoc/withTokens/withTokens.js';
|
|
107
109
|
export { buildClassnames } from './utils/buildClassnames.js';
|
|
108
110
|
export { getOpaqueHexColor, hexToRgb } from './utils/color.js';
|
|
109
111
|
export { generateId } from './utils/generateId.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styled = require('styled-components');
|
|
4
|
-
var utils = require('../../theme/utils.cjs');
|
|
5
|
-
var index = require('../../theme/index.cjs');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
-
|
|
9
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
10
|
-
|
|
11
|
-
const sizeMappings = {
|
|
12
|
-
lg: index.theme.sizes.md,
|
|
13
|
-
md: index.theme.sizes[5],
|
|
14
|
-
base: index.theme.sizes.base,
|
|
15
|
-
sm: index.theme.sizes[3],
|
|
16
|
-
};
|
|
17
|
-
const styleMappings = {
|
|
18
|
-
lg: 'linkLarge',
|
|
19
|
-
md: 'linkMedium',
|
|
20
|
-
base: 'link',
|
|
21
|
-
sm: 'linkSmall',
|
|
22
|
-
};
|
|
23
|
-
const UnstyledAnchor = styled__default.default.a.withConfig({ displayName: "vui--UnstyledAnchor", componentId: "vui--1af0loc" }) ``;
|
|
24
|
-
// Standard variant styling
|
|
25
|
-
const StandardAnchor = styled__default.default(UnstyledAnchor).withConfig({ displayName: "vui--StandardAnchor", componentId: "vui--k5ndq9" }) `display:inline-flex;align-items:center;cursor:pointer;transition:color 0.1s ease;text-decoration:none;padding:0 2px;${({ size }) => utils.getTextStyles(index.theme.text[styleMappings[size]])};&:focus{outline:0;border-color:${index.theme.colors.secondary.blue.dark};border-radius:${index.theme.radius.base};box-shadow:0 0 0 2px ${index.theme.colors.secondary.blue.light};}&:hover{color:${index.theme.colors.secondary.blue.dark};}svg{width:${({ size }) => sizeMappings[size]};height:${({ size }) => sizeMappings[size]};vertical-align:middle;flex-shrink:0;}`;
|
|
26
|
-
// Inherit font size and line height from parent
|
|
27
|
-
const InheritAnchor = styled__default.default(StandardAnchor).withConfig({ displayName: "vui--InheritAnchor", componentId: "vui--ut8az0" }) `font-size:inherit;line-height:inherit;`;
|
|
28
|
-
const AnchorMapping = {
|
|
29
|
-
base: StandardAnchor,
|
|
30
|
-
unstyled: UnstyledAnchor,
|
|
31
|
-
inherit: InheritAnchor,
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
exports.AnchorMapping = AnchorMapping;
|
|
35
|
-
exports.InheritAnchor = InheritAnchor;
|
|
36
|
-
exports.StandardAnchor = StandardAnchor;
|
|
37
|
-
exports.UnstyledAnchor = UnstyledAnchor;
|
|
38
|
-
//# sourceMappingURL=styled.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.cjs","sources":["../../../src/components/Anchor/styled.ts"],"sourcesContent":["import styled, { StyledComponent } from 'styled-components';\nimport { getTextStyles } from '../../theme/utils';\nimport { theme } from '../../theme';\nimport { AnchorProps, AnchorSize } from './types';\n\ntype StyledAnchorProps = {\n size: AnchorSize;\n};\n\nconst sizeMappings: Record<StyledAnchorProps['size'], string> = {\n lg: theme.sizes.md,\n md: theme.sizes[5],\n base: theme.sizes.base,\n sm: theme.sizes[3],\n};\n\nconst styleMappings: Record<StyledAnchorProps['size'], string> = {\n lg: 'linkLarge',\n md: 'linkMedium',\n base: 'link',\n sm: 'linkSmall',\n};\n\nexport const UnstyledAnchor = styled.a<StyledAnchorProps>``;\n\n// Standard variant styling\nexport const StandardAnchor = styled(UnstyledAnchor)<StyledAnchorProps>`\n display: inline-flex;\n align-items: center;\n\n cursor: pointer;\n transition: color 0.1s ease;\n text-decoration: none;\n padding: 0 2px;\n\n ${({ size }) => getTextStyles(theme.text[styleMappings[size]])};\n\n &:focus {\n outline: 0;\n border-color: ${theme.colors.secondary.blue.dark};\n border-radius: ${theme.radius.base};\n box-shadow: 0 0 0 2px ${theme.colors.secondary.blue.light};\n }\n\n &:hover {\n color: ${theme.colors.secondary.blue.dark};\n }\n\n svg {\n width: ${({ size }) => sizeMappings[size]};\n height: ${({ size }) => sizeMappings[size]};\n vertical-align: middle;\n flex-shrink: 0;\n }\n`;\n\n// Inherit font size and line height from parent\nexport const InheritAnchor = styled(StandardAnchor)<StyledAnchorProps>`\n font-size: inherit;\n line-height: inherit;\n`;\n\nexport const AnchorMapping: Record<\n NonNullable<AnchorProps['variant']>,\n StyledComponent<'a', any, StyledAnchorProps>\n> = {\n base: StandardAnchor,\n unstyled: UnstyledAnchor,\n inherit: InheritAnchor,\n};\n"],"names":["theme","styled","getTextStyles"],"mappings":";;;;;;;;;;AASA,MAAM,YAAY,GAA8C;AAC9D,IAAA,EAAE,EAAEA,WAAK,CAAC,KAAK,CAAC,EAAE;AAClB,IAAA,EAAE,EAAEA,WAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAClB,IAAA,IAAI,EAAEA,WAAK,CAAC,KAAK,CAAC,IAAI;AACtB,IAAA,EAAE,EAAEA,WAAK,CAAC,KAAK,CAAC,CAAC,CAAC;CACnB;AAED,MAAM,aAAa,GAA8C;AAC/D,IAAA,EAAE,EAAE,WAAW;AACf,IAAA,EAAE,EAAE,YAAY;AAChB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,EAAE,EAAE,WAAW;CAChB;MAEY,cAAc,GAAGC,uBAAM,CAAC,CAAC;AAEtC;AACa,MAAA,cAAc,GAAGA,uBAAM,CAAC,cAAc,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,oHAAA,EAShD,CAAC,EAAE,IAAI,EAAE,KAAKC,mBAAa,CAACF,WAAK,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,gCAAA,EAI5CA,WAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,kBAC/BA,WAAK,CAAC,MAAM,CAAC,IAAI,CACV,sBAAA,EAAAA,WAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,gBAAA,EAIhDA,WAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,eAIhC,CAAC,EAAE,IAAI,EAAE,KAAK,YAAY,CAAC,IAAI,CAAC,WAC/B,CAAC,EAAE,IAAI,EAAE,KAAK,YAAY,CAAC,IAAI,CAAC;AAM9C;MACa,aAAa,GAAGC,uBAAM,CAAC,cAAc,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,oBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,sCAAA;AAKtC,MAAA,aAAa,GAGtB;AACF,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,QAAQ,EAAE,cAAc;AACxB,IAAA,OAAO,EAAE,aAAa;;;;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StyledComponent } from 'styled-components';
|
|
2
|
-
import { AnchorProps, AnchorSize } from './types';
|
|
3
|
-
type StyledAnchorProps = {
|
|
4
|
-
size: AnchorSize;
|
|
5
|
-
};
|
|
6
|
-
export declare const UnstyledAnchor: StyledComponent<"a", any, StyledAnchorProps, never>;
|
|
7
|
-
export declare const StandardAnchor: StyledComponent<"a", any, StyledAnchorProps, never>;
|
|
8
|
-
export declare const InheritAnchor: StyledComponent<"a", any, StyledAnchorProps, never>;
|
|
9
|
-
export declare const AnchorMapping: Record<NonNullable<AnchorProps['variant']>, StyledComponent<'a', any, StyledAnchorProps>>;
|
|
10
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { getTextStyles } from '../../theme/utils.js';
|
|
3
|
-
import { theme } from '../../theme/index.js';
|
|
4
|
-
|
|
5
|
-
const sizeMappings = {
|
|
6
|
-
lg: theme.sizes.md,
|
|
7
|
-
md: theme.sizes[5],
|
|
8
|
-
base: theme.sizes.base,
|
|
9
|
-
sm: theme.sizes[3],
|
|
10
|
-
};
|
|
11
|
-
const styleMappings = {
|
|
12
|
-
lg: 'linkLarge',
|
|
13
|
-
md: 'linkMedium',
|
|
14
|
-
base: 'link',
|
|
15
|
-
sm: 'linkSmall',
|
|
16
|
-
};
|
|
17
|
-
const UnstyledAnchor = styled.a.withConfig({ displayName: "vui--UnstyledAnchor", componentId: "vui--1af0loc" }) ``;
|
|
18
|
-
// Standard variant styling
|
|
19
|
-
const StandardAnchor = styled(UnstyledAnchor).withConfig({ displayName: "vui--StandardAnchor", componentId: "vui--k5ndq9" }) `display:inline-flex;align-items:center;cursor:pointer;transition:color 0.1s ease;text-decoration:none;padding:0 2px;${({ size }) => getTextStyles(theme.text[styleMappings[size]])};&:focus{outline:0;border-color:${theme.colors.secondary.blue.dark};border-radius:${theme.radius.base};box-shadow:0 0 0 2px ${theme.colors.secondary.blue.light};}&:hover{color:${theme.colors.secondary.blue.dark};}svg{width:${({ size }) => sizeMappings[size]};height:${({ size }) => sizeMappings[size]};vertical-align:middle;flex-shrink:0;}`;
|
|
20
|
-
// Inherit font size and line height from parent
|
|
21
|
-
const InheritAnchor = styled(StandardAnchor).withConfig({ displayName: "vui--InheritAnchor", componentId: "vui--ut8az0" }) `font-size:inherit;line-height:inherit;`;
|
|
22
|
-
const AnchorMapping = {
|
|
23
|
-
base: StandardAnchor,
|
|
24
|
-
unstyled: UnstyledAnchor,
|
|
25
|
-
inherit: InheritAnchor,
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { AnchorMapping, InheritAnchor, StandardAnchor, UnstyledAnchor };
|
|
29
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../src/components/Anchor/styled.ts"],"sourcesContent":["import styled, { StyledComponent } from 'styled-components';\nimport { getTextStyles } from '../../theme/utils';\nimport { theme } from '../../theme';\nimport { AnchorProps, AnchorSize } from './types';\n\ntype StyledAnchorProps = {\n size: AnchorSize;\n};\n\nconst sizeMappings: Record<StyledAnchorProps['size'], string> = {\n lg: theme.sizes.md,\n md: theme.sizes[5],\n base: theme.sizes.base,\n sm: theme.sizes[3],\n};\n\nconst styleMappings: Record<StyledAnchorProps['size'], string> = {\n lg: 'linkLarge',\n md: 'linkMedium',\n base: 'link',\n sm: 'linkSmall',\n};\n\nexport const UnstyledAnchor = styled.a<StyledAnchorProps>``;\n\n// Standard variant styling\nexport const StandardAnchor = styled(UnstyledAnchor)<StyledAnchorProps>`\n display: inline-flex;\n align-items: center;\n\n cursor: pointer;\n transition: color 0.1s ease;\n text-decoration: none;\n padding: 0 2px;\n\n ${({ size }) => getTextStyles(theme.text[styleMappings[size]])};\n\n &:focus {\n outline: 0;\n border-color: ${theme.colors.secondary.blue.dark};\n border-radius: ${theme.radius.base};\n box-shadow: 0 0 0 2px ${theme.colors.secondary.blue.light};\n }\n\n &:hover {\n color: ${theme.colors.secondary.blue.dark};\n }\n\n svg {\n width: ${({ size }) => sizeMappings[size]};\n height: ${({ size }) => sizeMappings[size]};\n vertical-align: middle;\n flex-shrink: 0;\n }\n`;\n\n// Inherit font size and line height from parent\nexport const InheritAnchor = styled(StandardAnchor)<StyledAnchorProps>`\n font-size: inherit;\n line-height: inherit;\n`;\n\nexport const AnchorMapping: Record<\n NonNullable<AnchorProps['variant']>,\n StyledComponent<'a', any, StyledAnchorProps>\n> = {\n base: StandardAnchor,\n unstyled: UnstyledAnchor,\n inherit: InheritAnchor,\n};\n"],"names":[],"mappings":";;;;AASA,MAAM,YAAY,GAA8C;AAC9D,IAAA,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE;AAClB,IAAA,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAClB,IAAA,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI;AACtB,IAAA,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;CACnB;AAED,MAAM,aAAa,GAA8C;AAC/D,IAAA,EAAE,EAAE,WAAW;AACf,IAAA,EAAE,EAAE,YAAY;AAChB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,EAAE,EAAE,WAAW;CAChB;MAEY,cAAc,GAAG,MAAM,CAAC,CAAC;AAEtC;AACa,MAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,qBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,oHAAA,EAShD,CAAC,EAAE,IAAI,EAAE,KAAK,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,gCAAA,EAI5C,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,kBAC/B,KAAK,CAAC,MAAM,CAAC,IAAI,CACV,sBAAA,EAAA,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,gBAAA,EAIhD,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,eAIhC,CAAC,EAAE,IAAI,EAAE,KAAK,YAAY,CAAC,IAAI,CAAC,WAC/B,CAAC,EAAE,IAAI,EAAE,KAAK,YAAY,CAAC,IAAI,CAAC;AAM9C;MACa,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,oBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,sCAAA;AAKtC,MAAA,aAAa,GAGtB;AACF,IAAA,IAAI,EAAE,cAAc;AACpB,IAAA,QAAQ,EAAE,cAAc;AACxB,IAAA,OAAO,EAAE,aAAa;;;;;"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var colors = require('../../../theme/modules/colors.cjs');
|
|
5
|
-
var AttentionIcon = require('../../../icons/design-system/components/AttentionIcon.cjs');
|
|
6
|
-
var InfoIcon = require('../../../icons/design-system/components/InfoIcon.cjs');
|
|
7
|
-
var MergeIcon = require('../../../icons/design-system/components/MergeIcon.cjs');
|
|
8
|
-
var SuccessIcon = require('../../../icons/design-system/components/SuccessIcon.cjs');
|
|
9
|
-
var WarningOutlineIcon = require('../../../icons/design-system/components/WarningOutlineIcon.cjs');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
|
|
15
|
-
const ToastTypeConfig = {
|
|
16
|
-
info: {
|
|
17
|
-
accentColor: colors.colors.secondary.blue.base,
|
|
18
|
-
icon: React__default.default.createElement(InfoIcon.ReactComponent, null),
|
|
19
|
-
},
|
|
20
|
-
success: {
|
|
21
|
-
accentColor: colors.colors.secondary.green.base,
|
|
22
|
-
icon: React__default.default.createElement(SuccessIcon.ReactComponent, null),
|
|
23
|
-
},
|
|
24
|
-
error: {
|
|
25
|
-
accentColor: colors.colors.secondary.red.base,
|
|
26
|
-
icon: React__default.default.createElement(AttentionIcon.ReactComponent, null),
|
|
27
|
-
},
|
|
28
|
-
warning: {
|
|
29
|
-
accentColor: colors.colors.secondary.orange.base,
|
|
30
|
-
icon: React__default.default.createElement(WarningOutlineIcon.ReactComponent, null),
|
|
31
|
-
},
|
|
32
|
-
merge: {
|
|
33
|
-
accentColor: colors.colors.secondary.purple.base,
|
|
34
|
-
icon: React__default.default.createElement(MergeIcon.ReactComponent, null),
|
|
35
|
-
},
|
|
36
|
-
custom: {
|
|
37
|
-
accentColor: colors.colors.secondary.blue.base,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
exports.ToastTypeConfig = ToastTypeConfig;
|
|
42
|
-
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs","sources":["../../../../src/components/ToastsLayout/components/constants.tsx"],"sourcesContent":["import React from 'react';\n\nimport { colors } from 'Theme/modules/colors';\nimport { ToastType } from '../types';\nimport {\n SuccessIcon,\n InfoIcon,\n AttentionIcon,\n MergeIcon,\n WarningOutlineIcon,\n} from '../../../icons';\n\nexport const ToastTypeConfig: ToastType = {\n info: {\n accentColor: colors.secondary.blue.base,\n icon: <InfoIcon />,\n },\n success: {\n accentColor: colors.secondary.green.base,\n icon: <SuccessIcon />,\n },\n error: {\n accentColor: colors.secondary.red.base,\n icon: <AttentionIcon />,\n },\n warning: {\n accentColor: colors.secondary.orange.base,\n icon: <WarningOutlineIcon />,\n },\n merge: {\n accentColor: colors.secondary.purple.base,\n icon: <MergeIcon />,\n },\n custom: {\n accentColor: colors.secondary.blue.base,\n },\n};\n"],"names":["colors","React","InfoIcon","SuccessIcon","AttentionIcon","WarningOutlineIcon","MergeIcon"],"mappings":";;;;;;;;;;;;;;AAYa,MAAA,eAAe,GAAc;AACxC,IAAA,IAAI,EAAE;AACJ,QAAA,WAAW,EAAEA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI;QACvC,IAAI,EAAEC,sBAAC,CAAA,aAAA,CAAAC,uBAAQ,EAAG,IAAA,CAAA;AACnB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAEF,aAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI;QACxC,IAAI,EAAEC,sBAAC,CAAA,aAAA,CAAAE,0BAAW,EAAG,IAAA,CAAA;AACtB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,WAAW,EAAEH,aAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI;QACtC,IAAI,EAAEC,sBAAC,CAAA,aAAA,CAAAG,4BAAa,EAAG,IAAA,CAAA;AACxB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAEJ,aAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI;QACzC,IAAI,EAAEC,sBAAC,CAAA,aAAA,CAAAI,iCAAkB,EAAG,IAAA,CAAA;AAC7B,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,WAAW,EAAEL,aAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI;QACzC,IAAI,EAAEC,sBAAC,CAAA,aAAA,CAAAK,wBAAS,EAAG,IAAA,CAAA;AACpB,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,WAAW,EAAEN,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI;AACxC,KAAA;;;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { colors } from '../../../theme/modules/colors.js';
|
|
3
|
-
import { ReactComponent as AttentionIcon } from '../../../icons/design-system/components/AttentionIcon.js';
|
|
4
|
-
import { ReactComponent as InfoIcon } from '../../../icons/design-system/components/InfoIcon.js';
|
|
5
|
-
import { ReactComponent as MergeIcon } from '../../../icons/design-system/components/MergeIcon.js';
|
|
6
|
-
import { ReactComponent as SuccessIcon } from '../../../icons/design-system/components/SuccessIcon.js';
|
|
7
|
-
import { ReactComponent as WarningOutlineIcon } from '../../../icons/design-system/components/WarningOutlineIcon.js';
|
|
8
|
-
|
|
9
|
-
const ToastTypeConfig = {
|
|
10
|
-
info: {
|
|
11
|
-
accentColor: colors.secondary.blue.base,
|
|
12
|
-
icon: React__default.createElement(InfoIcon, null),
|
|
13
|
-
},
|
|
14
|
-
success: {
|
|
15
|
-
accentColor: colors.secondary.green.base,
|
|
16
|
-
icon: React__default.createElement(SuccessIcon, null),
|
|
17
|
-
},
|
|
18
|
-
error: {
|
|
19
|
-
accentColor: colors.secondary.red.base,
|
|
20
|
-
icon: React__default.createElement(AttentionIcon, null),
|
|
21
|
-
},
|
|
22
|
-
warning: {
|
|
23
|
-
accentColor: colors.secondary.orange.base,
|
|
24
|
-
icon: React__default.createElement(WarningOutlineIcon, null),
|
|
25
|
-
},
|
|
26
|
-
merge: {
|
|
27
|
-
accentColor: colors.secondary.purple.base,
|
|
28
|
-
icon: React__default.createElement(MergeIcon, null),
|
|
29
|
-
},
|
|
30
|
-
custom: {
|
|
31
|
-
accentColor: colors.secondary.blue.base,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export { ToastTypeConfig };
|
|
36
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../src/components/ToastsLayout/components/constants.tsx"],"sourcesContent":["import React from 'react';\n\nimport { colors } from 'Theme/modules/colors';\nimport { ToastType } from '../types';\nimport {\n SuccessIcon,\n InfoIcon,\n AttentionIcon,\n MergeIcon,\n WarningOutlineIcon,\n} from '../../../icons';\n\nexport const ToastTypeConfig: ToastType = {\n info: {\n accentColor: colors.secondary.blue.base,\n icon: <InfoIcon />,\n },\n success: {\n accentColor: colors.secondary.green.base,\n icon: <SuccessIcon />,\n },\n error: {\n accentColor: colors.secondary.red.base,\n icon: <AttentionIcon />,\n },\n warning: {\n accentColor: colors.secondary.orange.base,\n icon: <WarningOutlineIcon />,\n },\n merge: {\n accentColor: colors.secondary.purple.base,\n icon: <MergeIcon />,\n },\n custom: {\n accentColor: colors.secondary.blue.base,\n },\n};\n"],"names":["React"],"mappings":";;;;;;;;AAYa,MAAA,eAAe,GAAc;AACxC,IAAA,IAAI,EAAE;AACJ,QAAA,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI;QACvC,IAAI,EAAEA,cAAC,CAAA,aAAA,CAAA,QAAQ,EAAG,IAAA,CAAA;AACnB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI;QACxC,IAAI,EAAEA,cAAC,CAAA,aAAA,CAAA,WAAW,EAAG,IAAA,CAAA;AACtB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI;QACtC,IAAI,EAAEA,cAAC,CAAA,aAAA,CAAA,aAAa,EAAG,IAAA,CAAA;AACxB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI;QACzC,IAAI,EAAEA,cAAC,CAAA,aAAA,CAAA,kBAAkB,EAAG,IAAA,CAAA;AAC7B,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI;QACzC,IAAI,EAAEA,cAAC,CAAA,aAAA,CAAA,SAAS,EAAG,IAAA,CAAA;AACpB,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI;AACxC,KAAA;;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var ___$insertStyle = require('../../../_virtual/____insertStyle.cjs');
|
|
4
|
-
|
|
5
|
-
___$insertStyle("._toastContainer_fb3uj_1 {\n background-color: var(--colors-neutral-ink-dark);\n padding: var(--sizes-3);\n box-shadow: var(--shadows-md);\n border-radius: var(--radius-base);\n pointer-events: auto;\n z-index: 40;\n min-width: var(--toast-min-width, 50vw);\n max-width: 80vw;\n}\n\nbutton._toastCloseButton_fb3uj_12:hover {\n background-color: var(--colors-neutral-ink-light);\n}\nbutton._toastCloseButton_fb3uj_12:active {\n background-color: var(--colors-neutral-ink-lightest);\n}\n\n._iconWrapper_fb3uj_19 {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 40px;\n width: 40px;\n border-radius: var(--radius-base);\n background-color: var(--toast-status-color, var(--colors-secondary-blue-base));\n color: #fff;\n}\n._iconWrapper_fb3uj_19 svg {\n width: var(--sizes-md);\n height: var(--sizes-md);\n}\n\np._toastText_fb3uj_35 {\n color: #fff;\n}");
|
|
6
|
-
var styles = {"toastContainer":"_toastContainer_fb3uj_1","toastCloseButton":"_toastCloseButton_fb3uj_12","iconWrapper":"_iconWrapper_fb3uj_19","toastText":"_toastText_fb3uj_35"};
|
|
7
|
-
|
|
8
|
-
module.exports = styles;
|
|
9
|
-
//# sourceMappingURL=toast.module.scss.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toast.module.scss.cjs","sources":["../../../../src/components/ToastsLayout/components/toast.module.scss"],"sourcesContent":[".toastContainer {\n background-color: var(--colors-neutral-ink-dark);\n padding: var(--sizes-3);\n box-shadow: var(--shadows-md);\n border-radius: var(--radius-base);\n pointer-events: auto;\n z-index: 40;\n min-width: var(--toast-min-width, 50vw);\n max-width: 80vw;\n}\n\nbutton.toastCloseButton {\n &:hover {\n background-color: var(--colors-neutral-ink-light);\n }\n &:active {\n background-color: var(--colors-neutral-ink-lightest);\n }\n}\n\n.iconWrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 40px;\n width: 40px;\n border-radius: var(--radius-base);\n background-color: var(--toast-status-color, var(--colors-secondary-blue-base));\n color: #fff;\n\n svg {\n width: var(--sizes-md);\n height: var(--sizes-md);\n }\n}\n\np.toastText {\n color: #fff;\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,45BAAA;AACA,aAAA,CAAA,gBAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,aAAA,CAAA,uBAAA,CAAA,WAAA,CAAA,qBAAA;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import insertStyle from '../../../_virtual/____insertStyle.js';
|
|
2
|
-
|
|
3
|
-
insertStyle("._toastContainer_fb3uj_1 {\n background-color: var(--colors-neutral-ink-dark);\n padding: var(--sizes-3);\n box-shadow: var(--shadows-md);\n border-radius: var(--radius-base);\n pointer-events: auto;\n z-index: 40;\n min-width: var(--toast-min-width, 50vw);\n max-width: 80vw;\n}\n\nbutton._toastCloseButton_fb3uj_12:hover {\n background-color: var(--colors-neutral-ink-light);\n}\nbutton._toastCloseButton_fb3uj_12:active {\n background-color: var(--colors-neutral-ink-lightest);\n}\n\n._iconWrapper_fb3uj_19 {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 40px;\n width: 40px;\n border-radius: var(--radius-base);\n background-color: var(--toast-status-color, var(--colors-secondary-blue-base));\n color: #fff;\n}\n._iconWrapper_fb3uj_19 svg {\n width: var(--sizes-md);\n height: var(--sizes-md);\n}\n\np._toastText_fb3uj_35 {\n color: #fff;\n}");
|
|
4
|
-
var styles = {"toastContainer":"_toastContainer_fb3uj_1","toastCloseButton":"_toastCloseButton_fb3uj_12","iconWrapper":"_iconWrapper_fb3uj_19","toastText":"_toastText_fb3uj_35"};
|
|
5
|
-
|
|
6
|
-
export { styles as default };
|
|
7
|
-
//# sourceMappingURL=toast.module.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toast.module.scss.js","sources":["../../../../src/components/ToastsLayout/components/toast.module.scss"],"sourcesContent":[".toastContainer {\n background-color: var(--colors-neutral-ink-dark);\n padding: var(--sizes-3);\n box-shadow: var(--shadows-md);\n border-radius: var(--radius-base);\n pointer-events: auto;\n z-index: 40;\n min-width: var(--toast-min-width, 50vw);\n max-width: 80vw;\n}\n\nbutton.toastCloseButton {\n &:hover {\n background-color: var(--colors-neutral-ink-light);\n }\n &:active {\n background-color: var(--colors-neutral-ink-lightest);\n }\n}\n\n.iconWrapper {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n height: 40px;\n width: 40px;\n border-radius: var(--radius-base);\n background-color: var(--toast-status-color, var(--colors-secondary-blue-base));\n color: #fff;\n\n svg {\n width: var(--sizes-md);\n height: var(--sizes-md);\n }\n}\n\np.toastText {\n color: #fff;\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,45BAAA;AACA,aAAA,CAAA,gBAAA,CAAA,yBAAA,CAAA,kBAAA,CAAA,4BAAA,CAAA,aAAA,CAAA,uBAAA,CAAA,WAAA,CAAA,qBAAA;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const generateToastClassNames = (prefix) => ({
|
|
4
|
-
container: prefix ? `${prefix}-toast-container` : undefined,
|
|
5
|
-
icon: prefix ? `${prefix}-toast-icon` : undefined,
|
|
6
|
-
closeIcon: prefix ? `${prefix}-toast-close-icon` : undefined,
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
exports.generateToastClassNames = generateToastClassNames;
|
|
10
|
-
//# sourceMappingURL=utils.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","sources":["../../../../src/components/ToastsLayout/components/utils.ts"],"sourcesContent":["import { ClassNamesReturnPayload } from '../types';\n\nexport const generateToastClassNames = (prefix?: string): ClassNamesReturnPayload => ({\n container: prefix ? `${prefix}-toast-container` : undefined,\n icon: prefix ? `${prefix}-toast-icon` : undefined,\n closeIcon: prefix ? `${prefix}-toast-close-icon` : undefined,\n});\n"],"names":[],"mappings":";;MAEa,uBAAuB,GAAG,CAAC,MAAe,MAA+B;IACpF,SAAS,EAAE,MAAM,GAAG,CAAG,EAAA,MAAM,CAAkB,gBAAA,CAAA,GAAG,SAAS;IAC3D,IAAI,EAAE,MAAM,GAAG,CAAG,EAAA,MAAM,CAAa,WAAA,CAAA,GAAG,SAAS;IACjD,SAAS,EAAE,MAAM,GAAG,CAAG,EAAA,MAAM,CAAmB,iBAAA,CAAA,GAAG,SAAS;AAC7D,CAAA;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const generateToastClassNames = (prefix) => ({
|
|
2
|
-
container: prefix ? `${prefix}-toast-container` : undefined,
|
|
3
|
-
icon: prefix ? `${prefix}-toast-icon` : undefined,
|
|
4
|
-
closeIcon: prefix ? `${prefix}-toast-close-icon` : undefined,
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
export { generateToastClassNames };
|
|
8
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../src/components/ToastsLayout/components/utils.ts"],"sourcesContent":["import { ClassNamesReturnPayload } from '../types';\n\nexport const generateToastClassNames = (prefix?: string): ClassNamesReturnPayload => ({\n container: prefix ? `${prefix}-toast-container` : undefined,\n icon: prefix ? `${prefix}-toast-icon` : undefined,\n closeIcon: prefix ? `${prefix}-toast-close-icon` : undefined,\n});\n"],"names":[],"mappings":"MAEa,uBAAuB,GAAG,CAAC,MAAe,MAA+B;IACpF,SAAS,EAAE,MAAM,GAAG,CAAG,EAAA,MAAM,CAAkB,gBAAA,CAAA,GAAG,SAAS;IAC3D,IAAI,EAAE,MAAM,GAAG,CAAG,EAAA,MAAM,CAAa,WAAA,CAAA,GAAG,SAAS;IACjD,SAAS,EAAE,MAAM,GAAG,CAAG,EAAA,MAAM,CAAmB,iBAAA,CAAA,GAAG,SAAS;AAC7D,CAAA;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
|
|
4
|
-
|
|
5
|
-
___$insertStyle("._toastsLayoutContainer_o7rtx_1 {\n position: fixed;\n bottom: var(--sizes-6);\n width: 100%;\n pointer-events: none;\n z-index: var(--layers-tooltip);\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-enter {\n transform: translateY(12px);\n opacity: 0;\n transition: 500ms ease;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-enter-active {\n transform: translateY(0);\n opacity: 1;\n transition: 225ms ease-in-out;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-enter-done {\n opacity: 1;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit {\n transform: translateX(0);\n opacity: 1;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit[data-toast-last=true] {\n transform: translateY(0);\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit-active {\n transform: translateX(12px);\n opacity: 0;\n transition: 225ms ease-in-out;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit-active[data-toast-last=true] {\n transform: translateY(12px);\n}");
|
|
6
|
-
var styles = {"toastsLayoutContainer":"_toastsLayoutContainer_o7rtx_1"};
|
|
7
|
-
|
|
8
|
-
module.exports = styles;
|
|
9
|
-
//# sourceMappingURL=toastsLayout.module.scss.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toastsLayout.module.scss.cjs","sources":["../../../src/components/ToastsLayout/toastsLayout.module.scss"],"sourcesContent":[".toastsLayoutContainer {\n position: fixed;\n bottom: var(--sizes-6);\n width: 100%;\n pointer-events: none;\n z-index: var(--layers-tooltip);\n\n // The CSSTransition components adds non-scoped class names for transition\n // phases. :global is used to target these class names without the default\n // locally scoped id suffix appended by CSS modules.\n :global(.veeqo-components-toast-enter) {\n transform: translateY(12px);\n opacity: 0;\n transition: 500ms ease;\n }\n\n :global(.veeqo-components-toast-enter-active) {\n transform: translateY(0);\n opacity: 1;\n transition: 225ms ease-in-out;\n }\n :global(.veeqo-components-toast-enter-done) {\n opacity: 1;\n }\n\n :global(.veeqo-components-toast-exit) {\n transform: translateX(0);\n opacity: 1;\n\n &[data-toast-last='true'] {\n transform: translateY(0);\n }\n }\n\n :global(.veeqo-components-toast-exit-active) {\n transform: translateX(12px);\n opacity: 0;\n transition: 225ms ease-in-out;\n\n &[data-toast-last='true'] {\n transform: translateY(12px);\n }\n }\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,giCAAA;AACA,aAAA,CAAA,uBAAA,CAAA,gCAAA;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import insertStyle from '../../_virtual/____insertStyle.js';
|
|
2
|
-
|
|
3
|
-
insertStyle("._toastsLayoutContainer_o7rtx_1 {\n position: fixed;\n bottom: var(--sizes-6);\n width: 100%;\n pointer-events: none;\n z-index: var(--layers-tooltip);\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-enter {\n transform: translateY(12px);\n opacity: 0;\n transition: 500ms ease;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-enter-active {\n transform: translateY(0);\n opacity: 1;\n transition: 225ms ease-in-out;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-enter-done {\n opacity: 1;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit {\n transform: translateX(0);\n opacity: 1;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit[data-toast-last=true] {\n transform: translateY(0);\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit-active {\n transform: translateX(12px);\n opacity: 0;\n transition: 225ms ease-in-out;\n}\n._toastsLayoutContainer_o7rtx_1 .veeqo-components-toast-exit-active[data-toast-last=true] {\n transform: translateY(12px);\n}");
|
|
4
|
-
var styles = {"toastsLayoutContainer":"_toastsLayoutContainer_o7rtx_1"};
|
|
5
|
-
|
|
6
|
-
export { styles as default };
|
|
7
|
-
//# sourceMappingURL=toastsLayout.module.scss.js.map
|