@veracity/vui 2.15.4 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/avatar/avatar.js +1 -1
- package/dist/cjs/button/button.d.ts.map +1 -1
- package/dist/cjs/button/button.js +0 -6
- package/dist/cjs/button/theme.d.ts.map +1 -1
- package/dist/cjs/core/vuiProvider/vuiProvider.js +4 -4
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/menu/menuList.d.ts.map +1 -1
- package/dist/cjs/menu/menuList.js +1 -0
- package/dist/cjs/popover/{popoverStyle.d.ts → globalStyle.d.ts} +1 -1
- package/dist/cjs/popover/globalStyle.d.ts.map +1 -0
- package/dist/cjs/popover/index.d.ts +0 -1
- package/dist/cjs/popover/index.d.ts.map +1 -1
- package/dist/cjs/popover/index.js +1 -3
- package/dist/cjs/popover/popoverContent.js +1 -1
- package/dist/cjs/stepperIndicator/index.d.ts +4 -0
- package/dist/cjs/stepperIndicator/index.d.ts.map +1 -0
- package/dist/cjs/stepperIndicator/index.js +24 -0
- package/dist/cjs/stepperIndicator/stepperIndicator.d.ts +7 -0
- package/dist/cjs/stepperIndicator/stepperIndicator.d.ts.map +1 -0
- package/dist/cjs/stepperIndicator/stepperIndicator.js +46 -0
- package/dist/cjs/stepperIndicator/stepperIndicatorTypes.d.ts +10 -0
- package/dist/cjs/stepperIndicator/stepperIndicatorTypes.d.ts.map +1 -0
- package/dist/cjs/stepperIndicator/stepperIndicatorTypes.js +2 -0
- package/dist/cjs/stepperIndicator/theme.d.ts +64 -0
- package/dist/cjs/stepperIndicator/theme.d.ts.map +1 -0
- package/dist/cjs/stepperIndicator/theme.js +68 -0
- package/dist/cjs/stepperVertical/consts.d.ts +18 -0
- package/dist/cjs/stepperVertical/consts.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/consts.js +20 -0
- package/dist/cjs/stepperVertical/context.d.ts +5 -0
- package/dist/cjs/stepperVertical/context.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/context.js +7 -0
- package/dist/cjs/stepperVertical/index.d.ts +5 -0
- package/dist/cjs/stepperVertical/index.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/index.js +25 -0
- package/dist/cjs/stepperVertical/stepVertical.d.ts +8 -0
- package/dist/cjs/stepperVertical/stepVertical.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/stepVertical.js +37 -0
- package/dist/cjs/stepperVertical/stepVerticalTail.d.ts +7 -0
- package/dist/cjs/stepperVertical/stepVerticalTail.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/stepVerticalTail.js +31 -0
- package/dist/cjs/stepperVertical/stepVerticalTitle.d.ts +7 -0
- package/dist/cjs/stepperVertical/stepVerticalTitle.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/stepVerticalTitle.js +31 -0
- package/dist/cjs/stepperVertical/stepperVertical.d.ts +8 -0
- package/dist/cjs/stepperVertical/stepperVertical.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/stepperVertical.js +57 -0
- package/dist/cjs/stepperVertical/stepperVerticalBase.d.ts +3 -0
- package/dist/cjs/stepperVertical/stepperVerticalBase.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/stepperVerticalBase.js +13 -0
- package/dist/cjs/stepperVertical/stepperVerticalTypes.d.ts +28 -0
- package/dist/cjs/stepperVertical/stepperVerticalTypes.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/stepperVerticalTypes.js +2 -0
- package/dist/cjs/stepperVertical/theme.d.ts +14 -0
- package/dist/cjs/stepperVertical/theme.d.ts.map +1 -0
- package/dist/cjs/stepperVertical/theme.js +19 -0
- package/dist/cjs/tabs/consts.d.ts +1 -1
- package/dist/cjs/tabs/consts.d.ts.map +1 -1
- package/dist/cjs/tabs/consts.js +2 -2
- package/dist/cjs/tabs/tabsNavBar.js +1 -1
- package/dist/cjs/tabs/theme.js +1 -1
- package/dist/cjs/theme/components.d.ts +74 -0
- package/dist/cjs/theme/components.d.ts.map +1 -1
- package/dist/cjs/theme/components.js +18 -14
- package/dist/cjs/theme/defaultTheme.d.ts +74 -0
- package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
- package/dist/esm/avatar/avatar.js +1 -1
- package/dist/esm/button/button.d.ts.map +1 -1
- package/dist/esm/button/button.js +0 -6
- package/dist/esm/button/theme.d.ts.map +1 -1
- package/dist/esm/core/vuiProvider/vuiProvider.js +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/menu/menuList.d.ts.map +1 -1
- package/dist/esm/menu/menuList.js +1 -0
- package/dist/esm/popover/{popoverStyle.d.ts → globalStyle.d.ts} +1 -1
- package/dist/esm/popover/globalStyle.d.ts.map +1 -0
- package/dist/esm/popover/index.d.ts +0 -1
- package/dist/esm/popover/index.d.ts.map +1 -1
- package/dist/esm/popover/index.js +0 -1
- package/dist/esm/popover/popoverContent.js +1 -1
- package/dist/esm/stepperIndicator/index.d.ts +4 -0
- package/dist/esm/stepperIndicator/index.d.ts.map +1 -0
- package/dist/esm/stepperIndicator/index.js +3 -0
- package/dist/esm/stepperIndicator/stepperIndicator.d.ts +7 -0
- package/dist/esm/stepperIndicator/stepperIndicator.d.ts.map +1 -0
- package/dist/esm/stepperIndicator/stepperIndicator.js +29 -0
- package/dist/esm/stepperIndicator/stepperIndicatorTypes.d.ts +10 -0
- package/dist/esm/stepperIndicator/stepperIndicatorTypes.d.ts.map +1 -0
- package/dist/esm/stepperIndicator/stepperIndicatorTypes.js +1 -0
- package/dist/esm/stepperIndicator/theme.d.ts +64 -0
- package/dist/esm/stepperIndicator/theme.d.ts.map +1 -0
- package/dist/esm/stepperIndicator/theme.js +66 -0
- package/dist/esm/stepperVertical/consts.d.ts +18 -0
- package/dist/esm/stepperVertical/consts.d.ts.map +1 -0
- package/dist/esm/stepperVertical/consts.js +17 -0
- package/dist/esm/stepperVertical/context.d.ts +5 -0
- package/dist/esm/stepperVertical/context.d.ts.map +1 -0
- package/dist/esm/stepperVertical/context.js +3 -0
- package/dist/esm/stepperVertical/index.d.ts +5 -0
- package/dist/esm/stepperVertical/index.d.ts.map +1 -0
- package/dist/esm/stepperVertical/index.js +4 -0
- package/dist/esm/stepperVertical/stepVertical.d.ts +8 -0
- package/dist/esm/stepperVertical/stepVertical.d.ts.map +1 -0
- package/dist/esm/stepperVertical/stepVertical.js +31 -0
- package/dist/esm/stepperVertical/stepVerticalTail.d.ts +7 -0
- package/dist/esm/stepperVertical/stepVerticalTail.d.ts.map +1 -0
- package/dist/esm/stepperVertical/stepVerticalTail.js +14 -0
- package/dist/esm/stepperVertical/stepVerticalTitle.d.ts +7 -0
- package/dist/esm/stepperVertical/stepVerticalTitle.d.ts.map +1 -0
- package/dist/esm/stepperVertical/stepVerticalTitle.js +14 -0
- package/dist/esm/stepperVertical/stepperVertical.d.ts +8 -0
- package/dist/esm/stepperVertical/stepperVertical.d.ts.map +1 -0
- package/dist/esm/stepperVertical/stepperVertical.js +17 -0
- package/dist/esm/stepperVertical/stepperVerticalBase.d.ts +3 -0
- package/dist/esm/stepperVertical/stepperVerticalBase.d.ts.map +1 -0
- package/dist/esm/stepperVertical/stepperVerticalBase.js +11 -0
- package/dist/esm/stepperVertical/stepperVerticalTypes.d.ts +28 -0
- package/dist/esm/stepperVertical/stepperVerticalTypes.d.ts.map +1 -0
- package/dist/esm/stepperVertical/stepperVerticalTypes.js +1 -0
- package/dist/esm/stepperVertical/theme.d.ts +14 -0
- package/dist/esm/stepperVertical/theme.d.ts.map +1 -0
- package/dist/esm/stepperVertical/theme.js +17 -0
- package/dist/esm/tabs/consts.d.ts +1 -1
- package/dist/esm/tabs/consts.d.ts.map +1 -1
- package/dist/esm/tabs/consts.js +1 -1
- package/dist/esm/tabs/tabsNavBar.js +2 -2
- package/dist/esm/tabs/theme.js +1 -1
- package/dist/esm/theme/components.d.ts +74 -0
- package/dist/esm/theme/components.d.ts.map +1 -1
- package/dist/esm/theme/components.js +4 -0
- package/dist/esm/theme/defaultTheme.d.ts +74 -0
- package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/avatar/avatar.tsx +1 -1
- package/src/button/button.tsx +0 -4
- package/src/button/theme.ts +0 -10
- package/src/core/vuiProvider/vuiProvider.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/menu/menuList.tsx +2 -0
- package/src/popover/index.ts +0 -1
- package/src/popover/popoverContent.tsx +1 -1
- package/src/stepperIndicator/index.ts +3 -0
- package/src/stepperIndicator/stepperIndicator.tsx +60 -0
- package/src/stepperIndicator/stepperIndicatorTypes.ts +12 -0
- package/src/stepperIndicator/theme.ts +70 -0
- package/src/stepperVertical/consts.ts +21 -0
- package/src/stepperVertical/context.ts +5 -0
- package/src/stepperVertical/index.ts +4 -0
- package/src/stepperVertical/stepVertical.tsx +52 -0
- package/src/stepperVertical/stepVerticalTail.tsx +30 -0
- package/src/stepperVertical/stepVerticalTitle.tsx +31 -0
- package/src/stepperVertical/stepperVertical.tsx +29 -0
- package/src/stepperVertical/stepperVerticalBase.ts +13 -0
- package/src/stepperVertical/stepperVerticalTypes.ts +34 -0
- package/src/stepperVertical/theme.ts +22 -0
- package/src/tabs/consts.ts +1 -1
- package/src/tabs/tabsNavBar.tsx +2 -2
- package/src/tabs/theme.ts +1 -1
- package/src/theme/components.ts +4 -0
- package/dist/cjs/popover/popoverStyle.d.ts.map +0 -1
- package/dist/esm/popover/popoverStyle.d.ts.map +0 -1
- /package/dist/cjs/popover/{popoverStyle.js → globalStyle.js} +0 -0
- /package/dist/esm/popover/{popoverStyle.js → globalStyle.js} +0 -0
- /package/src/popover/{popoverStyle.ts → globalStyle.ts} +0 -0
|
@@ -12,7 +12,7 @@ export const PopoverContent = vui((props, ref) => {
|
|
|
12
12
|
const shouldRenderChildren = isLazy ? isOpen : true;
|
|
13
13
|
return (
|
|
14
14
|
// Wrapping div prevents an error thrown when conditionally unmounting this component
|
|
15
|
-
React.createElement(v.div, { ring: 0 },
|
|
15
|
+
React.createElement(v.div, { className: "vui-popoverContainer", ring: 0 },
|
|
16
16
|
React.createElement(Box, { bg: "white", borderRadius: "md", boxShadow: "2", className: cs('vui-popoverContent', className), overflowY: "auto", ref: mergeRefs(setPopper, ref), ring: 0, ...styles.content, ...rest }, shouldRenderChildren ? children : null)));
|
|
17
17
|
});
|
|
18
18
|
PopoverContent.displayName = 'PopoverContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StepperIndicatorProps } from './stepperIndicatorTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Implements stepper indicator **
|
|
4
|
+
*/
|
|
5
|
+
export declare const StepperIndicator: import("../core").VuiComponent<"div", StepperIndicatorProps>;
|
|
6
|
+
export default StepperIndicator;
|
|
7
|
+
//# sourceMappingURL=stepperIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepperIndicator.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/stepperIndicator.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,8DAmC3B,CAAA;AAIF,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Box from '../box';
|
|
3
|
+
import Button from '../button';
|
|
4
|
+
import { useStyleConfig, vui } from '../core';
|
|
5
|
+
import Icon from '../icon';
|
|
6
|
+
import T from '../t';
|
|
7
|
+
import { cs } from '../utils';
|
|
8
|
+
const Content = ({ number, variant, size }) => {
|
|
9
|
+
if (typeof number === 'undefined')
|
|
10
|
+
return null;
|
|
11
|
+
if (variant === 'completed')
|
|
12
|
+
return React.createElement(Icon, { name: "falCheck", size: size });
|
|
13
|
+
if (variant === 'error')
|
|
14
|
+
return React.createElement(Icon, { name: "falTimes", size: size });
|
|
15
|
+
return React.createElement(T, { fontWeight: 600 }, number);
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Implements stepper indicator **
|
|
19
|
+
*/
|
|
20
|
+
export const StepperIndicator = vui((props, ref) => {
|
|
21
|
+
const { icon, number, className, size, variant, ...rest } = props;
|
|
22
|
+
const styles = useStyleConfig('StepperIndicator', props);
|
|
23
|
+
return icon ? (React.createElement(Button, { className: cs('vui-stepperIndicator', className), icon: icon, ref: ref, ...styles.icon, ...rest, isRound: true, minW: "auto", pointerEvents: "none", size: size })) : (React.createElement(Button, { className: cs('vui-stepperIndicator', className), ref: ref, ...styles.button, ...rest, isRound: true, minW: "auto", outline: "6px solid white", pointerEvents: "none", position: "relative", size: size },
|
|
24
|
+
React.createElement(Box, { mx: 0.5, position: "relative" }),
|
|
25
|
+
React.createElement(Box, { fontSize: `${size === 'md' ? 16 : 13}px`, mx: 0.5, position: "absolute" },
|
|
26
|
+
React.createElement(Content, { number: number, size: size, variant: variant }))));
|
|
27
|
+
});
|
|
28
|
+
StepperIndicator.displayName = 'StepperIndicator';
|
|
29
|
+
export default StepperIndicator;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconProp } from '../icon';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export type StepperIndicatorProps = SystemProps & ThemingProps<'StepperIndicator'> & {
|
|
5
|
+
icon?: IconProp;
|
|
6
|
+
className?: string;
|
|
7
|
+
number?: number;
|
|
8
|
+
};
|
|
9
|
+
export type StepperIndicatorVariant = 'active' | 'completed' | 'optional' | 'pending' | 'error';
|
|
10
|
+
//# sourceMappingURL=stepperIndicatorTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepperIndicatorTypes.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/stepperIndicatorTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAC7C,YAAY,CAAC,kBAAkB,CAAC,GAAG;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle: {};
|
|
3
|
+
defaultProps: {
|
|
4
|
+
size: string;
|
|
5
|
+
variant: string;
|
|
6
|
+
};
|
|
7
|
+
sizes: {
|
|
8
|
+
sm: {};
|
|
9
|
+
md: {};
|
|
10
|
+
};
|
|
11
|
+
variants: {
|
|
12
|
+
active: {
|
|
13
|
+
button: {
|
|
14
|
+
bg: string;
|
|
15
|
+
};
|
|
16
|
+
icon: {
|
|
17
|
+
bg: string;
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
completed: {
|
|
22
|
+
button: {
|
|
23
|
+
bg: string;
|
|
24
|
+
};
|
|
25
|
+
icon: {
|
|
26
|
+
bg: string;
|
|
27
|
+
color: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
optional: {
|
|
31
|
+
button: {
|
|
32
|
+
bg: string;
|
|
33
|
+
borderColor: string;
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
icon: {
|
|
37
|
+
bg: string;
|
|
38
|
+
color: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
pending: {
|
|
42
|
+
button: {
|
|
43
|
+
bg: string;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
icon: {
|
|
47
|
+
bg: string;
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
error: {
|
|
52
|
+
button: {
|
|
53
|
+
bg: string;
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
icon: {
|
|
57
|
+
bg: string;
|
|
58
|
+
color: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
64
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,wBAKC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const baseStyle = {};
|
|
2
|
+
const defaultProps = {
|
|
3
|
+
size: 'md',
|
|
4
|
+
variant: 'active'
|
|
5
|
+
};
|
|
6
|
+
const sizes = {
|
|
7
|
+
sm: {},
|
|
8
|
+
md: {}
|
|
9
|
+
};
|
|
10
|
+
const variants = {
|
|
11
|
+
active: {
|
|
12
|
+
button: {
|
|
13
|
+
bg: 'seaBlue.main'
|
|
14
|
+
},
|
|
15
|
+
icon: {
|
|
16
|
+
bg: 'white',
|
|
17
|
+
color: 'seaBlue.main'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
completed: {
|
|
21
|
+
button: {
|
|
22
|
+
bg: 'landGreen.41'
|
|
23
|
+
},
|
|
24
|
+
icon: {
|
|
25
|
+
bg: 'white',
|
|
26
|
+
color: 'landGreen.41'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
optional: {
|
|
30
|
+
button: {
|
|
31
|
+
bg: 'white',
|
|
32
|
+
borderColor: 'seaBlue.45',
|
|
33
|
+
color: 'seaBlue.45'
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
bg: 'white',
|
|
37
|
+
color: 'seaBlue.45'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
pending: {
|
|
41
|
+
button: {
|
|
42
|
+
bg: 'sandstone.90',
|
|
43
|
+
color: 'sandstone.45'
|
|
44
|
+
},
|
|
45
|
+
icon: {
|
|
46
|
+
bg: 'white',
|
|
47
|
+
color: 'sandstone.45'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
error: {
|
|
51
|
+
button: {
|
|
52
|
+
bg: 'energyRed.45',
|
|
53
|
+
color: 'white'
|
|
54
|
+
},
|
|
55
|
+
icon: {
|
|
56
|
+
bg: 'white',
|
|
57
|
+
color: 'energyRed.45'
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export default {
|
|
62
|
+
baseStyle,
|
|
63
|
+
defaultProps,
|
|
64
|
+
sizes,
|
|
65
|
+
variants
|
|
66
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const variantColor: {
|
|
2
|
+
active: string;
|
|
3
|
+
completed: string;
|
|
4
|
+
optional: string;
|
|
5
|
+
pending: string;
|
|
6
|
+
error: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const titleColor: {
|
|
9
|
+
active: string;
|
|
10
|
+
completed: string;
|
|
11
|
+
optional: string;
|
|
12
|
+
pending: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const boldTitles: string[];
|
|
16
|
+
export declare const stepClassName = "vui-stepVertical";
|
|
17
|
+
export declare const tailClassName: string;
|
|
18
|
+
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAA;AAED,eAAO,MAAM,UAAU,UAAsB,CAAA;AAE7C,eAAO,MAAM,aAAa,qBAAqB,CAAA;AAE/C,eAAO,MAAM,aAAa,QAAyB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const variantColor = {
|
|
2
|
+
active: 'seaBlue.main',
|
|
3
|
+
completed: 'landGreen.41',
|
|
4
|
+
optional: 'seaBlue.45',
|
|
5
|
+
pending: 'sandstone.90',
|
|
6
|
+
error: 'energyRed.main'
|
|
7
|
+
};
|
|
8
|
+
export const titleColor = {
|
|
9
|
+
active: 'sandstone.10',
|
|
10
|
+
completed: 'sandstone.10',
|
|
11
|
+
optional: 'sandstone.10',
|
|
12
|
+
pending: 'sandstone.55',
|
|
13
|
+
error: 'energyRed.main'
|
|
14
|
+
};
|
|
15
|
+
export const boldTitles = ['active', 'error'];
|
|
16
|
+
export const stepClassName = 'vui-stepVertical';
|
|
17
|
+
export const tailClassName = stepClassName + 'Tail';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Dict } from '../utils';
|
|
3
|
+
declare const StepperVerticalProvider: import("react").Provider<Dict<any>>, useStepperVerticalContext: () => Dict<any>;
|
|
4
|
+
export { StepperVerticalProvider, useStepperVerticalContext };
|
|
5
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/context.ts"],"names":[],"mappings":";AAAA,OAAO,EAAiB,IAAI,EAAE,MAAM,UAAU,CAAA;AAE9C,QAAA,MAAO,uBAAuB,uCAAE,yBAAyB,iBAA6C,CAAA;AAEtG,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StepVerticalProps } from './stepperVerticalTypes';
|
|
2
|
+
export declare const StepVerticalBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
3
|
+
/**
|
|
4
|
+
* Implements a vertical step component
|
|
5
|
+
*/
|
|
6
|
+
export declare const StepVertical: import("../core").VuiComponent<"div", StepVerticalProps>;
|
|
7
|
+
export default StepVertical;
|
|
8
|
+
//# sourceMappingURL=stepVertical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepVertical.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/stepVertical.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAI1D,eAAO,MAAM,gBAAgB,+HAI5B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,0DA0BxB,CAAA;AAID,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box } from '../box';
|
|
3
|
+
import { styled, vui } from '../core';
|
|
4
|
+
import { StepperIndicator } from '../stepperIndicator';
|
|
5
|
+
import { cs } from '../utils';
|
|
6
|
+
import { stepClassName } from './consts';
|
|
7
|
+
import { useStepperVerticalContext } from './context';
|
|
8
|
+
import StepVerticalTail from './stepVerticalTail';
|
|
9
|
+
import StepVerticalTitle from './stepVerticalTitle';
|
|
10
|
+
export const StepVerticalBase = styled.divBox `
|
|
11
|
+
display: flex;
|
|
12
|
+
position: relative;
|
|
13
|
+
width: 100%;
|
|
14
|
+
`;
|
|
15
|
+
/**
|
|
16
|
+
* Implements a vertical step component
|
|
17
|
+
*/
|
|
18
|
+
export const StepVertical = vui(({ icon, number, size: propSize = 'md', description, title, className, variant, children }, ref) => {
|
|
19
|
+
const context = useStepperVerticalContext();
|
|
20
|
+
const size = context?.size || propSize;
|
|
21
|
+
return (React.createElement(StepVerticalBase, { className: cs(stepClassName, className), ref: ref },
|
|
22
|
+
React.createElement(StepVerticalTail, { size: size, variant: variant }),
|
|
23
|
+
React.createElement(Box, { flex: `0 0 ${size === 'md' ? 40 : 30}px` },
|
|
24
|
+
React.createElement(StepperIndicator, { icon: icon, number: number, size: size, variant: variant })),
|
|
25
|
+
React.createElement(Box, { flex: "1", flexDirection: "column" },
|
|
26
|
+
!!title && (React.createElement(StepVerticalTitle, { size: size, variant: variant }, title)),
|
|
27
|
+
!!description && (React.createElement(Box, { color: "sandstone.45", fontSize: `${size === 'md' ? 14 : 12}px` }, description)),
|
|
28
|
+
React.createElement(Box, null, children))));
|
|
29
|
+
});
|
|
30
|
+
StepVertical.displayName = 'StepVertical';
|
|
31
|
+
export default StepVertical;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StepVerticalTailProps } from './stepperVerticalTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Implements vertical stepper tail (the vertical line) **
|
|
4
|
+
*/
|
|
5
|
+
export declare const StepVerticalTail: import("../core").VuiComponent<"div", StepVerticalTailProps>;
|
|
6
|
+
export default StepVerticalTail;
|
|
7
|
+
//# sourceMappingURL=stepVerticalTail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepVerticalTail.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/stepVerticalTail.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,gBAAgB,8DAc3B,CAAA;AAIF,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box } from '../box';
|
|
3
|
+
import { vui } from '../core';
|
|
4
|
+
import { cs } from '../utils';
|
|
5
|
+
import { tailClassName, variantColor } from './consts';
|
|
6
|
+
/**
|
|
7
|
+
* Implements vertical stepper tail (the vertical line) **
|
|
8
|
+
*/
|
|
9
|
+
export const StepVerticalTail = vui((props, ref) => {
|
|
10
|
+
const { children, className, size = 'md', variant = 'active', ...rest } = props;
|
|
11
|
+
return (React.createElement(Box, { borderRight: `1px solid ${variantColor[variant]}`, className: cs(tailClassName), maxW: "16px", minH: "100%", position: "absolute", ref: ref, w: `${size === 'md' ? 16 : 12}px`, ...rest }));
|
|
12
|
+
});
|
|
13
|
+
StepVerticalTail.displayName = 'StepVerticalTail';
|
|
14
|
+
export default StepVerticalTail;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StepVerticalTitleProps } from './stepperVerticalTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Implements vertical stepper tail (the vertical line) **
|
|
4
|
+
*/
|
|
5
|
+
export declare const StepVerticalTitle: import("../core").VuiComponent<"div", StepVerticalTitleProps>;
|
|
6
|
+
export default StepVerticalTitle;
|
|
7
|
+
//# sourceMappingURL=stepVerticalTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepVerticalTitle.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/stepVerticalTitle.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAE/D;;GAEG;AACH,eAAO,MAAM,iBAAiB,+DAe5B,CAAA;AAIF,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box } from '../box';
|
|
3
|
+
import { vui } from '../core';
|
|
4
|
+
import { cs } from '../utils';
|
|
5
|
+
import { boldTitles, stepClassName, titleColor } from './consts';
|
|
6
|
+
/**
|
|
7
|
+
* Implements vertical stepper tail (the vertical line) **
|
|
8
|
+
*/
|
|
9
|
+
export const StepVerticalTitle = vui((props, ref) => {
|
|
10
|
+
const { children, className, size = 'md', variant = 'active', ...rest } = props;
|
|
11
|
+
return (React.createElement(Box, { className: cs(stepClassName + 'Title'), color: titleColor[variant], fontSize: `${size === 'md' ? 16 : 14}px`, fontWeight: boldTitles.includes(variant) ? 600 : undefined, pt: `${size === 'md' ? 4 : 2}px`, whiteSpace: "nowrap", ...rest }, children));
|
|
12
|
+
});
|
|
13
|
+
StepVerticalTitle.displayName = 'StepVerticalTitle';
|
|
14
|
+
export default StepVerticalTitle;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import StepperVerticalBase from './stepperVerticalBase';
|
|
2
|
+
import { StepperVerticalProps } from './stepperVerticalTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Implements vertical stepper **
|
|
5
|
+
*/
|
|
6
|
+
export declare const StepperVertical: import("../core").VuiComponent<"div", StepperVerticalProps>;
|
|
7
|
+
export default StepperVerticalBase;
|
|
8
|
+
//# sourceMappingURL=stepperVertical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepperVertical.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/stepperVertical.tsx"],"names":[],"mappings":"AAKA,OAAO,mBAAmB,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,eAAe,6DAa1B,CAAA;AAIF,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { useStyleConfig, vui } from '../core';
|
|
3
|
+
import { cs, filterUndefined } from '../utils';
|
|
4
|
+
import { StepperVerticalProvider } from './context';
|
|
5
|
+
import StepperVerticalBase from './stepperVerticalBase';
|
|
6
|
+
/**
|
|
7
|
+
* Implements vertical stepper **
|
|
8
|
+
*/
|
|
9
|
+
export const StepperVertical = vui((props, ref) => {
|
|
10
|
+
const { children, className, size, ...rest } = props;
|
|
11
|
+
const styles = useStyleConfig('StepperVertical', props);
|
|
12
|
+
const context = useMemo(() => filterUndefined({ size }), [size]);
|
|
13
|
+
return (React.createElement(StepperVerticalProvider, { value: context },
|
|
14
|
+
React.createElement(StepperVerticalBase, { className: cs('vui-stepperVertical', className), ref: ref, ...styles.container, ...rest }, children)));
|
|
15
|
+
});
|
|
16
|
+
StepperVertical.displayName = 'StepperVertical';
|
|
17
|
+
export default StepperVerticalBase;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const StepperVerticalBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").AnimationProps & import("..").BackgroundColorProps & import("..").BorderProps & import("..").BorderTopProps & import("..").BorderRightProps & import("..").BorderBottomProps & import("..").BorderLeftProps & import("..").BorderColorProps & import("..").BorderTopColorProps & import("..").BorderRightColorProps & import("..").BorderBottomColorProps & import("..").BorderLeftColorProps & import("..").BorderWidthProps & import("..").BorderTopWidthProps & import("..").BorderRightWidthProps & import("..").BorderBottomWidthProps & import("..").BorderLeftWidthProps & import("..").BorderStyleProps & import("..").BorderRadiusProps & import("..").OutlineProps & import("..").OutlineColorProps & import("..").OutlineWidthProps & import("..").OutlineStyleProps & import("..").DivideXProps & import("..").DivideYProps & import("..").DivideXReverseProps & import("..").DivideYReverseProps & import("..").DivideColorProps & import("..").DivideStyleProps & import("..").RingProps & import("..").RingColorProps & import("..").OpacityProps & import("..").BoxShadowProps & import("..").TextShadowProps & import("..").DisplayProps & import("..").AlignItemsProps & import("..").AlignContentProps & import("..").JustifyContentProps & import("..").JustifyItemsProps & import("..").FlexWrapProps & import("..").FlexGrowProps & import("..").FlexShrinkProps & import("..").FlexBasisProps & import("..").FlexDirectionProps & import("..").FlexProps & import("..").JustifySelfProps & import("..").AlignSelfProps & import("..").OrderProps & import("../system/flexboxGrids").RowProps & import("../system/flexboxGrids").ColProps & import("../system/grids").GapProps & import("../system/grids").ColumnGapProps & import("../system/grids").RowGapProps & import("../system/grids").GridColumnProps & import("../system/grids").GridRowProps & import("../system/grids").GridAutoFlowProps & import("../system/grids").GridAutoColumnsProps & import("../system/grids").GridAutoRowsProps & import("../system/grids").GridTemplateColumnsProps & import("../system/grids").GridTemplateRowsProps & import("../system/grids").GridTemplateAreasProps & import("../system/grids").GridAreaProps & import("..").AppearanceProps & import("..").CursorProps & import("..").PointerEventsProps & import("..").ResizeProps & import("..").UserSelectProps & import("..").IsTruncatedProps & import("..").FloatProps & import("..").BoxSizingProps & import("..").OverflowProps & import("..").OverflowXProps & import("..").OverflowYProps & import("..").PositionProps & import("..").ZIndexProps & import("..").TopProps & import("..").RightProps & import("..").BottomProps & import("..").LeftProps & import("..").VisibilityProps & import("..").OverscrollBehaviorProps & import("..").ObjectFitProps & import("..").MaxLinesProps & import("..").WidthProps & import("..").HeightProps & import("..").MaxWidthProps & import("..").MaxHeightProps & import("..").MinWidthProps & import("..").MinHeightProps & import("..").MarginProps & import("..").MarginTopProps & import("..").MarginRightProps & import("..").MarginBottomProps & import("..").MarginLeftProps & import("..").MarginXProps & import("..").MarginYProps & import("..").PaddingProps & import("..").PaddingTopProps & import("..").PaddingRightProps & import("..").PaddingBottomProps & import("..").PaddingLeftProps & import("..").PaddingXProps & import("..").PaddingYProps & import("..").SpaceXProps & import("..").SpaceYProps & import("..").SpaceXReverseProps & import("..").SpaceYReverseProps & import("../system/tables").BorderCollapseProps & import("../system/tables").TableLayoutProps & import("..").TransformProps & import("..").TransformOriginProps & import("..").TranslateXProps & import("..").TranslateYProps & import("..").RotateProps & import("..").SkewXProps & import("..").SkewYProps & import("..").ScaleProps & import("..").ScaleXProps & import("..").ScaleYProps & import("..").TransitionProps & import("..").TransitionPropertyProps & import("..").TransitionDurationProps & import("..").TransitionTimingFunctionProps & import("..").TransitionDelayProps & import("..").FontFamilyProps & import("..").FontSizeProps & import("..").FontStyleProps & import("..").FontWeightProps & import("..").LineHeightProps & import("..").ColorProps & import("..").TextTransformProps & import("..").TextDecorationProps & import("..").TextAlignProps & import("..").VerticalAlignProps & import("..").LetterSpacingProps & import("..").WhiteSpaceProps & import("..").TextOverflowProps & import("..").ListStyleTypeProps & import("..").ListStylePositionProps & import("..").WordBreakProps & import("..").ThemingProps<"StepperVertical"> & import("../core").ChildrenProp, never>;
|
|
2
|
+
export default StepperVerticalBase;
|
|
3
|
+
//# sourceMappingURL=stepperVerticalBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepperVerticalBase.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/stepperVerticalBase.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,mBAAmB,gpJAOxB,CAAA;AACD,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled } from '../core';
|
|
2
|
+
import { stepClassName, tailClassName } from './consts';
|
|
3
|
+
const StepperVerticalBase = styled.divBox `
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
7
|
+
.${stepClassName}:last-of-type > .${tailClassName} {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
11
|
+
export default StepperVerticalBase;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '../box';
|
|
3
|
+
import { ChildrenProp } from '../core';
|
|
4
|
+
import { IconProp } from '../icon';
|
|
5
|
+
import { StepperIndicatorVariant } from '../stepperIndicator/stepperIndicatorTypes';
|
|
6
|
+
import { SystemProps } from '../system';
|
|
7
|
+
import { ThemingProps } from '../theme';
|
|
8
|
+
export type StepVerticalSize = 'md' | 'sm' | undefined;
|
|
9
|
+
export type StepperVerticalProps = SystemProps & ThemingProps<'StepperVertical'> & ChildrenProp;
|
|
10
|
+
export type StepVerticalProps = SystemProps & ChildrenProp & {
|
|
11
|
+
icon?: IconProp;
|
|
12
|
+
number?: number;
|
|
13
|
+
size?: StepVerticalSize;
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
variant?: StepperIndicatorVariant;
|
|
19
|
+
};
|
|
20
|
+
export type StepVerticalTailProps = BoxProps & {
|
|
21
|
+
size?: StepVerticalSize;
|
|
22
|
+
variant?: StepperIndicatorVariant;
|
|
23
|
+
};
|
|
24
|
+
export type StepVerticalTitleProps = BoxProps & {
|
|
25
|
+
size?: StepVerticalSize;
|
|
26
|
+
variant?: StepperIndicatorVariant;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=stepperVerticalTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stepperVerticalTypes.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/stepperVerticalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;AAEtD,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,YAAY,CAAC,iBAAiB,CAAC,GAAG,YAAY,CAAA;AAE/F,MAAM,MAAM,iBAAiB,GAAG,WAAW,GACzC,YAAY,GAAG;IACb,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,uBAAuB,CAAA;CAClC,CAAA;AAEH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,OAAO,CAAC,EAAE,uBAAuB,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG;IAC9C,IAAI,CAAC,EAAE,gBAAgB,CAAA;IACvB,OAAO,CAAC,EAAE,uBAAuB,CAAA;CAClC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/stepperVertical/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;AAeA,wBAMC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const baseStyle = {};
|
|
2
|
+
const defaultProps = {
|
|
3
|
+
size: 'md'
|
|
4
|
+
};
|
|
5
|
+
const parts = ['stepVertical'];
|
|
6
|
+
const sizes = {
|
|
7
|
+
sm: {},
|
|
8
|
+
md: {}
|
|
9
|
+
};
|
|
10
|
+
const variants = {};
|
|
11
|
+
export default {
|
|
12
|
+
baseStyle,
|
|
13
|
+
defaultProps,
|
|
14
|
+
parts,
|
|
15
|
+
sizes,
|
|
16
|
+
variants
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/tabs/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/tabs/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,IAM5B,CAAA"}
|
package/dist/esm/tabs/consts.js
CHANGED
|
@@ -5,9 +5,9 @@ import { Icon } from '../icon';
|
|
|
5
5
|
import { List, ListItem } from '../list';
|
|
6
6
|
import { TagButton } from '../tag';
|
|
7
7
|
import { cs } from '../utils';
|
|
8
|
-
import {
|
|
8
|
+
import { colors, iconSizeMapper } from './consts';
|
|
9
9
|
import theme from './theme';
|
|
10
|
-
const { activeBg, border, color, hover, main } =
|
|
10
|
+
const { activeBg, border, color, hover, main } = colors;
|
|
11
11
|
export const TabsNavBar = vui((props, ref) => {
|
|
12
12
|
const { tabs, onNavItemClick, activeNavItem, animationDirection, showBorder, size = 'md' } = props;
|
|
13
13
|
const iconSize = iconSizeMapper?.[size] || 'md';
|