@veracity/vui 1.1.0 → 1.1.2
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/README.md +15 -0
- package/dist/cjs/core/styled.d.ts +6 -6
- package/dist/cjs/core/vuiProvider/vuiProvider.d.ts.map +1 -1
- package/dist/cjs/core/vuiProvider/vuiProvider.js +7 -4
- package/dist/cjs/icons/baseIcons/fal/falFileSignature.d.ts +4 -0
- package/dist/cjs/icons/baseIcons/fal/falFileSignature.d.ts.map +1 -0
- package/dist/cjs/icons/baseIcons/fal/falFileSignature.js +7 -0
- package/dist/cjs/icons/baseIcons/fal/falPaperclip.d.ts +4 -0
- package/dist/cjs/icons/baseIcons/fal/falPaperclip.d.ts.map +1 -0
- package/dist/cjs/icons/baseIcons/fal/falPaperclip.js +7 -0
- package/dist/cjs/icons/baseIcons/icons.d.ts +5 -3
- package/dist/cjs/icons/baseIcons/icons.d.ts.map +1 -1
- package/dist/cjs/icons/baseIcons/icons.js +14 -10
- package/dist/cjs/icons/baseIcons/types.d.ts +1 -1
- package/dist/cjs/icons/baseIcons/types.d.ts.map +1 -1
- 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/modal/modal.d.ts.map +1 -1
- package/dist/cjs/modal/modal.js +3 -7
- package/dist/cjs/modal/modalManager.d.ts +1 -1
- package/dist/cjs/modal/modalManager.d.ts.map +1 -1
- package/dist/cjs/modal/modalManager.js +8 -2
- package/dist/cjs/modal/modalStyle.d.ts +3 -0
- package/dist/cjs/modal/modalStyle.d.ts.map +1 -0
- package/dist/cjs/modal/modalStyle.js +10 -0
- package/dist/cjs/progress/index.d.ts +4 -0
- package/dist/cjs/progress/index.d.ts.map +1 -0
- package/dist/cjs/progress/index.js +24 -0
- package/dist/cjs/progress/progress.d.ts +6 -0
- package/dist/cjs/progress/progress.d.ts.map +1 -0
- package/dist/cjs/progress/progress.js +59 -0
- package/dist/cjs/progress/progress.types.d.ts +8 -0
- package/dist/cjs/progress/progress.types.d.ts.map +1 -0
- package/dist/cjs/progress/progress.types.js +2 -0
- package/dist/cjs/progress/theme.d.ts +47 -0
- package/dist/cjs/progress/theme.d.ts.map +1 -0
- package/dist/cjs/progress/theme.js +51 -0
- package/dist/cjs/tabs/index.d.ts +5 -0
- package/dist/cjs/tabs/index.d.ts.map +1 -0
- package/dist/cjs/tabs/index.js +25 -0
- package/dist/cjs/tabs/tab.d.ts +8 -0
- package/dist/cjs/tabs/tab.d.ts.map +1 -0
- package/dist/cjs/tabs/tab.js +20 -0
- package/dist/cjs/tabs/tabs.d.ts +13 -0
- package/dist/cjs/tabs/tabs.d.ts.map +1 -0
- package/dist/cjs/tabs/tabs.js +92 -0
- package/dist/cjs/tabs/tabs.types.d.ts +25 -0
- package/dist/cjs/tabs/tabs.types.d.ts.map +1 -0
- package/dist/cjs/tabs/tabs.types.js +2 -0
- package/dist/cjs/tabs/tabsNavBar.d.ts +4 -0
- package/dist/cjs/tabs/tabsNavBar.d.ts.map +1 -0
- package/dist/cjs/tabs/tabsNavBar.js +19 -0
- package/dist/cjs/tabs/theme.d.ts +14 -0
- package/dist/cjs/tabs/theme.d.ts.map +1 -0
- package/dist/cjs/tabs/theme.js +19 -0
- package/dist/cjs/tabs/useTabsState.d.ts +11 -0
- package/dist/cjs/tabs/useTabsState.d.ts.map +1 -0
- package/dist/cjs/tabs/useTabsState.js +11 -0
- package/dist/cjs/theme/components.d.ts +57 -0
- package/dist/cjs/theme/components.d.ts.map +1 -1
- package/dist/cjs/theme/components.js +22 -18
- package/dist/cjs/theme/defaultTheme.d.ts +57 -0
- package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
- package/dist/cjs/tooltip/tooltip.d.ts.map +1 -1
- package/dist/cjs/tooltip/tooltip.js +2 -2
- package/dist/cjs/tooltip/tooltip.types.d.ts +2 -0
- package/dist/cjs/tooltip/tooltip.types.d.ts.map +1 -1
- package/dist/esm/core/styled.d.ts +6 -6
- package/dist/esm/core/vuiProvider/vuiProvider.d.ts.map +1 -1
- package/dist/esm/core/vuiProvider/vuiProvider.js +7 -4
- package/dist/esm/icons/baseIcons/fal/falFileSignature.d.ts +4 -0
- package/dist/esm/icons/baseIcons/fal/falFileSignature.d.ts.map +1 -0
- package/dist/esm/icons/baseIcons/fal/falFileSignature.js +5 -0
- package/dist/esm/icons/baseIcons/fal/falPaperclip.d.ts +4 -0
- package/dist/esm/icons/baseIcons/fal/falPaperclip.d.ts.map +1 -0
- package/dist/esm/icons/baseIcons/fal/falPaperclip.js +5 -0
- package/dist/esm/icons/baseIcons/icons.d.ts +5 -3
- package/dist/esm/icons/baseIcons/icons.d.ts.map +1 -1
- package/dist/esm/icons/baseIcons/icons.js +5 -3
- package/dist/esm/icons/baseIcons/types.d.ts +1 -1
- package/dist/esm/icons/baseIcons/types.d.ts.map +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/modal/modal.d.ts.map +1 -1
- package/dist/esm/modal/modal.js +3 -7
- package/dist/esm/modal/modalManager.d.ts +1 -1
- package/dist/esm/modal/modalManager.d.ts.map +1 -1
- package/dist/esm/modal/modalManager.js +8 -2
- package/dist/esm/modal/modalStyle.d.ts +3 -0
- package/dist/esm/modal/modalStyle.d.ts.map +1 -0
- package/dist/esm/modal/modalStyle.js +8 -0
- package/dist/esm/progress/index.d.ts +4 -0
- package/dist/esm/progress/index.d.ts.map +1 -0
- package/dist/esm/progress/index.js +3 -0
- package/dist/esm/progress/progress.d.ts +6 -0
- package/dist/esm/progress/progress.d.ts.map +1 -0
- package/dist/esm/progress/progress.js +22 -0
- package/dist/esm/progress/progress.types.d.ts +8 -0
- package/dist/esm/progress/progress.types.d.ts.map +1 -0
- package/dist/esm/progress/progress.types.js +1 -0
- package/dist/esm/progress/theme.d.ts +47 -0
- package/dist/esm/progress/theme.d.ts.map +1 -0
- package/dist/esm/progress/theme.js +49 -0
- package/dist/esm/tabs/index.d.ts +5 -0
- package/dist/esm/tabs/index.d.ts.map +1 -0
- package/dist/esm/tabs/index.js +4 -0
- package/dist/esm/tabs/tab.d.ts +8 -0
- package/dist/esm/tabs/tab.d.ts.map +1 -0
- package/dist/esm/tabs/tab.js +14 -0
- package/dist/esm/tabs/tabs.d.ts +13 -0
- package/dist/esm/tabs/tabs.d.ts.map +1 -0
- package/dist/esm/tabs/tabs.js +50 -0
- package/dist/esm/tabs/tabs.types.d.ts +25 -0
- package/dist/esm/tabs/tabs.types.d.ts.map +1 -0
- package/dist/esm/tabs/tabs.types.js +1 -0
- package/dist/esm/tabs/tabsNavBar.d.ts +4 -0
- package/dist/esm/tabs/tabsNavBar.d.ts.map +1 -0
- package/dist/esm/tabs/tabsNavBar.js +12 -0
- package/dist/esm/tabs/theme.d.ts +14 -0
- package/dist/esm/tabs/theme.d.ts.map +1 -0
- package/dist/esm/tabs/theme.js +17 -0
- package/dist/esm/tabs/useTabsState.d.ts +11 -0
- package/dist/esm/tabs/useTabsState.d.ts.map +1 -0
- package/dist/esm/tabs/useTabsState.js +7 -0
- package/dist/esm/theme/components.d.ts +57 -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 +57 -0
- package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
- package/dist/esm/tooltip/tooltip.d.ts.map +1 -1
- package/dist/esm/tooltip/tooltip.js +2 -2
- package/dist/esm/tooltip/tooltip.types.d.ts +2 -0
- package/dist/esm/tooltip/tooltip.types.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/core/vuiProvider/vuiProvider.tsx +8 -6
- package/src/icons/baseIcons/fal/falFileSignature.ts +8 -0
- package/src/icons/baseIcons/fal/falPaperclip.ts +8 -0
- package/src/icons/baseIcons/icons.ts +5 -3
- package/src/icons/baseIcons/types.ts +5 -3
- package/src/index.ts +2 -0
- package/src/modal/modal.tsx +3 -13
- package/src/modal/modalManager.ts +6 -2
- package/src/modal/modalStyle.ts +9 -0
- package/src/progress/index.ts +3 -0
- package/src/progress/progress.tsx +54 -0
- package/src/progress/progress.types.ts +9 -0
- package/src/progress/theme.ts +53 -0
- package/src/tabs/index.ts +4 -0
- package/src/tabs/tab.tsx +23 -0
- package/src/tabs/tabs.tsx +78 -0
- package/src/tabs/tabs.types.ts +31 -0
- package/src/tabs/tabsNavBar.tsx +51 -0
- package/src/tabs/theme.ts +22 -0
- package/src/tabs/useTabsState.ts +11 -0
- package/src/theme/components.ts +4 -0
- package/src/tooltip/tooltip.tsx +2 -1
- package/src/tooltip/tooltip.types.ts +2 -0
package/dist/esm/modal/modal.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { cloneElement, useRef } from 'react';
|
|
2
|
-
import { RemoveScroll } from 'react-remove-scroll';
|
|
3
2
|
import Box from '../box';
|
|
4
3
|
import { vui } from '../core';
|
|
5
4
|
import Portal from '../portal';
|
|
@@ -19,7 +18,7 @@ export const Modal = vui((props, ref) => {
|
|
|
19
18
|
const { allowPinchZoom, children, className, contentProps, disableAutoFocus, disableBackdropClose, disableEscClose, disablePortal, disableReturnFocus, disableScrollLock, disableTrapFocus, finalFocusRef, hideBackdrop, initialFocusRef, isOpen, onBackdropClick: onBackdropClickProp, onClose, onEsc, preserveScrollBar, size, variant, ...rest } = props;
|
|
20
19
|
const modalRef = useRef(null);
|
|
21
20
|
const mouseDownTarget = useRef(null);
|
|
22
|
-
useModalManager(modalRef, isOpen);
|
|
21
|
+
useModalManager(modalRef, isOpen, disableScrollLock);
|
|
23
22
|
if (!isOpen)
|
|
24
23
|
return null;
|
|
25
24
|
const onBackdropClick = (e) => {
|
|
@@ -39,9 +38,7 @@ export const Modal = vui((props, ref) => {
|
|
|
39
38
|
onEsc?.();
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
|
-
const onMouseDown = (e) =>
|
|
43
|
-
mouseDownTarget.current = e.target;
|
|
44
|
-
};
|
|
41
|
+
const onMouseDown = (e) => (mouseDownTarget.current = e.target);
|
|
45
42
|
const childProps = {
|
|
46
43
|
onClick: (e) => {
|
|
47
44
|
e.stopPropagation();
|
|
@@ -55,8 +52,7 @@ export const Modal = vui((props, ref) => {
|
|
|
55
52
|
React.createElement(Box, { className: cs('vui-modal', className), ref: mergeRefs(ref, modalRef), ...rest, onKeyDown: callAll(props.onKeyDown, onKeyDown), onMouseDown: callAll(props.onMouseDown, onMouseDown) },
|
|
56
53
|
!hideBackdrop && React.createElement(ModalBackdrop, null),
|
|
57
54
|
React.createElement(FocusLock, { autoFocus: !disableAutoFocus, finalFocusRef: finalFocusRef, initialFocusRef: initialFocusRef, isDisabled: disableTrapFocus, returnFocus: !disableReturnFocus },
|
|
58
|
-
React.createElement(
|
|
59
|
-
React.createElement(ModalContent, { ...contentProps }, cloneElement(children, childProps))))))));
|
|
55
|
+
React.createElement(ModalContent, { ...contentProps }, cloneElement(children, childProps)))))));
|
|
60
56
|
});
|
|
61
57
|
Modal.Backdrop = ModalBackdrop;
|
|
62
58
|
Modal.Content = ModalContent;
|
|
@@ -8,6 +8,6 @@ declare class ModalManager {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const manager: ModalManager;
|
|
10
10
|
/** Refs of new modals will be automatically added/removed from the state when rendering. */
|
|
11
|
-
export declare function useModalManager(ref: Ref<any>, isOpen?: boolean): void;
|
|
11
|
+
export declare function useModalManager(ref: Ref<any>, isOpen?: boolean, disableScrollLock?: boolean): void;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=modalManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modalManager.d.ts","sourceRoot":"","sources":["../../../src/modal/modalManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,OAAO,CAAA;AAEtC,0CAA0C;AAC1C,cAAM,YAAY;IAChB,MAAM,EAAE,GAAG,EAAE,CAAK;IAElB,GAAG,UAAW,GAAG,UAEhB;IAED,MAAM,UAAW,GAAG,UAEnB;IAED,UAAU,UAAW,GAAG,aAGvB;CACF;AAED,eAAO,MAAM,OAAO,cAAqB,CAAA;AAEzC,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"modalManager.d.ts","sourceRoot":"","sources":["../../../src/modal/modalManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,OAAO,CAAA;AAEtC,0CAA0C;AAC1C,cAAM,YAAY;IAChB,MAAM,EAAE,GAAG,EAAE,CAAK;IAElB,GAAG,UAAW,GAAG,UAEhB;IAED,MAAM,UAAW,GAAG,UAEnB;IAED,UAAU,UAAW,GAAG,aAGvB;CACF;AAED,eAAO,MAAM,OAAO,cAAqB,CAAA;AAEzC,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,OAAO,QAY3F"}
|
|
@@ -17,11 +17,17 @@ class ModalManager {
|
|
|
17
17
|
}
|
|
18
18
|
export const manager = new ModalManager();
|
|
19
19
|
/** Refs of new modals will be automatically added/removed from the state when rendering. */
|
|
20
|
-
export function useModalManager(ref, isOpen) {
|
|
20
|
+
export function useModalManager(ref, isOpen, disableScrollLock) {
|
|
21
21
|
useEffect(() => {
|
|
22
|
-
|
|
22
|
+
if (isOpen) {
|
|
23
|
+
manager.add(ref);
|
|
24
|
+
if (!disableScrollLock)
|
|
25
|
+
document.body.classList.add('no-scroll');
|
|
26
|
+
}
|
|
23
27
|
return () => {
|
|
24
28
|
manager.remove(ref);
|
|
29
|
+
if (!disableScrollLock)
|
|
30
|
+
document.body.classList.remove('no-scroll');
|
|
25
31
|
};
|
|
26
32
|
}, [isOpen, ref]);
|
|
27
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modalStyle.d.ts","sourceRoot":"","sources":["../../../src/modal/modalStyle.ts"],"names":[],"mappings":";AAEA,wBAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/progress/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProgressProps } from './progress.types';
|
|
2
|
+
export declare const ProgressBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
3
|
+
/** Indicates a process progress. */
|
|
4
|
+
export declare const Progress: import("../core").VuiComponent<"div", ProgressProps>;
|
|
5
|
+
export default Progress;
|
|
6
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/progress/progress.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,YAAY,+HAGxB,CAAA;AAID,oCAAoC;AACpC,eAAO,MAAM,QAAQ,sDAoCnB,CAAA;AAEF,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { Box } from '../box';
|
|
3
|
+
import { styled, useStyleConfig, vui } from '../core';
|
|
4
|
+
import { cs } from '../utils';
|
|
5
|
+
export const ProgressBase = styled.divBox `
|
|
6
|
+
display: flex;
|
|
7
|
+
width: 100%;
|
|
8
|
+
`;
|
|
9
|
+
const minPercentageDisplay = 3;
|
|
10
|
+
/** Indicates a process progress. */
|
|
11
|
+
export const Progress = vui((props, ref) => {
|
|
12
|
+
const { className, size = 'md', value = 0, max = 100, showPercentage, ...rest } = props;
|
|
13
|
+
const [width, setWidth] = useState(0);
|
|
14
|
+
const styles = useStyleConfig('Progress', props);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
const w = !value ? 0 : Math.ceil((value / max) * 100);
|
|
17
|
+
setWidth(w > 100 ? 100 : w);
|
|
18
|
+
}, [value, max]);
|
|
19
|
+
return (React.createElement(ProgressBase, { className: cs('vui-progress', className), ref: ref, ...styles.container, ...rest, bg: "grey.10", borderRadius: "sm", h: 1 },
|
|
20
|
+
React.createElement(Box, { bg: "prussian.80", borderRadius: "sm", position: "relative", textAlign: "right", transition: "width 0.4s ease-in-out;", w: `${width}%` }, showPercentage && value >= minPercentageDisplay && (React.createElement(Box, { ...styles.percentage, position: "absolute", right: "0" }, `${width}%`)))));
|
|
21
|
+
});
|
|
22
|
+
export default Progress;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SystemProps } from '../system';
|
|
2
|
+
import { ThemingProps } from '../theme';
|
|
3
|
+
export declare type ProgressProps = SystemProps & ThemingProps<'Progress'> & {
|
|
4
|
+
value?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
showPercentage?: boolean;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=progress.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.types.d.ts","sourceRoot":"","sources":["../../../src/progress/progress.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,oBAAY,aAAa,GAAG,WAAW,GACrC,YAAY,CAAC,UAAU,CAAC,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle: {};
|
|
3
|
+
defaultProps: {
|
|
4
|
+
size: string;
|
|
5
|
+
};
|
|
6
|
+
sizes: {
|
|
7
|
+
sm: {
|
|
8
|
+
container: {
|
|
9
|
+
minH: string;
|
|
10
|
+
};
|
|
11
|
+
percentage: {
|
|
12
|
+
fontSize: string;
|
|
13
|
+
top: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
md: {
|
|
17
|
+
container: {
|
|
18
|
+
minH: string;
|
|
19
|
+
};
|
|
20
|
+
percentage: {
|
|
21
|
+
fontSize: string;
|
|
22
|
+
top: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
lg: {
|
|
26
|
+
container: {
|
|
27
|
+
minH: string;
|
|
28
|
+
};
|
|
29
|
+
percentage: {
|
|
30
|
+
fontSize: string;
|
|
31
|
+
top: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
xl: {
|
|
35
|
+
container: {
|
|
36
|
+
minH: string;
|
|
37
|
+
};
|
|
38
|
+
percentage: {
|
|
39
|
+
fontSize: string;
|
|
40
|
+
top: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
variants: {};
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
47
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/progress/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,wBAKC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const baseStyle = {};
|
|
2
|
+
const defaultProps = {
|
|
3
|
+
size: 'md'
|
|
4
|
+
};
|
|
5
|
+
const sizes = {
|
|
6
|
+
sm: {
|
|
7
|
+
container: {
|
|
8
|
+
minH: '4px'
|
|
9
|
+
},
|
|
10
|
+
percentage: {
|
|
11
|
+
fontSize: '80%',
|
|
12
|
+
top: '-16px'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
md: {
|
|
16
|
+
container: {
|
|
17
|
+
minH: '8px'
|
|
18
|
+
},
|
|
19
|
+
percentage: {
|
|
20
|
+
fontSize: '100%',
|
|
21
|
+
top: '-20px'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
container: {
|
|
26
|
+
minH: '12px'
|
|
27
|
+
},
|
|
28
|
+
percentage: {
|
|
29
|
+
fontSize: '110%',
|
|
30
|
+
top: '-22px'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
xl: {
|
|
34
|
+
container: {
|
|
35
|
+
minH: '16px'
|
|
36
|
+
},
|
|
37
|
+
percentage: {
|
|
38
|
+
fontSize: '120%',
|
|
39
|
+
top: '-24px'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const variants = {};
|
|
44
|
+
export default {
|
|
45
|
+
baseStyle,
|
|
46
|
+
defaultProps,
|
|
47
|
+
sizes,
|
|
48
|
+
variants
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TabProps } from './tabs.types';
|
|
2
|
+
export declare const TabBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
3
|
+
/**
|
|
4
|
+
* Implements a Tab component
|
|
5
|
+
*/
|
|
6
|
+
export declare const Tab: import("../core").VuiComponent<"div", TabProps>;
|
|
7
|
+
export default Tab;
|
|
8
|
+
//# sourceMappingURL=tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/tabs/tab.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,eAAO,MAAM,OAAO,+HAEnB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,GAAG,iDAOd,CAAA;AAEF,eAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { styled, vui } from '../core';
|
|
3
|
+
import { cs } from '../utils';
|
|
4
|
+
export const TabBase = styled.divBox `
|
|
5
|
+
width: 100%;
|
|
6
|
+
`;
|
|
7
|
+
/**
|
|
8
|
+
* Implements a Tab component
|
|
9
|
+
*/
|
|
10
|
+
export const Tab = vui((props, ref) => {
|
|
11
|
+
const { children, className } = props;
|
|
12
|
+
return (React.createElement(TabBase, { className: cs('vui-tab', className), ref: ref }, children));
|
|
13
|
+
});
|
|
14
|
+
export default Tab;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabsProps } from './tabs.types';
|
|
3
|
+
export declare const TabsBase: 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<"Tabs"> & {
|
|
4
|
+
activeTabId?: number | undefined;
|
|
5
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
6
|
+
onTabClick?: ((id: number) => void) | undefined;
|
|
7
|
+
}, never>;
|
|
8
|
+
/**
|
|
9
|
+
* Implements Tabs navigation to switch between views.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Tabs: import("../core").VuiComponent<"div", TabsProps>;
|
|
12
|
+
export default Tabs;
|
|
13
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAA;AAMtD,OAAO,EAAY,SAAS,EAAE,MAAM,cAAc,CAAA;AAIlD,eAAO,MAAM,QAAQ;;;;SAEpB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,kDA0Df,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
import { styled, useStyleConfig, vui } from '../core';
|
|
3
|
+
import { P } from '../p';
|
|
4
|
+
import { cs } from '../utils';
|
|
5
|
+
import Tab from './tab';
|
|
6
|
+
import TabsNavBar from './tabsNavBar';
|
|
7
|
+
import { useTabsState } from './useTabsState';
|
|
8
|
+
export const TabsBase = styled.divBox `
|
|
9
|
+
width: 100%;
|
|
10
|
+
`;
|
|
11
|
+
/**
|
|
12
|
+
* Implements Tabs navigation to switch between views.
|
|
13
|
+
*/
|
|
14
|
+
export const Tabs = vui((props, ref) => {
|
|
15
|
+
const { activeTabId, children, className, size, onTabClick, ...rest } = props;
|
|
16
|
+
const styles = useStyleConfig('Tabs', props);
|
|
17
|
+
const { tabs, setTabs, activeTabIndex, setActiveTabIndex, animationDirection, setAnimationDirection } = useTabsState('fadeIn', activeTabId);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
const t = [];
|
|
20
|
+
if (children) {
|
|
21
|
+
;
|
|
22
|
+
children.forEach((child, index) => {
|
|
23
|
+
if (child?.props?.title) {
|
|
24
|
+
t.push({
|
|
25
|
+
id: index,
|
|
26
|
+
title: child.props.title,
|
|
27
|
+
children: child.props.children,
|
|
28
|
+
disabled: child.props.disabled,
|
|
29
|
+
onClick: child.props.onClick
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
setTabs(t);
|
|
35
|
+
if (activeTabId !== undefined && tabs?.[activeTabId]) {
|
|
36
|
+
setActiveTabIndex(activeTabId);
|
|
37
|
+
}
|
|
38
|
+
}, [children, activeTabId]);
|
|
39
|
+
const onNavItemClick = (id) => {
|
|
40
|
+
setAnimationDirection(id < activeTabIndex ? 'fadeLeft' : 'fadeRight');
|
|
41
|
+
setActiveTabIndex(id);
|
|
42
|
+
onTabClick?.(id);
|
|
43
|
+
tabs.find(t => t.id === id)?.onClick?.();
|
|
44
|
+
};
|
|
45
|
+
const activeTab = tabs?.[activeTabIndex];
|
|
46
|
+
return (React.createElement(TabsBase, { className: cs('vui-tabs', className), ref: ref, ...styles.container, ...rest },
|
|
47
|
+
!!tabs?.length && (React.createElement(TabsNavBar, { activeNavItem: activeTabIndex, animationDirection: animationDirection, onNavItemClick: onNavItemClick, size: size, tabs: tabs })),
|
|
48
|
+
tabs?.length ? (React.createElement(Tab, { onClick: activeTab?.onClick, title: activeTab?.title }, !activeTab?.disabled && activeTab?.children)) : (React.createElement(P, { p: 2 }, "Please specify Tabs."))));
|
|
49
|
+
});
|
|
50
|
+
export default Tabs;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export declare type AnimationDirection = 'fadeLeft' | 'fadeRight' | 'fadeIn';
|
|
5
|
+
export declare type TabsSize = 'md' | 'sm' | 'lg' | 'xl';
|
|
6
|
+
export declare type TabsProps = SystemProps & ThemingProps<'Tabs'> & {
|
|
7
|
+
activeTabId?: number;
|
|
8
|
+
children?: ReactNode | ReactNode[];
|
|
9
|
+
onTabClick?: (id: number) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare type TabProps = SystemProps & {
|
|
12
|
+
id?: number;
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare type TabNavBarProps = {
|
|
19
|
+
tabs: TabProps[];
|
|
20
|
+
onNavItemClick: (id: number) => void;
|
|
21
|
+
activeNavItem?: number;
|
|
22
|
+
animationDirection?: AnimationDirection;
|
|
23
|
+
size?: TabsSize;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=tabs.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,oBAAY,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEpE,oBAAY,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEhD,oBAAY,SAAS,GAAG,WAAW,GACjC,YAAY,CAAC,MAAM,CAAC,GAAG;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;IAClC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA;AAEH,oBAAY,QAAQ,GAAG,WAAW,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabsNavBar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tabsNavBar.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,eAAO,MAAM,UAAU,uDAwCrB,CAAA;AAEF,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Box from '../box';
|
|
3
|
+
import { vui } from '../core';
|
|
4
|
+
import { List, ListItem } from '../list';
|
|
5
|
+
import { cs } from '../utils';
|
|
6
|
+
export const TabsNavBar = vui((props, ref) => {
|
|
7
|
+
const { tabs, onNavItemClick, activeNavItem, animationDirection, size } = props;
|
|
8
|
+
return (React.createElement(List, { borderBottom: "1px solid grey.40", className: cs('vui-tabsNavBar'), display: "flex", isInteractive: true, ref: ref, size: size, w: 1 }, tabs?.map?.(tab => (React.createElement(ListItem, { className: `vui-tabsNavBarItem vui-tabsNavBarItem-${tab?.id}`, disabled: tab.disabled, display: "inline-flex", key: tab.id, onClick: () => tab?.id !== undefined && onNavItemClick(tab.id), position: "relative" },
|
|
9
|
+
tab.title,
|
|
10
|
+
!tab.disabled && tab.id === activeNavItem && (React.createElement(Box, { animation: animationDirection, bg: "prussian.80", bottom: "-1px", h: `${size === 'sm' ? 2 : 4}px`, left: 0, position: "absolute", w: 1 }, "\u00A0")))))));
|
|
11
|
+
});
|
|
12
|
+
export default TabsNavBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/tabs/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;AAeA,wBAMC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const baseStyle = {};
|
|
2
|
+
const defaultProps = {};
|
|
3
|
+
const parts = ['container', 'tabsNavBar', 'tab'];
|
|
4
|
+
const sizes = {
|
|
5
|
+
sm: {},
|
|
6
|
+
md: {},
|
|
7
|
+
lg: {},
|
|
8
|
+
xl: {}
|
|
9
|
+
};
|
|
10
|
+
const variants = {};
|
|
11
|
+
export default {
|
|
12
|
+
baseStyle,
|
|
13
|
+
defaultProps,
|
|
14
|
+
parts,
|
|
15
|
+
sizes,
|
|
16
|
+
variants
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnimationDirection, TabProps } from './tabs.types';
|
|
3
|
+
export declare const useTabsState: (initialAnimation: AnimationDirection, activeTabId?: number | undefined) => {
|
|
4
|
+
tabs: TabProps[];
|
|
5
|
+
setTabs: import("react").Dispatch<import("react").SetStateAction<TabProps[]>>;
|
|
6
|
+
activeTabIndex: number;
|
|
7
|
+
setActiveTabIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
8
|
+
animationDirection: AnimationDirection;
|
|
9
|
+
setAnimationDirection: import("react").Dispatch<import("react").SetStateAction<AnimationDirection>>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useTabsState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTabsState.d.ts","sourceRoot":"","sources":["../../../src/tabs/useTabsState.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAE3D,eAAO,MAAM,YAAY,qBAAsB,kBAAkB;;;;;;;CAMhE,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
export const useTabsState = (initialAnimation, activeTabId) => {
|
|
3
|
+
const [tabs, setTabs] = useState([]);
|
|
4
|
+
const [activeTabIndex, setActiveTabIndex] = useState(activeTabId ?? 0);
|
|
5
|
+
const [animationDirection, setAnimationDirection] = useState(initialAnimation);
|
|
6
|
+
return { tabs, setTabs, activeTabIndex, setActiveTabIndex, animationDirection, setAnimationDirection };
|
|
7
|
+
};
|
|
@@ -702,6 +702,51 @@ declare const _default: {
|
|
|
702
702
|
};
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
|
+
Progress: {
|
|
706
|
+
baseStyle: {};
|
|
707
|
+
defaultProps: {
|
|
708
|
+
size: string;
|
|
709
|
+
};
|
|
710
|
+
sizes: {
|
|
711
|
+
sm: {
|
|
712
|
+
container: {
|
|
713
|
+
minH: string;
|
|
714
|
+
};
|
|
715
|
+
percentage: {
|
|
716
|
+
fontSize: string;
|
|
717
|
+
top: string;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
md: {
|
|
721
|
+
container: {
|
|
722
|
+
minH: string;
|
|
723
|
+
};
|
|
724
|
+
percentage: {
|
|
725
|
+
fontSize: string;
|
|
726
|
+
top: string;
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
lg: {
|
|
730
|
+
container: {
|
|
731
|
+
minH: string;
|
|
732
|
+
};
|
|
733
|
+
percentage: {
|
|
734
|
+
fontSize: string;
|
|
735
|
+
top: string;
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
xl: {
|
|
739
|
+
container: {
|
|
740
|
+
minH: string;
|
|
741
|
+
};
|
|
742
|
+
percentage: {
|
|
743
|
+
fontSize: string;
|
|
744
|
+
top: string;
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
variants: {};
|
|
749
|
+
};
|
|
705
750
|
Popover: {
|
|
706
751
|
baseStyle: {};
|
|
707
752
|
defaultProps: {};
|
|
@@ -1009,6 +1054,18 @@ declare const _default: {
|
|
|
1009
1054
|
striped: {};
|
|
1010
1055
|
};
|
|
1011
1056
|
};
|
|
1057
|
+
Tabs: {
|
|
1058
|
+
baseStyle: {};
|
|
1059
|
+
defaultProps: {};
|
|
1060
|
+
parts: string[];
|
|
1061
|
+
sizes: {
|
|
1062
|
+
sm: {};
|
|
1063
|
+
md: {};
|
|
1064
|
+
lg: {};
|
|
1065
|
+
xl: {};
|
|
1066
|
+
};
|
|
1067
|
+
variants: {};
|
|
1068
|
+
};
|
|
1012
1069
|
Tag: {
|
|
1013
1070
|
baseStyle: {};
|
|
1014
1071
|
defaultProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,wBAmCC"}
|
|
@@ -21,6 +21,7 @@ import P from '../p/theme';
|
|
|
21
21
|
import Pagination from '../pagination/theme';
|
|
22
22
|
import Panel from '../panel/theme';
|
|
23
23
|
import Popover from '../popover/theme';
|
|
24
|
+
import Progress from '../progress/theme';
|
|
24
25
|
import Radio from '../radio/theme';
|
|
25
26
|
import Select from '../select/theme';
|
|
26
27
|
import Skeleton from '../skeleton/theme';
|
|
@@ -28,6 +29,7 @@ import Spinner from '../spinner/theme';
|
|
|
28
29
|
import Switch from '../switch/theme';
|
|
29
30
|
import T from '../t/theme';
|
|
30
31
|
import Table from '../table/theme';
|
|
32
|
+
import Tabs from '../tabs/theme';
|
|
31
33
|
import Tag from '../tag/theme';
|
|
32
34
|
import Textarea from '../textarea/theme';
|
|
33
35
|
export default {
|
|
@@ -53,6 +55,7 @@ export default {
|
|
|
53
55
|
P,
|
|
54
56
|
Pagination,
|
|
55
57
|
Panel,
|
|
58
|
+
Progress,
|
|
56
59
|
Popover,
|
|
57
60
|
Radio,
|
|
58
61
|
Select,
|
|
@@ -61,6 +64,7 @@ export default {
|
|
|
61
64
|
Switch,
|
|
62
65
|
T,
|
|
63
66
|
Table,
|
|
67
|
+
Tabs,
|
|
64
68
|
Tag,
|
|
65
69
|
Textarea
|
|
66
70
|
};
|