@veracity/vui 1.1.0 → 1.1.1
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.js +5 -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/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 +14 -0
- package/dist/cjs/tabs/tabs.d.ts.map +1 -0
- package/dist/cjs/tabs/tabs.js +94 -0
- package/dist/cjs/tabs/tabs.types.d.ts +28 -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.js +5 -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/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 +14 -0
- package/dist/esm/tabs/tabs.d.ts.map +1 -0
- package/dist/esm/tabs/tabs.js +52 -0
- package/dist/esm/tabs/tabs.types.d.ts +28 -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 -6
- package/src/core/vuiProvider/vuiProvider.tsx +6 -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/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 +88 -0
- package/src/tabs/tabs.types.ts +34 -0
- package/src/tabs/tabsNavBar.tsx +53 -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
|
@@ -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,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const baseStyle = {};
|
|
4
|
+
const defaultProps = {
|
|
5
|
+
size: 'md'
|
|
6
|
+
};
|
|
7
|
+
const sizes = {
|
|
8
|
+
sm: {
|
|
9
|
+
container: {
|
|
10
|
+
minH: '4px'
|
|
11
|
+
},
|
|
12
|
+
percentage: {
|
|
13
|
+
fontSize: '80%',
|
|
14
|
+
top: '-16px'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
md: {
|
|
18
|
+
container: {
|
|
19
|
+
minH: '8px'
|
|
20
|
+
},
|
|
21
|
+
percentage: {
|
|
22
|
+
fontSize: '100%',
|
|
23
|
+
top: '-20px'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
lg: {
|
|
27
|
+
container: {
|
|
28
|
+
minH: '12px'
|
|
29
|
+
},
|
|
30
|
+
percentage: {
|
|
31
|
+
fontSize: '110%',
|
|
32
|
+
top: '-22px'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
xl: {
|
|
36
|
+
container: {
|
|
37
|
+
minH: '16px'
|
|
38
|
+
},
|
|
39
|
+
percentage: {
|
|
40
|
+
fontSize: '120%',
|
|
41
|
+
top: '-24px'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const variants = {};
|
|
46
|
+
exports.default = {
|
|
47
|
+
baseStyle,
|
|
48
|
+
defaultProps,
|
|
49
|
+
sizes,
|
|
50
|
+
variants
|
|
51
|
+
};
|
|
@@ -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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.default = void 0;
|
|
21
|
+
__exportStar(require("./tabs"), exports);
|
|
22
|
+
__exportStar(require("./tab"), exports);
|
|
23
|
+
var tabs_1 = require("./tabs");
|
|
24
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(tabs_1).default; } });
|
|
25
|
+
__exportStar(require("./tabs.types"), exports);
|
|
@@ -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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Tab = exports.TabBase = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const core_1 = require("../core");
|
|
9
|
+
const utils_1 = require("../utils");
|
|
10
|
+
exports.TabBase = core_1.styled.divBox `
|
|
11
|
+
width: 100%;
|
|
12
|
+
`;
|
|
13
|
+
/**
|
|
14
|
+
* Implements a Tab component
|
|
15
|
+
*/
|
|
16
|
+
exports.Tab = (0, core_1.vui)((props, ref) => {
|
|
17
|
+
const { children, className } = props;
|
|
18
|
+
return (react_1.default.createElement(exports.TabBase, { className: (0, utils_1.cs)('vui-tab', className), ref: ref }, children));
|
|
19
|
+
});
|
|
20
|
+
exports.default = exports.Tab;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
withPanel?: boolean | undefined;
|
|
7
|
+
onTabClick?: ((id: number) => void) | undefined;
|
|
8
|
+
}, never>;
|
|
9
|
+
/**
|
|
10
|
+
* Implements Tabs navigation to switch between views.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Tabs: import("../core").VuiComponent<"div", TabsProps>;
|
|
13
|
+
export default Tabs;
|
|
14
|
+
//# 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;AAOtD,OAAO,EAAY,SAAS,EAAE,MAAM,cAAc,CAAA;AAIlD,eAAO,MAAM,QAAQ;;;;;SAEpB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,kDAmEf,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Tabs = exports.TabsBase = void 0;
|
|
41
|
+
const react_1 = __importStar(require("react"));
|
|
42
|
+
const core_1 = require("../core");
|
|
43
|
+
const p_1 = require("../p");
|
|
44
|
+
const panel_1 = require("../panel");
|
|
45
|
+
const utils_1 = require("../utils");
|
|
46
|
+
const tab_1 = __importDefault(require("./tab"));
|
|
47
|
+
const tabsNavBar_1 = __importDefault(require("./tabsNavBar"));
|
|
48
|
+
const useTabsState_1 = require("./useTabsState");
|
|
49
|
+
exports.TabsBase = core_1.styled.divBox `
|
|
50
|
+
width: 100%;
|
|
51
|
+
`;
|
|
52
|
+
/**
|
|
53
|
+
* Implements Tabs navigation to switch between views.
|
|
54
|
+
*/
|
|
55
|
+
exports.Tabs = (0, core_1.vui)((props, ref) => {
|
|
56
|
+
const { activeTabId, children, className, size, withPanel, onTabClick } = props, rest = __rest(props, ["activeTabId", "children", "className", "size", "withPanel", "onTabClick"]);
|
|
57
|
+
const styles = (0, core_1.useStyleConfig)('Tabs', props);
|
|
58
|
+
const { tabs, setTabs, activeTabIndex, setActiveTabIndex, animationDirection, setAnimationDirection } = (0, useTabsState_1.useTabsState)('fadeIn', activeTabId);
|
|
59
|
+
(0, react_1.useEffect)(() => {
|
|
60
|
+
const t = [];
|
|
61
|
+
if (children) {
|
|
62
|
+
;
|
|
63
|
+
children.forEach((child, index) => {
|
|
64
|
+
var _a;
|
|
65
|
+
if ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.title) {
|
|
66
|
+
t.push({
|
|
67
|
+
id: index,
|
|
68
|
+
title: child.props.title,
|
|
69
|
+
children: child.props.children,
|
|
70
|
+
disabled: child.props.disabled,
|
|
71
|
+
onClick: child.props.onClick
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
setTabs(t);
|
|
77
|
+
if (activeTabId !== undefined && (tabs === null || tabs === void 0 ? void 0 : tabs[activeTabId])) {
|
|
78
|
+
setActiveTabIndex(activeTabId);
|
|
79
|
+
}
|
|
80
|
+
}, [children, activeTabId]);
|
|
81
|
+
const onNavItemClick = (id) => {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
setAnimationDirection(id < activeTabIndex ? 'fadeLeft' : 'fadeRight');
|
|
84
|
+
setActiveTabIndex(id);
|
|
85
|
+
onTabClick === null || onTabClick === void 0 ? void 0 : onTabClick(id);
|
|
86
|
+
(_b = (_a = tabs.find(t => t.id === id)) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
87
|
+
};
|
|
88
|
+
const activeTab = tabs === null || tabs === void 0 ? void 0 : tabs[activeTabIndex];
|
|
89
|
+
return (react_1.default.createElement(exports.TabsBase, Object.assign({ className: (0, utils_1.cs)('vui-tabs', className), ref: ref }, styles.container, rest),
|
|
90
|
+
!!(tabs === null || tabs === void 0 ? void 0 : tabs.length) && (react_1.default.createElement(tabsNavBar_1.default, { activeNavItem: activeTabIndex, animationDirection: animationDirection, onNavItemClick: onNavItemClick, size: size, tabs: tabs, withPanel: withPanel })),
|
|
91
|
+
(tabs === null || tabs === void 0 ? void 0 : tabs.length) ? (withPanel ? (react_1.default.createElement(panel_1.Panel, { display: "block", variant: "outlined", w: "100%" },
|
|
92
|
+
react_1.default.createElement(tab_1.default, { onClick: activeTab === null || activeTab === void 0 ? void 0 : activeTab.onClick, title: activeTab === null || activeTab === void 0 ? void 0 : activeTab.title }, !(activeTab === null || activeTab === void 0 ? void 0 : activeTab.disabled) && (activeTab === null || activeTab === void 0 ? void 0 : activeTab.children)))) : (react_1.default.createElement(tab_1.default, { onClick: activeTab === null || activeTab === void 0 ? void 0 : activeTab.onClick, title: activeTab === null || activeTab === void 0 ? void 0 : activeTab.title }, !(activeTab === null || activeTab === void 0 ? void 0 : activeTab.disabled) && (activeTab === null || activeTab === void 0 ? void 0 : activeTab.children)))) : (react_1.default.createElement(p_1.P, { p: 2 }, "Please specify Tabs."))));
|
|
93
|
+
});
|
|
94
|
+
exports.default = exports.Tabs;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/** Wraps up the tab content with an outlined panel. */
|
|
10
|
+
withPanel?: boolean;
|
|
11
|
+
onTabClick?: (id: number) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare type TabProps = SystemProps & {
|
|
14
|
+
id?: number;
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onClick?: () => void;
|
|
19
|
+
};
|
|
20
|
+
export declare type TabNavBarProps = {
|
|
21
|
+
tabs: TabProps[];
|
|
22
|
+
onNavItemClick: (id: number) => void;
|
|
23
|
+
activeNavItem?: number;
|
|
24
|
+
animationDirection?: AnimationDirection;
|
|
25
|
+
size?: TabsSize;
|
|
26
|
+
withPanel?: boolean;
|
|
27
|
+
};
|
|
28
|
+
//# 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,uDAAuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,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;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA"}
|
|
@@ -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,uDA0CrB,CAAA;AAEF,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TabsNavBar = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const box_1 = __importDefault(require("../box"));
|
|
9
|
+
const core_1 = require("../core");
|
|
10
|
+
const list_1 = require("../list");
|
|
11
|
+
const utils_1 = require("../utils");
|
|
12
|
+
exports.TabsNavBar = (0, core_1.vui)((props, ref) => {
|
|
13
|
+
var _a;
|
|
14
|
+
const { tabs, onNavItemClick, activeNavItem, animationDirection, size, withPanel } = props;
|
|
15
|
+
return (react_1.default.createElement(list_1.List, { borderBottom: withPanel ? 'none' : '1px solid grey.40', className: (0, utils_1.cs)('vui-tabsNavBar'), display: "flex", isInteractive: true, mb: withPanel ? 0 : 2, ml: withPanel ? 1 : 0, ref: ref, size: size, w: 1 }, (_a = tabs === null || tabs === void 0 ? void 0 : tabs.map) === null || _a === void 0 ? void 0 : _a.call(tabs, tab => (react_1.default.createElement(list_1.ListItem, { className: `vui-tabsNavBarItem vui-tabsNavBarItem-${tab === null || tab === void 0 ? void 0 : tab.id}`, disabled: tab.disabled, display: "inline-flex", key: tab.id, onClick: () => (tab === null || tab === void 0 ? void 0 : tab.id) !== undefined && onNavItemClick(tab.id), position: "relative" },
|
|
16
|
+
tab.title,
|
|
17
|
+
!tab.disabled && tab.id === activeNavItem && (react_1.default.createElement(box_1.default, { animation: animationDirection, bg: "prussian.80", bottom: withPanel ? 0 : '-1px', h: `${size === 'sm' ? 2 : 4}px`, left: 0, position: "absolute", w: 1 }, "\u00A0")))))));
|
|
18
|
+
});
|
|
19
|
+
exports.default = exports.TabsNavBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/tabs/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;AAeA,wBAMC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const baseStyle = {};
|
|
4
|
+
const defaultProps = {};
|
|
5
|
+
const parts = ['container', 'tabsNavBar', 'tab'];
|
|
6
|
+
const sizes = {
|
|
7
|
+
sm: {},
|
|
8
|
+
md: {},
|
|
9
|
+
lg: {},
|
|
10
|
+
xl: {}
|
|
11
|
+
};
|
|
12
|
+
const variants = {};
|
|
13
|
+
exports.default = {
|
|
14
|
+
baseStyle,
|
|
15
|
+
defaultProps,
|
|
16
|
+
parts,
|
|
17
|
+
sizes,
|
|
18
|
+
variants
|
|
19
|
+
};
|
|
@@ -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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTabsState = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useTabsState = (initialAnimation, activeTabId) => {
|
|
6
|
+
const [tabs, setTabs] = (0, react_1.useState)([]);
|
|
7
|
+
const [activeTabIndex, setActiveTabIndex] = (0, react_1.useState)(activeTabId !== null && activeTabId !== void 0 ? activeTabId : 0);
|
|
8
|
+
const [animationDirection, setAnimationDirection] = (0, react_1.useState)(initialAnimation);
|
|
9
|
+
return { tabs, setTabs, activeTabIndex, setActiveTabIndex, animationDirection, setAnimationDirection };
|
|
10
|
+
};
|
|
11
|
+
exports.useTabsState = useTabsState;
|
|
@@ -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"}
|
|
@@ -26,15 +26,17 @@ const theme_20 = __importDefault(require("../p/theme"));
|
|
|
26
26
|
const theme_21 = __importDefault(require("../pagination/theme"));
|
|
27
27
|
const theme_22 = __importDefault(require("../panel/theme"));
|
|
28
28
|
const theme_23 = __importDefault(require("../popover/theme"));
|
|
29
|
-
const theme_24 = __importDefault(require("../
|
|
30
|
-
const theme_25 = __importDefault(require("../
|
|
31
|
-
const theme_26 = __importDefault(require("../
|
|
32
|
-
const theme_27 = __importDefault(require("../
|
|
33
|
-
const theme_28 = __importDefault(require("../
|
|
34
|
-
const theme_29 = __importDefault(require("../
|
|
35
|
-
const theme_30 = __importDefault(require("../
|
|
36
|
-
const theme_31 = __importDefault(require("../
|
|
37
|
-
const theme_32 = __importDefault(require("../
|
|
29
|
+
const theme_24 = __importDefault(require("../progress/theme"));
|
|
30
|
+
const theme_25 = __importDefault(require("../radio/theme"));
|
|
31
|
+
const theme_26 = __importDefault(require("../select/theme"));
|
|
32
|
+
const theme_27 = __importDefault(require("../skeleton/theme"));
|
|
33
|
+
const theme_28 = __importDefault(require("../spinner/theme"));
|
|
34
|
+
const theme_29 = __importDefault(require("../switch/theme"));
|
|
35
|
+
const theme_30 = __importDefault(require("../t/theme"));
|
|
36
|
+
const theme_31 = __importDefault(require("../table/theme"));
|
|
37
|
+
const theme_32 = __importDefault(require("../tabs/theme"));
|
|
38
|
+
const theme_33 = __importDefault(require("../tag/theme"));
|
|
39
|
+
const theme_34 = __importDefault(require("../textarea/theme"));
|
|
38
40
|
exports.default = {
|
|
39
41
|
Avatar: theme_1.default,
|
|
40
42
|
Box: theme_2.default,
|
|
@@ -58,14 +60,16 @@ exports.default = {
|
|
|
58
60
|
P: theme_20.default,
|
|
59
61
|
Pagination: theme_21.default,
|
|
60
62
|
Panel: theme_22.default,
|
|
63
|
+
Progress: theme_24.default,
|
|
61
64
|
Popover: theme_23.default,
|
|
62
|
-
Radio:
|
|
63
|
-
Select:
|
|
64
|
-
Skeleton:
|
|
65
|
-
Spinner:
|
|
66
|
-
Switch:
|
|
67
|
-
T:
|
|
68
|
-
Table:
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
Radio: theme_25.default,
|
|
66
|
+
Select: theme_26.default,
|
|
67
|
+
Skeleton: theme_27.default,
|
|
68
|
+
Spinner: theme_28.default,
|
|
69
|
+
Switch: theme_29.default,
|
|
70
|
+
T: theme_30.default,
|
|
71
|
+
Table: theme_31.default,
|
|
72
|
+
Tabs: theme_32.default,
|
|
73
|
+
Tag: theme_33.default,
|
|
74
|
+
Textarea: theme_34.default
|
|
71
75
|
};
|
|
@@ -898,6 +898,51 @@ declare const defaultTheme: {
|
|
|
898
898
|
};
|
|
899
899
|
};
|
|
900
900
|
};
|
|
901
|
+
Progress: {
|
|
902
|
+
baseStyle: {};
|
|
903
|
+
defaultProps: {
|
|
904
|
+
size: string;
|
|
905
|
+
};
|
|
906
|
+
sizes: {
|
|
907
|
+
sm: {
|
|
908
|
+
container: {
|
|
909
|
+
minH: string;
|
|
910
|
+
};
|
|
911
|
+
percentage: {
|
|
912
|
+
fontSize: string;
|
|
913
|
+
top: string;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
md: {
|
|
917
|
+
container: {
|
|
918
|
+
minH: string;
|
|
919
|
+
};
|
|
920
|
+
percentage: {
|
|
921
|
+
fontSize: string;
|
|
922
|
+
top: string;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
lg: {
|
|
926
|
+
container: {
|
|
927
|
+
minH: string;
|
|
928
|
+
};
|
|
929
|
+
percentage: {
|
|
930
|
+
fontSize: string;
|
|
931
|
+
top: string;
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
xl: {
|
|
935
|
+
container: {
|
|
936
|
+
minH: string;
|
|
937
|
+
};
|
|
938
|
+
percentage: {
|
|
939
|
+
fontSize: string;
|
|
940
|
+
top: string;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
variants: {};
|
|
945
|
+
};
|
|
901
946
|
Popover: {
|
|
902
947
|
baseStyle: {};
|
|
903
948
|
defaultProps: {};
|
|
@@ -1205,6 +1250,18 @@ declare const defaultTheme: {
|
|
|
1205
1250
|
striped: {};
|
|
1206
1251
|
};
|
|
1207
1252
|
};
|
|
1253
|
+
Tabs: {
|
|
1254
|
+
baseStyle: {};
|
|
1255
|
+
defaultProps: {};
|
|
1256
|
+
parts: string[];
|
|
1257
|
+
sizes: {
|
|
1258
|
+
sm: {};
|
|
1259
|
+
md: {};
|
|
1260
|
+
lg: {};
|
|
1261
|
+
xl: {};
|
|
1262
|
+
};
|
|
1263
|
+
variants: {};
|
|
1264
|
+
};
|
|
1208
1265
|
Tag: {
|
|
1209
1266
|
baseStyle: {};
|
|
1210
1267
|
defaultProps: {
|