@ctlyst.id/internal-ui 2.0.0 → 2.0.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/dist/components/index.d.ts +1 -0
- package/dist/internal-ui.cjs.development.js +30 -5
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +9 -9
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +32 -8
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +3 -3
@@ -27,6 +27,29 @@ var styledSystem = require('@chakra-ui/styled-system');
|
|
27
27
|
var themeTools = require('@chakra-ui/theme-tools');
|
28
28
|
var axios = _interopDefault(require('axios'));
|
29
29
|
|
30
|
+
const Badge = props => {
|
31
|
+
const {
|
32
|
+
children,
|
33
|
+
pill,
|
34
|
+
...rest
|
35
|
+
} = props;
|
36
|
+
return /*#__PURE__*/React__default.createElement(react.Badge, Object.assign({
|
37
|
+
borderRadius: pill ? 10 : 4,
|
38
|
+
variant: "solid",
|
39
|
+
color: "white",
|
40
|
+
fontSize: "10px",
|
41
|
+
padding: "0 8px",
|
42
|
+
height: "18px",
|
43
|
+
display: "flex",
|
44
|
+
alignItems: "center",
|
45
|
+
justifyContent: "space-between",
|
46
|
+
textTransform: "none"
|
47
|
+
}, rest), children);
|
48
|
+
};
|
49
|
+
Badge.defaultProps = {
|
50
|
+
pill: false
|
51
|
+
};
|
52
|
+
|
30
53
|
/* eslint-disable react-hooks/rules-of-hooks */
|
31
54
|
const BreadCrumb = props => {
|
32
55
|
const {
|
@@ -2088,7 +2111,7 @@ const XMSLogo = () => /*#__PURE__*/React__default.createElement(react.Image, {
|
|
2088
2111
|
src: react.useColorModeValue('https://assets.voila.id/xms/logo-xms.jpg', 'https://assets.voila.id/xms/logo-xms-dark.png')
|
2089
2112
|
});
|
2090
2113
|
const VoilaLogo = () => /*#__PURE__*/React__default.createElement(react.Image, {
|
2091
|
-
src: "https://
|
2114
|
+
src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
|
2092
2115
|
filter: react.useColorModeValue('none', 'invert(1)'),
|
2093
2116
|
maxW: 24
|
2094
2117
|
});
|
@@ -3306,14 +3329,15 @@ const Button$1 = /*#__PURE__*/styledSystem.defineStyleConfig({
|
|
3306
3329
|
variant
|
3307
3330
|
} = props;
|
3308
3331
|
const base = {
|
3309
|
-
fontSize: 'text.
|
3310
|
-
h:
|
3332
|
+
fontSize: 'text.sm',
|
3333
|
+
h: '26px',
|
3334
|
+
lineHeight: 4,
|
3311
3335
|
px: 2,
|
3312
3336
|
py: '5px'
|
3313
3337
|
};
|
3314
3338
|
const icon = {
|
3315
|
-
h:
|
3316
|
-
w:
|
3339
|
+
h: '26px',
|
3340
|
+
w: '26px',
|
3317
3341
|
p: 0
|
3318
3342
|
};
|
3319
3343
|
return variant === 'icon' ? icon : base;
|
@@ -4447,6 +4471,7 @@ Object.defineProperty(exports, 'useTabsStyles', {
|
|
4447
4471
|
return react.useTabsStyles;
|
4448
4472
|
}
|
4449
4473
|
});
|
4474
|
+
exports.Badge = Badge;
|
4450
4475
|
exports.Box = react.Box;
|
4451
4476
|
exports.BreadCrumb = BreadCrumb;
|
4452
4477
|
exports.Button = Button;
|