@ctlyst.id/internal-ui 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/config/theme/components/badge.d.ts +3 -0
- package/dist/config/theme/components/index.d.ts +1 -0
- package/dist/internal-ui.cjs.development.js +68 -3
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +2 -2
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +71 -6
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/internal-ui.esm.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Badge as Badge$
|
1
|
+
import { Badge as Badge$2, useToken, Box, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, forwardRef, useStyleConfig, Button as Button$2, Card, Checkbox as Checkbox$1, FormControl, FormLabel as FormLabel$1, FormHelperText, FormErrorMessage, CheckboxGroup, Stack, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, InputGroup, Input as Input$1, InputRightAddon, InputRightElement, theme as theme$1, defineStyle, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, Container, Grid, Wrap, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, createIcon, Icon, Portal, Link, VisuallyHidden, Select as Select$1, Radio as Radio$1, RadioGroup, useMultiStyleConfig, omitThemingProps, useCheckbox, chakra, useTab, TabList as TabList$1, TabPanel as TabPanel$1, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, defineStyleConfig as defineStyleConfig$1, extendTheme } from '@chakra-ui/react';
|
2
2
|
export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Modal, ModalContent, ModalContextProvider, ModalFocusScope, ModalOverlay, TabIndicator, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, useDrawerContext, useModal, useModalContext, useModalStyles, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, useTabsStyles } from '@chakra-ui/react';
|
3
3
|
import React__default, { createElement, forwardRef as forwardRef$1, useRef, useEffect, useState, useMemo, Fragment, useCallback, createContext, useContext } from 'react';
|
4
4
|
import { FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiShoppingBag, FiShoppingCart, FiRepeat, FiBox, FiLayers, FiDollarSign, FiUsers, FiRotateCcw, FiSettings, FiLayout, FiGift, FiChevronDown } from 'react-icons/fi';
|
@@ -27,11 +27,9 @@ const Badge = props => {
|
|
27
27
|
pill,
|
28
28
|
...rest
|
29
29
|
} = props;
|
30
|
-
return /*#__PURE__*/React__default.createElement(Badge$
|
30
|
+
return /*#__PURE__*/React__default.createElement(Badge$2, Object.assign({
|
31
31
|
borderRadius: pill ? 10 : 4,
|
32
|
-
variant: "solid",
|
33
|
-
color: "white",
|
34
|
-
fontSize: "10px",
|
32
|
+
variant: "primary-solid",
|
35
33
|
padding: "0 8px",
|
36
34
|
height: "18px",
|
37
35
|
display: "flex",
|
@@ -2221,7 +2219,7 @@ const Version = ({
|
|
2221
2219
|
version,
|
2222
2220
|
environment,
|
2223
2221
|
onOpenModalRelease
|
2224
|
-
}) => /*#__PURE__*/createElement(Fragment, null, version && /*#__PURE__*/createElement(Badge$
|
2222
|
+
}) => /*#__PURE__*/createElement(Fragment, null, version && /*#__PURE__*/createElement(Badge$2, {
|
2225
2223
|
"data-test-id": "dzl3esjhCphobaaIXpiUE",
|
2226
2224
|
bg: useColorModeValue('primary.500', 'rgba(124, 124, 124, 0.12)'),
|
2227
2225
|
color: useColorModeValue('white', 'secondary.400'),
|
@@ -3261,6 +3259,72 @@ const alertTheme = /*#__PURE__*/defineMultiStyleConfig({
|
|
3261
3259
|
}
|
3262
3260
|
});
|
3263
3261
|
|
3262
|
+
const Badge$1 = {
|
3263
|
+
baseStyle: {
|
3264
|
+
display: 'inline-block',
|
3265
|
+
fontSize: 10,
|
3266
|
+
fontWeight: 600,
|
3267
|
+
lineHeight: '1.25',
|
3268
|
+
textTransform: 'none',
|
3269
|
+
px: 2,
|
3270
|
+
py: '0.5'
|
3271
|
+
},
|
3272
|
+
variants: {
|
3273
|
+
'primary-solid': {
|
3274
|
+
bg: 'primary.500',
|
3275
|
+
color: 'white'
|
3276
|
+
},
|
3277
|
+
'success-solid': {
|
3278
|
+
bg: 'success.500',
|
3279
|
+
color: 'white'
|
3280
|
+
},
|
3281
|
+
'info-solid': {
|
3282
|
+
bg: 'info.500',
|
3283
|
+
color: 'white'
|
3284
|
+
},
|
3285
|
+
'warning-solid': {
|
3286
|
+
bg: 'warning.500',
|
3287
|
+
color: 'white'
|
3288
|
+
},
|
3289
|
+
'danger-solid': {
|
3290
|
+
bg: 'danger.500',
|
3291
|
+
color: 'white'
|
3292
|
+
},
|
3293
|
+
'neutral-solid': {
|
3294
|
+
bg: 'neutral.600',
|
3295
|
+
color: 'white'
|
3296
|
+
},
|
3297
|
+
'primary-light': {
|
3298
|
+
bg: 'primary.50',
|
3299
|
+
color: 'primary.500'
|
3300
|
+
},
|
3301
|
+
'success-light': {
|
3302
|
+
bg: 'success.50',
|
3303
|
+
color: 'success.500'
|
3304
|
+
},
|
3305
|
+
'info-light': {
|
3306
|
+
bg: 'info.50',
|
3307
|
+
color: 'info.500'
|
3308
|
+
},
|
3309
|
+
'warning-light': {
|
3310
|
+
bg: 'warning.50',
|
3311
|
+
color: 'warning.500'
|
3312
|
+
},
|
3313
|
+
'danger-light': {
|
3314
|
+
bg: 'danger.50',
|
3315
|
+
color: 'danger.500'
|
3316
|
+
},
|
3317
|
+
'neutral-light': {
|
3318
|
+
bg: 'neutral.100',
|
3319
|
+
color: 'neutral.600'
|
3320
|
+
}
|
3321
|
+
},
|
3322
|
+
// The default size and variant values
|
3323
|
+
defaultProps: {
|
3324
|
+
variant: 'primary-solid'
|
3325
|
+
}
|
3326
|
+
};
|
3327
|
+
|
3264
3328
|
// You can also use the more specific type for
|
3265
3329
|
// a single part component: ComponentSingleStyleConfig
|
3266
3330
|
const Button$1 = /*#__PURE__*/defineStyleConfig({
|
@@ -4160,6 +4224,7 @@ const Textarea = /*#__PURE__*/defineStyleConfig$1({
|
|
4160
4224
|
var components = {
|
4161
4225
|
__proto__: null,
|
4162
4226
|
Alert: alertTheme,
|
4227
|
+
Badge: Badge$1,
|
4163
4228
|
Button: Button$1,
|
4164
4229
|
Card: CardStyle,
|
4165
4230
|
Checkbox: Checkbox,
|